@vendure/admin-ui 1.4.5 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +173 -149
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +348 -289
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-customer.umd.js +51 -20
  6. package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
  7. package/bundles/vendure-admin-ui-order.umd.js +107 -17
  8. package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
  9. package/bundles/vendure-admin-ui-settings.umd.js +1 -1
  10. package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
  11. package/bundles/vendure-admin-ui-system.umd.js.map +1 -1
  12. package/catalog/components/{product-assets/product-assets.component.d.ts → assets/assets.component.d.ts} +4 -10
  13. package/catalog/components/facet-detail/facet-detail.component.d.ts +7 -2
  14. package/catalog/components/product-detail/product-detail.component.d.ts +2 -1
  15. package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -1
  16. package/catalog/public_api.d.ts +1 -1
  17. package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
  18. package/core/common/generated-types.d.ts +91 -13
  19. package/core/common/version.d.ts +1 -1
  20. package/core/data/definitions/customer-definitions.d.ts +1 -0
  21. package/core/data/providers/customer-data.service.d.ts +1 -0
  22. package/core/data/providers/promotion-data.service.d.ts +2 -2
  23. package/core/data/utils/remove-readonly-custom-fields.d.ts +12 -3
  24. package/core/providers/i18n/i18n.service.d.ts +3 -1
  25. package/core/public_api.d.ts +2 -0
  26. package/core/shared/components/asset-preview-links/asset-preview-links.component.d.ts +5 -0
  27. package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
  28. package/core/shared/directives/if-default-channel-active.directive.d.ts +1 -1
  29. package/core/shared/directives/if-multichannel.directive.d.ts +1 -1
  30. package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +15 -0
  31. package/core/vendure-admin-ui-core.metadata.json +1 -1
  32. package/customer/components/address-card/address-card.component.d.ts +2 -0
  33. package/customer/components/customer-detail/customer-detail.component.d.ts +2 -0
  34. package/customer/components/customer-list/customer-list.component.d.ts +1 -2
  35. package/customer/vendure-admin-ui-customer.metadata.json +1 -1
  36. package/esm2015/catalog/catalog.module.js +3 -3
  37. package/esm2015/catalog/components/assets/assets.component.js +93 -0
  38. package/esm2015/catalog/components/collection-detail/collection-detail.component.js +2 -2
  39. package/esm2015/catalog/components/facet-detail/facet-detail.component.js +44 -16
  40. package/esm2015/catalog/components/product-detail/product-detail.component.js +4 -3
  41. package/esm2015/catalog/components/product-list/product-list.component.js +2 -2
  42. package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +2 -2
  43. package/esm2015/catalog/public_api.js +2 -2
  44. package/esm2015/core/common/base-detail.component.js +4 -4
  45. package/esm2015/core/common/generated-types.js +5 -1
  46. package/esm2015/core/common/introspection-result.js +189 -249
  47. package/esm2015/core/common/utilities/configurable-operation-utils.js +1 -1
  48. package/esm2015/core/common/utilities/create-updated-translatable.js +1 -1
  49. package/esm2015/core/common/version.js +2 -2
  50. package/esm2015/core/components/main-nav/main-nav.component.js +3 -3
  51. package/esm2015/core/data/definitions/customer-definitions.js +8 -1
  52. package/esm2015/core/data/definitions/order-definitions.js +2 -1
  53. package/esm2015/core/data/providers/customer-data.service.js +5 -2
  54. package/esm2015/core/data/providers/interceptor.js +1 -1
  55. package/esm2015/core/data/providers/promotion-data.service.js +3 -2
  56. package/esm2015/core/data/providers/shipping-method-data.service.js +1 -1
  57. package/esm2015/core/data/utils/remove-readonly-custom-fields.js +15 -3
  58. package/esm2015/core/providers/i18n/i18n.service.js +14 -5
  59. package/esm2015/core/public_api.js +3 -1
  60. package/esm2015/core/shared/components/address-form/address-form.component.js +1 -1
  61. package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +2 -2
  62. package/esm2015/core/shared/components/asset-preview/asset-preview.component.js +3 -3
  63. package/esm2015/core/shared/components/asset-preview-links/asset-preview-links.component.js +18 -0
  64. package/esm2015/core/shared/components/object-tree/object-tree.component.js +3 -3
  65. package/esm2015/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.js +2 -2
  66. package/esm2015/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.js +3 -2
  67. package/esm2015/core/shared/directives/if-default-channel-active.directive.js +2 -2
  68. package/esm2015/core/shared/directives/if-multichannel.directive.js +2 -2
  69. package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +1 -1
  70. package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.js +48 -0
  71. package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.js +2 -2
  72. package/esm2015/core/shared/pipes/asset-preview.pipe.js +2 -2
  73. package/esm2015/core/shared/shared.module.js +5 -1
  74. package/esm2015/customer/components/address-card/address-card.component.js +9 -3
  75. package/esm2015/customer/components/customer-detail/customer-detail.component.js +35 -13
  76. package/esm2015/customer/components/customer-list/customer-list.component.js +12 -9
  77. package/esm2015/order/components/add-manual-payment-dialog/add-manual-payment-dialog.component.js +1 -1
  78. package/esm2015/order/components/cancel-order-dialog/cancel-order-dialog.component.js +36 -6
  79. package/esm2015/order/components/fulfill-order-dialog/fulfill-order-dialog.component.js +1 -1
  80. package/esm2015/order/components/line-refunds/line-refunds.component.js +1 -1
  81. package/esm2015/order/components/modification-detail/modification-detail.component.js +1 -1
  82. package/esm2015/order/components/order-detail/order-detail.component.js +2 -2
  83. package/esm2015/order/components/order-editor/order-editor.component.js +22 -7
  84. package/esm2015/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.js +1 -1
  85. package/esm2015/order/components/order-history/order-history.component.js +2 -2
  86. package/esm2015/order/components/order-list/order-list.component.js +1 -1
  87. package/esm2015/order/components/order-table/order-table.component.js +2 -2
  88. package/esm2015/order/components/refund-order-dialog/refund-order-dialog.component.js +10 -5
  89. package/esm2015/order/order.routes.js +1 -1
  90. package/esm2015/settings/components/channel-list/channel-list.component.js +2 -2
  91. package/esm2015/settings/components/role-list/role-list.component.js +1 -1
  92. package/esm2015/settings/components/test-order-builder/test-order-builder.component.js +1 -1
  93. package/esm2015/settings/providers/routing/shipping-method-resolver.js +1 -1
  94. package/esm2015/system/components/job-list/job-list.component.js +1 -1
  95. package/fesm2015/vendure-admin-ui-catalog.js +140 -125
  96. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  97. package/fesm2015/vendure-admin-ui-core.js +300 -261
  98. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  99. package/fesm2015/vendure-admin-ui-customer.js +53 -22
  100. package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
  101. package/fesm2015/vendure-admin-ui-order.js +67 -17
  102. package/fesm2015/vendure-admin-ui-order.js.map +1 -1
  103. package/fesm2015/vendure-admin-ui-settings.js +1 -1
  104. package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
  105. package/fesm2015/vendure-admin-ui-system.js.map +1 -1
  106. package/order/components/cancel-order-dialog/cancel-order-dialog.component.d.ts +3 -0
  107. package/order/components/order-editor/order-editor.component.d.ts +8 -2
  108. package/order/vendure-admin-ui-order.metadata.json +1 -1
  109. package/package.json +11 -11
  110. package/settings/vendure-admin-ui-settings.metadata.json +1 -1
  111. package/static/i18n-messages/cs.json +7 -1
  112. package/static/i18n-messages/de.json +7 -1
  113. package/static/i18n-messages/en.json +9 -3
  114. package/static/i18n-messages/es.json +7 -1
  115. package/static/i18n-messages/fr.json +7 -1
  116. package/static/i18n-messages/it.json +7 -1
  117. package/static/i18n-messages/pl.json +7 -1
  118. package/static/i18n-messages/pt_BR.json +7 -1
  119. package/static/i18n-messages/pt_PT.json +7 -1
  120. package/static/i18n-messages/ru.json +7 -1
  121. package/static/i18n-messages/uk.json +7 -1
  122. package/static/i18n-messages/zh_Hans.json +7 -1
  123. package/static/i18n-messages/zh_Hant.json +7 -1
  124. package/static/vendure-ui-config.json +25 -10
  125. package/esm2015/catalog/components/product-assets/product-assets.component.js +0 -108
