@vendure/admin-ui 1.2.2 → 1.2.3

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.
@@ -2588,264 +2588,264 @@ class CollectionDataService {
2588
2588
  }
2589
2589
  }
2590
2590
 
2591
- const ADDRESS_FRAGMENT = gql `
2592
- fragment Address on Address {
2593
- id
2594
- createdAt
2595
- updatedAt
2596
- fullName
2597
- company
2598
- streetLine1
2599
- streetLine2
2600
- city
2601
- province
2602
- postalCode
2603
- country {
2604
- id
2605
- code
2606
- name
2607
- }
2608
- phoneNumber
2609
- defaultShippingAddress
2610
- defaultBillingAddress
2611
- }
2591
+ const ADDRESS_FRAGMENT = gql `
2592
+ fragment Address on Address {
2593
+ id
2594
+ createdAt
2595
+ updatedAt
2596
+ fullName
2597
+ company
2598
+ streetLine1
2599
+ streetLine2
2600
+ city
2601
+ province
2602
+ postalCode
2603
+ country {
2604
+ id
2605
+ code
2606
+ name
2607
+ }
2608
+ phoneNumber
2609
+ defaultShippingAddress
2610
+ defaultBillingAddress
2611
+ }
2612
2612
  `;
2613
- const CUSTOMER_FRAGMENT = gql `
2614
- fragment Customer on Customer {
2615
- id
2616
- createdAt
2617
- updatedAt
2618
- title
2619
- firstName
2620
- lastName
2621
- phoneNumber
2622
- emailAddress
2623
- user {
2624
- id
2625
- identifier
2626
- verified
2627
- lastLogin
2628
- }
2629
- addresses {
2630
- ...Address
2631
- }
2632
- }
2633
- ${ADDRESS_FRAGMENT}
2613
+ const CUSTOMER_FRAGMENT = gql `
2614
+ fragment Customer on Customer {
2615
+ id
2616
+ createdAt
2617
+ updatedAt
2618
+ title
2619
+ firstName
2620
+ lastName
2621
+ phoneNumber
2622
+ emailAddress
2623
+ user {
2624
+ id
2625
+ identifier
2626
+ verified
2627
+ lastLogin
2628
+ }
2629
+ addresses {
2630
+ ...Address
2631
+ }
2632
+ }
2633
+ ${ADDRESS_FRAGMENT}
2634
2634
  `;
2635
- const GET_CUSTOMER_LIST = gql `
2636
- query GetCustomerList($options: CustomerListOptions) {
2637
- customers(options: $options) {
2638
- items {
2639
- id
2640
- createdAt
2641
- updatedAt
2642
- title
2643
- firstName
2644
- lastName
2645
- emailAddress
2646
- user {
2647
- id
2648
- verified
2649
- }
2650
- }
2651
- totalItems
2652
- }
2653
- }
2635
+ const GET_CUSTOMER_LIST = gql `
2636
+ query GetCustomerList($options: CustomerListOptions) {
2637
+ customers(options: $options) {
2638
+ items {
2639
+ id
2640
+ createdAt
2641
+ updatedAt
2642
+ title
2643
+ firstName
2644
+ lastName
2645
+ emailAddress
2646
+ user {
2647
+ id
2648
+ verified
2649
+ }
2650
+ }
2651
+ totalItems
2652
+ }
2653
+ }
2654
2654
  `;
2655
- const GET_CUSTOMER = gql `
2656
- query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {
2657
- customer(id: $id) {
2658
- ...Customer
2659
- groups {
2660
- id
2661
- name
2662
- }
2663
- orders(options: $orderListOptions) {
2664
- items {
2665
- id
2666
- code
2667
- state
2668
- totalWithTax
2669
- currencyCode
2670
- updatedAt
2671
- }
2672
- totalItems
2673
- }
2674
- }
2675
- }
2676
- ${CUSTOMER_FRAGMENT}
2655
+ const GET_CUSTOMER = gql `
2656
+ query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {
2657
+ customer(id: $id) {
2658
+ ...Customer
2659
+ groups {
2660
+ id
2661
+ name
2662
+ }
2663
+ orders(options: $orderListOptions) {
2664
+ items {
2665
+ id
2666
+ code
2667
+ state
2668
+ totalWithTax
2669
+ currencyCode
2670
+ updatedAt
2671
+ }
2672
+ totalItems
2673
+ }
2674
+ }
2675
+ }
2676
+ ${CUSTOMER_FRAGMENT}
2677
2677
  `;
