@vendure/admin-ui 2.0.0-next.19 → 2.0.0-next.20
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/core/common/component-registry-types.d.ts +1 -1
- package/core/common/generated-types.d.ts +2609 -69
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/order-definitions.d.ts +12 -0
- package/core/data/providers/order-data.service.d.ts +17 -0
- package/core/public_api.d.ts +2 -0
- package/core/shared/components/radio-card/radio-card-fieldset.component.d.ts +24 -0
- package/core/shared/components/radio-card/radio-card.component.d.ts +22 -0
- package/core/shared/shared.module.d.ts +33 -31
- package/esm2020/catalog/components/collection-list/collection-list.component.mjs +6 -6
- package/esm2020/catalog/components/facet-list/facet-list.component.mjs +3 -3
- package/esm2020/catalog/components/product-detail/product-detail.component.mjs +3 -3
- package/esm2020/catalog/components/product-list/product-list.component.mjs +3 -3
- package/esm2020/core/common/component-registry-types.mjs +1 -1
- package/esm2020/core/common/generated-types.mjs +4 -1
- package/esm2020/core/common/introspection-result.mjs +31 -1
- package/esm2020/core/common/version.mjs +2 -2
- package/esm2020/core/components/breadcrumb/breadcrumb.component.mjs +2 -2
- package/esm2020/core/data/definitions/order-definitions.mjs +114 -1
- package/esm2020/core/data/definitions/product-definitions.mjs +7 -1
- package/esm2020/core/data/providers/customer-data.service.mjs +6 -1
- package/esm2020/core/data/providers/order-data.service.mjs +38 -2
- package/esm2020/core/data/utils/remove-readonly-custom-fields.mjs +5 -1
- package/esm2020/core/providers/dashboard-widget/dashboard-widget.service.mjs +1 -4
- package/esm2020/core/public_api.mjs +3 -1
- package/esm2020/core/shared/components/action-bar/action-bar.component.mjs +7 -15
- package/esm2020/core/shared/components/data-table/data-table.component.mjs +2 -2
- package/esm2020/core/shared/components/language-selector/language-selector.component.mjs +3 -3
- package/esm2020/core/shared/components/order-state-label/order-state-label.component.mjs +2 -1
- package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +2 -2
- package/esm2020/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +2 -2
- package/esm2020/core/shared/components/radio-card/radio-card-fieldset.component.mjs +54 -0
- package/esm2020/core/shared/components/radio-card/radio-card.component.mjs +53 -0
- package/esm2020/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.mjs +3 -3
- package/esm2020/core/shared/pipes/state-i18n-token.pipe.mjs +2 -1
- package/esm2020/core/shared/shared.module.mjs +11 -3
- package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +3 -3
- package/esm2020/customer/components/customer-list/customer-list.component.mjs +3 -3
- package/esm2020/dashboard/dashboard.module.mjs +6 -2
- package/esm2020/order/components/coupon-code-selector/coupon-code-selector.component.mjs +42 -0
- package/esm2020/order/components/draft-order-detail/draft-order-detail.component.mjs +187 -0
- package/esm2020/order/components/draft-order-variant-selector/draft-order-variant-selector.component.mjs +59 -0
- package/esm2020/order/components/order-detail/order-detail.component.mjs +3 -3
- package/esm2020/order/components/order-editor/order-editor.component.mjs +6 -12
- package/esm2020/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.mjs +1 -1
- package/esm2020/order/components/order-list/order-list.component.mjs +20 -4
- package/esm2020/order/components/order-table/order-table.component.mjs +21 -6
- package/esm2020/order/components/select-address-dialog/select-address-dialog.component.mjs +89 -0
- package/esm2020/order/components/select-address-dialog/select-address-dialog.graphql.mjs +14 -0
- package/esm2020/order/components/select-customer-dialog/select-customer-dialog.component.mjs +59 -0
- package/esm2020/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.mjs +31 -0
- package/esm2020/order/order.module.mjs +20 -2
- package/esm2020/order/order.routes.mjs +23 -4
- package/esm2020/order/providers/routing/order-resolver.mjs +29 -11
- package/esm2020/order/providers/routing/order.guard.mjs +37 -0
- package/esm2020/order/public_api.mjs +9 -1
- package/esm2020/settings/components/country-list/country-list.component.mjs +3 -3
- package/esm2020/settings/components/profile/profile.component.mjs +3 -3
- package/esm2020/system/components/health-check/health-check.component.mjs +2 -2
- package/fesm2015/vendure-admin-ui-catalog.mjs +8 -8
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-core.mjs +1486 -1199
- package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.mjs +4 -4
- package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.mjs +5 -1
- package/fesm2015/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-order.mjs +993 -472
- package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.mjs +4 -4
- package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-system.mjs +2 -2
- package/fesm2020/vendure-admin-ui-catalog.mjs +8 -8
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-core.mjs +1490 -1202
- package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-customer.mjs +4 -4
- package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-dashboard.mjs +5 -1
- package/fesm2020/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-order.mjs +980 -466
- package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-settings.mjs +4 -4
- package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-system.mjs +2 -2
- package/order/components/coupon-code-selector/coupon-code-selector.component.d.ts +21 -0
- package/order/components/draft-order-detail/draft-order-detail.component.d.ts +52 -0
- package/order/components/draft-order-variant-selector/draft-order-variant-selector.component.d.ts +24 -0
- package/order/components/order-editor/order-editor.component.d.ts +1 -6
- package/order/components/order-list/order-list.component.d.ts +1 -0
- package/order/components/order-table/order-table.component.d.ts +11 -2
- package/order/components/select-address-dialog/select-address-dialog.component.d.ts +27 -0
- package/order/components/select-address-dialog/select-address-dialog.graphql.d.ts +1 -0
- package/order/components/select-customer-dialog/select-customer-dialog.component.d.ts +25 -0
- package/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.d.ts +19 -0
- package/order/order.module.d.ts +9 -3
- package/order/providers/routing/order-resolver.d.ts +8 -3
- package/order/providers/routing/order.guard.d.ts +12 -0
- package/order/public_api.d.ts +8 -0
- package/package.json +2 -2
- package/static/i18n-messages/cs.json +14 -0
- package/static/i18n-messages/de.json +14 -0
- package/static/i18n-messages/en.json +14 -0
- package/static/i18n-messages/es.json +14 -0
- package/static/i18n-messages/fr.json +14 -0
- package/static/i18n-messages/it.json +14 -0
- package/static/i18n-messages/pl.json +14 -0
- package/static/i18n-messages/pt_BR.json +14 -0
- package/static/i18n-messages/pt_PT.json +14 -0
- package/static/i18n-messages/ru.json +14 -0
- package/static/i18n-messages/uk.json +14 -0
- package/static/i18n-messages/zh_Hans.json +14 -0
- package/static/i18n-messages/zh_Hant.json +14 -0
- package/static/styles/global/_forms.scss +4 -2
- package/static/styles/global/_utilities.scss +4 -0
- package/static/theme.min.css +1 -1
|
@@ -1202,6 +1202,10 @@ const GET_PRODUCT_VARIANT = gql `
|
|
|
1202
1202
|
id
|
|
1203
1203
|
name
|
|
1204
1204
|
sku
|
|
1205
|
+
stockOnHand
|
|
1206
|
+
stockAllocated
|
|
1207
|
+
stockLevel
|
|
1208
|
+
useGlobalOutOfStockThreshold
|
|
1205
1209
|
featuredAsset {
|
|
1206
1210
|
id
|
|
1207
1211
|
preview
|
|
@@ -1210,6 +1214,8 @@ const GET_PRODUCT_VARIANT = gql `
|
|
|
1210
1214
|
y
|
|
1211
1215
|
}
|
|
1212
1216
|
}
|
|
1217
|
+
price
|
|
1218
|
+
priceWithTax
|
|
1213
1219
|
product {
|
|
1214
1220
|
id
|
|
1215
1221
|
featuredAsset {
|
|
@@ -1569,1175 +1575,6 @@ class CollectionDataService {
|
|
|
1569
1575
|
}
|
|
1570
1576
|
}
|
|
1571
1577
|
|
|
1572
|
-
const ADDRESS_FRAGMENT = gql `
|
|
1573
|
-
fragment Address on Address {
|
|
1574
|
-
id
|
|
1575
|
-
createdAt
|
|
1576
|
-
updatedAt
|
|
1577
|
-
fullName
|
|
1578
|
-
company
|
|
1579
|
-
streetLine1
|
|
1580
|
-
streetLine2
|
|
1581
|
-
city
|
|
1582
|
-
province
|
|
1583
|
-
postalCode
|
|
1584
|
-
country {
|
|
1585
|
-
id
|
|
1586
|
-
code
|
|
1587
|
-
name
|
|
1588
|
-
}
|
|
1589
|
-
phoneNumber
|
|
1590
|
-
defaultShippingAddress
|
|
1591
|
-
defaultBillingAddress
|
|
1592
|
-
}
|
|
1593
|
-
`;
|
|
1594
|
-
const CUSTOMER_FRAGMENT = gql `
|
|
1595
|
-
fragment Customer on Customer {
|
|
1596
|
-
id
|
|
1597
|
-
createdAt
|
|
1598
|
-
updatedAt
|
|
1599
|
-
title
|
|
1600
|
-
firstName
|
|
1601
|
-
lastName
|
|
1602
|
-
phoneNumber
|
|
1603
|
-
emailAddress
|
|
1604
|
-
user {
|
|
1605
|
-
id
|
|
1606
|
-
identifier
|
|
1607
|
-
verified
|
|
1608
|
-
lastLogin
|
|
1609
|
-
}
|
|
1610
|
-
addresses {
|
|
1611
|
-
...Address
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
${ADDRESS_FRAGMENT}
|
|
1615
|
-
`;
|
|
1616
|
-
const CUSTOMER_GROUP_FRAGMENT = gql `
|
|
1617
|
-
fragment CustomerGroup on CustomerGroup {
|
|
1618
|
-
id
|
|
1619
|
-
createdAt
|
|
1620
|
-
updatedAt
|
|
1621
|
-
name
|
|
1622
|
-
}
|
|
1623
|
-
`;
|
|
1624
|
-
const GET_CUSTOMER_LIST = gql `
|
|
1625
|
-
query GetCustomerList($options: CustomerListOptions) {
|
|
1626
|
-
customers(options: $options) {
|
|
1627
|
-
items {
|
|
1628
|
-
id
|
|
1629
|
-
createdAt
|
|
1630
|
-
updatedAt
|
|
1631
|
-
title
|
|
1632
|
-
firstName
|
|
1633
|
-
lastName
|
|
1634
|
-
emailAddress
|
|
1635
|
-
user {
|
|
1636
|
-
id
|
|
1637
|
-
verified
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
totalItems
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
`;
|
|
1644
|
-
const GET_CUSTOMER = gql `
|
|
1645
|
-
query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {
|
|
1646
|
-
customer(id: $id) {
|
|
1647
|
-
...Customer
|
|
1648
|
-
groups {
|
|
1649
|
-
id
|
|
1650
|
-
name
|
|
1651
|
-
}
|
|
1652
|
-
orders(options: $orderListOptions) {
|
|
1653
|
-
items {
|
|
1654
|
-
id
|
|
1655
|
-
code
|
|
1656
|
-
state
|
|
1657
|
-
totalWithTax
|
|
1658
|
-
currencyCode
|
|
1659
|
-
updatedAt
|
|
1660
|
-
}
|
|
1661
|
-
totalItems
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
${CUSTOMER_FRAGMENT}
|
|
1666
|
-
`;
|
|
1667
|
-
const CREATE_CUSTOMER = gql `
|
|
1668
|
-
mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {
|
|
1669
|
-
createCustomer(input: $input, password: $password) {
|
|
1670
|
-
...Customer
|
|
1671
|
-
...ErrorResult
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
${CUSTOMER_FRAGMENT}
|
|
1675
|
-
${ERROR_RESULT_FRAGMENT}
|
|
1676
|
-
`;
|
|
1677
|
-
const UPDATE_CUSTOMER = gql `
|
|
1678
|
-
mutation UpdateCustomer($input: UpdateCustomerInput!) {
|
|
1679
|
-
updateCustomer(input: $input) {
|
|
1680
|
-
...Customer
|
|
1681
|
-
...ErrorResult
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
${CUSTOMER_FRAGMENT}
|
|
1685
|
-
${ERROR_RESULT_FRAGMENT}
|
|
1686
|
-
`;
|
|
1687
|
-
const DELETE_CUSTOMER = gql `
|
|
1688
|
-
mutation DeleteCustomer($id: ID!) {
|
|
1689
|
-
deleteCustomer(id: $id) {
|
|
1690
|
-
result
|
|
1691
|
-
message
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
`;
|
|
1695
|
-
const CREATE_CUSTOMER_ADDRESS = gql `
|
|
1696
|
-
mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {
|
|
1697
|
-
createCustomerAddress(customerId: $customerId, input: $input) {
|
|
1698
|
-
...Address
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
${ADDRESS_FRAGMENT}
|
|
1702
|
-
`;
|
|
1703
|
-
const UPDATE_CUSTOMER_ADDRESS = gql `
|
|
1704
|
-
mutation UpdateCustomerAddress($input: UpdateAddressInput!) {
|
|
1705
|
-
updateCustomerAddress(input: $input) {
|
|
1706
|
-
...Address
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
|
-
${ADDRESS_FRAGMENT}
|
|
1710
|
-
`;
|
|
1711
|
-
const DELETE_CUSTOMER_ADDRESS = gql `
|
|
1712
|
-
mutation DeleteCustomerAddress($id: ID!) {
|
|
1713
|
-
deleteCustomerAddress(id: $id) {
|
|
1714
|
-
success
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
`;
|
|
1718
|
-
const CREATE_CUSTOMER_GROUP = gql `
|
|
1719
|
-
mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {
|
|
1720
|
-
createCustomerGroup(input: $input) {
|
|
1721
|
-
...CustomerGroup
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
${CUSTOMER_GROUP_FRAGMENT}
|
|
1725
|
-
`;
|
|
1726
|
-
const UPDATE_CUSTOMER_GROUP = gql `
|
|
1727
|
-
mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {
|
|
1728
|
-
updateCustomerGroup(input: $input) {
|
|
1729
|
-
...CustomerGroup
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
${CUSTOMER_GROUP_FRAGMENT}
|
|
1733
|
-
`;
|
|
1734
|
-
const DELETE_CUSTOMER_GROUP = gql `
|
|
1735
|
-
mutation DeleteCustomerGroup($id: ID!) {
|
|
1736
|
-
deleteCustomerGroup(id: $id) {
|
|
1737
|
-
result
|
|
1738
|
-
message
|
|
1739
|
-
}
|
|
1740
|
-
}
|
|
1741
|
-
`;
|
|
1742
|
-
const GET_CUSTOMER_GROUPS = gql `
|
|
1743
|
-
query GetCustomerGroups($options: CustomerGroupListOptions) {
|
|
1744
|
-
customerGroups(options: $options) {
|
|
1745
|
-
items {
|
|
1746
|
-
...CustomerGroup
|
|
1747
|
-
}
|
|
1748
|
-
totalItems
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
${CUSTOMER_GROUP_FRAGMENT}
|
|
1752
|
-
`;
|
|
1753
|
-
const GET_CUSTOMER_GROUP_WITH_CUSTOMERS = gql `
|
|
1754
|
-
query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {
|
|
1755
|
-
customerGroup(id: $id) {
|
|
1756
|
-
...CustomerGroup
|
|
1757
|
-
customers(options: $options) {
|
|
1758
|
-
items {
|
|
1759
|
-
id
|
|
1760
|
-
createdAt
|
|
1761
|
-
updatedAt
|
|
1762
|
-
emailAddress
|
|
1763
|
-
firstName
|
|
1764
|
-
lastName
|
|
1765
|
-
}
|
|
1766
|
-
totalItems
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
${CUSTOMER_GROUP_FRAGMENT}
|
|
1771
|
-
`;
|
|
1772
|
-
const ADD_CUSTOMERS_TO_GROUP = gql `
|
|
1773
|
-
mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {
|
|
1774
|
-
addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {
|
|
1775
|
-
...CustomerGroup
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
${CUSTOMER_GROUP_FRAGMENT}
|
|
1779
|
-
`;
|
|
1780
|
-
const REMOVE_CUSTOMERS_FROM_GROUP = gql `
|
|
1781
|
-
mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {
|
|
1782
|
-
removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {
|
|
1783
|
-
...CustomerGroup
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
${CUSTOMER_GROUP_FRAGMENT}
|
|
1787
|
-
`;
|
|
1788
|
-
const GET_CUSTOMER_HISTORY = gql `
|
|
1789
|
-
query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {
|
|
1790
|
-
customer(id: $id) {
|
|
1791
|
-
id
|
|
1792
|
-
history(options: $options) {
|
|
1793
|
-
totalItems
|
|
1794
|
-
items {
|
|
1795
|
-
id
|
|
1796
|
-
type
|
|
1797
|
-
createdAt
|
|
1798
|
-
isPublic
|
|
1799
|
-
administrator {
|
|
1800
|
-
id
|
|
1801
|
-
firstName
|
|
1802
|
-
lastName
|
|
1803
|
-
}
|
|
1804
|
-
data
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
}
|
|
1808
|
-
}
|
|
1809
|
-
`;
|
|
1810
|
-
const ADD_NOTE_TO_CUSTOMER = gql `
|
|
1811
|
-
mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {
|
|
1812
|
-
addNoteToCustomer(input: $input) {
|
|
1813
|
-
id
|
|
1814
|
-
}
|
|
1815
|
-
}
|
|
1816
|
-
`;
|
|
1817
|
-
const UPDATE_CUSTOMER_NOTE = gql `
|
|
1818
|
-
mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {
|
|
1819
|
-
updateCustomerNote(input: $input) {
|
|
1820
|
-
id
|
|
1821
|
-
data
|
|
1822
|
-
isPublic
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
`;
|
|
1826
|
-
const DELETE_CUSTOMER_NOTE = gql `
|
|
1827
|
-
mutation DeleteCustomerNote($id: ID!) {
|
|
1828
|
-
deleteCustomerNote(id: $id) {
|
|
1829
|
-
result
|
|
1830
|
-
message
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
`;
|
|
1834
|
-
|
|
1835
|
-
class CustomerDataService {
|
|
1836
|
-
constructor(baseDataService) {
|
|
1837
|
-
this.baseDataService = baseDataService;
|
|
1838
|
-
}
|
|
1839
|
-
getCustomerList(take = 10, skip = 0, filterTerm) {
|
|
1840
|
-
const filter = filterTerm
|
|
1841
|
-
? {
|
|
1842
|
-
filter: {
|
|
1843
|
-
emailAddress: {
|
|
1844
|
-
contains: filterTerm,
|
|
1845
|
-
},
|
|
1846
|
-
},
|
|
1847
|
-
}
|
|
1848
|
-
: {};
|
|
1849
|
-
return this.baseDataService.query(GET_CUSTOMER_LIST, {
|
|
1850
|
-
options: {
|
|
1851
|
-
take,
|
|
1852
|
-
skip,
|
|
1853
|
-
...filter,
|
|
1854
|
-
},
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
getCustomer(id, orderListOptions) {
|
|
1858
|
-
return this.baseDataService.query(GET_CUSTOMER, {
|
|
1859
|
-
id,
|
|
1860
|
-
orderListOptions,
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
createCustomer(input, password) {
|
|
1864
|
-
return this.baseDataService.mutate(CREATE_CUSTOMER, {
|
|
1865
|
-
input,
|
|
1866
|
-
password,
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
updateCustomer(input) {
|
|
1870
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER, {
|
|
1871
|
-
input,
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
deleteCustomer(id) {
|
|
1875
|
-
return this.baseDataService.mutate(DELETE_CUSTOMER, { id });
|
|
1876
|
-
}
|
|
1877
|
-
createCustomerAddress(customerId, input) {
|
|
1878
|
-
return this.baseDataService.mutate(CREATE_CUSTOMER_ADDRESS, {
|
|
1879
|
-
customerId,
|
|
1880
|
-
input,
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
updateCustomerAddress(input) {
|
|
1884
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER_ADDRESS, {
|
|
1885
|
-
input,
|
|
1886
|
-
});
|
|
1887
|
-
}
|
|
1888
|
-
deleteCustomerAddress(id) {
|
|
1889
|
-
return this.baseDataService.mutate(DELETE_CUSTOMER_ADDRESS, { id });
|
|
1890
|
-
}
|
|
1891
|
-
createCustomerGroup(input) {
|
|
1892
|
-
return this.baseDataService.mutate(CREATE_CUSTOMER_GROUP, {
|
|
1893
|
-
input,
|
|
1894
|
-
});
|
|
1895
|
-
}
|
|
1896
|
-
updateCustomerGroup(input) {
|
|
1897
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER_GROUP, {
|
|
1898
|
-
input,
|
|
1899
|
-
});
|
|
1900
|
-
}
|
|
1901
|
-
deleteCustomerGroup(id) {
|
|
1902
|
-
return this.baseDataService.mutate(DELETE_CUSTOMER_GROUP, { id });
|
|
1903
|
-
}
|
|
1904
|
-
getCustomerGroupList(options) {
|
|
1905
|
-
return this.baseDataService.query(GET_CUSTOMER_GROUPS, {
|
|
1906
|
-
options,
|
|
1907
|
-
});
|
|
1908
|
-
}
|
|
1909
|
-
getCustomerGroupWithCustomers(id, options) {
|
|
1910
|
-
return this.baseDataService.query(GET_CUSTOMER_GROUP_WITH_CUSTOMERS, {
|
|
1911
|
-
id,
|
|
1912
|
-
options,
|
|
1913
|
-
});
|
|
1914
|
-
}
|
|
1915
|
-
addCustomersToGroup(groupId, customerIds) {
|
|
1916
|
-
return this.baseDataService.mutate(ADD_CUSTOMERS_TO_GROUP, {
|
|
1917
|
-
groupId,
|
|
1918
|
-
customerIds,
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
removeCustomersFromGroup(groupId, customerIds) {
|
|
1922
|
-
return this.baseDataService.mutate(REMOVE_CUSTOMERS_FROM_GROUP, {
|
|
1923
|
-
groupId,
|
|
1924
|
-
customerIds,
|
|
1925
|
-
});
|
|
1926
|
-
}
|
|
1927
|
-
getCustomerHistory(id, options) {
|
|
1928
|
-
return this.baseDataService.query(GET_CUSTOMER_HISTORY, {
|
|
1929
|
-
id,
|
|
1930
|
-
options,
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
addNoteToCustomer(customerId, note) {
|
|
1934
|
-
return this.baseDataService.mutate(ADD_NOTE_TO_CUSTOMER, {
|
|
1935
|
-
input: {
|
|
1936
|
-
note,
|
|
1937
|
-
isPublic: false,
|
|
1938
|
-
id: customerId,
|
|
1939
|
-
},
|
|
1940
|
-
});
|
|
1941
|
-
}
|
|
1942
|
-
updateCustomerNote(input) {
|
|
1943
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER_NOTE, {
|
|
1944
|
-
input,
|
|
1945
|
-
});
|
|
1946
|
-
}
|
|
1947
|
-
deleteCustomerNote(id) {
|
|
1948
|
-
return this.baseDataService.mutate(DELETE_CUSTOMER_NOTE, {
|
|
1949
|
-
id,
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
const FACET_VALUE_FRAGMENT = gql `
|
|
1955
|
-
fragment FacetValue on FacetValue {
|
|
1956
|
-
id
|
|
1957
|
-
createdAt
|
|
1958
|
-
updatedAt
|
|
1959
|
-
languageCode
|
|
1960
|
-
code
|
|
1961
|
-
name
|
|
1962
|
-
translations {
|
|
1963
|
-
id
|
|
1964
|
-
languageCode
|
|
1965
|
-
name
|
|
1966
|
-
}
|
|
1967
|
-
facet {
|
|
1968
|
-
id
|
|
1969
|
-
createdAt
|
|
1970
|
-
updatedAt
|
|
1971
|
-
name
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
`;
|
|
1975
|
-
const FACET_WITH_VALUES_FRAGMENT = gql `
|
|
1976
|
-
fragment FacetWithValues on Facet {
|
|
1977
|
-
id
|
|
1978
|
-
createdAt
|
|
1979
|
-
updatedAt
|
|
1980
|
-
languageCode
|
|
1981
|
-
isPrivate
|
|
1982
|
-
code
|
|
1983
|
-
name
|
|
1984
|
-
translations {
|
|
1985
|
-
id
|
|
1986
|
-
languageCode
|
|
1987
|
-
name
|
|
1988
|
-
}
|
|
1989
|
-
values {
|
|
1990
|
-
...FacetValue
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
${FACET_VALUE_FRAGMENT}
|
|
1994
|
-
`;
|
|
1995
|
-
const CREATE_FACET = gql `
|
|
1996
|
-
mutation CreateFacet($input: CreateFacetInput!) {
|
|
1997
|
-
createFacet(input: $input) {
|
|
1998
|
-
...FacetWithValues
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
${FACET_WITH_VALUES_FRAGMENT}
|
|
2002
|
-
`;
|
|
2003
|
-
const UPDATE_FACET = gql `
|
|
2004
|
-
mutation UpdateFacet($input: UpdateFacetInput!) {
|
|
2005
|
-
updateFacet(input: $input) {
|
|
2006
|
-
...FacetWithValues
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
${FACET_WITH_VALUES_FRAGMENT}
|
|
2010
|
-
`;
|
|
2011
|
-
const DELETE_FACET = gql `
|
|
2012
|
-
mutation DeleteFacet($id: ID!, $force: Boolean) {
|
|
2013
|
-
deleteFacet(id: $id, force: $force) {
|
|
2014
|
-
result
|
|
2015
|
-
message
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
`;
|
|
2019
|
-
const DELETE_FACETS = gql `
|
|
2020
|
-
mutation DeleteFacets($ids: [ID!]!, $force: Boolean) {
|
|
2021
|
-
deleteFacets(ids: $ids, force: $force) {
|
|
2022
|
-
result
|
|
2023
|
-
message
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
`;
|
|
2027
|
-
const CREATE_FACET_VALUES = gql `
|
|
2028
|
-
mutation CreateFacetValues($input: [CreateFacetValueInput!]!) {
|
|
2029
|
-
createFacetValues(input: $input) {
|
|
2030
|
-
...FacetValue
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
${FACET_VALUE_FRAGMENT}
|
|
2034
|
-
`;
|
|
2035
|
-
const UPDATE_FACET_VALUES = gql `
|
|
2036
|
-
mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {
|
|
2037
|
-
updateFacetValues(input: $input) {
|
|
2038
|
-
...FacetValue
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
${FACET_VALUE_FRAGMENT}
|
|
2042
|
-
`;
|
|
2043
|
-
const DELETE_FACET_VALUES = gql `
|
|
2044
|
-
mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {
|
|
2045
|
-
deleteFacetValues(ids: $ids, force: $force) {
|
|
2046
|
-
result
|
|
2047
|
-
message
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
`;
|
|
2051
|
-
const GET_FACET_LIST = gql `
|
|
2052
|
-
query GetFacetList($options: FacetListOptions) {
|
|
2053
|
-
facets(options: $options) {
|
|
2054
|
-
items {
|
|
2055
|
-
...FacetWithValues
|
|
2056
|
-
}
|
|
2057
|
-
totalItems
|
|
2058
|
-
}
|
|
2059
|
-
}
|
|
2060
|
-
${FACET_WITH_VALUES_FRAGMENT}
|
|
2061
|
-
`;
|
|
2062
|
-
const GET_FACET_WITH_VALUES = gql `
|
|
2063
|
-
query GetFacetWithValues($id: ID!) {
|
|
2064
|
-
facet(id: $id) {
|
|
2065
|
-
...FacetWithValues
|
|
2066
|
-
}
|
|
2067
|
-
}
|
|
2068
|
-
${FACET_WITH_VALUES_FRAGMENT}
|
|
2069
|
-
`;
|
|
2070
|
-
const ASSIGN_FACETS_TO_CHANNEL = gql `
|
|
2071
|
-
mutation AssignFacetsToChannel($input: AssignFacetsToChannelInput!) {
|
|
2072
|
-
assignFacetsToChannel(input: $input) {
|
|
2073
|
-
id
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
`;
|
|
2077
|
-
const REMOVE_FACETS_FROM_CHANNEL = gql `
|
|
2078
|
-
mutation RemoveFacetsFromChannel($input: RemoveFacetsFromChannelInput!) {
|
|
2079
|
-
removeFacetsFromChannel(input: $input) {
|
|
2080
|
-
... on Facet {
|
|
2081
|
-
id
|
|
2082
|
-
}
|
|
2083
|
-
... on FacetInUseError {
|
|
2084
|
-
errorCode
|
|
2085
|
-
message
|
|
2086
|
-
variantCount
|
|
2087
|
-
productCount
|
|
2088
|
-
}
|
|
2089
|
-
}
|
|
2090
|
-
}
|
|
2091
|
-
`;
|
|
2092
|
-
|
|
2093
|
-
class FacetDataService {
|
|
2094
|
-
constructor(baseDataService) {
|
|
2095
|
-
this.baseDataService = baseDataService;
|
|
2096
|
-
}
|
|
2097
|
-
getFacets(take = 10, skip = 0) {
|
|
2098
|
-
return this.baseDataService.query(GET_FACET_LIST, {
|
|
2099
|
-
options: {
|
|
2100
|
-
take,
|
|
2101
|
-
skip,
|
|
2102
|
-
},
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
getAllFacets() {
|
|
2106
|
-
return this.baseDataService.query(GET_FACET_LIST, {});
|
|
2107
|
-
}
|
|
2108
|
-
getFacet(id) {
|
|
2109
|
-
return this.baseDataService.query(GET_FACET_WITH_VALUES, {
|
|
2110
|
-
id,
|
|
2111
|
-
});
|
|
2112
|
-
}
|
|
2113
|
-
createFacet(facet) {
|
|
2114
|
-
const input = {
|
|
2115
|
-
input: pick(facet, ['code', 'isPrivate', 'translations', 'values', 'customFields']),
|
|
2116
|
-
};
|
|
2117
|
-
return this.baseDataService.mutate(CREATE_FACET, input);
|
|
2118
|
-
}
|
|
2119
|
-
updateFacet(facet) {
|
|
2120
|
-
const input = {
|
|
2121
|
-
input: pick(facet, ['id', 'code', 'isPrivate', 'translations', 'customFields']),
|
|
2122
|
-
};
|
|
2123
|
-
return this.baseDataService.mutate(UPDATE_FACET, input);
|
|
2124
|
-
}
|
|
2125
|
-
deleteFacet(id, force) {
|
|
2126
|
-
return this.baseDataService.mutate(DELETE_FACET, {
|
|
2127
|
-
id,
|
|
2128
|
-
force,
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
deleteFacets(ids, force) {
|
|
2132
|
-
return this.baseDataService.mutate(DELETE_FACETS, {
|
|
2133
|
-
ids,
|
|
2134
|
-
force,
|
|
2135
|
-
});
|
|
2136
|
-
}
|
|
2137
|
-
createFacetValues(facetValues) {
|
|
2138
|
-
const input = {
|
|
2139
|
-
input: facetValues.map(pick(['facetId', 'code', 'translations', 'customFields'])),
|
|
2140
|
-
};
|
|
2141
|
-
return this.baseDataService.mutate(CREATE_FACET_VALUES, input);
|
|
2142
|
-
}
|
|
2143
|
-
updateFacetValues(facetValues) {
|
|
2144
|
-
const input = {
|
|
2145
|
-
input: facetValues.map(pick(['id', 'code', 'translations', 'customFields'])),
|
|
2146
|
-
};
|
|
2147
|
-
return this.baseDataService.mutate(UPDATE_FACET_VALUES, input);
|
|
2148
|
-
}
|
|
2149
|
-
deleteFacetValues(ids, force) {
|
|
2150
|
-
return this.baseDataService.mutate(DELETE_FACET_VALUES, {
|
|
2151
|
-
ids,
|
|
2152
|
-
force,
|
|
2153
|
-
});
|
|
2154
|
-
}
|
|
2155
|
-
assignFacetsToChannel(input) {
|
|
2156
|
-
return this.baseDataService.mutate(ASSIGN_FACETS_TO_CHANNEL, {
|
|
2157
|
-
input,
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
removeFacetsFromChannel(input) {
|
|
2161
|
-
return this.baseDataService.mutate(REMOVE_FACETS_FROM_CHANNEL, {
|
|
2162
|
-
input,
|
|
2163
|
-
});
|
|
2164
|
-
}
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
const DISCOUNT_FRAGMENT = gql `
|
|
2168
|
-
fragment Discount on Discount {
|
|
2169
|
-
adjustmentSource
|
|
2170
|
-
amount
|
|
2171
|
-
amountWithTax
|
|
2172
|
-
description
|
|
2173
|
-
type
|
|
2174
|
-
}
|
|
2175
|
-
`;
|
|
2176
|
-
const PAYMENT_FRAGMENT = gql `
|
|
2177
|
-
fragment Payment on Payment {
|
|
2178
|
-
id
|
|
2179
|
-
transactionId
|
|
2180
|
-
amount
|
|
2181
|
-
method
|
|
2182
|
-
state
|
|
2183
|
-
metadata
|
|
2184
|
-
}
|
|
2185
|
-
`;
|
|
2186
|
-
const REFUND_FRAGMENT = gql `
|
|
2187
|
-
fragment Refund on Refund {
|
|
2188
|
-
id
|
|
2189
|
-
state
|
|
2190
|
-
items
|
|
2191
|
-
shipping
|
|
2192
|
-
adjustment
|
|
2193
|
-
transactionId
|
|
2194
|
-
paymentId
|
|
2195
|
-
}
|
|
2196
|
-
`;
|
|
2197
|
-
const ORDER_ADDRESS_FRAGMENT = gql `
|
|
2198
|
-
fragment OrderAddress on OrderAddress {
|
|
2199
|
-
fullName
|
|
2200
|
-
company
|
|
2201
|
-
streetLine1
|
|
2202
|
-
streetLine2
|
|
2203
|
-
city
|
|
2204
|
-
province
|
|
2205
|
-
postalCode
|
|
2206
|
-
country
|
|
2207
|
-
countryCode
|
|
2208
|
-
phoneNumber
|
|
2209
|
-
}
|
|
2210
|
-
`;
|
|
2211
|
-
const ORDER_FRAGMENT = gql `
|
|
2212
|
-
fragment Order on Order {
|
|
2213
|
-
id
|
|
2214
|
-
createdAt
|
|
2215
|
-
updatedAt
|
|
2216
|
-
orderPlacedAt
|
|
2217
|
-
code
|
|
2218
|
-
state
|
|
2219
|
-
nextStates
|
|
2220
|
-
total
|
|
2221
|
-
totalWithTax
|
|
2222
|
-
currencyCode
|
|
2223
|
-
customer {
|
|
2224
|
-
id
|
|
2225
|
-
firstName
|
|
2226
|
-
lastName
|
|
2227
|
-
}
|
|
2228
|
-
shippingLines {
|
|
2229
|
-
shippingMethod {
|
|
2230
|
-
name
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
`;
|
|
2235
|
-
const FULFILLMENT_FRAGMENT = gql `
|
|
2236
|
-
fragment Fulfillment on Fulfillment {
|
|
2237
|
-
id
|
|
2238
|
-
state
|
|
2239
|
-
nextStates
|
|
2240
|
-
createdAt
|
|
2241
|
-
updatedAt
|
|
2242
|
-
method
|
|
2243
|
-
summary {
|
|
2244
|
-
orderLine {
|
|
2245
|
-
id
|
|
2246
|
-
}
|
|
2247
|
-
quantity
|
|
2248
|
-
}
|
|
2249
|
-
trackingCode
|
|
2250
|
-
}
|
|
2251
|
-
`;
|
|
2252
|
-
const ORDER_LINE_FRAGMENT = gql `
|
|
2253
|
-
fragment OrderLine on OrderLine {
|
|
2254
|
-
id
|
|
2255
|
-
featuredAsset {
|
|
2256
|
-
preview
|
|
2257
|
-
}
|
|
2258
|
-
productVariant {
|
|
2259
|
-
id
|
|
2260
|
-
name
|
|
2261
|
-
sku
|
|
2262
|
-
trackInventory
|
|
2263
|
-
stockOnHand
|
|
2264
|
-
}
|
|
2265
|
-
discounts {
|
|
2266
|
-
...Discount
|
|
2267
|
-
}
|
|
2268
|
-
fulfillments {
|
|
2269
|
-
...Fulfillment
|
|
2270
|
-
}
|
|
2271
|
-
unitPrice
|
|
2272
|
-
unitPriceWithTax
|
|
2273
|
-
proratedUnitPrice
|
|
2274
|
-
proratedUnitPriceWithTax
|
|
2275
|
-
quantity
|
|
2276
|
-
items {
|
|
2277
|
-
id
|
|
2278
|
-
refundId
|
|
2279
|
-
cancelled
|
|
2280
|
-
}
|
|
2281
|
-
linePrice
|
|
2282
|
-
lineTax
|
|
2283
|
-
linePriceWithTax
|
|
2284
|
-
discountedLinePrice
|
|
2285
|
-
discountedLinePriceWithTax
|
|
2286
|
-
}
|
|
2287
|
-
`;
|
|
2288
|
-
const ORDER_DETAIL_FRAGMENT = gql `
|
|
2289
|
-
fragment OrderDetail on Order {
|
|
2290
|
-
id
|
|
2291
|
-
createdAt
|
|
2292
|
-
updatedAt
|
|
2293
|
-
code
|
|
2294
|
-
state
|
|
2295
|
-
nextStates
|
|
2296
|
-
active
|
|
2297
|
-
couponCodes
|
|
2298
|
-
customer {
|
|
2299
|
-
id
|
|
2300
|
-
firstName
|
|
2301
|
-
lastName
|
|
2302
|
-
}
|
|
2303
|
-
lines {
|
|
2304
|
-
...OrderLine
|
|
2305
|
-
}
|
|
2306
|
-
surcharges {
|
|
2307
|
-
id
|
|
2308
|
-
sku
|
|
2309
|
-
description
|
|
2310
|
-
price
|
|
2311
|
-
priceWithTax
|
|
2312
|
-
taxRate
|
|
2313
|
-
}
|
|
2314
|
-
discounts {
|
|
2315
|
-
...Discount
|
|
2316
|
-
}
|
|
2317
|
-
promotions {
|
|
2318
|
-
id
|
|
2319
|
-
couponCode
|
|
2320
|
-
}
|
|
2321
|
-
subTotal
|
|
2322
|
-
subTotalWithTax
|
|
2323
|
-
total
|
|
2324
|
-
totalWithTax
|
|
2325
|
-
currencyCode
|
|
2326
|
-
shipping
|
|
2327
|
-
shippingWithTax
|
|
2328
|
-
shippingLines {
|
|
2329
|
-
shippingMethod {
|
|
2330
|
-
id
|
|
2331
|
-
code
|
|
2332
|
-
name
|
|
2333
|
-
fulfillmentHandlerCode
|
|
2334
|
-
description
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
taxSummary {
|
|
2338
|
-
description
|
|
2339
|
-
taxBase
|
|
2340
|
-
taxRate
|
|
2341
|
-
taxTotal
|
|
2342
|
-
}
|
|
2343
|
-
shippingAddress {
|
|
2344
|
-
...OrderAddress
|
|
2345
|
-
}
|
|
2346
|
-
billingAddress {
|
|
2347
|
-
...OrderAddress
|
|
2348
|
-
}
|
|
2349
|
-
payments {
|
|
2350
|
-
id
|
|
2351
|
-
createdAt
|
|
2352
|
-
transactionId
|
|
2353
|
-
amount
|
|
2354
|
-
method
|
|
2355
|
-
state
|
|
2356
|
-
nextStates
|
|
2357
|
-
errorMessage
|
|
2358
|
-
metadata
|
|
2359
|
-
refunds {
|
|
2360
|
-
id
|
|
2361
|
-
createdAt
|
|
2362
|
-
state
|
|
2363
|
-
items
|
|
2364
|
-
adjustment
|
|
2365
|
-
total
|
|
2366
|
-
paymentId
|
|
2367
|
-
reason
|
|
2368
|
-
transactionId
|
|
2369
|
-
method
|
|
2370
|
-
metadata
|
|
2371
|
-
orderItems {
|
|
2372
|
-
id
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
}
|
|
2376
|
-
fulfillments {
|
|
2377
|
-
...Fulfillment
|
|
2378
|
-
}
|
|
2379
|
-
modifications {
|
|
2380
|
-
id
|
|
2381
|
-
createdAt
|
|
2382
|
-
isSettled
|
|
2383
|
-
priceChange
|
|
2384
|
-
note
|
|
2385
|
-
payment {
|
|
2386
|
-
id
|
|
2387
|
-
amount
|
|
2388
|
-
}
|
|
2389
|
-
orderItems {
|
|
2390
|
-
id
|
|
2391
|
-
}
|
|
2392
|
-
refund {
|
|
2393
|
-
id
|
|
2394
|
-
paymentId
|
|
2395
|
-
total
|
|
2396
|
-
}
|
|
2397
|
-
surcharges {
|
|
2398
|
-
id
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
${DISCOUNT_FRAGMENT}
|
|
2403
|
-
${ORDER_ADDRESS_FRAGMENT}
|
|
2404
|
-
${FULFILLMENT_FRAGMENT}
|
|
2405
|
-
${ORDER_LINE_FRAGMENT}
|
|
2406
|
-
`;
|
|
2407
|
-
const GET_ORDERS_LIST = gql `
|
|
2408
|
-
query GetOrderList($options: OrderListOptions) {
|
|
2409
|
-
orders(options: $options) {
|
|
2410
|
-
items {
|
|
2411
|
-
...Order
|
|
2412
|
-
}
|
|
2413
|
-
totalItems
|
|
2414
|
-
}
|
|
2415
|
-
}
|
|
2416
|
-
${ORDER_FRAGMENT}
|
|
2417
|
-
`;
|
|
2418
|
-
const GET_ORDER = gql `
|
|
2419
|
-
query GetOrder($id: ID!) {
|
|
2420
|
-
order(id: $id) {
|
|
2421
|
-
...OrderDetail
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
${ORDER_DETAIL_FRAGMENT}
|
|
2425
|
-
`;
|
|
2426
|
-
const SETTLE_PAYMENT = gql `
|
|
2427
|
-
mutation SettlePayment($id: ID!) {
|
|
2428
|
-
settlePayment(id: $id) {
|
|
2429
|
-
...Payment
|
|
2430
|
-
...ErrorResult
|
|
2431
|
-
... on SettlePaymentError {
|
|
2432
|
-
paymentErrorMessage
|
|
2433
|
-
}
|
|
2434
|
-
... on PaymentStateTransitionError {
|
|
2435
|
-
transitionError
|
|
2436
|
-
}
|
|
2437
|
-
... on OrderStateTransitionError {
|
|
2438
|
-
transitionError
|
|
2439
|
-
}
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2443
|
-
${PAYMENT_FRAGMENT}
|
|
2444
|
-
`;
|
|
2445
|
-
const CANCEL_PAYMENT = gql `
|
|
2446
|
-
mutation CancelPayment($id: ID!) {
|
|
2447
|
-
cancelPayment(id: $id) {
|
|
2448
|
-
...Payment
|
|
2449
|
-
...ErrorResult
|
|
2450
|
-
... on CancelPaymentError {
|
|
2451
|
-
paymentErrorMessage
|
|
2452
|
-
}
|
|
2453
|
-
... on PaymentStateTransitionError {
|
|
2454
|
-
transitionError
|
|
2455
|
-
}
|
|
2456
|
-
}
|
|
2457
|
-
}
|
|
2458
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2459
|
-
${PAYMENT_FRAGMENT}
|
|
2460
|
-
`;
|
|
2461
|
-
const TRANSITION_PAYMENT_TO_STATE = gql `
|
|
2462
|
-
mutation TransitionPaymentToState($id: ID!, $state: String!) {
|
|
2463
|
-
transitionPaymentToState(id: $id, state: $state) {
|
|
2464
|
-
...Payment
|
|
2465
|
-
...ErrorResult
|
|
2466
|
-
... on PaymentStateTransitionError {
|
|
2467
|
-
transitionError
|
|
2468
|
-
}
|
|
2469
|
-
}
|
|
2470
|
-
}
|
|
2471
|
-
${PAYMENT_FRAGMENT}
|
|
2472
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2473
|
-
`;
|
|
2474
|
-
const CREATE_FULFILLMENT = gql `
|
|
2475
|
-
mutation CreateFulfillment($input: FulfillOrderInput!) {
|
|
2476
|
-
addFulfillmentToOrder(input: $input) {
|
|
2477
|
-
...Fulfillment
|
|
2478
|
-
... on CreateFulfillmentError {
|
|
2479
|
-
errorCode
|
|
2480
|
-
message
|
|
2481
|
-
fulfillmentHandlerError
|
|
2482
|
-
}
|
|
2483
|
-
... on FulfillmentStateTransitionError {
|
|
2484
|
-
errorCode
|
|
2485
|
-
message
|
|
2486
|
-
transitionError
|
|
2487
|
-
}
|
|
2488
|
-
...ErrorResult
|
|
2489
|
-
}
|
|
2490
|
-
}
|
|
2491
|
-
${FULFILLMENT_FRAGMENT}
|
|
2492
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2493
|
-
`;
|
|
2494
|
-
const CANCEL_ORDER = gql `
|
|
2495
|
-
mutation CancelOrder($input: CancelOrderInput!) {
|
|
2496
|
-
cancelOrder(input: $input) {
|
|
2497
|
-
...OrderDetail
|
|
2498
|
-
...ErrorResult
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
${ORDER_DETAIL_FRAGMENT}
|
|
2502
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2503
|
-
`;
|
|
2504
|
-
const REFUND_ORDER = gql `
|
|
2505
|
-
mutation RefundOrder($input: RefundOrderInput!) {
|
|
2506
|
-
refundOrder(input: $input) {
|
|
2507
|
-
...Refund
|
|
2508
|
-
...ErrorResult
|
|
2509
|
-
}
|
|
2510
|
-
}
|
|
2511
|
-
${REFUND_FRAGMENT}
|
|
2512
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2513
|
-
`;
|
|
2514
|
-
const SETTLE_REFUND = gql `
|
|
2515
|
-
mutation SettleRefund($input: SettleRefundInput!) {
|
|
2516
|
-
settleRefund(input: $input) {
|
|
2517
|
-
...Refund
|
|
2518
|
-
...ErrorResult
|
|
2519
|
-
}
|
|
2520
|
-
}
|
|
2521
|
-
${REFUND_FRAGMENT}
|
|
2522
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2523
|
-
`;
|
|
2524
|
-
const GET_ORDER_HISTORY = gql `
|
|
2525
|
-
query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {
|
|
2526
|
-
order(id: $id) {
|
|
2527
|
-
id
|
|
2528
|
-
history(options: $options) {
|
|
2529
|
-
totalItems
|
|
2530
|
-
items {
|
|
2531
|
-
id
|
|
2532
|
-
type
|
|
2533
|
-
createdAt
|
|
2534
|
-
isPublic
|
|
2535
|
-
administrator {
|
|
2536
|
-
id
|
|
2537
|
-
firstName
|
|
2538
|
-
lastName
|
|
2539
|
-
}
|
|
2540
|
-
data
|
|
2541
|
-
}
|
|
2542
|
-
}
|
|
2543
|
-
}
|
|
2544
|
-
}
|
|
2545
|
-
`;
|
|
2546
|
-
const ADD_NOTE_TO_ORDER = gql `
|
|
2547
|
-
mutation AddNoteToOrder($input: AddNoteToOrderInput!) {
|
|
2548
|
-
addNoteToOrder(input: $input) {
|
|
2549
|
-
id
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
`;
|
|
2553
|
-
const UPDATE_ORDER_NOTE = gql `
|
|
2554
|
-
mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {
|
|
2555
|
-
updateOrderNote(input: $input) {
|
|
2556
|
-
id
|
|
2557
|
-
data
|
|
2558
|
-
isPublic
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
`;
|
|
2562
|
-
const DELETE_ORDER_NOTE = gql `
|
|
2563
|
-
mutation DeleteOrderNote($id: ID!) {
|
|
2564
|
-
deleteOrderNote(id: $id) {
|
|
2565
|
-
result
|
|
2566
|
-
message
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
`;
|
|
2570
|
-
const TRANSITION_ORDER_TO_STATE = gql `
|
|
2571
|
-
mutation TransitionOrderToState($id: ID!, $state: String!) {
|
|
2572
|
-
transitionOrderToState(id: $id, state: $state) {
|
|
2573
|
-
...Order
|
|
2574
|
-
...ErrorResult
|
|
2575
|
-
... on OrderStateTransitionError {
|
|
2576
|
-
transitionError
|
|
2577
|
-
}
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
${ORDER_FRAGMENT}
|
|
2581
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2582
|
-
`;
|
|
2583
|
-
const UPDATE_ORDER_CUSTOM_FIELDS = gql `
|
|
2584
|
-
mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {
|
|
2585
|
-
setOrderCustomFields(input: $input) {
|
|
2586
|
-
...Order
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
${ORDER_FRAGMENT}
|
|
2590
|
-
`;
|
|
2591
|
-
const TRANSITION_FULFILLMENT_TO_STATE = gql `
|
|
2592
|
-
mutation TransitionFulfillmentToState($id: ID!, $state: String!) {
|
|
2593
|
-
transitionFulfillmentToState(id: $id, state: $state) {
|
|
2594
|
-
...Fulfillment
|
|
2595
|
-
...ErrorResult
|
|
2596
|
-
... on FulfillmentStateTransitionError {
|
|
2597
|
-
transitionError
|
|
2598
|
-
}
|
|
2599
|
-
}
|
|
2600
|
-
}
|
|
2601
|
-
${FULFILLMENT_FRAGMENT}
|
|
2602
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2603
|
-
`;
|
|
2604
|
-
const GET_ORDER_SUMMARY = gql `
|
|
2605
|
-
query GetOrderSummary($start: DateTime!, $end: DateTime!) {
|
|
2606
|
-
orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {
|
|
2607
|
-
totalItems
|
|
2608
|
-
items {
|
|
2609
|
-
id
|
|
2610
|
-
total
|
|
2611
|
-
currencyCode
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
`;
|
|
2616
|
-
const MODIFY_ORDER = gql `
|
|
2617
|
-
mutation ModifyOrder($input: ModifyOrderInput!) {
|
|
2618
|
-
modifyOrder(input: $input) {
|
|
2619
|
-
...OrderDetail
|
|
2620
|
-
...ErrorResult
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
${ORDER_DETAIL_FRAGMENT}
|
|
2624
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2625
|
-
`;
|
|
2626
|
-
const ADD_MANUAL_PAYMENT_TO_ORDER = gql `
|
|
2627
|
-
mutation AddManualPayment($input: ManualPaymentInput!) {
|
|
2628
|
-
addManualPaymentToOrder(input: $input) {
|
|
2629
|
-
...OrderDetail
|
|
2630
|
-
...ErrorResult
|
|
2631
|
-
}
|
|
2632
|
-
}
|
|
2633
|
-
${ORDER_DETAIL_FRAGMENT}
|
|
2634
|
-
${ERROR_RESULT_FRAGMENT}
|
|
2635
|
-
`;
|
|
2636
|
-
|
|
2637
|
-
class OrderDataService {
|
|
2638
|
-
constructor(baseDataService) {
|
|
2639
|
-
this.baseDataService = baseDataService;
|
|
2640
|
-
}
|
|
2641
|
-
getOrders(options = { take: 10 }) {
|
|
2642
|
-
return this.baseDataService.query(GET_ORDERS_LIST, {
|
|
2643
|
-
options,
|
|
2644
|
-
});
|
|
2645
|
-
}
|
|
2646
|
-
getOrder(id) {
|
|
2647
|
-
return this.baseDataService.query(GET_ORDER, {
|
|
2648
|
-
id,
|
|
2649
|
-
});
|
|
2650
|
-
}
|
|
2651
|
-
getOrderHistory(id, options) {
|
|
2652
|
-
return this.baseDataService.query(GET_ORDER_HISTORY, {
|
|
2653
|
-
id,
|
|
2654
|
-
options,
|
|
2655
|
-
});
|
|
2656
|
-
}
|
|
2657
|
-
settlePayment(id) {
|
|
2658
|
-
return this.baseDataService.mutate(SETTLE_PAYMENT, {
|
|
2659
|
-
id,
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
cancelPayment(id) {
|
|
2663
|
-
return this.baseDataService.mutate(CANCEL_PAYMENT, {
|
|
2664
|
-
id,
|
|
2665
|
-
});
|
|
2666
|
-
}
|
|
2667
|
-
transitionPaymentToState(id, state) {
|
|
2668
|
-
return this.baseDataService.mutate(TRANSITION_PAYMENT_TO_STATE, {
|
|
2669
|
-
id,
|
|
2670
|
-
state,
|
|
2671
|
-
});
|
|
2672
|
-
}
|
|
2673
|
-
createFulfillment(input) {
|
|
2674
|
-
return this.baseDataService.mutate(CREATE_FULFILLMENT, {
|
|
2675
|
-
input,
|
|
2676
|
-
});
|
|
2677
|
-
}
|
|
2678
|
-
transitionFulfillmentToState(id, state) {
|
|
2679
|
-
return this.baseDataService.mutate(TRANSITION_FULFILLMENT_TO_STATE, {
|
|
2680
|
-
id,
|
|
2681
|
-
state,
|
|
2682
|
-
});
|
|
2683
|
-
}
|
|
2684
|
-
cancelOrder(input) {
|
|
2685
|
-
return this.baseDataService.mutate(CANCEL_ORDER, {
|
|
2686
|
-
input,
|
|
2687
|
-
});
|
|
2688
|
-
}
|
|
2689
|
-
refundOrder(input) {
|
|
2690
|
-
return this.baseDataService.mutate(REFUND_ORDER, {
|
|
2691
|
-
input,
|
|
2692
|
-
});
|
|
2693
|
-
}
|
|
2694
|
-
settleRefund(input, orderId) {
|
|
2695
|
-
return this.baseDataService.mutate(SETTLE_REFUND, {
|
|
2696
|
-
input,
|
|
2697
|
-
});
|
|
2698
|
-
}
|
|
2699
|
-
addNoteToOrder(input) {
|
|
2700
|
-
return this.baseDataService.mutate(ADD_NOTE_TO_ORDER, {
|
|
2701
|
-
input,
|
|
2702
|
-
});
|
|
2703
|
-
}
|
|
2704
|
-
updateOrderNote(input) {
|
|
2705
|
-
return this.baseDataService.mutate(UPDATE_ORDER_NOTE, {
|
|
2706
|
-
input,
|
|
2707
|
-
});
|
|
2708
|
-
}
|
|
2709
|
-
deleteOrderNote(id) {
|
|
2710
|
-
return this.baseDataService.mutate(DELETE_ORDER_NOTE, {
|
|
2711
|
-
id,
|
|
2712
|
-
});
|
|
2713
|
-
}
|
|
2714
|
-
transitionToState(id, state) {
|
|
2715
|
-
return this.baseDataService.mutate(TRANSITION_ORDER_TO_STATE, {
|
|
2716
|
-
id,
|
|
2717
|
-
state,
|
|
2718
|
-
});
|
|
2719
|
-
}
|
|
2720
|
-
updateOrderCustomFields(input) {
|
|
2721
|
-
return this.baseDataService.mutate(UPDATE_ORDER_CUSTOM_FIELDS, {
|
|
2722
|
-
input,
|
|
2723
|
-
});
|
|
2724
|
-
}
|
|
2725
|
-
getOrderSummary(start, end) {
|
|
2726
|
-
return this.baseDataService.query(GET_ORDER_SUMMARY, {
|
|
2727
|
-
start: start.toISOString(),
|
|
2728
|
-
end: end.toISOString(),
|
|
2729
|
-
});
|
|
2730
|
-
}
|
|
2731
|
-
modifyOrder(input) {
|
|
2732
|
-
return this.baseDataService.mutate(MODIFY_ORDER, {
|
|
2733
|
-
input,
|
|
2734
|
-
});
|
|
2735
|
-
}
|
|
2736
|
-
addManualPaymentToOrder(input) {
|
|
2737
|
-
return this.baseDataService.mutate(ADD_MANUAL_PAYMENT_TO_ORDER, { input });
|
|
2738
|
-
}
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
1578
|
var AdjustmentType;
|
|
2742
1579
|
(function (AdjustmentType) {
|
|
2743
1580
|
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION";
|
|
@@ -3094,6 +1931,7 @@ var ErrorCode;
|
|
|
3094
1931
|
ErrorCode["EMPTY_ORDER_LINE_SELECTION_ERROR"] = "EMPTY_ORDER_LINE_SELECTION_ERROR";
|
|
3095
1932
|
ErrorCode["FACET_IN_USE_ERROR"] = "FACET_IN_USE_ERROR";
|
|
3096
1933
|
ErrorCode["FULFILLMENT_STATE_TRANSITION_ERROR"] = "FULFILLMENT_STATE_TRANSITION_ERROR";
|
|
1934
|
+
ErrorCode["INELIGIBLE_SHIPPING_METHOD_ERROR"] = "INELIGIBLE_SHIPPING_METHOD_ERROR";
|
|
3097
1935
|
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR";
|
|
3098
1936
|
ErrorCode["INSUFFICIENT_STOCK_ON_HAND_ERROR"] = "INSUFFICIENT_STOCK_ON_HAND_ERROR";
|
|
3099
1937
|
ErrorCode["INVALID_CREDENTIALS_ERROR"] = "INVALID_CREDENTIALS_ERROR";
|
|
@@ -3107,8 +1945,10 @@ var ErrorCode;
|
|
|
3107
1945
|
ErrorCode["NATIVE_AUTH_STRATEGY_ERROR"] = "NATIVE_AUTH_STRATEGY_ERROR";
|
|
3108
1946
|
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR";
|
|
3109
1947
|
ErrorCode["NOTHING_TO_REFUND_ERROR"] = "NOTHING_TO_REFUND_ERROR";
|
|
1948
|
+
ErrorCode["NO_ACTIVE_ORDER_ERROR"] = "NO_ACTIVE_ORDER_ERROR";
|
|
3110
1949
|
ErrorCode["NO_CHANGES_SPECIFIED_ERROR"] = "NO_CHANGES_SPECIFIED_ERROR";
|
|
3111
1950
|
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR";
|
|
1951
|
+
ErrorCode["ORDER_MODIFICATION_ERROR"] = "ORDER_MODIFICATION_ERROR";
|
|
3112
1952
|
ErrorCode["ORDER_MODIFICATION_STATE_ERROR"] = "ORDER_MODIFICATION_STATE_ERROR";
|
|
3113
1953
|
ErrorCode["ORDER_STATE_TRANSITION_ERROR"] = "ORDER_STATE_TRANSITION_ERROR";
|
|
3114
1954
|
ErrorCode["PAYMENT_METHOD_MISSING_ERROR"] = "PAYMENT_METHOD_MISSING_ERROR";
|
|
@@ -3722,6 +2562,1328 @@ var StockMovementType;
|
|
|
3722
2562
|
StockMovementType["SALE"] = "SALE";
|
|
3723
2563
|
})(StockMovementType || (StockMovementType = {}));
|
|
3724
2564
|
|
|
2565
|
+
const ADDRESS_FRAGMENT = gql `
|
|
2566
|
+
fragment Address on Address {
|
|
2567
|
+
id
|
|
2568
|
+
createdAt
|
|
2569
|
+
updatedAt
|
|
2570
|
+
fullName
|
|
2571
|
+
company
|
|
2572
|
+
streetLine1
|
|
2573
|
+
streetLine2
|
|
2574
|
+
city
|
|
2575
|
+
province
|
|
2576
|
+
postalCode
|
|
2577
|
+
country {
|
|
2578
|
+
id
|
|
2579
|
+
code
|
|
2580
|
+
name
|
|
2581
|
+
}
|
|
2582
|
+
phoneNumber
|
|
2583
|
+
defaultShippingAddress
|
|
2584
|
+
defaultBillingAddress
|
|
2585
|
+
}
|
|
2586
|
+
`;
|
|
2587
|
+
const CUSTOMER_FRAGMENT = gql `
|
|
2588
|
+
fragment Customer on Customer {
|
|
2589
|
+
id
|
|
2590
|
+
createdAt
|
|
2591
|
+
updatedAt
|
|
2592
|
+
title
|
|
2593
|
+
firstName
|
|
2594
|
+
lastName
|
|
2595
|
+
phoneNumber
|
|
2596
|
+
emailAddress
|
|
2597
|
+
user {
|
|
2598
|
+
id
|
|
2599
|
+
identifier
|
|
2600
|
+
verified
|
|
2601
|
+
lastLogin
|
|
2602
|
+
}
|
|
2603
|
+
addresses {
|
|
2604
|
+
...Address
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
${ADDRESS_FRAGMENT}
|
|
2608
|
+
`;
|
|
2609
|
+
const CUSTOMER_GROUP_FRAGMENT = gql `
|
|
2610
|
+
fragment CustomerGroup on CustomerGroup {
|
|
2611
|
+
id
|
|
2612
|
+
createdAt
|
|
2613
|
+
updatedAt
|
|
2614
|
+
name
|
|
2615
|
+
}
|
|
2616
|
+
`;
|
|
2617
|
+
const GET_CUSTOMER_LIST = gql `
|
|
2618
|
+
query GetCustomerList($options: CustomerListOptions) {
|
|
2619
|
+
customers(options: $options) {
|
|
2620
|
+
items {
|
|
2621
|
+
id
|
|
2622
|
+
createdAt
|
|
2623
|
+
updatedAt
|
|
2624
|
+
title
|
|
2625
|
+
firstName
|
|
2626
|
+
lastName
|
|
2627
|
+
emailAddress
|
|
2628
|
+
user {
|
|
2629
|
+
id
|
|
2630
|
+
verified
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
totalItems
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
`;
|
|
2637
|
+
const GET_CUSTOMER = gql `
|
|
2638
|
+
query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {
|
|
2639
|
+
customer(id: $id) {
|
|
2640
|
+
...Customer
|
|
2641
|
+
groups {
|
|
2642
|
+
id
|
|
2643
|
+
name
|
|
2644
|
+
}
|
|
2645
|
+
orders(options: $orderListOptions) {
|
|
2646
|
+
items {
|
|
2647
|
+
id
|
|
2648
|
+
code
|
|
2649
|
+
state
|
|
2650
|
+
totalWithTax
|
|
2651
|
+
currencyCode
|
|
2652
|
+
updatedAt
|
|
2653
|
+
}
|
|
2654
|
+
totalItems
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
${CUSTOMER_FRAGMENT}
|
|
2659
|
+
`;
|
|
2660
|
+
const CREATE_CUSTOMER = gql `
|
|
2661
|
+
mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {
|
|
2662
|
+
createCustomer(input: $input, password: $password) {
|
|
2663
|
+
...Customer
|
|
2664
|
+
...ErrorResult
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
${CUSTOMER_FRAGMENT}
|
|
2668
|
+
${ERROR_RESULT_FRAGMENT}
|
|
2669
|
+
`;
|
|
2670
|
+
const UPDATE_CUSTOMER = gql `
|
|
2671
|
+
mutation UpdateCustomer($input: UpdateCustomerInput!) {
|
|
2672
|
+
updateCustomer(input: $input) {
|
|
2673
|
+
...Customer
|
|
2674
|
+
...ErrorResult
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
${CUSTOMER_FRAGMENT}
|
|
2678
|
+
${ERROR_RESULT_FRAGMENT}
|
|
2679
|
+
`;
|
|
2680
|
+
const DELETE_CUSTOMER = gql `
|
|
2681
|
+
mutation DeleteCustomer($id: ID!) {
|
|
2682
|
+
deleteCustomer(id: $id) {
|
|
2683
|
+
result
|
|
2684
|
+
message
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
`;
|
|
2688
|
+
const CREATE_CUSTOMER_ADDRESS = gql `
|
|
2689
|
+
mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {
|
|
2690
|
+
createCustomerAddress(customerId: $customerId, input: $input) {
|
|
2691
|
+
...Address
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
${ADDRESS_FRAGMENT}
|
|
2695
|
+
`;
|
|
2696
|
+
const UPDATE_CUSTOMER_ADDRESS = gql `
|
|
2697
|
+
mutation UpdateCustomerAddress($input: UpdateAddressInput!) {
|
|
2698
|
+
updateCustomerAddress(input: $input) {
|
|
2699
|
+
...Address
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
${ADDRESS_FRAGMENT}
|
|
2703
|
+
`;
|
|
2704
|
+
const DELETE_CUSTOMER_ADDRESS = gql `
|
|
2705
|
+
mutation DeleteCustomerAddress($id: ID!) {
|
|
2706
|
+
deleteCustomerAddress(id: $id) {
|
|
2707
|
+
success
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
`;
|
|
2711
|
+
const CREATE_CUSTOMER_GROUP = gql `
|
|
2712
|
+
mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {
|
|
2713
|
+
createCustomerGroup(input: $input) {
|
|
2714
|
+
...CustomerGroup
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
${CUSTOMER_GROUP_FRAGMENT}
|
|
2718
|
+
`;
|
|
2719
|
+
const UPDATE_CUSTOMER_GROUP = gql `
|
|
2720
|
+
mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {
|
|
2721
|
+
updateCustomerGroup(input: $input) {
|
|
2722
|
+
...CustomerGroup
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
${CUSTOMER_GROUP_FRAGMENT}
|
|
2726
|
+
`;
|
|
2727
|
+
const DELETE_CUSTOMER_GROUP = gql `
|
|
2728
|
+
mutation DeleteCustomerGroup($id: ID!) {
|
|
2729
|
+
deleteCustomerGroup(id: $id) {
|
|
2730
|
+
result
|
|
2731
|
+
message
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
`;
|
|
2735
|
+
const GET_CUSTOMER_GROUPS = gql `
|
|
2736
|
+
query GetCustomerGroups($options: CustomerGroupListOptions) {
|
|
2737
|
+
customerGroups(options: $options) {
|
|
2738
|
+
items {
|
|
2739
|
+
...CustomerGroup
|
|
2740
|
+
}
|
|
2741
|
+
totalItems
|
|
2742
|
+
}
|
|
2743
|
+
}
|
|
2744
|
+
${CUSTOMER_GROUP_FRAGMENT}
|
|
2745
|
+
`;
|
|
2746
|
+
const GET_CUSTOMER_GROUP_WITH_CUSTOMERS = gql `
|
|
2747
|
+
query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {
|
|
2748
|
+
customerGroup(id: $id) {
|
|
2749
|
+
...CustomerGroup
|
|
2750
|
+
customers(options: $options) {
|
|
2751
|
+
items {
|
|
2752
|
+
id
|
|
2753
|
+
createdAt
|
|
2754
|
+
updatedAt
|
|
2755
|
+
emailAddress
|
|
2756
|
+
firstName
|
|
2757
|
+
lastName
|
|
2758
|
+
}
|
|
2759
|
+
totalItems
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
${CUSTOMER_GROUP_FRAGMENT}
|
|
2764
|
+
`;
|
|
2765
|
+
const ADD_CUSTOMERS_TO_GROUP = gql `
|
|
2766
|
+
mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {
|
|
2767
|
+
addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {
|
|
2768
|
+
...CustomerGroup
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
${CUSTOMER_GROUP_FRAGMENT}
|
|
2772
|
+
`;
|
|
2773
|
+
const REMOVE_CUSTOMERS_FROM_GROUP = gql `
|
|
2774
|
+
mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {
|
|
2775
|
+
removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {
|
|
2776
|
+
...CustomerGroup
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
${CUSTOMER_GROUP_FRAGMENT}
|
|
2780
|
+
`;
|
|
2781
|
+
const GET_CUSTOMER_HISTORY = gql `
|
|
2782
|
+
query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {
|
|
2783
|
+
customer(id: $id) {
|
|
2784
|
+
id
|
|
2785
|
+
history(options: $options) {
|
|
2786
|
+
totalItems
|
|
2787
|
+
items {
|
|
2788
|
+
id
|
|
2789
|
+
type
|
|
2790
|
+
createdAt
|
|
2791
|
+
isPublic
|
|
2792
|
+
administrator {
|
|
2793
|
+
id
|
|
2794
|
+
firstName
|
|
2795
|
+
lastName
|
|
2796
|
+
}
|
|
2797
|
+
data
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
`;
|
|
2803
|
+
const ADD_NOTE_TO_CUSTOMER = gql `
|
|
2804
|
+
mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {
|
|
2805
|
+
addNoteToCustomer(input: $input) {
|
|
2806
|
+
id
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
`;
|
|
2810
|
+
const UPDATE_CUSTOMER_NOTE = gql `
|
|
2811
|
+
mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {
|
|
2812
|
+
updateCustomerNote(input: $input) {
|
|
2813
|
+
id
|
|
2814
|
+
data
|
|
2815
|
+
isPublic
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
`;
|
|
2819
|
+
const DELETE_CUSTOMER_NOTE = gql `
|
|
2820
|
+
mutation DeleteCustomerNote($id: ID!) {
|
|
2821
|
+
deleteCustomerNote(id: $id) {
|
|
2822
|
+
result
|
|
2823
|
+
message
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
`;
|
|
2827
|
+
|
|
2828
|
+
class CustomerDataService {
|
|
2829
|
+
constructor(baseDataService) {
|
|
2830
|
+
this.baseDataService = baseDataService;
|
|
2831
|
+
}
|
|
2832
|
+
getCustomerList(take = 10, skip = 0, filterTerm) {
|
|
2833
|
+
const filter = filterTerm
|
|
2834
|
+
? {
|
|
2835
|
+
filter: {
|
|
2836
|
+
emailAddress: {
|
|
2837
|
+
contains: filterTerm,
|
|
2838
|
+
},
|
|
2839
|
+
lastName: {
|
|
2840
|
+
contains: filterTerm,
|
|
2841
|
+
},
|
|
2842
|
+
},
|
|
2843
|
+
}
|
|
2844
|
+
: {};
|
|
2845
|
+
return this.baseDataService.query(GET_CUSTOMER_LIST, {
|
|
2846
|
+
options: {
|
|
2847
|
+
take,
|
|
2848
|
+
skip,
|
|
2849
|
+
...filter,
|
|
2850
|
+
filterOperator: LogicalOperator.OR,
|
|
2851
|
+
},
|
|
2852
|
+
});
|
|
2853
|
+
}
|
|
2854
|
+
getCustomer(id, orderListOptions) {
|
|
2855
|
+
return this.baseDataService.query(GET_CUSTOMER, {
|
|
2856
|
+
id,
|
|
2857
|
+
orderListOptions,
|
|
2858
|
+
});
|
|
2859
|
+
}
|
|
2860
|
+
createCustomer(input, password) {
|
|
2861
|
+
return this.baseDataService.mutate(CREATE_CUSTOMER, {
|
|
2862
|
+
input,
|
|
2863
|
+
password,
|
|
2864
|
+
});
|
|
2865
|
+
}
|
|
2866
|
+
updateCustomer(input) {
|
|
2867
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER, {
|
|
2868
|
+
input,
|
|
2869
|
+
});
|
|
2870
|
+
}
|
|
2871
|
+
deleteCustomer(id) {
|
|
2872
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER, { id });
|
|
2873
|
+
}
|
|
2874
|
+
createCustomerAddress(customerId, input) {
|
|
2875
|
+
return this.baseDataService.mutate(CREATE_CUSTOMER_ADDRESS, {
|
|
2876
|
+
customerId,
|
|
2877
|
+
input,
|
|
2878
|
+
});
|
|
2879
|
+
}
|
|
2880
|
+
updateCustomerAddress(input) {
|
|
2881
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER_ADDRESS, {
|
|
2882
|
+
input,
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2885
|
+
deleteCustomerAddress(id) {
|
|
2886
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_ADDRESS, { id });
|
|
2887
|
+
}
|
|
2888
|
+
createCustomerGroup(input) {
|
|
2889
|
+
return this.baseDataService.mutate(CREATE_CUSTOMER_GROUP, {
|
|
2890
|
+
input,
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
updateCustomerGroup(input) {
|
|
2894
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER_GROUP, {
|
|
2895
|
+
input,
|
|
2896
|
+
});
|
|
2897
|
+
}
|
|
2898
|
+
deleteCustomerGroup(id) {
|
|
2899
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_GROUP, { id });
|
|
2900
|
+
}
|
|
2901
|
+
getCustomerGroupList(options) {
|
|
2902
|
+
return this.baseDataService.query(GET_CUSTOMER_GROUPS, {
|
|
2903
|
+
options,
|
|
2904
|
+
});
|
|
2905
|
+
}
|
|
2906
|
+
getCustomerGroupWithCustomers(id, options) {
|
|
2907
|
+
return this.baseDataService.query(GET_CUSTOMER_GROUP_WITH_CUSTOMERS, {
|
|
2908
|
+
id,
|
|
2909
|
+
options,
|
|
2910
|
+
});
|
|
2911
|
+
}
|
|
2912
|
+
addCustomersToGroup(groupId, customerIds) {
|
|
2913
|
+
return this.baseDataService.mutate(ADD_CUSTOMERS_TO_GROUP, {
|
|
2914
|
+
groupId,
|
|
2915
|
+
customerIds,
|
|
2916
|
+
});
|
|
2917
|
+
}
|
|
2918
|
+
removeCustomersFromGroup(groupId, customerIds) {
|
|
2919
|
+
return this.baseDataService.mutate(REMOVE_CUSTOMERS_FROM_GROUP, {
|
|
2920
|
+
groupId,
|
|
2921
|
+
customerIds,
|
|
2922
|
+
});
|
|
2923
|
+
}
|
|
2924
|
+
getCustomerHistory(id, options) {
|
|
2925
|
+
return this.baseDataService.query(GET_CUSTOMER_HISTORY, {
|
|
2926
|
+
id,
|
|
2927
|
+
options,
|
|
2928
|
+
});
|
|
2929
|
+
}
|
|
2930
|
+
addNoteToCustomer(customerId, note) {
|
|
2931
|
+
return this.baseDataService.mutate(ADD_NOTE_TO_CUSTOMER, {
|
|
2932
|
+
input: {
|
|
2933
|
+
note,
|
|
2934
|
+
isPublic: false,
|
|
2935
|
+
id: customerId,
|
|
2936
|
+
},
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
updateCustomerNote(input) {
|
|
2940
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER_NOTE, {
|
|
2941
|
+
input,
|
|
2942
|
+
});
|
|
2943
|
+
}
|
|
2944
|
+
deleteCustomerNote(id) {
|
|
2945
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_NOTE, {
|
|
2946
|
+
id,
|
|
2947
|
+
});
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
const FACET_VALUE_FRAGMENT = gql `
|
|
2952
|
+
fragment FacetValue on FacetValue {
|
|
2953
|
+
id
|
|
2954
|
+
createdAt
|
|
2955
|
+
updatedAt
|
|
2956
|
+
languageCode
|
|
2957
|
+
code
|
|
2958
|
+
name
|
|
2959
|
+
translations {
|
|
2960
|
+
id
|
|
2961
|
+
languageCode
|
|
2962
|
+
name
|
|
2963
|
+
}
|
|
2964
|
+
facet {
|
|
2965
|
+
id
|
|
2966
|
+
createdAt
|
|
2967
|
+
updatedAt
|
|
2968
|
+
name
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
`;
|
|
2972
|
+
const FACET_WITH_VALUES_FRAGMENT = gql `
|
|
2973
|
+
fragment FacetWithValues on Facet {
|
|
2974
|
+
id
|
|
2975
|
+
createdAt
|
|
2976
|
+
updatedAt
|
|
2977
|
+
languageCode
|
|
2978
|
+
isPrivate
|
|
2979
|
+
code
|
|
2980
|
+
name
|
|
2981
|
+
translations {
|
|
2982
|
+
id
|
|
2983
|
+
languageCode
|
|
2984
|
+
name
|
|
2985
|
+
}
|
|
2986
|
+
values {
|
|
2987
|
+
...FacetValue
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
${FACET_VALUE_FRAGMENT}
|
|
2991
|
+
`;
|
|
2992
|
+
const CREATE_FACET = gql `
|
|
2993
|
+
mutation CreateFacet($input: CreateFacetInput!) {
|
|
2994
|
+
createFacet(input: $input) {
|
|
2995
|
+
...FacetWithValues
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
${FACET_WITH_VALUES_FRAGMENT}
|
|
2999
|
+
`;
|
|
3000
|
+
const UPDATE_FACET = gql `
|
|
3001
|
+
mutation UpdateFacet($input: UpdateFacetInput!) {
|
|
3002
|
+
updateFacet(input: $input) {
|
|
3003
|
+
...FacetWithValues
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
${FACET_WITH_VALUES_FRAGMENT}
|
|
3007
|
+
`;
|
|
3008
|
+
const DELETE_FACET = gql `
|
|
3009
|
+
mutation DeleteFacet($id: ID!, $force: Boolean) {
|
|
3010
|
+
deleteFacet(id: $id, force: $force) {
|
|
3011
|
+
result
|
|
3012
|
+
message
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
`;
|
|
3016
|
+
const DELETE_FACETS = gql `
|
|
3017
|
+
mutation DeleteFacets($ids: [ID!]!, $force: Boolean) {
|
|
3018
|
+
deleteFacets(ids: $ids, force: $force) {
|
|
3019
|
+
result
|
|
3020
|
+
message
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
`;
|
|
3024
|
+
const CREATE_FACET_VALUES = gql `
|
|
3025
|
+
mutation CreateFacetValues($input: [CreateFacetValueInput!]!) {
|
|
3026
|
+
createFacetValues(input: $input) {
|
|
3027
|
+
...FacetValue
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
${FACET_VALUE_FRAGMENT}
|
|
3031
|
+
`;
|
|
3032
|
+
const UPDATE_FACET_VALUES = gql `
|
|
3033
|
+
mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {
|
|
3034
|
+
updateFacetValues(input: $input) {
|
|
3035
|
+
...FacetValue
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
${FACET_VALUE_FRAGMENT}
|
|
3039
|
+
`;
|
|
3040
|
+
const DELETE_FACET_VALUES = gql `
|
|
3041
|
+
mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {
|
|
3042
|
+
deleteFacetValues(ids: $ids, force: $force) {
|
|
3043
|
+
result
|
|
3044
|
+
message
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
3047
|
+
`;
|
|
3048
|
+
const GET_FACET_LIST = gql `
|
|
3049
|
+
query GetFacetList($options: FacetListOptions) {
|
|
3050
|
+
facets(options: $options) {
|
|
3051
|
+
items {
|
|
3052
|
+
...FacetWithValues
|
|
3053
|
+
}
|
|
3054
|
+
totalItems
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3057
|
+
${FACET_WITH_VALUES_FRAGMENT}
|
|
3058
|
+
`;
|
|
3059
|
+
const GET_FACET_WITH_VALUES = gql `
|
|
3060
|
+
query GetFacetWithValues($id: ID!) {
|
|
3061
|
+
facet(id: $id) {
|
|
3062
|
+
...FacetWithValues
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
${FACET_WITH_VALUES_FRAGMENT}
|
|
3066
|
+
`;
|
|
3067
|
+
const ASSIGN_FACETS_TO_CHANNEL = gql `
|
|
3068
|
+
mutation AssignFacetsToChannel($input: AssignFacetsToChannelInput!) {
|
|
3069
|
+
assignFacetsToChannel(input: $input) {
|
|
3070
|
+
id
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
`;
|
|
3074
|
+
const REMOVE_FACETS_FROM_CHANNEL = gql `
|
|
3075
|
+
mutation RemoveFacetsFromChannel($input: RemoveFacetsFromChannelInput!) {
|
|
3076
|
+
removeFacetsFromChannel(input: $input) {
|
|
3077
|
+
... on Facet {
|
|
3078
|
+
id
|
|
3079
|
+
}
|
|
3080
|
+
... on FacetInUseError {
|
|
3081
|
+
errorCode
|
|
3082
|
+
message
|
|
3083
|
+
variantCount
|
|
3084
|
+
productCount
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
`;
|
|
3089
|
+
|
|
3090
|
+
class FacetDataService {
|
|
3091
|
+
constructor(baseDataService) {
|
|
3092
|
+
this.baseDataService = baseDataService;
|
|
3093
|
+
}
|
|
3094
|
+
getFacets(take = 10, skip = 0) {
|
|
3095
|
+
return this.baseDataService.query(GET_FACET_LIST, {
|
|
3096
|
+
options: {
|
|
3097
|
+
take,
|
|
3098
|
+
skip,
|
|
3099
|
+
},
|
|
3100
|
+
});
|
|
3101
|
+
}
|
|
3102
|
+
getAllFacets() {
|
|
3103
|
+
return this.baseDataService.query(GET_FACET_LIST, {});
|
|
3104
|
+
}
|
|
3105
|
+
getFacet(id) {
|
|
3106
|
+
return this.baseDataService.query(GET_FACET_WITH_VALUES, {
|
|
3107
|
+
id,
|
|
3108
|
+
});
|
|
3109
|
+
}
|
|
3110
|
+
createFacet(facet) {
|
|
3111
|
+
const input = {
|
|
3112
|
+
input: pick(facet, ['code', 'isPrivate', 'translations', 'values', 'customFields']),
|
|
3113
|
+
};
|
|
3114
|
+
return this.baseDataService.mutate(CREATE_FACET, input);
|
|
3115
|
+
}
|
|
3116
|
+
updateFacet(facet) {
|
|
3117
|
+
const input = {
|
|
3118
|
+
input: pick(facet, ['id', 'code', 'isPrivate', 'translations', 'customFields']),
|
|
3119
|
+
};
|
|
3120
|
+
return this.baseDataService.mutate(UPDATE_FACET, input);
|
|
3121
|
+
}
|
|
3122
|
+
deleteFacet(id, force) {
|
|
3123
|
+
return this.baseDataService.mutate(DELETE_FACET, {
|
|
3124
|
+
id,
|
|
3125
|
+
force,
|
|
3126
|
+
});
|
|
3127
|
+
}
|
|
3128
|
+
deleteFacets(ids, force) {
|
|
3129
|
+
return this.baseDataService.mutate(DELETE_FACETS, {
|
|
3130
|
+
ids,
|
|
3131
|
+
force,
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
createFacetValues(facetValues) {
|
|
3135
|
+
const input = {
|
|
3136
|
+
input: facetValues.map(pick(['facetId', 'code', 'translations', 'customFields'])),
|
|
3137
|
+
};
|
|
3138
|
+
return this.baseDataService.mutate(CREATE_FACET_VALUES, input);
|
|
3139
|
+
}
|
|
3140
|
+
updateFacetValues(facetValues) {
|
|
3141
|
+
const input = {
|
|
3142
|
+
input: facetValues.map(pick(['id', 'code', 'translations', 'customFields'])),
|
|
3143
|
+
};
|
|
3144
|
+
return this.baseDataService.mutate(UPDATE_FACET_VALUES, input);
|
|
3145
|
+
}
|
|
3146
|
+
deleteFacetValues(ids, force) {
|
|
3147
|
+
return this.baseDataService.mutate(DELETE_FACET_VALUES, {
|
|
3148
|
+
ids,
|
|
3149
|
+
force,
|
|
3150
|
+
});
|
|
3151
|
+
}
|
|
3152
|
+
assignFacetsToChannel(input) {
|
|
3153
|
+
return this.baseDataService.mutate(ASSIGN_FACETS_TO_CHANNEL, {
|
|
3154
|
+
input,
|
|
3155
|
+
});
|
|
3156
|
+
}
|
|
3157
|
+
removeFacetsFromChannel(input) {
|
|
3158
|
+
return this.baseDataService.mutate(REMOVE_FACETS_FROM_CHANNEL, {
|
|
3159
|
+
input,
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
const DISCOUNT_FRAGMENT = gql `
|
|
3165
|
+
fragment Discount on Discount {
|
|
3166
|
+
adjustmentSource
|
|
3167
|
+
amount
|
|
3168
|
+
amountWithTax
|
|
3169
|
+
description
|
|
3170
|
+
type
|
|
3171
|
+
}
|
|
3172
|
+
`;
|
|
3173
|
+
const PAYMENT_FRAGMENT = gql `
|
|
3174
|
+
fragment Payment on Payment {
|
|
3175
|
+
id
|
|
3176
|
+
transactionId
|
|
3177
|
+
amount
|
|
3178
|
+
method
|
|
3179
|
+
state
|
|
3180
|
+
metadata
|
|
3181
|
+
}
|
|
3182
|
+
`;
|
|
3183
|
+
const REFUND_FRAGMENT = gql `
|
|
3184
|
+
fragment Refund on Refund {
|
|
3185
|
+
id
|
|
3186
|
+
state
|
|
3187
|
+
items
|
|
3188
|
+
shipping
|
|
3189
|
+
adjustment
|
|
3190
|
+
transactionId
|
|
3191
|
+
paymentId
|
|
3192
|
+
}
|
|
3193
|
+
`;
|
|
3194
|
+
const ORDER_ADDRESS_FRAGMENT = gql `
|
|
3195
|
+
fragment OrderAddress on OrderAddress {
|
|
3196
|
+
fullName
|
|
3197
|
+
company
|
|
3198
|
+
streetLine1
|
|
3199
|
+
streetLine2
|
|
3200
|
+
city
|
|
3201
|
+
province
|
|
3202
|
+
postalCode
|
|
3203
|
+
country
|
|
3204
|
+
countryCode
|
|
3205
|
+
phoneNumber
|
|
3206
|
+
}
|
|
3207
|
+
`;
|
|
3208
|
+
const ORDER_FRAGMENT = gql `
|
|
3209
|
+
fragment Order on Order {
|
|
3210
|
+
id
|
|
3211
|
+
createdAt
|
|
3212
|
+
updatedAt
|
|
3213
|
+
orderPlacedAt
|
|
3214
|
+
code
|
|
3215
|
+
state
|
|
3216
|
+
nextStates
|
|
3217
|
+
total
|
|
3218
|
+
totalWithTax
|
|
3219
|
+
currencyCode
|
|
3220
|
+
customer {
|
|
3221
|
+
id
|
|
3222
|
+
firstName
|
|
3223
|
+
lastName
|
|
3224
|
+
}
|
|
3225
|
+
shippingLines {
|
|
3226
|
+
shippingMethod {
|
|
3227
|
+
name
|
|
3228
|
+
}
|
|
3229
|
+
}
|
|
3230
|
+
}
|
|
3231
|
+
`;
|
|
3232
|
+
const FULFILLMENT_FRAGMENT = gql `
|
|
3233
|
+
fragment Fulfillment on Fulfillment {
|
|
3234
|
+
id
|
|
3235
|
+
state
|
|
3236
|
+
nextStates
|
|
3237
|
+
createdAt
|
|
3238
|
+
updatedAt
|
|
3239
|
+
method
|
|
3240
|
+
summary {
|
|
3241
|
+
orderLine {
|
|
3242
|
+
id
|
|
3243
|
+
}
|
|
3244
|
+
quantity
|
|
3245
|
+
}
|
|
3246
|
+
trackingCode
|
|
3247
|
+
}
|
|
3248
|
+
`;
|
|
3249
|
+
const ORDER_LINE_FRAGMENT = gql `
|
|
3250
|
+
fragment OrderLine on OrderLine {
|
|
3251
|
+
id
|
|
3252
|
+
featuredAsset {
|
|
3253
|
+
preview
|
|
3254
|
+
}
|
|
3255
|
+
productVariant {
|
|
3256
|
+
id
|
|
3257
|
+
name
|
|
3258
|
+
sku
|
|
3259
|
+
trackInventory
|
|
3260
|
+
stockOnHand
|
|
3261
|
+
}
|
|
3262
|
+
discounts {
|
|
3263
|
+
...Discount
|
|
3264
|
+
}
|
|
3265
|
+
fulfillments {
|
|
3266
|
+
...Fulfillment
|
|
3267
|
+
}
|
|
3268
|
+
unitPrice
|
|
3269
|
+
unitPriceWithTax
|
|
3270
|
+
proratedUnitPrice
|
|
3271
|
+
proratedUnitPriceWithTax
|
|
3272
|
+
quantity
|
|
3273
|
+
items {
|
|
3274
|
+
id
|
|
3275
|
+
refundId
|
|
3276
|
+
cancelled
|
|
3277
|
+
}
|
|
3278
|
+
linePrice
|
|
3279
|
+
lineTax
|
|
3280
|
+
linePriceWithTax
|
|
3281
|
+
discountedLinePrice
|
|
3282
|
+
discountedLinePriceWithTax
|
|
3283
|
+
}
|
|
3284
|
+
`;
|
|
3285
|
+
const ORDER_DETAIL_FRAGMENT = gql `
|
|
3286
|
+
fragment OrderDetail on Order {
|
|
3287
|
+
id
|
|
3288
|
+
createdAt
|
|
3289
|
+
updatedAt
|
|
3290
|
+
code
|
|
3291
|
+
state
|
|
3292
|
+
nextStates
|
|
3293
|
+
active
|
|
3294
|
+
couponCodes
|
|
3295
|
+
customer {
|
|
3296
|
+
id
|
|
3297
|
+
firstName
|
|
3298
|
+
lastName
|
|
3299
|
+
}
|
|
3300
|
+
lines {
|
|
3301
|
+
...OrderLine
|
|
3302
|
+
}
|
|
3303
|
+
surcharges {
|
|
3304
|
+
id
|
|
3305
|
+
sku
|
|
3306
|
+
description
|
|
3307
|
+
price
|
|
3308
|
+
priceWithTax
|
|
3309
|
+
taxRate
|
|
3310
|
+
}
|
|
3311
|
+
discounts {
|
|
3312
|
+
...Discount
|
|
3313
|
+
}
|
|
3314
|
+
promotions {
|
|
3315
|
+
id
|
|
3316
|
+
couponCode
|
|
3317
|
+
}
|
|
3318
|
+
subTotal
|
|
3319
|
+
subTotalWithTax
|
|
3320
|
+
total
|
|
3321
|
+
totalWithTax
|
|
3322
|
+
currencyCode
|
|
3323
|
+
shipping
|
|
3324
|
+
shippingWithTax
|
|
3325
|
+
shippingLines {
|
|
3326
|
+
shippingMethod {
|
|
3327
|
+
id
|
|
3328
|
+
code
|
|
3329
|
+
name
|
|
3330
|
+
fulfillmentHandlerCode
|
|
3331
|
+
description
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
taxSummary {
|
|
3335
|
+
description
|
|
3336
|
+
taxBase
|
|
3337
|
+
taxRate
|
|
3338
|
+
taxTotal
|
|
3339
|
+
}
|
|
3340
|
+
shippingAddress {
|
|
3341
|
+
...OrderAddress
|
|
3342
|
+
}
|
|
3343
|
+
billingAddress {
|
|
3344
|
+
...OrderAddress
|
|
3345
|
+
}
|
|
3346
|
+
payments {
|
|
3347
|
+
id
|
|
3348
|
+
createdAt
|
|
3349
|
+
transactionId
|
|
3350
|
+
amount
|
|
3351
|
+
method
|
|
3352
|
+
state
|
|
3353
|
+
nextStates
|
|
3354
|
+
errorMessage
|
|
3355
|
+
metadata
|
|
3356
|
+
refunds {
|
|
3357
|
+
id
|
|
3358
|
+
createdAt
|
|
3359
|
+
state
|
|
3360
|
+
items
|
|
3361
|
+
adjustment
|
|
3362
|
+
total
|
|
3363
|
+
paymentId
|
|
3364
|
+
reason
|
|
3365
|
+
transactionId
|
|
3366
|
+
method
|
|
3367
|
+
metadata
|
|
3368
|
+
orderItems {
|
|
3369
|
+
id
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
fulfillments {
|
|
3374
|
+
...Fulfillment
|
|
3375
|
+
}
|
|
3376
|
+
modifications {
|
|
3377
|
+
id
|
|
3378
|
+
createdAt
|
|
3379
|
+
isSettled
|
|
3380
|
+
priceChange
|
|
3381
|
+
note
|
|
3382
|
+
payment {
|
|
3383
|
+
id
|
|
3384
|
+
amount
|
|
3385
|
+
}
|
|
3386
|
+
orderItems {
|
|
3387
|
+
id
|
|
3388
|
+
}
|
|
3389
|
+
refund {
|
|
3390
|
+
id
|
|
3391
|
+
paymentId
|
|
3392
|
+
total
|
|
3393
|
+
}
|
|
3394
|
+
surcharges {
|
|
3395
|
+
id
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
${DISCOUNT_FRAGMENT}
|
|
3400
|
+
${ORDER_ADDRESS_FRAGMENT}
|
|
3401
|
+
${FULFILLMENT_FRAGMENT}
|
|
3402
|
+
${ORDER_LINE_FRAGMENT}
|
|
3403
|
+
`;
|
|
3404
|
+
const GET_ORDERS_LIST = gql `
|
|
3405
|
+
query GetOrderList($options: OrderListOptions) {
|
|
3406
|
+
orders(options: $options) {
|
|
3407
|
+
items {
|
|
3408
|
+
...Order
|
|
3409
|
+
}
|
|
3410
|
+
totalItems
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
${ORDER_FRAGMENT}
|
|
3414
|
+
`;
|
|
3415
|
+
const GET_ORDER = gql `
|
|
3416
|
+
query GetOrder($id: ID!) {
|
|
3417
|
+
order(id: $id) {
|
|
3418
|
+
...OrderDetail
|
|
3419
|
+
}
|
|
3420
|
+
}
|
|
3421
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3422
|
+
`;
|
|
3423
|
+
const SETTLE_PAYMENT = gql `
|
|
3424
|
+
mutation SettlePayment($id: ID!) {
|
|
3425
|
+
settlePayment(id: $id) {
|
|
3426
|
+
...Payment
|
|
3427
|
+
...ErrorResult
|
|
3428
|
+
... on SettlePaymentError {
|
|
3429
|
+
paymentErrorMessage
|
|
3430
|
+
}
|
|
3431
|
+
... on PaymentStateTransitionError {
|
|
3432
|
+
transitionError
|
|
3433
|
+
}
|
|
3434
|
+
... on OrderStateTransitionError {
|
|
3435
|
+
transitionError
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3440
|
+
${PAYMENT_FRAGMENT}
|
|
3441
|
+
`;
|
|
3442
|
+
const CANCEL_PAYMENT = gql `
|
|
3443
|
+
mutation CancelPayment($id: ID!) {
|
|
3444
|
+
cancelPayment(id: $id) {
|
|
3445
|
+
...Payment
|
|
3446
|
+
...ErrorResult
|
|
3447
|
+
... on CancelPaymentError {
|
|
3448
|
+
paymentErrorMessage
|
|
3449
|
+
}
|
|
3450
|
+
... on PaymentStateTransitionError {
|
|
3451
|
+
transitionError
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3456
|
+
${PAYMENT_FRAGMENT}
|
|
3457
|
+
`;
|
|
3458
|
+
const TRANSITION_PAYMENT_TO_STATE = gql `
|
|
3459
|
+
mutation TransitionPaymentToState($id: ID!, $state: String!) {
|
|
3460
|
+
transitionPaymentToState(id: $id, state: $state) {
|
|
3461
|
+
...Payment
|
|
3462
|
+
...ErrorResult
|
|
3463
|
+
... on PaymentStateTransitionError {
|
|
3464
|
+
transitionError
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
${PAYMENT_FRAGMENT}
|
|
3469
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3470
|
+
`;
|
|
3471
|
+
const CREATE_FULFILLMENT = gql `
|
|
3472
|
+
mutation CreateFulfillment($input: FulfillOrderInput!) {
|
|
3473
|
+
addFulfillmentToOrder(input: $input) {
|
|
3474
|
+
...Fulfillment
|
|
3475
|
+
... on CreateFulfillmentError {
|
|
3476
|
+
errorCode
|
|
3477
|
+
message
|
|
3478
|
+
fulfillmentHandlerError
|
|
3479
|
+
}
|
|
3480
|
+
... on FulfillmentStateTransitionError {
|
|
3481
|
+
errorCode
|
|
3482
|
+
message
|
|
3483
|
+
transitionError
|
|
3484
|
+
}
|
|
3485
|
+
...ErrorResult
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
${FULFILLMENT_FRAGMENT}
|
|
3489
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3490
|
+
`;
|
|
3491
|
+
const CANCEL_ORDER = gql `
|
|
3492
|
+
mutation CancelOrder($input: CancelOrderInput!) {
|
|
3493
|
+
cancelOrder(input: $input) {
|
|
3494
|
+
...OrderDetail
|
|
3495
|
+
...ErrorResult
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3499
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3500
|
+
`;
|
|
3501
|
+
const REFUND_ORDER = gql `
|
|
3502
|
+
mutation RefundOrder($input: RefundOrderInput!) {
|
|
3503
|
+
refundOrder(input: $input) {
|
|
3504
|
+
...Refund
|
|
3505
|
+
...ErrorResult
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
${REFUND_FRAGMENT}
|
|
3509
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3510
|
+
`;
|
|
3511
|
+
const SETTLE_REFUND = gql `
|
|
3512
|
+
mutation SettleRefund($input: SettleRefundInput!) {
|
|
3513
|
+
settleRefund(input: $input) {
|
|
3514
|
+
...Refund
|
|
3515
|
+
...ErrorResult
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
${REFUND_FRAGMENT}
|
|
3519
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3520
|
+
`;
|
|
3521
|
+
const GET_ORDER_HISTORY = gql `
|
|
3522
|
+
query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {
|
|
3523
|
+
order(id: $id) {
|
|
3524
|
+
id
|
|
3525
|
+
history(options: $options) {
|
|
3526
|
+
totalItems
|
|
3527
|
+
items {
|
|
3528
|
+
id
|
|
3529
|
+
type
|
|
3530
|
+
createdAt
|
|
3531
|
+
isPublic
|
|
3532
|
+
administrator {
|
|
3533
|
+
id
|
|
3534
|
+
firstName
|
|
3535
|
+
lastName
|
|
3536
|
+
}
|
|
3537
|
+
data
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
`;
|
|
3543
|
+
const ADD_NOTE_TO_ORDER = gql `
|
|
3544
|
+
mutation AddNoteToOrder($input: AddNoteToOrderInput!) {
|
|
3545
|
+
addNoteToOrder(input: $input) {
|
|
3546
|
+
id
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
`;
|
|
3550
|
+
const UPDATE_ORDER_NOTE = gql `
|
|
3551
|
+
mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {
|
|
3552
|
+
updateOrderNote(input: $input) {
|
|
3553
|
+
id
|
|
3554
|
+
data
|
|
3555
|
+
isPublic
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3558
|
+
`;
|
|
3559
|
+
const DELETE_ORDER_NOTE = gql `
|
|
3560
|
+
mutation DeleteOrderNote($id: ID!) {
|
|
3561
|
+
deleteOrderNote(id: $id) {
|
|
3562
|
+
result
|
|
3563
|
+
message
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
`;
|
|
3567
|
+
const TRANSITION_ORDER_TO_STATE = gql `
|
|
3568
|
+
mutation TransitionOrderToState($id: ID!, $state: String!) {
|
|
3569
|
+
transitionOrderToState(id: $id, state: $state) {
|
|
3570
|
+
...Order
|
|
3571
|
+
...ErrorResult
|
|
3572
|
+
... on OrderStateTransitionError {
|
|
3573
|
+
transitionError
|
|
3574
|
+
}
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
${ORDER_FRAGMENT}
|
|
3578
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3579
|
+
`;
|
|
3580
|
+
const UPDATE_ORDER_CUSTOM_FIELDS = gql `
|
|
3581
|
+
mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {
|
|
3582
|
+
setOrderCustomFields(input: $input) {
|
|
3583
|
+
...Order
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
${ORDER_FRAGMENT}
|
|
3587
|
+
`;
|
|
3588
|
+
const TRANSITION_FULFILLMENT_TO_STATE = gql `
|
|
3589
|
+
mutation TransitionFulfillmentToState($id: ID!, $state: String!) {
|
|
3590
|
+
transitionFulfillmentToState(id: $id, state: $state) {
|
|
3591
|
+
...Fulfillment
|
|
3592
|
+
...ErrorResult
|
|
3593
|
+
... on FulfillmentStateTransitionError {
|
|
3594
|
+
transitionError
|
|
3595
|
+
}
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
${FULFILLMENT_FRAGMENT}
|
|
3599
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3600
|
+
`;
|
|
3601
|
+
const GET_ORDER_SUMMARY = gql `
|
|
3602
|
+
query GetOrderSummary($start: DateTime!, $end: DateTime!) {
|
|
3603
|
+
orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {
|
|
3604
|
+
totalItems
|
|
3605
|
+
items {
|
|
3606
|
+
id
|
|
3607
|
+
total
|
|
3608
|
+
currencyCode
|
|
3609
|
+
}
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
`;
|
|
3613
|
+
const MODIFY_ORDER = gql `
|
|
3614
|
+
mutation ModifyOrder($input: ModifyOrderInput!) {
|
|
3615
|
+
modifyOrder(input: $input) {
|
|
3616
|
+
...OrderDetail
|
|
3617
|
+
...ErrorResult
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3621
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3622
|
+
`;
|
|
3623
|
+
const ADD_MANUAL_PAYMENT_TO_ORDER = gql `
|
|
3624
|
+
mutation AddManualPayment($input: ManualPaymentInput!) {
|
|
3625
|
+
addManualPaymentToOrder(input: $input) {
|
|
3626
|
+
...OrderDetail
|
|
3627
|
+
...ErrorResult
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3631
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3632
|
+
`;
|
|
3633
|
+
const CREATE_DRAFT_ORDER = gql `
|
|
3634
|
+
mutation CreateDraftOrder {
|
|
3635
|
+
createDraftOrder {
|
|
3636
|
+
...OrderDetail
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3640
|
+
`;
|
|
3641
|
+
const DELETE_DRAFT_ORDER = gql `
|
|
3642
|
+
mutation DeleteDraftOrder($orderId: ID!) {
|
|
3643
|
+
deleteDraftOrder(orderId: $orderId) {
|
|
3644
|
+
result
|
|
3645
|
+
message
|
|
3646
|
+
}
|
|
3647
|
+
}
|
|
3648
|
+
`;
|
|
3649
|
+
const ADD_ITEM_TO_DRAFT_ORDER = gql `
|
|
3650
|
+
mutation AddItemToDraftOrder($orderId: ID!, $input: AddItemToDraftOrderInput!) {
|
|
3651
|
+
addItemToDraftOrder(orderId: $orderId, input: $input) {
|
|
3652
|
+
...OrderDetail
|
|
3653
|
+
...ErrorResult
|
|
3654
|
+
}
|
|
3655
|
+
}
|
|
3656
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3657
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3658
|
+
`;
|
|
3659
|
+
const ADJUST_DRAFT_ORDER_LINE = gql `
|
|
3660
|
+
mutation AdjustDraftOrderLine($orderId: ID!, $input: AdjustDraftOrderLineInput!) {
|
|
3661
|
+
adjustDraftOrderLine(orderId: $orderId, input: $input) {
|
|
3662
|
+
...OrderDetail
|
|
3663
|
+
...ErrorResult
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3666
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3667
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3668
|
+
`;
|
|
3669
|
+
const REMOVE_DRAFT_ORDER_LINE = gql `
|
|
3670
|
+
mutation RemoveDraftOrderLine($orderId: ID!, $orderLineId: ID!) {
|
|
3671
|
+
removeDraftOrderLine(orderId: $orderId, orderLineId: $orderLineId) {
|
|
3672
|
+
...OrderDetail
|
|
3673
|
+
...ErrorResult
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3677
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3678
|
+
`;
|
|
3679
|
+
const SET_CUSTOMER_FOR_DRAFT_ORDER = gql `
|
|
3680
|
+
mutation SetCustomerForDraftOrder($orderId: ID!, $customerId: ID, $input: CreateCustomerInput) {
|
|
3681
|
+
setCustomerForDraftOrder(orderId: $orderId, customerId: $customerId, input: $input) {
|
|
3682
|
+
...OrderDetail
|
|
3683
|
+
...ErrorResult
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3687
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3688
|
+
`;
|
|
3689
|
+
const SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER = gql `
|
|
3690
|
+
mutation SetDraftOrderShippingAddress($orderId: ID!, $input: CreateAddressInput!) {
|
|
3691
|
+
setDraftOrderShippingAddress(orderId: $orderId, input: $input) {
|
|
3692
|
+
...OrderDetail
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3696
|
+
`;
|
|
3697
|
+
const SET_BILLING_ADDRESS_FOR_DRAFT_ORDER = gql `
|
|
3698
|
+
mutation SetDraftOrderBillingAddress($orderId: ID!, $input: CreateAddressInput!) {
|
|
3699
|
+
setDraftOrderBillingAddress(orderId: $orderId, input: $input) {
|
|
3700
|
+
...OrderDetail
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3704
|
+
`;
|
|
3705
|
+
const APPLY_COUPON_CODE_TO_DRAFT_ORDER = gql `
|
|
3706
|
+
mutation ApplyCouponCodeToDraftOrder($orderId: ID!, $couponCode: String!) {
|
|
3707
|
+
applyCouponCodeToDraftOrder(orderId: $orderId, couponCode: $couponCode) {
|
|
3708
|
+
...OrderDetail
|
|
3709
|
+
...ErrorResult
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3713
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3714
|
+
`;
|
|
3715
|
+
const REMOVE_COUPON_CODE_FROM_DRAFT_ORDER = gql `
|
|
3716
|
+
mutation RemoveCouponCodeFromDraftOrder($orderId: ID!, $couponCode: String!) {
|
|
3717
|
+
removeCouponCodeFromDraftOrder(orderId: $orderId, couponCode: $couponCode) {
|
|
3718
|
+
...OrderDetail
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3722
|
+
`;
|
|
3723
|
+
const DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS = gql `
|
|
3724
|
+
query DraftOrderEligibleShippingMethods($orderId: ID!) {
|
|
3725
|
+
eligibleShippingMethodsForDraftOrder(orderId: $orderId) {
|
|
3726
|
+
id
|
|
3727
|
+
name
|
|
3728
|
+
code
|
|
3729
|
+
description
|
|
3730
|
+
price
|
|
3731
|
+
priceWithTax
|
|
3732
|
+
metadata
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
`;
|
|
3736
|
+
const SET_DRAFT_ORDER_SHIPPING_METHOD = gql `
|
|
3737
|
+
mutation SetDraftOrderShippingMethod($orderId: ID!, $shippingMethodId: ID!) {
|
|
3738
|
+
setDraftOrderShippingMethod(orderId: $orderId, shippingMethodId: $shippingMethodId) {
|
|
3739
|
+
...OrderDetail
|
|
3740
|
+
...ErrorResult
|
|
3741
|
+
}
|
|
3742
|
+
}
|
|
3743
|
+
${ORDER_DETAIL_FRAGMENT}
|
|
3744
|
+
${ERROR_RESULT_FRAGMENT}
|
|
3745
|
+
`;
|
|
3746
|
+
|
|
3747
|
+
class OrderDataService {
|
|
3748
|
+
constructor(baseDataService) {
|
|
3749
|
+
this.baseDataService = baseDataService;
|
|
3750
|
+
}
|
|
3751
|
+
getOrders(options = { take: 10 }) {
|
|
3752
|
+
return this.baseDataService.query(GET_ORDERS_LIST, {
|
|
3753
|
+
options,
|
|
3754
|
+
});
|
|
3755
|
+
}
|
|
3756
|
+
getOrder(id) {
|
|
3757
|
+
return this.baseDataService.query(GET_ORDER, {
|
|
3758
|
+
id,
|
|
3759
|
+
});
|
|
3760
|
+
}
|
|
3761
|
+
getOrderHistory(id, options) {
|
|
3762
|
+
return this.baseDataService.query(GET_ORDER_HISTORY, {
|
|
3763
|
+
id,
|
|
3764
|
+
options,
|
|
3765
|
+
});
|
|
3766
|
+
}
|
|
3767
|
+
settlePayment(id) {
|
|
3768
|
+
return this.baseDataService.mutate(SETTLE_PAYMENT, {
|
|
3769
|
+
id,
|
|
3770
|
+
});
|
|
3771
|
+
}
|
|
3772
|
+
cancelPayment(id) {
|
|
3773
|
+
return this.baseDataService.mutate(CANCEL_PAYMENT, {
|
|
3774
|
+
id,
|
|
3775
|
+
});
|
|
3776
|
+
}
|
|
3777
|
+
transitionPaymentToState(id, state) {
|
|
3778
|
+
return this.baseDataService.mutate(TRANSITION_PAYMENT_TO_STATE, {
|
|
3779
|
+
id,
|
|
3780
|
+
state,
|
|
3781
|
+
});
|
|
3782
|
+
}
|
|
3783
|
+
createFulfillment(input) {
|
|
3784
|
+
return this.baseDataService.mutate(CREATE_FULFILLMENT, {
|
|
3785
|
+
input,
|
|
3786
|
+
});
|
|
3787
|
+
}
|
|
3788
|
+
transitionFulfillmentToState(id, state) {
|
|
3789
|
+
return this.baseDataService.mutate(TRANSITION_FULFILLMENT_TO_STATE, {
|
|
3790
|
+
id,
|
|
3791
|
+
state,
|
|
3792
|
+
});
|
|
3793
|
+
}
|
|
3794
|
+
cancelOrder(input) {
|
|
3795
|
+
return this.baseDataService.mutate(CANCEL_ORDER, {
|
|
3796
|
+
input,
|
|
3797
|
+
});
|
|
3798
|
+
}
|
|
3799
|
+
refundOrder(input) {
|
|
3800
|
+
return this.baseDataService.mutate(REFUND_ORDER, {
|
|
3801
|
+
input,
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
settleRefund(input, orderId) {
|
|
3805
|
+
return this.baseDataService.mutate(SETTLE_REFUND, {
|
|
3806
|
+
input,
|
|
3807
|
+
});
|
|
3808
|
+
}
|
|
3809
|
+
addNoteToOrder(input) {
|
|
3810
|
+
return this.baseDataService.mutate(ADD_NOTE_TO_ORDER, {
|
|
3811
|
+
input,
|
|
3812
|
+
});
|
|
3813
|
+
}
|
|
3814
|
+
updateOrderNote(input) {
|
|
3815
|
+
return this.baseDataService.mutate(UPDATE_ORDER_NOTE, {
|
|
3816
|
+
input,
|
|
3817
|
+
});
|
|
3818
|
+
}
|
|
3819
|
+
deleteOrderNote(id) {
|
|
3820
|
+
return this.baseDataService.mutate(DELETE_ORDER_NOTE, {
|
|
3821
|
+
id,
|
|
3822
|
+
});
|
|
3823
|
+
}
|
|
3824
|
+
transitionToState(id, state) {
|
|
3825
|
+
return this.baseDataService.mutate(TRANSITION_ORDER_TO_STATE, {
|
|
3826
|
+
id,
|
|
3827
|
+
state,
|
|
3828
|
+
});
|
|
3829
|
+
}
|
|
3830
|
+
updateOrderCustomFields(input) {
|
|
3831
|
+
return this.baseDataService.mutate(UPDATE_ORDER_CUSTOM_FIELDS, {
|
|
3832
|
+
input,
|
|
3833
|
+
});
|
|
3834
|
+
}
|
|
3835
|
+
getOrderSummary(start, end) {
|
|
3836
|
+
return this.baseDataService.query(GET_ORDER_SUMMARY, {
|
|
3837
|
+
start: start.toISOString(),
|
|
3838
|
+
end: end.toISOString(),
|
|
3839
|
+
});
|
|
3840
|
+
}
|
|
3841
|
+
modifyOrder(input) {
|
|
3842
|
+
return this.baseDataService.mutate(MODIFY_ORDER, {
|
|
3843
|
+
input,
|
|
3844
|
+
});
|
|
3845
|
+
}
|
|
3846
|
+
addManualPaymentToOrder(input) {
|
|
3847
|
+
return this.baseDataService.mutate(ADD_MANUAL_PAYMENT_TO_ORDER, { input });
|
|
3848
|
+
}
|
|
3849
|
+
createDraftOrder() {
|
|
3850
|
+
return this.baseDataService.mutate(CREATE_DRAFT_ORDER);
|
|
3851
|
+
}
|
|
3852
|
+
deleteDraftOrder(orderId) {
|
|
3853
|
+
return this.baseDataService.mutate(DELETE_DRAFT_ORDER, { orderId });
|
|
3854
|
+
}
|
|
3855
|
+
addItemToDraftOrder(orderId, input) {
|
|
3856
|
+
return this.baseDataService.mutate(ADD_ITEM_TO_DRAFT_ORDER, { orderId, input });
|
|
3857
|
+
}
|
|
3858
|
+
adjustDraftOrderLine(orderId, input) {
|
|
3859
|
+
return this.baseDataService.mutate(ADJUST_DRAFT_ORDER_LINE, { orderId, input });
|
|
3860
|
+
}
|
|
3861
|
+
removeDraftOrderLine(orderId, orderLineId) {
|
|
3862
|
+
return this.baseDataService.mutate(REMOVE_DRAFT_ORDER_LINE, { orderId, orderLineId });
|
|
3863
|
+
}
|
|
3864
|
+
setCustomerForDraftOrder(orderId, { customerId, input }) {
|
|
3865
|
+
return this.baseDataService.mutate(SET_CUSTOMER_FOR_DRAFT_ORDER, { orderId, customerId, input });
|
|
3866
|
+
}
|
|
3867
|
+
setDraftOrderShippingAddress(orderId, input) {
|
|
3868
|
+
return this.baseDataService.mutate(SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER, { orderId, input });
|
|
3869
|
+
}
|
|
3870
|
+
setDraftOrderBillingAddress(orderId, input) {
|
|
3871
|
+
return this.baseDataService.mutate(SET_BILLING_ADDRESS_FOR_DRAFT_ORDER, { orderId, input });
|
|
3872
|
+
}
|
|
3873
|
+
applyCouponCodeToDraftOrder(orderId, couponCode) {
|
|
3874
|
+
return this.baseDataService.mutate(APPLY_COUPON_CODE_TO_DRAFT_ORDER, { orderId, couponCode });
|
|
3875
|
+
}
|
|
3876
|
+
removeCouponCodeFromDraftOrder(orderId, couponCode) {
|
|
3877
|
+
return this.baseDataService.mutate(REMOVE_COUPON_CODE_FROM_DRAFT_ORDER, { orderId, couponCode });
|
|
3878
|
+
}
|
|
3879
|
+
getDraftOrderEligibleShippingMethods(orderId) {
|
|
3880
|
+
return this.baseDataService.query(DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS, { orderId });
|
|
3881
|
+
}
|
|
3882
|
+
setDraftOrderShippingMethod(orderId, shippingMethodId) {
|
|
3883
|
+
return this.baseDataService.mutate(SET_DRAFT_ORDER_SHIPPING_METHOD, { orderId, shippingMethodId });
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3725
3887
|
const COUNTRY_FRAGMENT = gql `
|
|
3726
3888
|
fragment Country on Country {
|
|
3727
3889
|
id
|
|
@@ -5422,6 +5584,10 @@ function isEntityCreateOrUpdateMutation(documentNode) {
|
|
|
5422
5584
|
if (inputTypeName === 'ModifyOrderInput') {
|
|
5423
5585
|
return 'Order';
|
|
5424
5586
|
}
|
|
5587
|
+
if (inputTypeName === 'AddItemToDraftOrderInput' ||
|
|
5588
|
+
inputTypeName === 'AdjustDraftOrderLineInput') {
|
|
5589
|
+
return 'OrderLine';
|
|
5590
|
+
}
|
|
5425
5591
|
const createMatch = inputTypeName.match(CREATE_ENTITY_REGEX);
|
|
5426
5592
|
if (createMatch) {
|
|
5427
5593
|
return createMatch[1];
|
|
@@ -7538,10 +7704,10 @@ class BreadcrumbComponent {
|
|
|
7538
7704
|
}
|
|
7539
7705
|
}
|
|
7540
7706
|
BreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: DataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7541
|
-
BreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: BreadcrumbComponent, selector: "vdr-breadcrumb", ngImport: i0, template: "<nav role=\"navigation\">\r\n <ul class=\"breadcrumbs\">\r\n <li *ngFor=\"let breadcrumb of (breadcrumbs$ | async); let isLast = last\">\r\n <a [routerLink]=\"breadcrumb.link\" *ngIf=\"!isLast\">{{ breadcrumb.label | translate }}</a>\r\n <ng-container *ngIf=\"isLast\">{{ breadcrumb.label | translate }}</ng-container>\r\n </li>\r\n </ul>\r\n</nav>\r\n", styles: ["@charset \"UTF-8\";:host{display:block
|
|
7707
|
+
BreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: BreadcrumbComponent, selector: "vdr-breadcrumb", ngImport: i0, template: "<nav role=\"navigation\">\r\n <ul class=\"breadcrumbs\">\r\n <li *ngFor=\"let breadcrumb of (breadcrumbs$ | async); let isLast = last\">\r\n <a [routerLink]=\"breadcrumb.link\" *ngIf=\"!isLast\">{{ breadcrumb.label | translate }}</a>\r\n <ng-container *ngIf=\"isLast\">{{ breadcrumb.label | translate }}</ng-container>\r\n </li>\r\n </ul>\r\n</nav>\r\n", styles: ["@charset \"UTF-8\";:host{display:block}@media screen and (min-width: 768px){:host{padding:0 1rem}}.breadcrumbs{list-style-type:none;display:flex;overflow-x:auto;max-width:100vw;padding:0 3px}@media screen and (min-width: 768px){.breadcrumbs{padding:0}}.breadcrumbs li{font-size:16px;display:inline-block;margin-right:10px;white-space:nowrap}.breadcrumbs li:not(:last-child):after{content:\"\\203a\";top:0;color:var(--color-grey-400);margin-left:10px}\n"], directives: [{ type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "async": i6.AsyncPipe, "translate": i7.TranslatePipe } });
|
|
7542
7708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
7543
7709
|
type: Component,
|
|
7544
|
-
args: [{ selector: 'vdr-breadcrumb', template: "<nav role=\"navigation\">\r\n <ul class=\"breadcrumbs\">\r\n <li *ngFor=\"let breadcrumb of (breadcrumbs$ | async); let isLast = last\">\r\n <a [routerLink]=\"breadcrumb.link\" *ngIf=\"!isLast\">{{ breadcrumb.label | translate }}</a>\r\n <ng-container *ngIf=\"isLast\">{{ breadcrumb.label | translate }}</ng-container>\r\n </li>\r\n </ul>\r\n</nav>\r\n", styles: ["@charset \"UTF-8\";:host{display:block
|
|
7710
|
+
args: [{ selector: 'vdr-breadcrumb', template: "<nav role=\"navigation\">\r\n <ul class=\"breadcrumbs\">\r\n <li *ngFor=\"let breadcrumb of (breadcrumbs$ | async); let isLast = last\">\r\n <a [routerLink]=\"breadcrumb.link\" *ngIf=\"!isLast\">{{ breadcrumb.label | translate }}</a>\r\n <ng-container *ngIf=\"isLast\">{{ breadcrumb.label | translate }}</ng-container>\r\n </li>\r\n </ul>\r\n</nav>\r\n", styles: ["@charset \"UTF-8\";:host{display:block}@media screen and (min-width: 768px){:host{padding:0 1rem}}.breadcrumbs{list-style-type:none;display:flex;overflow-x:auto;max-width:100vw;padding:0 3px}@media screen and (min-width: 768px){.breadcrumbs{padding:0}}.breadcrumbs li{font-size:16px;display:inline-block;margin-right:10px;white-space:nowrap}.breadcrumbs li:not(:last-child):after{content:\"\\203a\";top:0;color:var(--color-grey-400);margin-left:10px}\n"] }]
|
|
7545
7711
|
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: DataService }]; } });
|
|
7546
7712
|
function isBreadcrumbFunction(value) {
|
|
7547
7713
|
return typeof value === 'function';
|
|
@@ -8498,6 +8664,12 @@ const result = {
|
|
|
8498
8664
|
"ManualPaymentStateError",
|
|
8499
8665
|
"Order"
|
|
8500
8666
|
],
|
|
8667
|
+
"ApplyCouponCodeResult": [
|
|
8668
|
+
"CouponCodeExpiredError",
|
|
8669
|
+
"CouponCodeInvalidError",
|
|
8670
|
+
"CouponCodeLimitError",
|
|
8671
|
+
"Order"
|
|
8672
|
+
],
|
|
8501
8673
|
"AuthenticationResult": [
|
|
8502
8674
|
"CurrentUser",
|
|
8503
8675
|
"InvalidCredentialsError"
|
|
@@ -8564,6 +8736,7 @@ const result = {
|
|
|
8564
8736
|
"EmptyOrderLineSelectionError",
|
|
8565
8737
|
"FacetInUseError",
|
|
8566
8738
|
"FulfillmentStateTransitionError",
|
|
8739
|
+
"IneligibleShippingMethodError",
|
|
8567
8740
|
"InsufficientStockError",
|
|
8568
8741
|
"InsufficientStockOnHandError",
|
|
8569
8742
|
"InvalidCredentialsError",
|
|
@@ -8576,9 +8749,11 @@ const result = {
|
|
|
8576
8749
|
"MultipleOrderError",
|
|
8577
8750
|
"NativeAuthStrategyError",
|
|
8578
8751
|
"NegativeQuantityError",
|
|
8752
|
+
"NoActiveOrderError",
|
|
8579
8753
|
"NoChangesSpecifiedError",
|
|
8580
8754
|
"NothingToRefundError",
|
|
8581
8755
|
"OrderLimitError",
|
|
8756
|
+
"OrderModificationError",
|
|
8582
8757
|
"OrderModificationStateError",
|
|
8583
8758
|
"OrderStateTransitionError",
|
|
8584
8759
|
"PaymentMethodMissingError",
|
|
@@ -8690,10 +8865,24 @@ const result = {
|
|
|
8690
8865
|
"Product",
|
|
8691
8866
|
"ProductOptionInUseError"
|
|
8692
8867
|
],
|
|
8868
|
+
"RemoveOrderItemsResult": [
|
|
8869
|
+
"Order",
|
|
8870
|
+
"OrderModificationError"
|
|
8871
|
+
],
|
|
8693
8872
|
"SearchResultPrice": [
|
|
8694
8873
|
"PriceRange",
|
|
8695
8874
|
"SinglePrice"
|
|
8696
8875
|
],
|
|
8876
|
+
"SetCustomerForDraftOrderResult": [
|
|
8877
|
+
"EmailAddressConflictError",
|
|
8878
|
+
"Order"
|
|
8879
|
+
],
|
|
8880
|
+
"SetOrderShippingMethodResult": [
|
|
8881
|
+
"IneligibleShippingMethodError",
|
|
8882
|
+
"NoActiveOrderError",
|
|
8883
|
+
"Order",
|
|
8884
|
+
"OrderModificationError"
|
|
8885
|
+
],
|
|
8697
8886
|
"SettlePaymentResult": [
|
|
8698
8887
|
"OrderStateTransitionError",
|
|
8699
8888
|
"Payment",
|
|
@@ -8744,6 +8933,13 @@ const result = {
|
|
|
8744
8933
|
"ChannelDefaultLanguageError",
|
|
8745
8934
|
"GlobalSettings"
|
|
8746
8935
|
],
|
|
8936
|
+
"UpdateOrderItemsResult": [
|
|
8937
|
+
"InsufficientStockError",
|
|
8938
|
+
"NegativeQuantityError",
|
|
8939
|
+
"Order",
|
|
8940
|
+
"OrderLimitError",
|
|
8941
|
+
"OrderModificationError"
|
|
8942
|
+
],
|
|
8747
8943
|
"UpdatePromotionResult": [
|
|
8748
8944
|
"MissingConditionsError",
|
|
8749
8945
|
"Promotion"
|
|
@@ -10129,7 +10325,7 @@ DynamicFormInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
10129
10325
|
useExisting: DynamicFormInputComponent,
|
|
10130
10326
|
multi: true,
|
|
10131
10327
|
},
|
|
10132
|
-
], viewQueries: [{ propertyName: "singleViewContainer", first: true, predicate: ["single"], descendants: true, read: ViewContainerRef }, { propertyName: "listItemContainers", predicate: ["listItem"], descendants: true, read: ViewContainerRef }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"!renderAsList; else list\">\r\n <ng-container #single></ng-container>\r\n</ng-container>\r\n<ng-template #list>\r\n <div class=\"list-container\" cdkDropList (cdkDropListDropped)=\"moveListItem($event)\">\r\n <div
|
|
10328
|
+
], viewQueries: [{ propertyName: "singleViewContainer", first: true, predicate: ["single"], descendants: true, read: ViewContainerRef }, { propertyName: "listItemContainers", predicate: ["listItem"], descendants: true, read: ViewContainerRef }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"!renderAsList; else list\">\r\n <ng-container #single></ng-container>\r\n</ng-container>\r\n<ng-template #list>\r\n <div class=\"list-container\" cdkDropList (cdkDropListDropped)=\"moveListItem($event)\">\r\n <div\r\n class=\"list-item-row\"\r\n *ngFor=\"let item of listItems; trackBy: trackById\"\r\n cdkDrag\r\n [cdkDragData]=\"item\"\r\n >\r\n <ng-container #listItem></ng-container>\r\n <button\r\n class=\"btn btn-link btn-sm btn-warning\"\r\n *ngIf=\"!readonly\"\r\n (click)=\"removeListItem(item)\"\r\n [title]=\"'common.remove-item-from-list' | translate\"\r\n >\r\n <clr-icon shape=\"times\"></clr-icon>\r\n </button>\r\n <div class=\"flex-spacer\"></div>\r\n <div class=\"drag-handle\" cdkDragHandle [class.hidden]=\"readonly\">\r\n <clr-icon shape=\"drag-handle\" size=\"24\"></clr-icon>\r\n </div>\r\n </div>\r\n <button class=\"btn btn-secondary btn-sm\" (click)=\"addListItem()\" *ngIf=\"!readonly\">\r\n <clr-icon shape=\"plus\"></clr-icon> {{ 'common.add-item-to-list' | translate }}\r\n </button>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{flex:1}.list-container{border:1px solid var(--color-component-border-200);border-radius:3px;padding:12px}.list-item-row{font-size:13px;display:flex;align-items:center;margin:3px 0}.drag-placeholder{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-preview{font-size:13px;background-color:var(--color-component-bg-100);opacity:.8;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.drag-handle.hidden{display:none}.cdk-drag-placeholder{opacity:.1}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging .list-item-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$3.ClrDatagridItemsTrackBy, selector: "[ngForTrackBy]", inputs: ["ngForTrackBy"] }, { type: i3$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1$3.ClrIconCustomTag, selector: "clr-icon" }, { type: i3$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }], pipes: { "translate": i7.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10133
10329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DynamicFormInputComponent, decorators: [{
|
|
10134
10330
|
type: Component,
|
|
10135
10331
|
args: [{ selector: 'vdr-dynamic-form-input', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
@@ -10138,7 +10334,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
10138
10334
|
useExisting: DynamicFormInputComponent,
|
|
10139
10335
|
multi: true,
|
|
10140
10336
|
},
|
|
10141
|
-
], template: "<ng-container *ngIf=\"!renderAsList; else list\">\r\n <ng-container #single></ng-container>\r\n</ng-container>\r\n<ng-template #list>\r\n <div class=\"list-container\" cdkDropList (cdkDropListDropped)=\"moveListItem($event)\">\r\n <div
|
|
10337
|
+
], template: "<ng-container *ngIf=\"!renderAsList; else list\">\r\n <ng-container #single></ng-container>\r\n</ng-container>\r\n<ng-template #list>\r\n <div class=\"list-container\" cdkDropList (cdkDropListDropped)=\"moveListItem($event)\">\r\n <div\r\n class=\"list-item-row\"\r\n *ngFor=\"let item of listItems; trackBy: trackById\"\r\n cdkDrag\r\n [cdkDragData]=\"item\"\r\n >\r\n <ng-container #listItem></ng-container>\r\n <button\r\n class=\"btn btn-link btn-sm btn-warning\"\r\n *ngIf=\"!readonly\"\r\n (click)=\"removeListItem(item)\"\r\n [title]=\"'common.remove-item-from-list' | translate\"\r\n >\r\n <clr-icon shape=\"times\"></clr-icon>\r\n </button>\r\n <div class=\"flex-spacer\"></div>\r\n <div class=\"drag-handle\" cdkDragHandle [class.hidden]=\"readonly\">\r\n <clr-icon shape=\"drag-handle\" size=\"24\"></clr-icon>\r\n </div>\r\n </div>\r\n <button class=\"btn btn-secondary btn-sm\" (click)=\"addListItem()\" *ngIf=\"!readonly\">\r\n <clr-icon shape=\"plus\"></clr-icon> {{ 'common.add-item-to-list' | translate }}\r\n </button>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{flex:1}.list-container{border:1px solid var(--color-component-border-200);border-radius:3px;padding:12px}.list-item-row{font-size:13px;display:flex;align-items:center;margin:3px 0}.drag-placeholder{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-preview{font-size:13px;background-color:var(--color-component-bg-100);opacity:.8;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.drag-handle.hidden{display:none}.cdk-drag-placeholder{opacity:.1}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging .list-item-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
10142
10338
|
}], ctorParameters: function () { return [{ type: ComponentRegistryService }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }, { type: i0.Injector }]; }, propDecorators: { def: [{
|
|
10143
10339
|
type: Input
|
|
10144
10340
|
}], readonly: [{
|
|
@@ -11531,10 +11727,10 @@ class ProductSearchInputComponent {
|
|
|
11531
11727
|
}
|
|
11532
11728
|
}
|
|
11533
11729
|
ProductSearchInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProductSearchInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11534
|
-
ProductSearchInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ProductSearchInputComponent, selector: "vdr-product-search-input", inputs: { facetValueResults: "facetValueResults" }, outputs: { searchTermChange: "searchTermChange", facetValueChange: "facetValueChange" }, providers: [{ provide: SELECTION_MODEL_FACTORY, useValue: SingleSearchSelectionModelFactory }], viewQueries: [{ propertyName: "selectComponent", first: true, predicate: ["selectComponent"], descendants: true, static: true }], ngImport: i0, template: "<ng-select\r\n [addTag]=\"addTagFn\"\r\n [placeholder]=\"'catalog.search-product-name-or-code' | translate\"\r\n [items]=\"facetValueResults\"\r\n [searchFn]=\"filterFacetResults\"\r\n [hideSelected]=\"true\"\r\n [multiple]=\"true\"\r\n [markFirst]=\"false\"\r\n (change)=\"onSelectChange($event)\"\r\n #selectComponent\r\n>\r\n <ng-template ng-header-tmp>\r\n <div\r\n class=\"search-header\"\r\n *ngIf=\"selectComponent.searchTerm\"\r\n [class.selected]=\"isSearchHeaderSelected()\"\r\n (click)=\"selectComponent.selectTag()\"\r\n >\r\n {{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }}\r\n </div>\r\n </ng-template>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip\r\n [facetValue]=\"item.facetValue\"\r\n [removable]=\"true\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n </ng-container>\r\n <ng-container *ngIf=\"!item.facetValue\">\r\n <vdr-chip [icon]=\"'times'\" (iconClick)=\"clear(item)\">\"{{ item.label }}\"</vdr-chip>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\" let-search=\"searchTerm\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip [facetValue]=\"item.facetValue\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-container>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{margin-top:6px;display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;
|
|
11730
|
+
ProductSearchInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ProductSearchInputComponent, selector: "vdr-product-search-input", inputs: { facetValueResults: "facetValueResults" }, outputs: { searchTermChange: "searchTermChange", facetValueChange: "facetValueChange" }, providers: [{ provide: SELECTION_MODEL_FACTORY, useValue: SingleSearchSelectionModelFactory }], viewQueries: [{ propertyName: "selectComponent", first: true, predicate: ["selectComponent"], descendants: true, static: true }], ngImport: i0, template: "<ng-select\r\n [addTag]=\"addTagFn\"\r\n [placeholder]=\"'catalog.search-product-name-or-code' | translate\"\r\n [items]=\"facetValueResults\"\r\n [searchFn]=\"filterFacetResults\"\r\n [hideSelected]=\"true\"\r\n [multiple]=\"true\"\r\n [markFirst]=\"false\"\r\n (change)=\"onSelectChange($event)\"\r\n #selectComponent\r\n>\r\n <ng-template ng-header-tmp>\r\n <div\r\n class=\"search-header\"\r\n *ngIf=\"selectComponent.searchTerm\"\r\n [class.selected]=\"isSearchHeaderSelected()\"\r\n (click)=\"selectComponent.selectTag()\"\r\n >\r\n {{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }}\r\n </div>\r\n </ng-template>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip\r\n [facetValue]=\"item.facetValue\"\r\n [removable]=\"true\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n </ng-container>\r\n <ng-container *ngIf=\"!item.facetValue\">\r\n <vdr-chip [icon]=\"'times'\" (iconClick)=\"clear(item)\">\"{{ item.label }}\"</vdr-chip>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\" let-search=\"searchTerm\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip [facetValue]=\"item.facetValue\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-container>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{margin-top:6px;display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;margin-right:12px}.search-header{padding:8px 10px;border-bottom:1px solid var(--color-component-border-100);cursor:pointer}.search-header.selected,.search-header:hover{background-color:var(--color-component-bg-200)}\n"], components: [{ type: i2.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: FacetValueChipComponent, selector: "vdr-facet-value-chip", inputs: ["facetValue", "removable", "displayFacetName"], outputs: ["remove"] }, { type: ChipComponent, selector: "vdr-chip", inputs: ["icon", "invert", "colorFrom", "colorType"], outputs: ["iconClick"] }], directives: [{ type: i2.NgHeaderTemplateDirective, selector: "[ng-header-tmp]" }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgLabelTemplateDirective, selector: "[ng-label-tmp]" }, { type: i2.NgOptionTemplateDirective, selector: "[ng-option-tmp]" }], pipes: { "translate": i7.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11535
11731
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProductSearchInputComponent, decorators: [{
|
|
11536
11732
|
type: Component,
|
|
11537
|
-
args: [{ selector: 'vdr-product-search-input', changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: SELECTION_MODEL_FACTORY, useValue: SingleSearchSelectionModelFactory }], template: "<ng-select\r\n [addTag]=\"addTagFn\"\r\n [placeholder]=\"'catalog.search-product-name-or-code' | translate\"\r\n [items]=\"facetValueResults\"\r\n [searchFn]=\"filterFacetResults\"\r\n [hideSelected]=\"true\"\r\n [multiple]=\"true\"\r\n [markFirst]=\"false\"\r\n (change)=\"onSelectChange($event)\"\r\n #selectComponent\r\n>\r\n <ng-template ng-header-tmp>\r\n <div\r\n class=\"search-header\"\r\n *ngIf=\"selectComponent.searchTerm\"\r\n [class.selected]=\"isSearchHeaderSelected()\"\r\n (click)=\"selectComponent.selectTag()\"\r\n >\r\n {{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }}\r\n </div>\r\n </ng-template>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip\r\n [facetValue]=\"item.facetValue\"\r\n [removable]=\"true\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n </ng-container>\r\n <ng-container *ngIf=\"!item.facetValue\">\r\n <vdr-chip [icon]=\"'times'\" (iconClick)=\"clear(item)\">\"{{ item.label }}\"</vdr-chip>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\" let-search=\"searchTerm\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip [facetValue]=\"item.facetValue\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-container>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{margin-top:6px;display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;
|
|
11733
|
+
args: [{ selector: 'vdr-product-search-input', changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: SELECTION_MODEL_FACTORY, useValue: SingleSearchSelectionModelFactory }], template: "<ng-select\r\n [addTag]=\"addTagFn\"\r\n [placeholder]=\"'catalog.search-product-name-or-code' | translate\"\r\n [items]=\"facetValueResults\"\r\n [searchFn]=\"filterFacetResults\"\r\n [hideSelected]=\"true\"\r\n [multiple]=\"true\"\r\n [markFirst]=\"false\"\r\n (change)=\"onSelectChange($event)\"\r\n #selectComponent\r\n>\r\n <ng-template ng-header-tmp>\r\n <div\r\n class=\"search-header\"\r\n *ngIf=\"selectComponent.searchTerm\"\r\n [class.selected]=\"isSearchHeaderSelected()\"\r\n (click)=\"selectComponent.selectTag()\"\r\n >\r\n {{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }}\r\n </div>\r\n </ng-template>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip\r\n [facetValue]=\"item.facetValue\"\r\n [removable]=\"true\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n </ng-container>\r\n <ng-container *ngIf=\"!item.facetValue\">\r\n <vdr-chip [icon]=\"'times'\" (iconClick)=\"clear(item)\">\"{{ item.label }}\"</vdr-chip>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\" let-search=\"searchTerm\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip [facetValue]=\"item.facetValue\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-container>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{margin-top:6px;display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;margin-right:12px}.search-header{padding:8px 10px;border-bottom:1px solid var(--color-component-border-100);cursor:pointer}.search-header.selected,.search-header:hover{background-color:var(--color-component-bg-200)}\n"] }]
|
|
11538
11734
|
}], propDecorators: { facetValueResults: [{
|
|
11539
11735
|
type: Input
|
|
11540
11736
|
}], searchTermChange: [{
|
|
@@ -11861,10 +12057,10 @@ class ProductVariantSelectorComponent {
|
|
|
11861
12057
|
}
|
|
11862
12058
|
}
|
|
11863
12059
|
ProductVariantSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProductVariantSelectorComponent, deps: [{ token: DataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11864
|
-
ProductVariantSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ProductVariantSelectorComponent, selector: "vdr-product-variant-selector", outputs: { productSelected: "productSelected" }, viewQueries: [{ propertyName: "ngSelect", first: true, predicate: ["autoComplete"], descendants: true, static: true }], ngImport: i0, template: "<ng-select\r\n #autoComplete\r\n [items]=\"searchResults$ | async\"\r\n [addTag]=\"false\"\r\n [multiple]=\"false\"\r\n [hideSelected]=\"true\"\r\n [loading]=\"searchLoading\"\r\n [typeahead]=\"searchInput$\"\r\n [appendTo]=\"'body'\"\r\n [placeholder]=\"'settings.search-by-product-name-or-sku' | translate\"\r\n (change)=\"selectResult($event)\"\r\n>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <img [src]=\"item.productAsset | assetPreview: 32\">\r\n {{ item.productVariantName }}\r\n <small class=\"sku\">{{ item.sku }}</small>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{display:block}.sku{margin-left:12px;color:var(--color-grey-500)}\n"], components: [{ type: i2.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }], directives: [{ type: i2.NgOptionTemplateDirective, selector: "[ng-option-tmp]" }], pipes: { "async": i6.AsyncPipe, "translate": i7.TranslatePipe, "assetPreview": AssetPreviewPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12060
|
+
ProductVariantSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ProductVariantSelectorComponent, selector: "vdr-product-variant-selector", outputs: { productSelected: "productSelected" }, viewQueries: [{ propertyName: "ngSelect", first: true, predicate: ["autoComplete"], descendants: true, static: true }], ngImport: i0, template: "<ng-select\r\n #autoComplete\r\n [items]=\"searchResults$ | async\"\r\n [addTag]=\"false\"\r\n [multiple]=\"false\"\r\n [hideSelected]=\"true\"\r\n [loading]=\"searchLoading\"\r\n [typeahead]=\"searchInput$\"\r\n [appendTo]=\"'body'\"\r\n [placeholder]=\"'settings.search-by-product-name-or-sku' | translate\"\r\n (change)=\"selectResult($event)\"\r\n>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <img [src]=\"item.productAsset | assetPreview: 32\">\r\n {{ item.productVariantName }}\r\n <small class=\"sku\">{{ item.sku }}</small>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{display:block}.sku{margin-left:12px;color:var(--color-grey-500)}img{border-radius:var(--border-radius-img)}\n"], components: [{ type: i2.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }], directives: [{ type: i2.NgOptionTemplateDirective, selector: "[ng-option-tmp]" }], pipes: { "async": i6.AsyncPipe, "translate": i7.TranslatePipe, "assetPreview": AssetPreviewPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11865
12061
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProductVariantSelectorComponent, decorators: [{
|
|
11866
12062
|
type: Component,
|
|
11867
|
-
args: [{ selector: 'vdr-product-variant-selector', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-select\r\n #autoComplete\r\n [items]=\"searchResults$ | async\"\r\n [addTag]=\"false\"\r\n [multiple]=\"false\"\r\n [hideSelected]=\"true\"\r\n [loading]=\"searchLoading\"\r\n [typeahead]=\"searchInput$\"\r\n [appendTo]=\"'body'\"\r\n [placeholder]=\"'settings.search-by-product-name-or-sku' | translate\"\r\n (change)=\"selectResult($event)\"\r\n>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <img [src]=\"item.productAsset | assetPreview: 32\">\r\n {{ item.productVariantName }}\r\n <small class=\"sku\">{{ item.sku }}</small>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{display:block}.sku{margin-left:12px;color:var(--color-grey-500)}\n"] }]
|
|
12063
|
+
args: [{ selector: 'vdr-product-variant-selector', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-select\r\n #autoComplete\r\n [items]=\"searchResults$ | async\"\r\n [addTag]=\"false\"\r\n [multiple]=\"false\"\r\n [hideSelected]=\"true\"\r\n [loading]=\"searchLoading\"\r\n [typeahead]=\"searchInput$\"\r\n [appendTo]=\"'body'\"\r\n [placeholder]=\"'settings.search-by-product-name-or-sku' | translate\"\r\n (change)=\"selectResult($event)\"\r\n>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <img [src]=\"item.productAsset | assetPreview: 32\">\r\n {{ item.productVariantName }}\r\n <small class=\"sku\">{{ item.sku }}</small>\r\n </ng-template>\r\n</ng-select>\r\n", styles: [":host{display:block}.sku{margin-left:12px;color:var(--color-grey-500)}img{border-radius:var(--border-radius-img)}\n"] }]
|
|
11868
12064
|
}], ctorParameters: function () { return [{ type: DataService }]; }, propDecorators: { productSelected: [{
|
|
11869
12065
|
type: Output
|
|
11870
12066
|
}], ngSelect: [{
|
|
@@ -15292,16 +15488,12 @@ class ActionBarLeftComponent {
|
|
|
15292
15488
|
}
|
|
15293
15489
|
}
|
|
15294
15490
|
ActionBarLeftComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ActionBarLeftComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15295
|
-
ActionBarLeftComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ActionBarLeftComponent, selector: "vdr-ab-left", inputs: { grow: "grow" }, ngImport: i0, template: `
|
|
15296
|
-
<ng-content></ng-content>
|
|
15297
|
-
`, isInline: true });
|
|
15491
|
+
ActionBarLeftComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ActionBarLeftComponent, selector: "vdr-ab-left", inputs: { grow: "grow" }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true });
|
|
15298
15492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ActionBarLeftComponent, decorators: [{
|
|
15299
15493
|
type: Component,
|
|
15300
15494
|
args: [{
|
|
15301
15495
|
selector: 'vdr-ab-left',
|
|
15302
|
-
template: `
|
|
15303
|
-
<ng-content></ng-content>
|
|
15304
|
-
`,
|
|
15496
|
+
template: ` <ng-content></ng-content> `,
|
|
15305
15497
|
}]
|
|
15306
15498
|
}], propDecorators: { grow: [{
|
|
15307
15499
|
type: Input
|
|
@@ -15312,16 +15504,12 @@ class ActionBarRightComponent {
|
|
|
15312
15504
|
}
|
|
15313
15505
|
}
|
|
15314
15506
|
ActionBarRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ActionBarRightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15315
|
-
ActionBarRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ActionBarRightComponent, selector: "vdr-ab-right", inputs: { grow: "grow" }, ngImport: i0, template: `
|
|
15316
|
-
<ng-content></ng-content>
|
|
15317
|
-
`, isInline: true });
|
|
15507
|
+
ActionBarRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ActionBarRightComponent, selector: "vdr-ab-right", inputs: { grow: "grow" }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true });
|
|
15318
15508
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ActionBarRightComponent, decorators: [{
|
|
15319
15509
|
type: Component,
|
|
15320
15510
|
args: [{
|
|
15321
15511
|
selector: 'vdr-ab-right',
|
|
15322
|
-
template: `
|
|
15323
|
-
<ng-content></ng-content>
|
|
15324
|
-
`,
|
|
15512
|
+
template: ` <ng-content></ng-content> `,
|
|
15325
15513
|
}]
|
|
15326
15514
|
}], propDecorators: { grow: [{
|
|
15327
15515
|
type: Input
|
|
@@ -15329,10 +15517,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
15329
15517
|
class ActionBarComponent {
|
|
15330
15518
|
}
|
|
15331
15519
|
ActionBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ActionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15332
|
-
ActionBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ActionBarComponent, selector: "vdr-action-bar", queries: [{ propertyName: "left", first: true, predicate: ActionBarLeftComponent, descendants: true }, { propertyName: "right", first: true, predicate: ActionBarRightComponent, descendants: true }], ngImport: i0, template: "<div class=\"left-content\" [class.grow]=\"left?.grow\"><ng-content select=\"vdr-ab-left\"></ng-content></div>\r\n<div class=\"right-content\" [class.grow]=\"right?.grow\"><ng-content select=\"vdr-ab-right\"></ng-content></div>\r\n", styles: [":host{display:flex;justify-content:space-between;align-items:baseline;background-color:var(--color-component-bg-100);position:sticky;top:-24px;z-index:25;border-bottom:1px solid var(--color-component-border-200)}:host>.grow{flex:1}\n"] });
|
|
15520
|
+
ActionBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ActionBarComponent, selector: "vdr-action-bar", queries: [{ propertyName: "left", first: true, predicate: ActionBarLeftComponent, descendants: true }, { propertyName: "right", first: true, predicate: ActionBarRightComponent, descendants: true }], ngImport: i0, template: "<div class=\"left-content\" [class.grow]=\"left?.grow\"><ng-content select=\"vdr-ab-left\"></ng-content></div>\r\n<div class=\"right-content\" [class.grow]=\"right?.grow\"><ng-content select=\"vdr-ab-right\"></ng-content></div>\r\n", styles: [":host{display:flex;justify-content:space-between;align-items:baseline;background-color:var(--color-component-bg-100);position:sticky;top:-24px;z-index:25;border-bottom:1px solid var(--color-component-border-200);flex-direction:column-reverse}:host>.grow{flex:1}:host .right-content{width:100%;display:flex;justify-content:flex-end}:host ::ng-deep vdr-ab-right>*:last-child{margin-right:0}@media screen and (min-width: 768px){:host{flex-direction:row}:host .right-content{width:initial}}\n"] });
|
|
15333
15521
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ActionBarComponent, decorators: [{
|
|
15334
15522
|
type: Component,
|
|
15335
|
-
args: [{ selector: 'vdr-action-bar', template: "<div class=\"left-content\" [class.grow]=\"left?.grow\"><ng-content select=\"vdr-ab-left\"></ng-content></div>\r\n<div class=\"right-content\" [class.grow]=\"right?.grow\"><ng-content select=\"vdr-ab-right\"></ng-content></div>\r\n", styles: [":host{display:flex;justify-content:space-between;align-items:baseline;background-color:var(--color-component-bg-100);position:sticky;top:-24px;z-index:25;border-bottom:1px solid var(--color-component-border-200)}:host>.grow{flex:1}\n"] }]
|
|
15523
|
+
args: [{ selector: 'vdr-action-bar', template: "<div class=\"left-content\" [class.grow]=\"left?.grow\"><ng-content select=\"vdr-ab-left\"></ng-content></div>\r\n<div class=\"right-content\" [class.grow]=\"right?.grow\"><ng-content select=\"vdr-ab-right\"></ng-content></div>\r\n", styles: [":host{display:flex;justify-content:space-between;align-items:baseline;background-color:var(--color-component-bg-100);position:sticky;top:-24px;z-index:25;border-bottom:1px solid var(--color-component-border-200);flex-direction:column-reverse}:host>.grow{flex:1}:host .right-content{width:100%;display:flex;justify-content:flex-end}:host ::ng-deep vdr-ab-right>*:last-child{margin-right:0}@media screen and (min-width: 768px){:host{flex-direction:row}:host .right-content{width:initial}}\n"] }]
|
|
15336
15524
|
}], propDecorators: { left: [{
|
|
15337
15525
|
type: ContentChild,
|
|
15338
15526
|
args: [ActionBarLeftComponent]
|
|
@@ -15914,10 +16102,10 @@ class DataTableComponent {
|
|
|
15914
16102
|
}
|
|
15915
16103
|
}
|
|
15916
16104
|
DataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataTableComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
15917
|
-
DataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: DataTableComponent, selector: "vdr-data-table", inputs: { items: "items", itemsPerPage: "itemsPerPage", currentPage: "currentPage", totalItems: "totalItems", emptyStateLabel: "emptyStateLabel", selectionManager: "selectionManager", allSelected: "allSelected", isRowSelectedFn: "isRowSelectedFn" }, outputs: { pageChange: "pageChange", itemsPerPageChange: "itemsPerPageChange", allSelectChange: "allSelectChange", rowSelectChange: "rowSelectChange" }, providers: [PaginationService], queries: [{ propertyName: "columns", predicate: DataTableColumnComponent }, { propertyName: "templateRefs", predicate: TemplateRef }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"!items || (items && items.length); else emptyPlaceholder\">\r\n <div class=\"bulk-actions\">\r\n <ng-content select=\"vdr-bulk-action-menu\"></ng-content>\r\n </div>\r\n <table class=\"table\" [class.no-select]=\"disableSelect\">\r\n <thead [class.items-selected]=\"selectionManager?.selection.length\">\r\n <tr>\r\n <th *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"allSelected ? allSelected : selectionManager?.areAllCurrentItemsSelected()\"\r\n (change)=\"onToggleAllClick()\"\r\n />\r\n </th>\r\n <th *ngFor=\"let header of columns?.toArray()\" class=\"left align-middle\" [class.expand]=\"header.expand\">\r\n <ng-container *ngTemplateOutlet=\"header.template\"></ng-container>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let item of items\r\n | paginate\r\n : {\r\n itemsPerPage: itemsPerPage,\r\n currentPage: currentPage,\r\n totalItems: totalItems\r\n };\r\n index as i;\r\n trackBy: trackByFn\r\n \"\r\n >\r\n <td *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle selection-col\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"isRowSelectedFn ? isRowSelectedFn(item) : selectionManager?.isSelected(item)\"\r\n (click)=\"onRowClick(item, $event)\"\r\n />\r\n </td>\r\n <ng-container\r\n *ngTemplateOutlet=\"rowTemplate; context: { item: item, index: i }\"\r\n ></ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <div class=\"table-footer\">\r\n <vdr-items-per-page-controls\r\n *ngIf=\"totalItems\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n (itemsPerPageChange)=\"itemsPerPageChange.emit($event)\"\r\n ></vdr-items-per-page-controls>\r\n <div *ngIf=\"totalItems\" class=\"p5\">\r\n {{ 'common.total-items' | translate: { currentStart, currentEnd, totalItems } }}\r\n </div>\r\n\r\n <vdr-pagination-controls\r\n *ngIf=\"totalItems\"\r\n [currentPage]=\"currentPage\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n [totalItems]=\"totalItems\"\r\n (pageChange)=\"pageChange.emit($event)\"\r\n ></vdr-pagination-controls>\r\n </div>\r\n</ng-container>\r\n<ng-template #emptyPlaceholder>\r\n <vdr-empty-placeholder [emptyStateLabel]=\"emptyStateLabel\"></vdr-empty-placeholder>\r\n</ng-template>\r\n", styles: [":host{display:block;max-width:100%;overflow:auto;position:relative}.bulk-actions{position:absolute;left:50px;top:30px;z-index:2}table.no-select{-webkit-user-select:none;user-select:none}thead th{position:sticky;top:24px;z-index:1}thead th.expand{width:100%}thead.items-selected tr th{color:transparent}.selection-col{width:24px}.table-footer{display:flex;align-items:baseline;justify-content:space-between;margin-top:6px}\n"], components: [{ type: ItemsPerPageControlsComponent, selector: "vdr-items-per-page-controls", inputs: ["itemsPerPage"], outputs: ["itemsPerPageChange"] }, { type: PaginationControlsComponent, selector: "vdr-pagination-controls", inputs: ["id", "currentPage", "itemsPerPage", "totalItems"], outputs: ["pageChange"] }, { type: EmptyPlaceholderComponent, selector: "vdr-empty-placeholder", inputs: ["emptyStateLabel"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FormFieldControlDirective, selector: "input, textarea, select" }, { type: i1$3.ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$3.ClrDatagridItemsTrackBy, selector: "[ngForTrackBy]", inputs: ["ngForTrackBy"] }], pipes: { "paginate": i1$5.PaginatePipe, "translate": i7.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16105
|
+
DataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: DataTableComponent, selector: "vdr-data-table", inputs: { items: "items", itemsPerPage: "itemsPerPage", currentPage: "currentPage", totalItems: "totalItems", emptyStateLabel: "emptyStateLabel", selectionManager: "selectionManager", allSelected: "allSelected", isRowSelectedFn: "isRowSelectedFn" }, outputs: { pageChange: "pageChange", itemsPerPageChange: "itemsPerPageChange", allSelectChange: "allSelectChange", rowSelectChange: "rowSelectChange" }, providers: [PaginationService], queries: [{ propertyName: "columns", predicate: DataTableColumnComponent }, { propertyName: "templateRefs", predicate: TemplateRef }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"!items || (items && items.length); else emptyPlaceholder\">\r\n <div class=\"bulk-actions\">\r\n <ng-content select=\"vdr-bulk-action-menu\"></ng-content>\r\n </div>\r\n <table class=\"table\" [class.no-select]=\"disableSelect\">\r\n <thead [class.items-selected]=\"selectionManager?.selection.length\">\r\n <tr>\r\n <th *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"allSelected ? allSelected : selectionManager?.areAllCurrentItemsSelected()\"\r\n (change)=\"onToggleAllClick()\"\r\n />\r\n </th>\r\n <th *ngFor=\"let header of columns?.toArray()\" class=\"left align-middle\" [class.expand]=\"header.expand\">\r\n <ng-container *ngTemplateOutlet=\"header.template\"></ng-container>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let item of items\r\n | paginate\r\n : {\r\n itemsPerPage: itemsPerPage,\r\n currentPage: currentPage,\r\n totalItems: totalItems\r\n };\r\n index as i;\r\n trackBy: trackByFn\r\n \"\r\n >\r\n <td *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle selection-col\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"isRowSelectedFn ? isRowSelectedFn(item) : selectionManager?.isSelected(item)\"\r\n (click)=\"onRowClick(item, $event)\"\r\n />\r\n </td>\r\n <ng-container\r\n *ngTemplateOutlet=\"rowTemplate; context: { item: item, index: i }\"\r\n ></ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <div class=\"table-footer\">\r\n <vdr-items-per-page-controls\r\n *ngIf=\"totalItems\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n (itemsPerPageChange)=\"itemsPerPageChange.emit($event)\"\r\n ></vdr-items-per-page-controls>\r\n <div *ngIf=\"totalItems\" class=\"p5\">\r\n {{ 'common.total-items' | translate: { currentStart, currentEnd, totalItems } }}\r\n </div>\r\n\r\n <vdr-pagination-controls\r\n *ngIf=\"totalItems\"\r\n [currentPage]=\"currentPage\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n [totalItems]=\"totalItems\"\r\n (pageChange)=\"pageChange.emit($event)\"\r\n ></vdr-pagination-controls>\r\n </div>\r\n</ng-container>\r\n<ng-template #emptyPlaceholder>\r\n <vdr-empty-placeholder [emptyStateLabel]=\"emptyStateLabel\"></vdr-empty-placeholder>\r\n</ng-template>\r\n", styles: [":host{display:block;max-width:100%;overflow:auto;position:relative}.bulk-actions{position:absolute;left:50px;top:30px;z-index:2}table.table{max-width:100vw;overflow-x:auto}table.no-select{-webkit-user-select:none;user-select:none}thead th{position:sticky;top:24px;z-index:1}thead th.expand{width:100%}thead.items-selected tr th{color:transparent}.selection-col{width:24px}.table-footer{display:flex;align-items:baseline;justify-content:space-between;margin-top:6px}\n"], components: [{ type: ItemsPerPageControlsComponent, selector: "vdr-items-per-page-controls", inputs: ["itemsPerPage"], outputs: ["itemsPerPageChange"] }, { type: PaginationControlsComponent, selector: "vdr-pagination-controls", inputs: ["id", "currentPage", "itemsPerPage", "totalItems"], outputs: ["pageChange"] }, { type: EmptyPlaceholderComponent, selector: "vdr-empty-placeholder", inputs: ["emptyStateLabel"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FormFieldControlDirective, selector: "input, textarea, select" }, { type: i1$3.ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$3.ClrDatagridItemsTrackBy, selector: "[ngForTrackBy]", inputs: ["ngForTrackBy"] }], pipes: { "paginate": i1$5.PaginatePipe, "translate": i7.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15918
16106
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataTableComponent, decorators: [{
|
|
15919
16107
|
type: Component,
|
|
15920
|
-
args: [{ selector: 'vdr-data-table', changeDetection: ChangeDetectionStrategy.OnPush, providers: [PaginationService], template: "<ng-container *ngIf=\"!items || (items && items.length); else emptyPlaceholder\">\r\n <div class=\"bulk-actions\">\r\n <ng-content select=\"vdr-bulk-action-menu\"></ng-content>\r\n </div>\r\n <table class=\"table\" [class.no-select]=\"disableSelect\">\r\n <thead [class.items-selected]=\"selectionManager?.selection.length\">\r\n <tr>\r\n <th *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"allSelected ? allSelected : selectionManager?.areAllCurrentItemsSelected()\"\r\n (change)=\"onToggleAllClick()\"\r\n />\r\n </th>\r\n <th *ngFor=\"let header of columns?.toArray()\" class=\"left align-middle\" [class.expand]=\"header.expand\">\r\n <ng-container *ngTemplateOutlet=\"header.template\"></ng-container>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let item of items\r\n | paginate\r\n : {\r\n itemsPerPage: itemsPerPage,\r\n currentPage: currentPage,\r\n totalItems: totalItems\r\n };\r\n index as i;\r\n trackBy: trackByFn\r\n \"\r\n >\r\n <td *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle selection-col\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"isRowSelectedFn ? isRowSelectedFn(item) : selectionManager?.isSelected(item)\"\r\n (click)=\"onRowClick(item, $event)\"\r\n />\r\n </td>\r\n <ng-container\r\n *ngTemplateOutlet=\"rowTemplate; context: { item: item, index: i }\"\r\n ></ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <div class=\"table-footer\">\r\n <vdr-items-per-page-controls\r\n *ngIf=\"totalItems\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n (itemsPerPageChange)=\"itemsPerPageChange.emit($event)\"\r\n ></vdr-items-per-page-controls>\r\n <div *ngIf=\"totalItems\" class=\"p5\">\r\n {{ 'common.total-items' | translate: { currentStart, currentEnd, totalItems } }}\r\n </div>\r\n\r\n <vdr-pagination-controls\r\n *ngIf=\"totalItems\"\r\n [currentPage]=\"currentPage\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n [totalItems]=\"totalItems\"\r\n (pageChange)=\"pageChange.emit($event)\"\r\n ></vdr-pagination-controls>\r\n </div>\r\n</ng-container>\r\n<ng-template #emptyPlaceholder>\r\n <vdr-empty-placeholder [emptyStateLabel]=\"emptyStateLabel\"></vdr-empty-placeholder>\r\n</ng-template>\r\n", styles: [":host{display:block;max-width:100%;overflow:auto;position:relative}.bulk-actions{position:absolute;left:50px;top:30px;z-index:2}table.no-select{-webkit-user-select:none;user-select:none}thead th{position:sticky;top:24px;z-index:1}thead th.expand{width:100%}thead.items-selected tr th{color:transparent}.selection-col{width:24px}.table-footer{display:flex;align-items:baseline;justify-content:space-between;margin-top:6px}\n"] }]
|
|
16108
|
+
args: [{ selector: 'vdr-data-table', changeDetection: ChangeDetectionStrategy.OnPush, providers: [PaginationService], template: "<ng-container *ngIf=\"!items || (items && items.length); else emptyPlaceholder\">\r\n <div class=\"bulk-actions\">\r\n <ng-content select=\"vdr-bulk-action-menu\"></ng-content>\r\n </div>\r\n <table class=\"table\" [class.no-select]=\"disableSelect\">\r\n <thead [class.items-selected]=\"selectionManager?.selection.length\">\r\n <tr>\r\n <th *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"allSelected ? allSelected : selectionManager?.areAllCurrentItemsSelected()\"\r\n (change)=\"onToggleAllClick()\"\r\n />\r\n </th>\r\n <th *ngFor=\"let header of columns?.toArray()\" class=\"left align-middle\" [class.expand]=\"header.expand\">\r\n <ng-container *ngTemplateOutlet=\"header.template\"></ng-container>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let item of items\r\n | paginate\r\n : {\r\n itemsPerPage: itemsPerPage,\r\n currentPage: currentPage,\r\n totalItems: totalItems\r\n };\r\n index as i;\r\n trackBy: trackByFn\r\n \"\r\n >\r\n <td *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle selection-col\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"isRowSelectedFn ? isRowSelectedFn(item) : selectionManager?.isSelected(item)\"\r\n (click)=\"onRowClick(item, $event)\"\r\n />\r\n </td>\r\n <ng-container\r\n *ngTemplateOutlet=\"rowTemplate; context: { item: item, index: i }\"\r\n ></ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <div class=\"table-footer\">\r\n <vdr-items-per-page-controls\r\n *ngIf=\"totalItems\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n (itemsPerPageChange)=\"itemsPerPageChange.emit($event)\"\r\n ></vdr-items-per-page-controls>\r\n <div *ngIf=\"totalItems\" class=\"p5\">\r\n {{ 'common.total-items' | translate: { currentStart, currentEnd, totalItems } }}\r\n </div>\r\n\r\n <vdr-pagination-controls\r\n *ngIf=\"totalItems\"\r\n [currentPage]=\"currentPage\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n [totalItems]=\"totalItems\"\r\n (pageChange)=\"pageChange.emit($event)\"\r\n ></vdr-pagination-controls>\r\n </div>\r\n</ng-container>\r\n<ng-template #emptyPlaceholder>\r\n <vdr-empty-placeholder [emptyStateLabel]=\"emptyStateLabel\"></vdr-empty-placeholder>\r\n</ng-template>\r\n", styles: [":host{display:block;max-width:100%;overflow:auto;position:relative}.bulk-actions{position:absolute;left:50px;top:30px;z-index:2}table.table{max-width:100vw;overflow-x:auto}table.no-select{-webkit-user-select:none;user-select:none}thead th{position:sticky;top:24px;z-index:1}thead th.expand{width:100%}thead.items-selected tr th{color:transparent}.selection-col{width:24px}.table-footer{display:flex;align-items:baseline;justify-content:space-between;margin-top:6px}\n"] }]
|
|
15921
16109
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { items: [{
|
|
15922
16110
|
type: Input
|
|
15923
16111
|
}], itemsPerPage: [{
|
|
@@ -16199,10 +16387,10 @@ class LanguageSelectorComponent {
|
|
|
16199
16387
|
}
|
|
16200
16388
|
}
|
|
16201
16389
|
LanguageSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LanguageSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16202
|
-
LanguageSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: LanguageSelectorComponent, selector: "vdr-language-selector", inputs: { currentLanguageCode: "currentLanguageCode", availableLanguageCodes: "availableLanguageCodes", disabled: "disabled" }, outputs: { languageCodeChange: "languageCodeChange" }, ngImport: i0, template: "<ng-container *ngIf=\"1 < availableLanguageCodes?.length\">\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-sm
|
|
16390
|
+
LanguageSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: LanguageSelectorComponent, selector: "vdr-language-selector", inputs: { currentLanguageCode: "currentLanguageCode", availableLanguageCodes: "availableLanguageCodes", disabled: "disabled" }, outputs: { languageCodeChange: "languageCodeChange" }, ngImport: i0, template: "<ng-container *ngIf=\"1 < availableLanguageCodes?.length\">\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-sm\" vdrDropdownTrigger [disabled]=\"disabled\">\r\n <clr-icon shape=\"world\"></clr-icon>\r\n {{ 'common.language' | translate }}: {{ currentLanguageCode | localeLanguageName | uppercase }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n *ngFor=\"let code of availableLanguageCodes\"\r\n (click)=\"languageCodeChange.emit(code)\"\r\n vdrDropdownItem\r\n >\r\n <span>{{ code | localeLanguageName }}</span> <span class=\"code ml2\">{{ code }}</span>\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n</ng-container>\r\n", styles: [".code{color:var(--color-grey-400)}\n"], components: [{ type: DropdownComponent, selector: "vdr-dropdown", inputs: ["manualToggle"] }, { type: DropdownMenuComponent, selector: "vdr-dropdown-menu", inputs: ["vdrPosition", "customClasses"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DropdownTriggerDirective, selector: "[vdrDropdownTrigger]" }, { type: i1$3.ClrIconCustomTag, selector: "clr-icon" }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DropdownItemDirective, selector: "[vdrDropdownItem]" }], pipes: { "translate": i7.TranslatePipe, "uppercase": i6.UpperCasePipe, "localeLanguageName": LocaleLanguageNamePipe } });
|
|
16203
16391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LanguageSelectorComponent, decorators: [{
|
|
16204
16392
|
type: Component,
|
|
16205
|
-
args: [{ selector: 'vdr-language-selector', template: "<ng-container *ngIf=\"1 < availableLanguageCodes?.length\">\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-sm
|
|
16393
|
+
args: [{ selector: 'vdr-language-selector', template: "<ng-container *ngIf=\"1 < availableLanguageCodes?.length\">\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-sm\" vdrDropdownTrigger [disabled]=\"disabled\">\r\n <clr-icon shape=\"world\"></clr-icon>\r\n {{ 'common.language' | translate }}: {{ currentLanguageCode | localeLanguageName | uppercase }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n *ngFor=\"let code of availableLanguageCodes\"\r\n (click)=\"languageCodeChange.emit(code)\"\r\n vdrDropdownItem\r\n >\r\n <span>{{ code | localeLanguageName }}</span> <span class=\"code ml2\">{{ code }}</span>\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n</ng-container>\r\n", styles: [".code{color:var(--color-grey-400)}\n"] }]
|
|
16206
16394
|
}], propDecorators: { currentLanguageCode: [{
|
|
16207
16395
|
type: Input
|
|
16208
16396
|
}], availableLanguageCodes: [{
|
|
@@ -16217,6 +16405,7 @@ class StateI18nTokenPipe {
|
|
|
16217
16405
|
constructor() {
|
|
16218
16406
|
this.stateI18nTokens = {
|
|
16219
16407
|
Created: marker('state.created'),
|
|
16408
|
+
Draft: marker('state.draft'),
|
|
16220
16409
|
AddingItems: marker('state.adding-items'),
|
|
16221
16410
|
ArrangingPayment: marker('state.arranging-payment'),
|
|
16222
16411
|
PaymentAuthorized: marker('state.payment-authorized'),
|
|
@@ -16279,6 +16468,7 @@ class OrderStateLabelComponent {
|
|
|
16279
16468
|
case 'Delivered':
|
|
16280
16469
|
return 'success';
|
|
16281
16470
|
case 'Cancelled':
|
|
16471
|
+
case 'Draft':
|
|
16282
16472
|
return 'error';
|
|
16283
16473
|
case 'PaymentAuthorized':
|
|
16284
16474
|
case 'PaymentSettled':
|
|
@@ -16299,6 +16489,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
16299
16489
|
type: Input
|
|
16300
16490
|
}] } });
|
|
16301
16491
|
|
|
16492
|
+
class RadioCardFieldsetComponent {
|
|
16493
|
+
constructor(changeDetector) {
|
|
16494
|
+
this.changeDetector = changeDetector;
|
|
16495
|
+
this.selectItem = new EventEmitter();
|
|
16496
|
+
this.groupName = 'radio-group-' + Math.random().toString(36);
|
|
16497
|
+
this.selectedIdChange$ = new Subject();
|
|
16498
|
+
this.focussedId = undefined;
|
|
16499
|
+
this.idChange$ = new Subject();
|
|
16500
|
+
}
|
|
16501
|
+
ngOnInit() {
|
|
16502
|
+
this.subscription = this.idChange$
|
|
16503
|
+
.pipe(throttleTime(200))
|
|
16504
|
+
.subscribe(item => this.selectItem.emit(item));
|
|
16505
|
+
}
|
|
16506
|
+
ngOnChanges(changes) {
|
|
16507
|
+
if ('selectedItemId' in changes) {
|
|
16508
|
+
this.selectedIdChange$.next(this.selectedItemId);
|
|
16509
|
+
}
|
|
16510
|
+
}
|
|
16511
|
+
ngOnDestroy() {
|
|
16512
|
+
if (this.subscription) {
|
|
16513
|
+
this.subscription.unsubscribe();
|
|
16514
|
+
}
|
|
16515
|
+
}
|
|
16516
|
+
isSelected(item) {
|
|
16517
|
+
return this.selectedItemId === this.idFn(item);
|
|
16518
|
+
}
|
|
16519
|
+
isFocussed(item) {
|
|
16520
|
+
return this.focussedId === this.idFn(item);
|
|
16521
|
+
}
|
|
16522
|
+
selectChanged(item) {
|
|
16523
|
+
this.idChange$.next(item);
|
|
16524
|
+
}
|
|
16525
|
+
setFocussedId(item) {
|
|
16526
|
+
this.focussedId = item && this.idFn(item);
|
|
16527
|
+
}
|
|
16528
|
+
}
|
|
16529
|
+
RadioCardFieldsetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RadioCardFieldsetComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
16530
|
+
RadioCardFieldsetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: RadioCardFieldsetComponent, selector: "vdr-radio-card-fieldset", inputs: { selectedItemId: "selectedItemId", idFn: "idFn" }, outputs: { selectItem: "selectItem" }, usesOnChanges: true, ngImport: i0, template: `<fieldset><ng-content></ng-content></fieldset> `, isInline: true, styles: ["fieldset{display:flex;align-items:flex-start}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RadioCardFieldsetComponent, decorators: [{
|
|
16532
|
+
type: Component,
|
|
16533
|
+
args: [{ selector: 'vdr-radio-card-fieldset', template: `<fieldset><ng-content></ng-content></fieldset> `, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["fieldset{display:flex;align-items:flex-start}\n"] }]
|
|
16534
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectedItemId: [{
|
|
16535
|
+
type: Input
|
|
16536
|
+
}], idFn: [{
|
|
16537
|
+
type: Input
|
|
16538
|
+
}], selectItem: [{
|
|
16539
|
+
type: Output
|
|
16540
|
+
}] } });
|
|
16541
|
+
|
|
16542
|
+
class RadioCardComponent {
|
|
16543
|
+
constructor(fieldset, changeDetector) {
|
|
16544
|
+
this.fieldset = fieldset;
|
|
16545
|
+
this.changeDetector = changeDetector;
|
|
16546
|
+
this.idChange$ = new Subject();
|
|
16547
|
+
this.name = this.fieldset.groupName;
|
|
16548
|
+
}
|
|
16549
|
+
ngOnInit() {
|
|
16550
|
+
this.subscription = this.fieldset.selectedIdChange$.subscribe(id => {
|
|
16551
|
+
this.changeDetector.markForCheck();
|
|
16552
|
+
});
|
|
16553
|
+
}
|
|
16554
|
+
ngOnDestroy() {
|
|
16555
|
+
if (this.subscription) {
|
|
16556
|
+
this.subscription.unsubscribe();
|
|
16557
|
+
}
|
|
16558
|
+
}
|
|
16559
|
+
isSelected(item) {
|
|
16560
|
+
return this.fieldset.isSelected(item);
|
|
16561
|
+
}
|
|
16562
|
+
isFocussed(item) {
|
|
16563
|
+
return this.fieldset.isFocussed(item);
|
|
16564
|
+
}
|
|
16565
|
+
selectChanged(item) {
|
|
16566
|
+
this.fieldset.selectChanged(item);
|
|
16567
|
+
}
|
|
16568
|
+
setFocussedId(item) {
|
|
16569
|
+
this.fieldset.setFocussedId(item);
|
|
16570
|
+
}
|
|
16571
|
+
getItemId(item) {
|
|
16572
|
+
return this.fieldset.idFn(item);
|
|
16573
|
+
}
|
|
16574
|
+
}
|
|
16575
|
+
RadioCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RadioCardComponent, deps: [{ token: RadioCardFieldsetComponent }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
16576
|
+
RadioCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: RadioCardComponent, selector: "vdr-radio-card", inputs: { item: "item" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true }], exportAs: ["VdrRadioCard"], ngImport: i0, template: "<label\r\n [ngClass]=\"{\r\n 'selected': isSelected(item),\r\n 'focussed': isFocussed(item)\r\n }\"\r\n class=\"radio-card\"\r\n>\r\n <input\r\n type=\"radio\"\r\n [name]=\"name\"\r\n [value]=\"getItemId(item)\"\r\n class=\"hidden\"\r\n (focus)=\"setFocussedId(item)\"\r\n (blur)=\"setFocussedId(undefined)\"\r\n (change)=\"selectChanged(item)\"\r\n />\r\n <vdr-select-toggle [selected]=\"isSelected(item)\" size=\"small\"></vdr-select-toggle>\r\n <div class=\"content\">\r\n <ng-content></ng-content>\r\n </div>\r\n</label>\r\n", styles: [":host{display:inline-block}.radio-card{background:none;position:relative;display:block;border:1px solid var(--clr-btn-default-border-color, #0072a3);border-radius:var(--clr-btn-border-radius, .15rem);padding:6px;text-align:left;margin:6px}.radio-card:hover{cursor:pointer;outline:1px solid var(--color-primary-500)}.radio-card.selected{outline:1px solid var(--color-primary-500);background-color:var(--color-primary-100)}input.hidden{visibility:hidden;position:absolute}vdr-select-toggle{position:absolute;top:3px;left:3px}.content{margin-left:24px}\n"], components: [{ type: SelectToggleComponent, selector: "vdr-select-toggle", inputs: ["size", "selected", "hiddenWhenOff", "disabled", "label"], outputs: ["selectedChange"] }], directives: [{ type: i1$3.ClrLabel, selector: "label", inputs: ["for"] }, { type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: FormFieldControlDirective, selector: "input, textarea, select" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RadioCardComponent, decorators: [{
|
|
16578
|
+
type: Component,
|
|
16579
|
+
args: [{ selector: 'vdr-radio-card', exportAs: 'VdrRadioCard', changeDetection: ChangeDetectionStrategy.OnPush, template: "<label\r\n [ngClass]=\"{\r\n 'selected': isSelected(item),\r\n 'focussed': isFocussed(item)\r\n }\"\r\n class=\"radio-card\"\r\n>\r\n <input\r\n type=\"radio\"\r\n [name]=\"name\"\r\n [value]=\"getItemId(item)\"\r\n class=\"hidden\"\r\n (focus)=\"setFocussedId(item)\"\r\n (blur)=\"setFocussedId(undefined)\"\r\n (change)=\"selectChanged(item)\"\r\n />\r\n <vdr-select-toggle [selected]=\"isSelected(item)\" size=\"small\"></vdr-select-toggle>\r\n <div class=\"content\">\r\n <ng-content></ng-content>\r\n </div>\r\n</label>\r\n", styles: [":host{display:inline-block}.radio-card{background:none;position:relative;display:block;border:1px solid var(--clr-btn-default-border-color, #0072a3);border-radius:var(--clr-btn-border-radius, .15rem);padding:6px;text-align:left;margin:6px}.radio-card:hover{cursor:pointer;outline:1px solid var(--color-primary-500)}.radio-card.selected{outline:1px solid var(--color-primary-500);background-color:var(--color-primary-100)}input.hidden{visibility:hidden;position:absolute}vdr-select-toggle{position:absolute;top:3px;left:3px}.content{margin-left:24px}\n"] }]
|
|
16580
|
+
}], ctorParameters: function () { return [{ type: RadioCardFieldsetComponent }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { item: [{
|
|
16581
|
+
type: Input
|
|
16582
|
+
}], itemTemplate: [{
|
|
16583
|
+
type: ContentChild,
|
|
16584
|
+
args: [TemplateRef]
|
|
16585
|
+
}] } });
|
|
16586
|
+
|
|
16302
16587
|
/**
|
|
16303
16588
|
* A button link to be used as actions in rows of a table.
|
|
16304
16589
|
*/
|
|
@@ -16646,6 +16931,8 @@ const DECLARATIONS = [
|
|
|
16646
16931
|
ContextMenuComponent,
|
|
16647
16932
|
RawHtmlDialogComponent,
|
|
16648
16933
|
BulkActionMenuComponent,
|
|
16934
|
+
RadioCardComponent,
|
|
16935
|
+
RadioCardFieldsetComponent,
|
|
16649
16936
|
];
|
|
16650
16937
|
const DYNAMIC_FORM_INPUTS = [
|
|
16651
16938
|
TextFormInputComponent,
|
|
@@ -16770,7 +17057,9 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
16770
17057
|
ProductSearchInputComponent,
|
|
16771
17058
|
ContextMenuComponent,
|
|
16772
17059
|
RawHtmlDialogComponent,
|
|
16773
|
-
BulkActionMenuComponent,
|
|
17060
|
+
BulkActionMenuComponent,
|
|
17061
|
+
RadioCardComponent,
|
|
17062
|
+
RadioCardFieldsetComponent, TextFormInputComponent,
|
|
16774
17063
|
PasswordFormInputComponent,
|
|
16775
17064
|
NumberFormInputComponent,
|
|
16776
17065
|
DateFormInputComponent,
|
|
@@ -16905,7 +17194,9 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
16905
17194
|
ProductSearchInputComponent,
|
|
16906
17195
|
ContextMenuComponent,
|
|
16907
17196
|
RawHtmlDialogComponent,
|
|
16908
|
-
BulkActionMenuComponent,
|
|
17197
|
+
BulkActionMenuComponent,
|
|
17198
|
+
RadioCardComponent,
|
|
17199
|
+
RadioCardFieldsetComponent, TextFormInputComponent,
|
|
16909
17200
|
PasswordFormInputComponent,
|
|
16910
17201
|
NumberFormInputComponent,
|
|
16911
17202
|
DateFormInputComponent,
|
|
@@ -17552,7 +17843,7 @@ function patchObject(obj, patch) {
|
|
|
17552
17843
|
}
|
|
17553
17844
|
|
|
17554
17845
|
// Auto-generated by the set-version.js script.
|
|
17555
|
-
const ADMIN_UI_VERSION = '2.0.0-next.
|
|
17846
|
+
const ADMIN_UI_VERSION = '2.0.0-next.20';
|
|
17556
17847
|
|
|
17557
17848
|
/**
|
|
17558
17849
|
* @description
|
|
@@ -17641,9 +17932,6 @@ class DashboardWidgetService {
|
|
|
17641
17932
|
.map(([id]) => id);
|
|
17642
17933
|
}
|
|
17643
17934
|
getWidgetById(id) {
|
|
17644
|
-
if (!this.registry.has(id)) {
|
|
17645
|
-
throw new Error(`No widget was found with the id "${id}"`);
|
|
17646
|
-
}
|
|
17647
17935
|
return this.registry.get(id);
|
|
17648
17936
|
}
|
|
17649
17937
|
setDefaultLayout(layout) {
|
|
@@ -17832,5 +18120,5 @@ function unicodePatternValidator(patternRe) {
|
|
|
17832
18120
|
* Generated bundle index. Do not edit.
|
|
17833
18121
|
*/
|
|
17834
18122
|
|
|
17835
|
-
export { ADDRESS_FRAGMENT, ADD_CUSTOMERS_TO_GROUP, ADD_MANUAL_PAYMENT_TO_ORDER, ADD_MEMBERS_TO_ZONE, ADD_NOTE_TO_CUSTOMER, ADD_NOTE_TO_ORDER, ADD_OPTION_GROUP_TO_PRODUCT, ADD_OPTION_TO_GROUP, ADMINISTRATOR_FRAGMENT, ADMIN_UI_VERSION, ALL_CUSTOM_FIELDS_FRAGMENT, ASSET_FRAGMENT, ASSIGN_COLLECTIONS_TO_CHANNEL, ASSIGN_FACETS_TO_CHANNEL, ASSIGN_PRODUCTS_TO_CHANNEL, ASSIGN_ROLE_TO_ADMINISTRATOR, ASSIGN_VARIANTS_TO_CHANNEL, ATTEMPT_LOGIN, AUTH_REDIRECT_PARAM, ActionBarComponent, ActionBarItemsComponent, ActionBarLeftComponent, ActionBarRightComponent, AddressFormComponent, AdjustmentType, AdministratorDataService, AffixedInputComponent, AppComponent, AppComponentModule, AppShellComponent, AssetFileInputComponent, AssetGalleryComponent, AssetPickerDialogComponent, AssetPreviewComponent, AssetPreviewDialogComponent, AssetPreviewLinksComponent, AssetPreviewPipe, AssetSearchInputComponent, AssetType, AuthDataService, AuthGuard, AuthService, BOOLEAN_CUSTOM_FIELD_FRAGMENT, BaseCodeEditorFormInputComponent, BaseDataService, BaseDetailComponent, BaseEntityResolver, BaseListComponent, BooleanFormInputComponent, BreadcrumbComponent, BulkActionMenuComponent, BulkActionRegistryService, CANCEL_JOB, CANCEL_ORDER, CANCEL_PAYMENT, CHANNEL_FRAGMENT, COLLECTION_FRAGMENT, CONFIGURABLE_OPERATION_DEF_FRAGMENT, CONFIGURABLE_OPERATION_FRAGMENT, COUNTRY_FRAGMENT, CREATE_ADMINISTRATOR, CREATE_ASSETS, CREATE_CHANNEL, CREATE_COLLECTION, CREATE_COUNTRY, CREATE_CUSTOMER, CREATE_CUSTOMER_ADDRESS, CREATE_CUSTOMER_GROUP, CREATE_FACET, CREATE_FACET_VALUES, CREATE_FULFILLMENT, CREATE_PAYMENT_METHOD, CREATE_PRODUCT, CREATE_PRODUCT_OPTION_GROUP, CREATE_PRODUCT_VARIANTS, CREATE_PROMOTION, CREATE_ROLE, CREATE_SHIPPING_METHOD, CREATE_TAG, CREATE_TAX_CATEGORY, CREATE_TAX_RATE, CREATE_ZONE, CURRENT_USER_FRAGMENT, CUSTOMER_FRAGMENT, CUSTOMER_GROUP_FRAGMENT, CUSTOM_FIELD_CONFIG_FRAGMENT, CanDeactivateDetailGuard, ChannelAssignmentControlComponent, ChannelBadgeComponent, ChannelLabelPipe, ChannelSwitcherComponent, CheckJobsLink, ChipComponent, ClientDataService, CollectionDataService, CombinationModeFormInputComponent, ComponentRegistryService, ConfigurableInputComponent, ContextMenuComponent, ContextMenuService, CoreModule, CurrencyCode, CurrencyFormInputComponent, CurrencyInputComponent, CustomDetailComponentHostComponent, CustomDetailComponentService, CustomFieldComponentService, CustomFieldControlComponent, CustomFieldLabelPipe, CustomHttpTranslationLoader, CustomerDataService, CustomerGroupFormInputComponent, CustomerLabelComponent, DATE_TIME_CUSTOM_FIELD_FRAGMENT, DELETE_ADMINISTRATOR, DELETE_ASSETS, DELETE_CHANNEL, DELETE_COLLECTION, DELETE_COLLECTIONS, DELETE_COUNTRY, DELETE_CUSTOMER, DELETE_CUSTOMER_ADDRESS, DELETE_CUSTOMER_GROUP, DELETE_CUSTOMER_NOTE, DELETE_FACET, DELETE_FACETS, DELETE_FACET_VALUES, DELETE_ORDER_NOTE, DELETE_PAYMENT_METHOD, DELETE_PRODUCT, DELETE_PRODUCTS, DELETE_PRODUCT_OPTION, DELETE_PRODUCT_VARIANT, DELETE_PROMOTION, DELETE_ROLE, DELETE_SHIPPING_METHOD, DELETE_TAG, DELETE_TAX_CATEGORY, DELETE_TAX_RATE, DELETE_ZONE, DISCOUNT_FRAGMENT, DashboardWidgetService, DataModule, DataService, DataTableColumnComponent, DataTableComponent, DateFormInputComponent, DatetimePickerComponent, DatetimePickerService, DefaultInterceptor, DeletionResult, DialogButtonsDirective, DialogComponentOutletComponent, DialogTitleDirective, DisabledDirective, DropdownComponent, DropdownItemDirective, DropdownMenuComponent, DropdownTriggerDirective, DurationPipe, DynamicFormInputComponent, ERROR_RESULT_FRAGMENT, EditNoteDialogComponent, EmptyPlaceholderComponent, EntityInfoComponent, ErrorCode, ExtensionHostComponent, ExtensionHostConfig, ExtensionHostService, ExternalImageDialogComponent, FACET_VALUE_FRAGMENT, FACET_WITH_VALUES_FRAGMENT, FLOAT_CUSTOM_FIELD_FRAGMENT, FULFILLMENT_FRAGMENT, FacetDataService, FacetValueChipComponent, FacetValueFormInputComponent, FacetValueSelectorComponent, FetchAdapter, FileSizePipe, FocalPointControlComponent, FormFieldComponent, FormFieldControlDirective, FormItemComponent, FormattedAddressComponent, GET_ACTIVE_ADMINISTRATOR, GET_ACTIVE_CHANNEL, GET_ADJUSTMENT_OPERATIONS, GET_ADMINISTRATOR, GET_ADMINISTRATORS, GET_ASSET, GET_ASSET_LIST, GET_AVAILABLE_COUNTRIES, GET_CHANNEL, GET_CHANNELS, GET_CLIENT_STATE, GET_COLLECTION, GET_COLLECTION_CONTENTS, GET_COLLECTION_FILTERS, GET_COLLECTION_LIST, GET_COUNTRY, GET_COUNTRY_LIST, GET_CURRENT_USER, GET_CUSTOMER, GET_CUSTOMER_GROUPS, GET_CUSTOMER_GROUP_WITH_CUSTOMERS, GET_CUSTOMER_HISTORY, GET_CUSTOMER_LIST, GET_FACET_LIST, GET_FACET_WITH_VALUES, GET_GLOBAL_SETTINGS, GET_JOBS_BY_ID, GET_JOBS_LIST, GET_JOB_INFO, GET_JOB_QUEUE_LIST, GET_NEWTORK_STATUS, GET_ORDER, GET_ORDERS_LIST, GET_ORDER_HISTORY, GET_ORDER_SUMMARY, GET_PAYMENT_METHOD, GET_PAYMENT_METHOD_LIST, GET_PAYMENT_METHOD_OPERATIONS, GET_PENDING_SEARCH_INDEX_UPDATES, GET_PRODUCT_LIST, GET_PRODUCT_OPTION_GROUP, GET_PRODUCT_OPTION_GROUPS, GET_PRODUCT_SIMPLE, GET_PRODUCT_VARIANT, GET_PRODUCT_VARIANT_LIST, GET_PRODUCT_VARIANT_LIST_SIMPLE, GET_PRODUCT_VARIANT_OPTIONS, GET_PRODUCT_WITH_VARIANTS, GET_PROMOTION, GET_PROMOTION_LIST, GET_ROLE, GET_ROLES, GET_SERVER_CONFIG, GET_SHIPPING_METHOD, GET_SHIPPING_METHOD_LIST, GET_SHIPPING_METHOD_OPERATIONS, GET_TAG, GET_TAG_LIST, GET_TAX_CATEGORIES, GET_TAX_CATEGORY, GET_TAX_RATE, GET_TAX_RATE_LIST, GET_TAX_RATE_LIST_SIMPLE, GET_UI_STATE, GET_USER_STATUS, GET_ZONE, GET_ZONES, GLOBAL_SETTINGS_FRAGMENT, GlobalFlag, HasPermissionPipe, HealthCheckService, HelpTooltipComponent, HistoryEntryDetailComponent, HistoryEntryType, HtmlEditorFormInputComponent, HttpLoaderFactory, I18nService, INT_CUSTOM_FIELD_FRAGMENT, IconSize, IfDefaultChannelActiveDirective, IfDirectiveBase, IfMultichannelDirective, IfPermissionsDirective, InjectableTranslateMessageFormatCompiler, ItemsPerPageControlsComponent, JOB_INFO_FRAGMENT, JobQueueService, JobState, JsonEditorFormInputComponent, LOCALE_STRING_CUSTOM_FIELD_FRAGMENT, LOG_OUT, LabeledDataComponent, LanguageCode, LanguageSelectorComponent, LinkDialogComponent, LocalStorageService, LocaleBasePipe, LocaleCurrencyNamePipe, LocaleCurrencyPipe, LocaleDatePipe, LocaleLanguageNamePipe, LocaleRegionNamePipe, LogicalOperator, MODIFY_ORDER, MOVE_COLLECTION, MainNavComponent, ManageTagsDialogComponent, ModalDialogComponent, ModalService, NavBuilderService, NotificationComponent, NotificationService, NumberFormInputComponent, ORDER_ADDRESS_FRAGMENT, ORDER_DETAIL_FRAGMENT, ORDER_FRAGMENT, ORDER_LINE_FRAGMENT, ObjectTreeComponent, OmitTypenameLink, OrderDataService, OrderStateLabelComponent, OverlayHostComponent, OverlayHostService, PAYMENT_FRAGMENT, PAYMENT_METHOD_FRAGMENT, PREVIEW_COLLECTION_CONTENTS, PRODUCT_DETAIL_FRAGMENT, PRODUCT_OPTION_FRAGMENT, PRODUCT_OPTION_GROUP_FRAGMENT, PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT, PRODUCT_SELECTOR_SEARCH, PRODUCT_VARIANT_FRAGMENT, PROMOTION_FRAGMENT, PaginationControlsComponent, PasswordFormInputComponent, PercentageSuffixInputComponent, Permission, ProductDataService, ProductMultiSelectorDialogComponent, ProductMultiSelectorFormInputComponent, ProductSearchInputComponent, ProductSelectorFormInputComponent, ProductVariantSelectorComponent, PromotionDataService, ProsemirrorService, QueryResult, REFUND_FRAGMENT, REFUND_ORDER, REINDEX, RELATION_CUSTOM_FIELD_FRAGMENT, REMOVE_COLLECTIONS_FROM_CHANNEL, REMOVE_CUSTOMERS_FROM_GROUP, REMOVE_FACETS_FROM_CHANNEL, REMOVE_MEMBERS_FROM_ZONE, REMOVE_OPTION_GROUP_FROM_PRODUCT, REMOVE_PRODUCTS_FROM_CHANNEL, REMOVE_VARIANTS_FROM_CHANNEL, REQUEST_COMPLETED, REQUEST_STARTED, ROLE_FRAGMENT, RUN_PENDING_SEARCH_INDEX_UPDATES, RawHtmlDialogComponent, RelationAssetInputComponent, RelationCardComponent, RelationCardDetailDirective, RelationCardPreviewDirective, RelationCustomerInputComponent, RelationFormInputComponent, RelationGenericInputComponent, RelationProductInputComponent, RelationProductVariantInputComponent, RelationSelectorDialogComponent, RichTextEditorComponent, RichTextFormInputComponent, SEARCH_PRODUCTS, SETTLE_PAYMENT, SETTLE_REFUND, SET_ACTIVE_CHANNEL, SET_AS_LOGGED_IN, SET_AS_LOGGED_OUT, SET_CONTENT_LANGUAGE, SET_DISPLAY_UI_EXTENSION_POINTS, SET_UI_LANGUAGE_AND_LOCALE, SET_UI_LOCALE, SET_UI_THEME, SHIPPING_METHOD_FRAGMENT, STRING_CUSTOM_FIELD_FRAGMENT, SelectFormInputComponent, SelectToggleComponent, SelectionManager, SentenceCasePipe, ServerConfigService, SettingsDataService, SharedModule, ShippingMethodDataService, SimpleDialogComponent, SingleSearchSelectionModel, SingleSearchSelectionModelFactory, SortOrder, SortPipe, StateI18nTokenPipe, StatusBadgeComponent, StockMovementType, StringToColorPipe, SubMenuWithIcon, TAG_FRAGMENT, TAX_CATEGORY_FRAGMENT, TAX_RATE_FRAGMENT, TEST_ELIGIBLE_SHIPPING_METHODS, TEST_SHIPPING_METHOD, TEXT_CUSTOM_FIELD_FRAGMENT, TRANSITION_FULFILLMENT_TO_STATE, TRANSITION_ORDER_TO_STATE, TRANSITION_PAYMENT_TO_STATE, TabbedCustomFieldsComponent, TableRowActionComponent, TagSelectorComponent, TextFormInputComponent, TextareaFormInputComponent, ThemeSwitcherComponent, TimeAgoPipe, TimelineEntryComponent, TitleInputComponent, UPDATE_ACTIVE_ADMINISTRATOR, UPDATE_ADMINISTRATOR, UPDATE_ASSET, UPDATE_CHANNEL, UPDATE_COLLECTION, UPDATE_COUNTRY, UPDATE_CUSTOMER, UPDATE_CUSTOMER_ADDRESS, UPDATE_CUSTOMER_GROUP, UPDATE_CUSTOMER_NOTE, UPDATE_FACET, UPDATE_FACET_VALUES, UPDATE_GLOBAL_SETTINGS, UPDATE_ORDER_CUSTOM_FIELDS, UPDATE_ORDER_NOTE, UPDATE_PAYMENT_METHOD, UPDATE_PRODUCT, UPDATE_PRODUCT_OPTION, UPDATE_PRODUCT_OPTION_GROUP, UPDATE_PRODUCT_VARIANTS, UPDATE_PROMOTION, UPDATE_ROLE, UPDATE_SHIPPING_METHOD, UPDATE_TAG, UPDATE_TAX_CATEGORY, UPDATE_TAX_RATE, UPDATE_USER_CHANNELS, UPDATE_ZONE, USER_STATUS_FRAGMENT, UiExtensionPointComponent, UiLanguageSwitcherDialogComponent, UserMenuComponent, ZONE_FRAGMENT, addActionBarItem, addCustomFields, addNavMenuItem, addNavMenuSection, addTable, blockQuoteRule, buildInputRules, buildKeymap, buildMenuItems, bulletListRule, canInsert, clientResolvers, codeBlockRule, configurableDefinitionToInstance, configurableOperationValueIsValid, createApollo, createResolveData, createUpdatedTranslatable, currentChannelIsNotDefault, customMenuPlugin, dayOfWeekIndex, defaultFormInputs, detailBreadcrumb, encodeConfigArgValue, findTranslation, flattenFacetValues, getAppConfig, getChannelCodeFromUserStatus, getClientDefaults, getConfigArgValue, getDefaultConfigArgValue, getDefaultUiLanguage, getDefaultUiLocale, getLocales, getMarkRange, getServerLocation, getTableMenu, getTableNodes, headingRule, hostExternalFrame, iframeNode, iframeNodeView, imageContextMenuPlugin, initializeServerConfigService, insertImageItem, interpolateDescription, result as introspectionResult, isEntityCreateOrUpdateMutation, isMultiChannel, jsonValidator, linkItem, linkSelectPlugin, loadAppConfig, markActive, orderedListRule, rawEditorPlugin, registerBulkAction, registerCustomDetailComponent, registerCustomFieldComponent, registerDashboardWidget, registerDefaultFormInputs, registerFormInputComponent, removeReadonlyCustomFields, renderClarityIcon, setDashboardWidgetLayout, stringToColor, tableContextMenuPlugin, toConfigurableOperationInput, transformRelationCustomFieldInputs, unicodePatternValidator, weekDayNames, wrapInMenuItemWithIcon };
|
|
18123
|
+
export { ADDRESS_FRAGMENT, ADD_CUSTOMERS_TO_GROUP, ADD_ITEM_TO_DRAFT_ORDER, ADD_MANUAL_PAYMENT_TO_ORDER, ADD_MEMBERS_TO_ZONE, ADD_NOTE_TO_CUSTOMER, ADD_NOTE_TO_ORDER, ADD_OPTION_GROUP_TO_PRODUCT, ADD_OPTION_TO_GROUP, ADJUST_DRAFT_ORDER_LINE, ADMINISTRATOR_FRAGMENT, ADMIN_UI_VERSION, ALL_CUSTOM_FIELDS_FRAGMENT, APPLY_COUPON_CODE_TO_DRAFT_ORDER, ASSET_FRAGMENT, ASSIGN_COLLECTIONS_TO_CHANNEL, ASSIGN_FACETS_TO_CHANNEL, ASSIGN_PRODUCTS_TO_CHANNEL, ASSIGN_ROLE_TO_ADMINISTRATOR, ASSIGN_VARIANTS_TO_CHANNEL, ATTEMPT_LOGIN, AUTH_REDIRECT_PARAM, ActionBarComponent, ActionBarItemsComponent, ActionBarLeftComponent, ActionBarRightComponent, AddressFormComponent, AdjustmentType, AdministratorDataService, AffixedInputComponent, AppComponent, AppComponentModule, AppShellComponent, AssetFileInputComponent, AssetGalleryComponent, AssetPickerDialogComponent, AssetPreviewComponent, AssetPreviewDialogComponent, AssetPreviewLinksComponent, AssetPreviewPipe, AssetSearchInputComponent, AssetType, AuthDataService, AuthGuard, AuthService, BOOLEAN_CUSTOM_FIELD_FRAGMENT, BaseCodeEditorFormInputComponent, BaseDataService, BaseDetailComponent, BaseEntityResolver, BaseListComponent, BooleanFormInputComponent, BreadcrumbComponent, BulkActionMenuComponent, BulkActionRegistryService, CANCEL_JOB, CANCEL_ORDER, CANCEL_PAYMENT, CHANNEL_FRAGMENT, COLLECTION_FRAGMENT, CONFIGURABLE_OPERATION_DEF_FRAGMENT, CONFIGURABLE_OPERATION_FRAGMENT, COUNTRY_FRAGMENT, CREATE_ADMINISTRATOR, CREATE_ASSETS, CREATE_CHANNEL, CREATE_COLLECTION, CREATE_COUNTRY, CREATE_CUSTOMER, CREATE_CUSTOMER_ADDRESS, CREATE_CUSTOMER_GROUP, CREATE_DRAFT_ORDER, CREATE_FACET, CREATE_FACET_VALUES, CREATE_FULFILLMENT, CREATE_PAYMENT_METHOD, CREATE_PRODUCT, CREATE_PRODUCT_OPTION_GROUP, CREATE_PRODUCT_VARIANTS, CREATE_PROMOTION, CREATE_ROLE, CREATE_SHIPPING_METHOD, CREATE_TAG, CREATE_TAX_CATEGORY, CREATE_TAX_RATE, CREATE_ZONE, CURRENT_USER_FRAGMENT, CUSTOMER_FRAGMENT, CUSTOMER_GROUP_FRAGMENT, CUSTOM_FIELD_CONFIG_FRAGMENT, CanDeactivateDetailGuard, ChannelAssignmentControlComponent, ChannelBadgeComponent, ChannelLabelPipe, ChannelSwitcherComponent, CheckJobsLink, ChipComponent, ClientDataService, CollectionDataService, CombinationModeFormInputComponent, ComponentRegistryService, ConfigurableInputComponent, ContextMenuComponent, ContextMenuService, CoreModule, CurrencyCode, CurrencyFormInputComponent, CurrencyInputComponent, CustomDetailComponentHostComponent, CustomDetailComponentService, CustomFieldComponentService, CustomFieldControlComponent, CustomFieldLabelPipe, CustomHttpTranslationLoader, CustomerDataService, CustomerGroupFormInputComponent, CustomerLabelComponent, DATE_TIME_CUSTOM_FIELD_FRAGMENT, DELETE_ADMINISTRATOR, DELETE_ASSETS, DELETE_CHANNEL, DELETE_COLLECTION, DELETE_COLLECTIONS, DELETE_COUNTRY, DELETE_CUSTOMER, DELETE_CUSTOMER_ADDRESS, DELETE_CUSTOMER_GROUP, DELETE_CUSTOMER_NOTE, DELETE_DRAFT_ORDER, DELETE_FACET, DELETE_FACETS, DELETE_FACET_VALUES, DELETE_ORDER_NOTE, DELETE_PAYMENT_METHOD, DELETE_PRODUCT, DELETE_PRODUCTS, DELETE_PRODUCT_OPTION, DELETE_PRODUCT_VARIANT, DELETE_PROMOTION, DELETE_ROLE, DELETE_SHIPPING_METHOD, DELETE_TAG, DELETE_TAX_CATEGORY, DELETE_TAX_RATE, DELETE_ZONE, DISCOUNT_FRAGMENT, DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS, DashboardWidgetService, DataModule, DataService, DataTableColumnComponent, DataTableComponent, DateFormInputComponent, DatetimePickerComponent, DatetimePickerService, DefaultInterceptor, DeletionResult, DialogButtonsDirective, DialogComponentOutletComponent, DialogTitleDirective, DisabledDirective, DropdownComponent, DropdownItemDirective, DropdownMenuComponent, DropdownTriggerDirective, DurationPipe, DynamicFormInputComponent, ERROR_RESULT_FRAGMENT, EditNoteDialogComponent, EmptyPlaceholderComponent, EntityInfoComponent, ErrorCode, ExtensionHostComponent, ExtensionHostConfig, ExtensionHostService, ExternalImageDialogComponent, FACET_VALUE_FRAGMENT, FACET_WITH_VALUES_FRAGMENT, FLOAT_CUSTOM_FIELD_FRAGMENT, FULFILLMENT_FRAGMENT, FacetDataService, FacetValueChipComponent, FacetValueFormInputComponent, FacetValueSelectorComponent, FetchAdapter, FileSizePipe, FocalPointControlComponent, FormFieldComponent, FormFieldControlDirective, FormItemComponent, FormattedAddressComponent, GET_ACTIVE_ADMINISTRATOR, GET_ACTIVE_CHANNEL, GET_ADJUSTMENT_OPERATIONS, GET_ADMINISTRATOR, GET_ADMINISTRATORS, GET_ASSET, GET_ASSET_LIST, GET_AVAILABLE_COUNTRIES, GET_CHANNEL, GET_CHANNELS, GET_CLIENT_STATE, GET_COLLECTION, GET_COLLECTION_CONTENTS, GET_COLLECTION_FILTERS, GET_COLLECTION_LIST, GET_COUNTRY, GET_COUNTRY_LIST, GET_CURRENT_USER, GET_CUSTOMER, GET_CUSTOMER_GROUPS, GET_CUSTOMER_GROUP_WITH_CUSTOMERS, GET_CUSTOMER_HISTORY, GET_CUSTOMER_LIST, GET_FACET_LIST, GET_FACET_WITH_VALUES, GET_GLOBAL_SETTINGS, GET_JOBS_BY_ID, GET_JOBS_LIST, GET_JOB_INFO, GET_JOB_QUEUE_LIST, GET_NEWTORK_STATUS, GET_ORDER, GET_ORDERS_LIST, GET_ORDER_HISTORY, GET_ORDER_SUMMARY, GET_PAYMENT_METHOD, GET_PAYMENT_METHOD_LIST, GET_PAYMENT_METHOD_OPERATIONS, GET_PENDING_SEARCH_INDEX_UPDATES, GET_PRODUCT_LIST, GET_PRODUCT_OPTION_GROUP, GET_PRODUCT_OPTION_GROUPS, GET_PRODUCT_SIMPLE, GET_PRODUCT_VARIANT, GET_PRODUCT_VARIANT_LIST, GET_PRODUCT_VARIANT_LIST_SIMPLE, GET_PRODUCT_VARIANT_OPTIONS, GET_PRODUCT_WITH_VARIANTS, GET_PROMOTION, GET_PROMOTION_LIST, GET_ROLE, GET_ROLES, GET_SERVER_CONFIG, GET_SHIPPING_METHOD, GET_SHIPPING_METHOD_LIST, GET_SHIPPING_METHOD_OPERATIONS, GET_TAG, GET_TAG_LIST, GET_TAX_CATEGORIES, GET_TAX_CATEGORY, GET_TAX_RATE, GET_TAX_RATE_LIST, GET_TAX_RATE_LIST_SIMPLE, GET_UI_STATE, GET_USER_STATUS, GET_ZONE, GET_ZONES, GLOBAL_SETTINGS_FRAGMENT, GlobalFlag, HasPermissionPipe, HealthCheckService, HelpTooltipComponent, HistoryEntryDetailComponent, HistoryEntryType, HtmlEditorFormInputComponent, HttpLoaderFactory, I18nService, INT_CUSTOM_FIELD_FRAGMENT, IconSize, IfDefaultChannelActiveDirective, IfDirectiveBase, IfMultichannelDirective, IfPermissionsDirective, InjectableTranslateMessageFormatCompiler, ItemsPerPageControlsComponent, JOB_INFO_FRAGMENT, JobQueueService, JobState, JsonEditorFormInputComponent, LOCALE_STRING_CUSTOM_FIELD_FRAGMENT, LOG_OUT, LabeledDataComponent, LanguageCode, LanguageSelectorComponent, LinkDialogComponent, LocalStorageService, LocaleBasePipe, LocaleCurrencyNamePipe, LocaleCurrencyPipe, LocaleDatePipe, LocaleLanguageNamePipe, LocaleRegionNamePipe, LogicalOperator, MODIFY_ORDER, MOVE_COLLECTION, MainNavComponent, ManageTagsDialogComponent, ModalDialogComponent, ModalService, NavBuilderService, NotificationComponent, NotificationService, NumberFormInputComponent, ORDER_ADDRESS_FRAGMENT, ORDER_DETAIL_FRAGMENT, ORDER_FRAGMENT, ORDER_LINE_FRAGMENT, ObjectTreeComponent, OmitTypenameLink, OrderDataService, OrderStateLabelComponent, OverlayHostComponent, OverlayHostService, PAYMENT_FRAGMENT, PAYMENT_METHOD_FRAGMENT, PREVIEW_COLLECTION_CONTENTS, PRODUCT_DETAIL_FRAGMENT, PRODUCT_OPTION_FRAGMENT, PRODUCT_OPTION_GROUP_FRAGMENT, PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT, PRODUCT_SELECTOR_SEARCH, PRODUCT_VARIANT_FRAGMENT, PROMOTION_FRAGMENT, PaginationControlsComponent, PasswordFormInputComponent, PercentageSuffixInputComponent, Permission, ProductDataService, ProductMultiSelectorDialogComponent, ProductMultiSelectorFormInputComponent, ProductSearchInputComponent, ProductSelectorFormInputComponent, ProductVariantSelectorComponent, PromotionDataService, ProsemirrorService, QueryResult, REFUND_FRAGMENT, REFUND_ORDER, REINDEX, RELATION_CUSTOM_FIELD_FRAGMENT, REMOVE_COLLECTIONS_FROM_CHANNEL, REMOVE_COUPON_CODE_FROM_DRAFT_ORDER, REMOVE_CUSTOMERS_FROM_GROUP, REMOVE_DRAFT_ORDER_LINE, REMOVE_FACETS_FROM_CHANNEL, REMOVE_MEMBERS_FROM_ZONE, REMOVE_OPTION_GROUP_FROM_PRODUCT, REMOVE_PRODUCTS_FROM_CHANNEL, REMOVE_VARIANTS_FROM_CHANNEL, REQUEST_COMPLETED, REQUEST_STARTED, ROLE_FRAGMENT, RUN_PENDING_SEARCH_INDEX_UPDATES, RadioCardComponent, RadioCardFieldsetComponent, RawHtmlDialogComponent, RelationAssetInputComponent, RelationCardComponent, RelationCardDetailDirective, RelationCardPreviewDirective, RelationCustomerInputComponent, RelationFormInputComponent, RelationGenericInputComponent, RelationProductInputComponent, RelationProductVariantInputComponent, RelationSelectorDialogComponent, RichTextEditorComponent, RichTextFormInputComponent, SEARCH_PRODUCTS, SETTLE_PAYMENT, SETTLE_REFUND, SET_ACTIVE_CHANNEL, SET_AS_LOGGED_IN, SET_AS_LOGGED_OUT, SET_BILLING_ADDRESS_FOR_DRAFT_ORDER, SET_CONTENT_LANGUAGE, SET_CUSTOMER_FOR_DRAFT_ORDER, SET_DISPLAY_UI_EXTENSION_POINTS, SET_DRAFT_ORDER_SHIPPING_METHOD, SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER, SET_UI_LANGUAGE_AND_LOCALE, SET_UI_LOCALE, SET_UI_THEME, SHIPPING_METHOD_FRAGMENT, STRING_CUSTOM_FIELD_FRAGMENT, SelectFormInputComponent, SelectToggleComponent, SelectionManager, SentenceCasePipe, ServerConfigService, SettingsDataService, SharedModule, ShippingMethodDataService, SimpleDialogComponent, SingleSearchSelectionModel, SingleSearchSelectionModelFactory, SortOrder, SortPipe, StateI18nTokenPipe, StatusBadgeComponent, StockMovementType, StringToColorPipe, SubMenuWithIcon, TAG_FRAGMENT, TAX_CATEGORY_FRAGMENT, TAX_RATE_FRAGMENT, TEST_ELIGIBLE_SHIPPING_METHODS, TEST_SHIPPING_METHOD, TEXT_CUSTOM_FIELD_FRAGMENT, TRANSITION_FULFILLMENT_TO_STATE, TRANSITION_ORDER_TO_STATE, TRANSITION_PAYMENT_TO_STATE, TabbedCustomFieldsComponent, TableRowActionComponent, TagSelectorComponent, TextFormInputComponent, TextareaFormInputComponent, ThemeSwitcherComponent, TimeAgoPipe, TimelineEntryComponent, TitleInputComponent, UPDATE_ACTIVE_ADMINISTRATOR, UPDATE_ADMINISTRATOR, UPDATE_ASSET, UPDATE_CHANNEL, UPDATE_COLLECTION, UPDATE_COUNTRY, UPDATE_CUSTOMER, UPDATE_CUSTOMER_ADDRESS, UPDATE_CUSTOMER_GROUP, UPDATE_CUSTOMER_NOTE, UPDATE_FACET, UPDATE_FACET_VALUES, UPDATE_GLOBAL_SETTINGS, UPDATE_ORDER_CUSTOM_FIELDS, UPDATE_ORDER_NOTE, UPDATE_PAYMENT_METHOD, UPDATE_PRODUCT, UPDATE_PRODUCT_OPTION, UPDATE_PRODUCT_OPTION_GROUP, UPDATE_PRODUCT_VARIANTS, UPDATE_PROMOTION, UPDATE_ROLE, UPDATE_SHIPPING_METHOD, UPDATE_TAG, UPDATE_TAX_CATEGORY, UPDATE_TAX_RATE, UPDATE_USER_CHANNELS, UPDATE_ZONE, USER_STATUS_FRAGMENT, UiExtensionPointComponent, UiLanguageSwitcherDialogComponent, UserMenuComponent, ZONE_FRAGMENT, addActionBarItem, addCustomFields, addNavMenuItem, addNavMenuSection, addTable, blockQuoteRule, buildInputRules, buildKeymap, buildMenuItems, bulletListRule, canInsert, clientResolvers, codeBlockRule, configurableDefinitionToInstance, configurableOperationValueIsValid, createApollo, createResolveData, createUpdatedTranslatable, currentChannelIsNotDefault, customMenuPlugin, dayOfWeekIndex, defaultFormInputs, detailBreadcrumb, encodeConfigArgValue, findTranslation, flattenFacetValues, getAppConfig, getChannelCodeFromUserStatus, getClientDefaults, getConfigArgValue, getDefaultConfigArgValue, getDefaultUiLanguage, getDefaultUiLocale, getLocales, getMarkRange, getServerLocation, getTableMenu, getTableNodes, headingRule, hostExternalFrame, iframeNode, iframeNodeView, imageContextMenuPlugin, initializeServerConfigService, insertImageItem, interpolateDescription, result as introspectionResult, isEntityCreateOrUpdateMutation, isMultiChannel, jsonValidator, linkItem, linkSelectPlugin, loadAppConfig, markActive, orderedListRule, rawEditorPlugin, registerBulkAction, registerCustomDetailComponent, registerCustomFieldComponent, registerDashboardWidget, registerDefaultFormInputs, registerFormInputComponent, removeReadonlyCustomFields, renderClarityIcon, setDashboardWidgetLayout, stringToColor, tableContextMenuPlugin, toConfigurableOperationInput, transformRelationCustomFieldInputs, unicodePatternValidator, weekDayNames, wrapInMenuItemWithIcon };
|
|
17836
18124
|
//# sourceMappingURL=vendure-admin-ui-core.mjs.map
|