@@ -71,7 +71,8 @@ export declare type Adjustment = {
71
71
  };
72
72
  export declare enum AdjustmentType {
73
73
  PROMOTION = "PROMOTION",
74
- DISTRIBUTED_ORDER_PROMOTION = "DISTRIBUTED_ORDER_PROMOTION"
74
+ DISTRIBUTED_ORDER_PROMOTION = "DISTRIBUTED_ORDER_PROMOTION",
75
+ OTHER = "OTHER"
75
76
  }
76
77
  export declare type Administrator = Node & {
77
78
  __typename?: 'Administrator';
@@ -249,6 +250,10 @@ export declare type BooleanCustomFieldConfig = CustomField & {
249
250
  nullable?: Maybe<Scalars['Boolean']>;
250
251
  ui?: Maybe<Scalars['JSON']>;
251
252
  };
253
+ /** Operators for filtering on a list of Boolean fields */
254
+ export declare type BooleanListOperators = {
255
+ inList: Scalars['Boolean'];
256
+ };
252
257
  /** Operators for filtering on a Boolean field */
253
258
  export declare type BooleanOperators = {
254
259
  eq?: Maybe<Scalars['Boolean']>;
@@ -265,6 +270,8 @@ export declare type CancelOrderInput = {
265
270
  orderId: Scalars['ID'];
266
271
  /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */
267
272
  lines?: Maybe<Array<OrderLineInput>>;
273
+ /** Specify whether the shipping charges should also be cancelled. Defaults to false */
274
+ cancelShipping?: Maybe<Scalars['Boolean']>;
268
275
  reason?: Maybe<Scalars['String']>;
269
276
  };
270
277
  export declare type CancelOrderResult = Order | EmptyOrderLineSelectionError | QuantityTooGreatError | MultipleOrderError | CancelActiveOrderError | OrderStateTransitionError;
@@ -493,6 +500,28 @@ export declare type CountryTranslationInput = {
493
500
  name?: Maybe<Scalars['String']>;
494
501
  customFields?: Maybe<Scalars['JSON']>;
495
502
  };
503
+ /** Returned if the provided coupon code is invalid */
504
+ export declare type CouponCodeExpiredError = ErrorResult & {
505
+ __typename?: 'CouponCodeExpiredError';
506
+ errorCode: ErrorCode;
507
+ message: Scalars['String'];
508
+ couponCode: Scalars['String'];
509
+ };
510
+ /** Returned if the provided coupon code is invalid */
511
+ export declare type CouponCodeInvalidError = ErrorResult & {
512
+ __typename?: 'CouponCodeInvalidError';
513
+ errorCode: ErrorCode;
514
+ message: Scalars['String'];
515
+ couponCode: Scalars['String'];
516
+ };
517
+ /** Returned if the provided coupon code is invalid */
518
+ export declare type CouponCodeLimitError = ErrorResult & {
519
+ __typename?: 'CouponCodeLimitError';
520
+ errorCode: ErrorCode;
521
+ message: Scalars['String'];
522
+ couponCode: Scalars['String'];
523
+ limit: Scalars['Int'];
524
+ };
496
525
  export declare type CreateAddressInput = {
497
526
  fullName?: Maybe<Scalars['String']>;
498
527
  company?: Maybe<Scalars['String']>;
@@ -1099,6 +1128,7 @@ export declare type CustomerOrdersArgs = {
1099
1128
  options?: Maybe<OrderListOptions>;
1100
1129
  };
1101
1130
  export declare type CustomerFilterParameter = {
1131
+ postalCode?: Maybe<StringOperators>;
1102
1132
  id?: Maybe<IdOperators>;
1103
1133
  createdAt?: Maybe<DateOperators>;
1104
1134
  updatedAt?: Maybe<DateOperators>;
@@ -1176,6 +1206,10 @@ export declare type CustomerSortParameter = {
1176
1206
  phoneNumber?: Maybe<SortOrder>;
1177
1207
  emailAddress?: Maybe<SortOrder>;
1178
1208
  };
1209
+ /** Operators for filtering on a list of Date fields */
1210
+ export declare type DateListOperators = {
1211
+ inList: Scalars['DateTime'];
1212
+ };
1179
1213
  /** Operators for filtering on a DateTime field */
1180
1214
  export declare type DateOperators = {
1181
1215
  eq?: Maybe<Scalars['DateTime']>;
@@ -1235,7 +1269,7 @@ export declare type Discount = {
1235
1269
  amount: Scalars['Int'];
1236
1270
  amountWithTax: Scalars['Int'];
1237
1271
  };
1238
- /** Retured when attemting to create a Customer with an email address already registered to an existing User. */
1272
+ /** Returned when attempting to create a Customer with an email address already registered to an existing User. */
1239
1273
  export declare type EmailAddressConflictError = ErrorResult & {
1240
1274
  __typename?: 'EmailAddressConflictError';
1241
1275
  errorCode: ErrorCode;
@@ -1281,7 +1315,10 @@ export declare enum ErrorCode {
1281
1315
  EMAIL_ADDRESS_CONFLICT_ERROR = "EMAIL_ADDRESS_CONFLICT_ERROR",
1282
1316
  ORDER_LIMIT_ERROR = "ORDER_LIMIT_ERROR",
1283
1317
  NEGATIVE_QUANTITY_ERROR = "NEGATIVE_QUANTITY_ERROR",
1284
- INSUFFICIENT_STOCK_ERROR = "INSUFFICIENT_STOCK_ERROR"
1318
+ INSUFFICIENT_STOCK_ERROR = "INSUFFICIENT_STOCK_ERROR",
1319
+ COUPON_CODE_INVALID_ERROR = "COUPON_CODE_INVALID_ERROR",
1320
+ COUPON_CODE_EXPIRED_ERROR = "COUPON_CODE_EXPIRED_ERROR",
1321
+ COUPON_CODE_LIMIT_ERROR = "COUPON_CODE_LIMIT_ERROR"
1285
1322
  }
1286
1323
  export declare type ErrorResult = {
1287
1324
  errorCode: ErrorCode;
@@ -1515,6 +1552,10 @@ export declare enum HistoryEntryType {
1515
1552
  ORDER_COUPON_REMOVED = "ORDER_COUPON_REMOVED",
1516
1553
  ORDER_MODIFIED = "ORDER_MODIFIED"
1517
1554
  }
1555
+ /** Operators for filtering on a list of ID fields */
1556
+ export declare type IdListOperators = {
1557
+ inList: Scalars['ID'];
1558
+ };
1518
1559
  /** Operators for filtering on an ID field */
1519
1560
  export declare type IdOperators = {
1520
1561
  eq?: Maybe<Scalars['String']>;
@@ -2058,12 +2099,13 @@ export declare type ModifyOrderInput = {
2058
2099
  note?: Maybe<Scalars['String']>;
2059
2100
  refund?: Maybe<AdministratorRefundInput>;
2060
2101
  options?: Maybe<ModifyOrderOptions>;
2102
+ couponCodes?: Maybe<Array<Scalars['String']>>;
2061
2103
  };
2062
2104
  export declare type ModifyOrderOptions = {
2063
2105
  freezePromotions?: Maybe<Scalars['Boolean']>;
2064
2106
  recalculateShipping?: Maybe<Scalars['Boolean']>;
2065
2107
  };
2066
- export declare type ModifyOrderResult = Order | NoChangesSpecifiedError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError | OrderLimitError | NegativeQuantityError | InsufficientStockError;
2108
+ export declare type ModifyOrderResult = Order | NoChangesSpecifiedError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError | OrderLimitError | NegativeQuantityError | InsufficientStockError | CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError;
2067
2109
  export declare type MoveCollectionInput = {
2068
2110
  collectionId: Scalars['ID'];
2069
2111
  parentId: Scalars['ID'];
@@ -2653,14 +2695,14 @@ export declare type NativeAuthInput = {
2653
2695
  username: Scalars['String'];
2654
2696
  password: Scalars['String'];
2655
2697
  };
2656
- /** Retured when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
2698
+ /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
2657
2699
  export declare type NativeAuthStrategyError = ErrorResult & {
2658
2700
  __typename?: 'NativeAuthStrategyError';
2659
2701
  errorCode: ErrorCode;
2660
2702
  message: Scalars['String'];
2661
2703
  };
2662
2704
  export declare type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError;
2663
- /** Retured when attemting to set a negative OrderLine quantity. */
2705
+ /** Returned when attempting to set a negative OrderLine quantity. */
2664
2706
  export declare type NegativeQuantityError = ErrorResult & {
2665
2707
  __typename?: 'NegativeQuantityError';
2666
2708
  errorCode: ErrorCode;
@@ -2685,6 +2727,10 @@ export declare type NothingToRefundError = ErrorResult & {
2685
2727
  errorCode: ErrorCode;
2686
2728
  message: Scalars['String'];
2687
2729
  };
2730
+ /** Operators for filtering on a list of Number fields */
2731
+ export declare type NumberListOperators = {
2732
+ inList: Scalars['Float'];
2733
+ };
2688
2734
  /** Operators for filtering on a Int or Float field */
2689
2735
  export declare type NumberOperators = {
2690
2736
  eq?: Maybe<Scalars['Float']>;
@@ -2827,7 +2873,7 @@ export declare type OrderItem = Node & {
2827
2873
  fulfillment?: Maybe<Fulfillment>;
2828
2874
  refundId?: Maybe<Scalars['ID']>;
2829
2875
  };
2830
- /** Retured when the maximum order size limit has been reached. */
2876
+ /** Returned when the maximum order size limit has been reached. */
2831
2877
  export declare type OrderLimitError = ErrorResult & {
2832
2878
  __typename?: 'OrderLimitError';
2833
2879
  errorCode: ErrorCode;
@@ -3578,7 +3624,7 @@ export declare type Query = {
3578
3624
  assets: AssetList;
3579
3625
  channel?: Maybe<Channel>;
3580
3626
  channels: Array<Channel>;
3581
- /** Get a Collection either by id or slug. If neither id nor slug is speicified, an error will result. */
3627
+ /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */
3582
3628
  collection?: Maybe<Collection>;
3583
3629
  collectionFilters: Array<ConfigurableOperationDefinition>;
3584
3630
  collections: CollectionList;
@@ -3606,7 +3652,7 @@ export declare type Query = {
3606
3652
  paymentMethodHandlers: Array<ConfigurableOperationDefinition>;
3607
3653
  paymentMethods: PaymentMethodList;
3608
3654
  pendingSearchIndexUpdates: Scalars['Int'];
3609
- /** Get a Product either by id or slug. If neither id nor slug is speicified, an error will result. */
3655
+ /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */
3610
3656
  product?: Maybe<Product>;
3611
3657
  productOptionGroup?: Maybe<ProductOptionGroup>;
3612
3658
  productOptionGroups: Array<ProductOptionGroup>;
@@ -3967,7 +4013,7 @@ export declare type SearchResult = {
3967
4013
  facetValueIds: Array<Scalars['ID']>;
3968
4014
  /** An array of ids of the Collections in which this result appears */
3969
4015
  collectionIds: Array<Scalars['ID']>;
3970
- /** A relevence score for the result. Differs between database implementations */
4016
+ /** A relevance score for the result. Differs between database implementations */
3971
4017
  score: Scalars['Float'];
3972
4018
  };
3973
4019
  export declare type SearchResultAsset = {
@@ -4153,6 +4199,10 @@ export declare type StringFieldOption = {
4153
4199
  value: Scalars['String'];
4154
4200
  label?: Maybe<Array<LocalizedString>>;
4155
4201
  };
4202
+ /** Operators for filtering on a list of String fields */
4203
+ export declare type StringListOperators = {
4204
+ inList: Scalars['String'];
4205
+ };
4156
4206
  /** Operators for filtering on a String field */
4157
4207
  export declare type StringOperators = {
4158
4208
  eq?: Maybe<Scalars['String']>;
@@ -5084,6 +5134,14 @@ export declare type UpdateCustomerAddressMutation = {
5084
5134
  __typename?: 'Address';
5085
5135
  } & AddressFragment);
5086
5136
  };
5137
+ export declare type DeleteCustomerAddressMutationVariables = Exact<{
5138
+ id: Scalars['ID'];
5139
+ }>;
5140
+ export declare type DeleteCustomerAddressMutation = {
5141
+ deleteCustomerAddress: ({
5142
+ __typename?: 'Success';
5143
+ } & Pick<Success, 'success'>);
5144
+ };
5087
5145
  export declare type CreateCustomerGroupMutationVariables = Exact<{
5088
5146
  input: CreateCustomerGroupInput;
5089
5147
  }>;
@@ -5342,7 +5400,7 @@ export declare type OrderLineFragment = ({
5342
5400
  });
5343
5401
  export declare type OrderDetailFragment = ({
5344
5402
  __typename?: 'Order';
5345
- } & Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'nextStates' | 'active' | 'subTotal' | 'subTotalWithTax' | 'total' | 'totalWithTax' | 'currencyCode' | 'shipping' | 'shippingWithTax'> & {
5403
+ } & Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'nextStates' | 'active' | 'couponCodes' | 'subTotal' | 'subTotalWithTax' | 'total' | 'totalWithTax' | 'currencyCode' | 'shipping' | 'shippingWithTax'> & {
5346
5404
  customer?: Maybe<({
5347
5405
  __typename?: 'Customer';
5348
5406
  } & Pick<Customer, 'id' | 'firstName' | 'lastName'>)>;
@@ -5630,7 +5688,13 @@ export declare type ModifyOrderMutation = {
5630
5688
  __typename?: 'NegativeQuantityError';
5631
5689
  } & ErrorResult_NegativeQuantityError_Fragment) | ({
5632
5690
  __typename?: 'InsufficientStockError';
5633
- } & ErrorResult_InsufficientStockError_Fragment);
5691
+ } & ErrorResult_InsufficientStockError_Fragment) | ({
5692
+ __typename?: 'CouponCodeExpiredError';
5693
+ } & ErrorResult_CouponCodeExpiredError_Fragment) | ({
5694
+ __typename?: 'CouponCodeInvalidError';
5695
+ } & ErrorResult_CouponCodeInvalidError_Fragment) | ({
5696
+ __typename?: 'CouponCodeLimitError';
5697
+ } & ErrorResult_CouponCodeLimitError_Fragment);
5634
5698
  };
5635
5699
  export declare type AddManualPaymentMutationVariables = Exact<{
5636
5700
  input: ManualPaymentInput;
@@ -7423,6 +7487,15 @@ declare type ErrorResult_CancelActiveOrderError_Fragment = ({
7423
7487
  declare type ErrorResult_ChannelDefaultLanguageError_Fragment = ({
7424
7488
  __typename?: 'ChannelDefaultLanguageError';
7425
7489
  } & Pick<ChannelDefaultLanguageError, 'errorCode' | 'message'>);
7490
+ declare type ErrorResult_CouponCodeExpiredError_Fragment = ({
7491
+ __typename?: 'CouponCodeExpiredError';
7492
+ } & Pick<CouponCodeExpiredError, 'errorCode' | 'message'>);
7493
+ declare type ErrorResult_CouponCodeInvalidError_Fragment = ({
7494
+ __typename?: 'CouponCodeInvalidError';
7495
+ } & Pick<CouponCodeInvalidError, 'errorCode' | 'message'>);
7496
+ declare type ErrorResult_CouponCodeLimitError_Fragment = ({
7497
+ __typename?: 'CouponCodeLimitError';
7498
+ } & Pick<CouponCodeLimitError, 'errorCode' | 'message'>);
7426
7499
  declare type ErrorResult_CreateFulfillmentError_Fragment = ({
7427
7500
  __typename?: 'CreateFulfillmentError';
7428
7501
  } & Pick<CreateFulfillmentError, 'errorCode' | 'message'>);
@@ -7513,7 +7586,7 @@ declare type ErrorResult_RefundStateTransitionError_Fragment = ({
7513
7586
  declare type ErrorResult_SettlePaymentError_Fragment = ({
7514
7587
  __typename?: 'SettlePaymentError';
7515
7588
  } & Pick<SettlePaymentError, 'errorCode' | 'message'>);
7516
- export declare type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
7589
+ export declare type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CouponCodeExpiredError_Fragment | ErrorResult_CouponCodeInvalidError_Fragment | ErrorResult_CouponCodeLimitError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
7517
7590
  export declare type ShippingMethodFragment = ({
7518
7591
  __typename?: 'ShippingMethod';
7519
7592
  } & Pick<ShippingMethod, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'name' | 'description' | 'fulfillmentHandlerCode'> & {
@@ -7881,6 +7954,11 @@ export declare namespace UpdateCustomerAddress {
7881
7954
  type Mutation = UpdateCustomerAddressMutation;
7882
7955
  type UpdateCustomerAddress = (NonNullable<UpdateCustomerAddressMutation['updateCustomerAddress']>);
7883
7956
  }
7957
+ export declare namespace DeleteCustomerAddress {
7958
+ type Variables = DeleteCustomerAddressMutationVariables;
7959
+ type Mutation = DeleteCustomerAddressMutation;
7960
+ type DeleteCustomerAddress = (NonNullable<DeleteCustomerAddressMutation['deleteCustomerAddress']>);
7961
+ }
7884
7962
  export declare namespace CreateCustomerGroup {
7885
7963
  type Variables = CreateCustomerGroupMutationVariables;
7886
7964
  type Mutation = CreateCustomerGroupMutation;
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "1.4.5";
1
+ export declare const ADMIN_UI_VERSION = "1.5.0";
@@ -8,6 +8,7 @@ export declare const UPDATE_CUSTOMER: import("graphql").DocumentNode;
8
8
  export declare const DELETE_CUSTOMER: import("graphql").DocumentNode;
9
9
  export declare const CREATE_CUSTOMER_ADDRESS: import("graphql").DocumentNode;
10
10
  export declare const UPDATE_CUSTOMER_ADDRESS: import("graphql").DocumentNode;
11
+ export declare const DELETE_CUSTOMER_ADDRESS: import("graphql").DocumentNode;
11
12
  export declare const CREATE_CUSTOMER_GROUP: import("graphql").DocumentNode;
12
13
  export declare const UPDATE_CUSTOMER_GROUP: import("graphql").DocumentNode;
13
14
  export declare const DELETE_CUSTOMER_GROUP: import("graphql").DocumentNode;
@@ -15,6 +15,7 @@ export declare class CustomerDataService {
15
15
  deleteCustomer(id: string): import("rxjs").Observable<import("../../common/generated-types").DeleteCustomerMutation>;
16
16
  createCustomerAddress(customerId: string, input: CreateAddressInput): import("rxjs").Observable<import("../../common/generated-types").CreateCustomerAddressMutation>;
17
17
  updateCustomerAddress(input: UpdateAddressInput): import("rxjs").Observable<import("../../common/generated-types").UpdateCustomerAddressMutation>;
18
+ deleteCustomerAddress(id: string): import("rxjs").Observable<import("../../common/generated-types").DeleteCustomerAddressMutation>;
18
19
  createCustomerGroup(input: CreateCustomerGroupInput): import("rxjs").Observable<import("../../common/generated-types").CreateCustomerGroupMutation>;
19
20
  updateCustomerGroup(input: UpdateCustomerGroupInput): import("rxjs").Observable<import("../../common/generated-types").UpdateCustomerGroupMutation>;
20
21
  deleteCustomerGroup(id: string): import("rxjs").Observable<import("../../common/generated-types").DeleteCustomerGroupMutation>;
@@ -1,9 +1,9 @@
1
- import { CreatePromotionInput, UpdatePromotionInput } from '../../common/generated-types';
1
+ import { CreatePromotionInput, PromotionFilterParameter, UpdatePromotionInput } from '../../common/generated-types';
2
2
  import { BaseDataService } from './base-data.service';
3
3
  export declare class PromotionDataService {
4
4
  private baseDataService;
5
5
  constructor(baseDataService: BaseDataService);
6
- getPromotions(take?: number, skip?: number): import("../query-result").QueryResult<import("../../common/generated-types").GetPromotionListQuery, import("../../common/generated-types").Exact<{
6
+ getPromotions(take?: number, skip?: number, filter?: PromotionFilterParameter): import("../query-result").QueryResult<import("../../common/generated-types").GetPromotionListQuery, import("../../common/generated-types").Exact<{
7
7
  options?: import("../../common/generated-types").Maybe<import("../../common/generated-types").PromotionListOptions> | undefined;
8
8
  }>>;
9
9
  getPromotion(id: string): import("../query-result").QueryResult<import("../../common/generated-types").GetPromotionQuery, import("../../common/generated-types").Exact<{
@@ -1,5 +1,11 @@
1
1
  import { DocumentNode } from 'graphql';
2
2
  import { CustomFieldConfig } from '../../common/generated-types';
3
+ declare type InputWithOptionalCustomFields = Record<string, any> & {
4
+ customFields?: Record<string, any>;
5
+ };
6
+ declare type EntityInput = InputWithOptionalCustomFields & {
7
+ translations?: InputWithOptionalCustomFields[];
8
+ };
3
9
  /**
4
10
  * Checks the current documentNode for an operation with a variable named "Create<Entity>Input" or "Update<Entity>Input"
5
11
  * and if a match is found, returns the <Entity> name.
@@ -9,6 +15,9 @@ export declare function isEntityCreateOrUpdateMutation(documentNode: DocumentNod
9
15
  * Removes any `readonly` custom fields from an entity (including its translations).
10
16
  * To be used before submitting the entity for a create or update request.
11
17
  */
12
- export declare function removeReadonlyCustomFields<T extends {
13
- input?: any;
14
- } & Record<string, any> = any>(variables: T, customFieldConfig: CustomFieldConfig[]): T;
18
+ export declare function removeReadonlyCustomFields(variables: {
19
+ input?: EntityInput | EntityInput[];
20
+ } | EntityInput | EntityInput[], customFieldConfig: CustomFieldConfig[]): {
21
+ input?: EntityInput | EntityInput[];
22
+ } | EntityInput | EntityInput[];
23
+ export {};
@@ -1,10 +1,12 @@
1
1
  import { TranslateService } from '@ngx-translate/core';
2
2
  import { LanguageCode } from '../../common/generated-types';
3
+ /** @dynamic */
3
4
  export declare class I18nService {
4
5
  private ngxTranslate;
6
+ private document;
5
7
  _availableLanguages: LanguageCode[];
6
8
  get availableLanguages(): LanguageCode[];
7
- constructor(ngxTranslate: TranslateService);
9
+ constructor(ngxTranslate: TranslateService, document: Document);
8
10
  /**
9
11
  * Set the default language
10
12
  */
@@ -97,6 +97,7 @@ export * from './shared/components/asset-gallery/asset-gallery.component';
97
97
  export * from './shared/components/asset-picker-dialog/asset-picker-dialog.component';
98
98
  export * from './shared/components/asset-preview/asset-preview.component';
99
99
  export * from './shared/components/asset-preview-dialog/asset-preview-dialog.component';
100
+ export * from './shared/components/asset-preview-links/asset-preview-links.component';
100
101
  export * from './shared/components/asset-search-input/asset-search-input.component';
101
102
  export * from './shared/components/channel-assignment-control/channel-assignment-control.component';
102
103
  export * from './shared/components/channel-badge/channel-badge.component';
@@ -184,6 +185,7 @@ export * from './shared/dynamic-form-inputs/product-selector-form-input/product-
184
185
  export * from './shared/dynamic-form-inputs/register-dynamic-input-components';
185
186
  export * from './shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component';
186
187
  export * from './shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component';
188
+ export * from './shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component';
187
189
  export * from './shared/dynamic-form-inputs/relation-form-input/product/relation-product-input.component';
188
190
  export * from './shared/dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component';
189
191
  export * from './shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component';
@@ -0,0 +1,5 @@
1
+ import { AssetLike } from '../asset-gallery/asset-gallery.component';
2
+ export declare class AssetPreviewLinksComponent {
3
+ asset: AssetLike;
4
+ sizes: string[];
5
+ }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnChanges } from '@angular/core';
2
2
  /**
3
3
  * @description
4
4
  * This component displays a plain JavaScript object as an expandable tree.
@@ -10,7 +10,7 @@ import { OnInit } from '@angular/core';
10
10
  *
11
11
  * @docsCategory components
12
12
  */
13
- export declare class ObjectTreeComponent implements OnInit {
13
+ export declare class ObjectTreeComponent implements OnChanges {
14
14
  value: {
15
15
  [key: string]: any;
16
16
  } | string;
@@ -23,7 +23,7 @@ export declare class ObjectTreeComponent implements OnInit {
23
23
  value: any;
24
24
  }>;
25
25
  constructor(parent: ObjectTreeComponent);
26
- ngOnInit(): void;
26
+ ngOnChanges(): void;
27
27
  isObject(value: any): boolean;
28
28
  private getEntries;
29
29
  }
@@ -6,7 +6,7 @@ export declare class IfDefaultChannelActiveDirective extends IfDirectiveBase<[]>
6
6
  private changeDetectorRef;
7
7
  constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: DataService, changeDetectorRef: ChangeDetectorRef);
8
8
  /**
9
- * A template to show if the current user does not have the speicified permission.
9
+ * A template to show if the current user does not have the specified permission.
10
10
  */
11
11
  set vdrIfMultichannelElse(templateRef: TemplateRef<any> | null);
12
12
  private defaultChannelIsActive;
@@ -19,7 +19,7 @@ export declare class IfMultichannelDirective extends IfDirectiveBase<[]> {
19
19
  private dataService;
20
20
  constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: DataService);
21
21
  /**
22
- * A template to show if the current user does not have the speicified permission.
22
+ * A template to show if the current user does not have the specified permission.
23
23
  */
24
24
  set vdrIfMultichannelElse(templateRef: TemplateRef<any> | null);
25
25
  }
@@ -0,0 +1,15 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { RelationCustomFieldConfig } from '../../../../common/generated-types';
4
+ import { ModalService } from '../../../../providers/modal/modal.service';
5
+ export declare class RelationGenericInputComponent {
6
+ private modalService;
7
+ readonly: boolean;
8
+ parentFormControl: FormControl;
9
+ config: RelationCustomFieldConfig;
10
+ relationId: string;
11
+ template: TemplateRef<any>;
12
+ constructor(modalService: ModalService);
13
+ selectRelationId(): void;
14
+ remove(): void;
15
+ }