2678
- const CREATE_CUSTOMER = gql `
2679
- mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {
2680
- createCustomer(input: $input, password: $password) {
2681
- ...Customer
2682
- ...ErrorResult
2683
- }
2684
- }
2685
- ${CUSTOMER_FRAGMENT}
2686
- ${ERROR_RESULT_FRAGMENT}
2678
+ const CREATE_CUSTOMER = gql `
2679
+ mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {
2680
+ createCustomer(input: $input, password: $password) {
2681
+ ...Customer
2682
+ ...ErrorResult
2683
+ }
2684
+ }
2685
+ ${CUSTOMER_FRAGMENT}
2686
+ ${ERROR_RESULT_FRAGMENT}
2687
2687
  `;
2688
- const UPDATE_CUSTOMER = gql `
2689
- mutation UpdateCustomer($input: UpdateCustomerInput!) {
2690
- updateCustomer(input: $input) {
2691
- ...Customer
2692
- ...ErrorResult
2693
- }
2694
- }
2695
- ${CUSTOMER_FRAGMENT}
2696
- ${ERROR_RESULT_FRAGMENT}
2688
+ const UPDATE_CUSTOMER = gql `
2689
+ mutation UpdateCustomer($input: UpdateCustomerInput!) {
2690
+ updateCustomer(input: $input) {
2691
+ ...Customer
2692
+ ...ErrorResult
2693
+ }
2694
+ }
2695
+ ${CUSTOMER_FRAGMENT}
2696
+ ${ERROR_RESULT_FRAGMENT}
2697
2697
  `;
2698
- const DELETE_CUSTOMER = gql `
2699
- mutation DeleteCustomer($id: ID!) {
2700
- deleteCustomer(id: $id) {
2701
- result
2702
- message
2703
- }
2704
- }
2698
+ const DELETE_CUSTOMER = gql `
2699
+ mutation DeleteCustomer($id: ID!) {
2700
+ deleteCustomer(id: $id) {
2701
+ result
2702
+ message
2703
+ }
2704
+ }
2705
2705
  `;
2706
- const CREATE_CUSTOMER_ADDRESS = gql `
2707
- mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {
2708
- createCustomerAddress(customerId: $customerId, input: $input) {
2709
- ...Address
2710
- }
2711
- }
2712
- ${ADDRESS_FRAGMENT}
2706
+ const CREATE_CUSTOMER_ADDRESS = gql `
2707
+ mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {
2708
+ createCustomerAddress(customerId: $customerId, input: $input) {
2709
+ ...Address
2710
+ }
2711
+ }
2712
+ ${ADDRESS_FRAGMENT}
2713
2713
  `;
2714
- const UPDATE_CUSTOMER_ADDRESS = gql `
2715
- mutation UpdateCustomerAddress($input: UpdateAddressInput!) {
2716
- updateCustomerAddress(input: $input) {
2717
- ...Address
2718
- }
2719
- }
2720
- ${ADDRESS_FRAGMENT}
2714
+ const UPDATE_CUSTOMER_ADDRESS = gql `
2715
+ mutation UpdateCustomerAddress($input: UpdateAddressInput!) {
2716
+ updateCustomerAddress(input: $input) {
2717
+ ...Address
2718
+ }
2719
+ }
2720
+ ${ADDRESS_FRAGMENT}
2721
2721
  `;
2722
- const CREATE_CUSTOMER_GROUP = gql `
2723
- mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {
2724
- createCustomerGroup(input: $input) {
2725
- id
2726
- createdAt
2727
- updatedAt
2728
- name
2729
- }
2730
- }
2722
+ const CREATE_CUSTOMER_GROUP = gql `
2723
+ mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {
2724
+ createCustomerGroup(input: $input) {
2725
+ id
2726
+ createdAt
2727
+ updatedAt
2728
+ name
2729
+ }
2730
+ }
2731
2731
  `;
2732
- const UPDATE_CUSTOMER_GROUP = gql `
2733
- mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {
2734
- updateCustomerGroup(input: $input) {
2735
- id
2736
- createdAt
2737
- updatedAt
2738
- name
2739
- }
2740
- }
2732
+ const UPDATE_CUSTOMER_GROUP = gql `
2733
+ mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {
2734
+ updateCustomerGroup(input: $input) {
2735
+ id
2736
+ createdAt
2737
+ updatedAt
2738
+ name
2739
+ }
2740
+ }
2741
2741
  `;
2742
- const DELETE_CUSTOMER_GROUP = gql `
2743
- mutation DeleteCustomerGroup($id: ID!) {
2744
- deleteCustomerGroup(id: $id) {
2745
- result
2746
- message
2747
- }
2748
- }
2742
+ const DELETE_CUSTOMER_GROUP = gql `
2743
+ mutation DeleteCustomerGroup($id: ID!) {
2744
+ deleteCustomerGroup(id: $id) {
2745
+ result
2746
+ message
2747
+ }
2748
+ }
2749
2749
  `;
2750
- const GET_CUSTOMER_GROUPS = gql `
2751
- query GetCustomerGroups($options: CustomerGroupListOptions) {
2752
- customerGroups(options: $options) {
2753
- items {
2754
- id
2755
- createdAt
2756
- updatedAt
2757
- name
2758
- }
2759
- totalItems
2760
- }
2761
- }
2750
+ const GET_CUSTOMER_GROUPS = gql `
2751
+ query GetCustomerGroups($options: CustomerGroupListOptions) {
2752
+ customerGroups(options: $options) {
2753
+ items {
2754
+ id
2755
+ createdAt
2756
+ updatedAt
2757
+ name
2758
+ }
2759
+ totalItems
2760
+ }
2761
+ }
2762
2762
  `;
2763
- const GET_CUSTOMER_GROUP_WITH_CUSTOMERS = gql `
2764
- query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {
2765
- customerGroup(id: $id) {
2766
- id
2767
- createdAt
2768
- updatedAt
2769
- name
2770
- customers(options: $options) {
2771
- items {
2772
- id
2773
- createdAt
2774
- updatedAt
2775
- emailAddress
2776
- firstName
2777
- lastName
2778
- }
2779
- totalItems
2780
- }
2781
- }
2782
- }
2763
+ const GET_CUSTOMER_GROUP_WITH_CUSTOMERS = gql `
2764
+ query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {
2765
+ customerGroup(id: $id) {
2766
+ id
2767
+ createdAt
2768
+ updatedAt
2769
+ name
2770
+ customers(options: $options) {
2771
+ items {
2772
+ id
2773
+ createdAt
2774
+ updatedAt
2775
+ emailAddress
2776
+ firstName
2777
+ lastName
2778
+ }
2779
+ totalItems
2780
+ }
2781
+ }
2782
+ }
2783
2783
  `;
2784
- const ADD_CUSTOMERS_TO_GROUP = gql `
2785
- mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {
2786
- addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {
2787
- id
2788
- createdAt
2789
- updatedAt
2790
- name
2791
- }
2792
- }
2784
+ const ADD_CUSTOMERS_TO_GROUP = gql `
2785
+ mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {
2786
+ addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {
2787
+ id
2788
+ createdAt
2789
+ updatedAt
2790
+ name
2791
+ }
2792
+ }
2793
2793
  `;
2794
- const REMOVE_CUSTOMERS_FROM_GROUP = gql `
2795
- mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {
2796
- removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {
2797
- id
2798
- createdAt
2799
- updatedAt
2800
- name
2801
- }
2802
- }
2794
+ const REMOVE_CUSTOMERS_FROM_GROUP = gql `
2795
+ mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {
2796
+ removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {
2797
+ id
2798
+ createdAt
2799
+ updatedAt
2800
+ name
2801
+ }
2802
+ }
2803
2803
  `;
2804
- const GET_CUSTOMER_HISTORY = gql `
2805
- query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {
2806
- customer(id: $id) {
2807
- id
2808
- history(options: $options) {
2809
- totalItems
2810
- items {
2811
- id
2812
- type
2813
- createdAt
2814
- isPublic
2815
- administrator {
2816
- id
2817
- firstName
2818
- lastName
2819
- }
2820
- data
2821
- }
2822
- }
2823
- }
2824
- }
2804
+ const GET_CUSTOMER_HISTORY = gql `
2805
+ query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {
2806
+ customer(id: $id) {
2807
+ id
2808
+ history(options: $options) {
2809
+ totalItems
2810
+ items {
2811
+ id
2812
+ type
2813
+ createdAt
2814
+ isPublic
2815
+ administrator {
2816
+ id
2817
+ firstName
2818
+ lastName
2819
+ }
2820
+ data
2821
+ }
2822
+ }
2823
+ }
2824
+ }
2825
2825
  `;
2826
- const ADD_NOTE_TO_CUSTOMER = gql `
2827
- mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {
2828
- addNoteToCustomer(input: $input) {
2829
- id
2830
- }
2831
- }
2826
+ const ADD_NOTE_TO_CUSTOMER = gql `
2827
+ mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {
2828
+ addNoteToCustomer(input: $input) {
2829
+ id
2830
+ }
2831
+ }
2832
2832
  `;
2833
- const UPDATE_CUSTOMER_NOTE = gql `
2834
- mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {
2835
- updateCustomerNote(input: $input) {
2836
- id
2837
- data
2838
- isPublic
2839
- }
2840
- }
2833
+ const UPDATE_CUSTOMER_NOTE = gql `
2834
+ mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {
2835
+ updateCustomerNote(input: $input) {
2836
+ id
2837
+ data
2838
+ isPublic
2839
+ }
2840
+ }
2841
2841
  `;
2842
- const DELETE_CUSTOMER_NOTE = gql `
2843
- mutation DeleteCustomerNote($id: ID!) {
2844
- deleteCustomerNote(id: $id) {
2845
- result
2846
- message
2847
- }
2848
- }
2842
+ const DELETE_CUSTOMER_NOTE = gql `
2843
+ mutation DeleteCustomerNote($id: ID!) {
2844
+ deleteCustomerNote(id: $id) {
2845
+ result
2846
+ message
2847
+ }
2848
+ }
2849
2849
  `;
2850
2850
 
2851
2851
  class CustomerDataService {
@@ -13864,7 +13864,7 @@ function patchObject(obj, patch) {
13864
13864
  }
13865
13865
 
13866
13866
  // Auto-generated by the set-version.js script.
13867
- const ADMIN_UI_VERSION = '1.2.2';
13867
+ const ADMIN_UI_VERSION = '1.2.3';
13868
13868
 
13869
13869
  /**
13870
13870
  * Responsible for registering dashboard widget components and querying for layouts.