@vendure/admin-ui 1.6.3 → 1.7.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 (91) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +196 -20
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +309 -327
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-customer.umd.js +39 -18
  6. package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
  7. package/bundles/vendure-admin-ui-order.umd.js +179 -137
  8. package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
  9. package/catalog/components/generate-product-variants/generate-product-variants.component.d.ts +3 -3
  10. package/catalog/components/option-value-input/option-value-input.component.d.ts +20 -8
  11. package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +10 -3
  12. package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
  13. package/core/common/generated-types.d.ts +91 -19
  14. package/core/common/utilities/configurable-operation-utils.d.ts +4 -2
  15. package/core/common/version.d.ts +1 -1
  16. package/core/data/definitions/order-definitions.d.ts +2 -0
  17. package/core/data/definitions/product-definitions.d.ts +1 -0
  18. package/core/data/providers/order-data.service.d.ts +1 -0
  19. package/core/data/providers/product-data.service.d.ts +1 -0
  20. package/core/shared/components/custom-field-control/custom-field-control.component.d.ts +6 -2
  21. package/core/shared/components/data-table/data-table.component.d.ts +5 -2
  22. package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +2 -1
  23. package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
  24. package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +2 -1
  25. package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +10 -2
  26. package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
  27. package/core/vendure-admin-ui-core.metadata.json +1 -1
  28. package/customer/components/customer-group-list/customer-group-list.component.d.ts +6 -4
  29. package/customer/vendure-admin-ui-customer.metadata.json +1 -1
  30. package/esm2015/catalog/components/generate-product-variants/generate-product-variants.component.js +12 -5
  31. package/esm2015/catalog/components/option-value-input/option-value-input.component.js +62 -12
  32. package/esm2015/catalog/components/product-variants-editor/product-variants-editor.component.js +109 -11
  33. package/esm2015/core/common/generated-types.js +2 -1
  34. package/esm2015/core/common/introspection-result.js +191 -255
  35. package/esm2015/core/common/utilities/configurable-operation-utils.js +13 -10
  36. package/esm2015/core/common/version.js +2 -2
  37. package/esm2015/core/components/app-shell/app-shell.component.js +1 -1
  38. package/esm2015/core/components/main-nav/main-nav.component.js +1 -1
  39. package/esm2015/core/data/definitions/order-definitions.js +445 -431
  40. package/esm2015/core/data/definitions/product-definitions.js +9 -1
  41. package/esm2015/core/data/providers/order-data.service.js +7 -2
  42. package/esm2015/core/data/providers/product-data.service.js +5 -2
  43. package/esm2015/core/shared/components/custom-field-control/custom-field-control.component.js +9 -3
  44. package/esm2015/core/shared/components/data-table/data-table.component.js +9 -2
  45. package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +5 -2
  46. package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +11 -2
  47. package/esm2015/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.js +15 -2
  48. package/esm2015/core/shared/pipes/custom-field-label.pipe.js +4 -19
  49. package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +25 -12
  50. package/esm2015/order/components/fulfill-order-dialog/fulfill-order-dialog.component.js +3 -2
  51. package/esm2015/order/components/fulfillment-detail/fulfillment-detail.component.js +9 -18
  52. package/esm2015/order/components/line-fulfillment/line-fulfillment.component.js +10 -21
  53. package/esm2015/order/components/order-custom-fields-card/order-custom-fields-card.component.js +30 -4
  54. package/esm2015/order/components/order-detail/order-detail.component.js +79 -38
  55. package/esm2015/order/components/order-list/order-list.component.js +22 -15
  56. package/esm2015/order/components/order-payment-card/order-payment-card.component.js +2 -2
  57. package/esm2015/order/components/order-table/order-table.component.js +10 -2
  58. package/fesm2015/vendure-admin-ui-catalog.js +177 -22
  59. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  60. package/fesm2015/vendure-admin-ui-core.js +725 -733
  61. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  62. package/fesm2015/vendure-admin-ui-customer.js +23 -11
  63. package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
  64. package/fesm2015/vendure-admin-ui-order.js +155 -94
  65. package/fesm2015/vendure-admin-ui-order.js.map +1 -1
  66. package/order/components/line-fulfillment/line-fulfillment.component.d.ts +2 -2
  67. package/order/components/modification-detail/modification-detail.component.d.ts +1 -1
  68. package/order/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +4 -2
  69. package/order/components/order-list/order-list.component.d.ts +1 -0
  70. package/order/components/order-table/order-table.component.d.ts +1 -0
  71. package/order/vendure-admin-ui-order.metadata.json +1 -1
  72. package/package.json +2 -2
  73. package/static/i18n-messages/cs.json +6 -2
  74. package/static/i18n-messages/de.json +6 -2
  75. package/static/i18n-messages/en.json +8 -3
  76. package/static/i18n-messages/es.json +6 -2
  77. package/static/i18n-messages/fr.json +6 -2
  78. package/static/i18n-messages/it.json +6 -2
  79. package/static/i18n-messages/pl.json +6 -2
  80. package/static/i18n-messages/pt_BR.json +6 -2
  81. package/static/i18n-messages/pt_PT.json +6 -2
  82. package/static/i18n-messages/ru.json +6 -2
  83. package/static/i18n-messages/uk.json +6 -2
  84. package/static/i18n-messages/zh_Hans.json +6 -2
  85. package/static/i18n-messages/zh_Hant.json +6 -2
  86. package/static/styles/_variables.scss +3 -0
  87. package/static/styles/global/_sass-overrides.scss +3 -0
  88. package/static/styles/global/_utilities.scss +1 -0
  89. package/static/styles/styles.scss +1 -0
  90. package/static/styles/ui-extension-theme.scss +1 -0
  91. package/static/theme.min.css +1 -1
@@ -275,6 +275,14 @@ export declare type CancelOrderInput = {
275
275
  reason?: Maybe<Scalars['String']>;
276
276
  };
277
277
  export declare type CancelOrderResult = Order | EmptyOrderLineSelectionError | QuantityTooGreatError | MultipleOrderError | CancelActiveOrderError | OrderStateTransitionError;
278
+ /** Returned if the Payment cancellation fails */
279
+ export declare type CancelPaymentError = ErrorResult & {
280
+ __typename?: 'CancelPaymentError';
281
+ errorCode: ErrorCode;
282
+ message: Scalars['String'];
283
+ paymentErrorMessage: Scalars['String'];
284
+ };
285
+ export declare type CancelPaymentResult = Payment | CancelPaymentError | PaymentStateTransitionError;
278
286
  export declare type Cancellation = Node & StockMovement & {
279
287
  __typename?: 'Cancellation';
280
288
  id: Scalars['ID'];
@@ -1287,6 +1295,7 @@ export declare enum ErrorCode {
1287
1295
  LANGUAGE_NOT_AVAILABLE_ERROR = "LANGUAGE_NOT_AVAILABLE_ERROR",
1288
1296
  CHANNEL_DEFAULT_LANGUAGE_ERROR = "CHANNEL_DEFAULT_LANGUAGE_ERROR",
1289
1297
  SETTLE_PAYMENT_ERROR = "SETTLE_PAYMENT_ERROR",
1298
+ CANCEL_PAYMENT_ERROR = "CANCEL_PAYMENT_ERROR",
1290
1299
  EMPTY_ORDER_LINE_SELECTION_ERROR = "EMPTY_ORDER_LINE_SELECTION_ERROR",
1291
1300
  ITEMS_ALREADY_FULFILLED_ERROR = "ITEMS_ALREADY_FULFILLED_ERROR",
1292
1301
  INVALID_FULFILLMENT_HANDLER_ERROR = "INVALID_FULFILLMENT_HANDLER_ERROR",
@@ -1457,11 +1466,17 @@ export declare type Fulfillment = Node & {
1457
1466
  createdAt: Scalars['DateTime'];
1458
1467
  updatedAt: Scalars['DateTime'];
1459
1468
  orderItems: Array<OrderItem>;
1469
+ summary: Array<FulfillmentLineSummary>;
1460
1470
  state: Scalars['String'];
1461
1471
  method: Scalars['String'];
1462
1472
  trackingCode?: Maybe<Scalars['String']>;
1463
1473
  customFields?: Maybe<Scalars['JSON']>;
1464
1474
  };
1475
+ export declare type FulfillmentLineSummary = {
1476
+ __typename?: 'FulfillmentLineSummary';
1477
+ orderLine: OrderLine;
1478
+ quantity: Scalars['Int'];
1479
+ };
1465
1480
  /** Returned when there is an error in transitioning the Fulfillment state */
1466
1481
  export declare type FulfillmentStateTransitionError = ErrorResult & {
1467
1482
  __typename?: 'FulfillmentStateTransitionError';
@@ -2152,6 +2167,7 @@ export declare type Mutation = {
2152
2167
  authenticate: AuthenticationResult;
2153
2168
  cancelJob: Job;
2154
2169
  cancelOrder: CancelOrderResult;
2170
+ cancelPayment: CancelPaymentResult;
2155
2171
  /** Create a new Administrator */
2156
2172
  createAdministrator: Administrator;
2157
2173
  /** Create a new Asset */
@@ -2223,6 +2239,8 @@ export declare type Mutation = {
2223
2239
  deletePaymentMethod: DeletionResponse;
2224
2240
  /** Delete a Product */
2225
2241
  deleteProduct: DeletionResponse;
2242
+ /** Delete a ProductOption */
2243
+ deleteProductOption: DeletionResponse;
2226
2244
  /** Delete a ProductVariant */
2227
2245
  deleteProductVariant: DeletionResponse;
2228
2246
  deletePromotion: DeletionResponse;
@@ -2383,6 +2401,9 @@ export declare type MutationCancelJobArgs = {
2383
2401
  export declare type MutationCancelOrderArgs = {
2384
2402
  input: CancelOrderInput;
2385
2403
  };
2404
+ export declare type MutationCancelPaymentArgs = {
2405
+ id: Scalars['ID'];
2406
+ };
2386
2407
  export declare type MutationCreateAdministratorArgs = {
2387
2408
  input: CreateAdministratorInput;
2388
2409
  };
@@ -2499,6 +2520,9 @@ export declare type MutationDeletePaymentMethodArgs = {
2499
2520
  export declare type MutationDeleteProductArgs = {
2500
2521
  id: Scalars['ID'];
2501
2522
  };
2523
+ export declare type MutationDeleteProductOptionArgs = {
2524
+ id: Scalars['ID'];
2525
+ };
2502
2526
  export declare type MutationDeleteProductVariantArgs = {
2503
2527
  id: Scalars['ID'];
2504
2528
  };
@@ -2821,6 +2845,7 @@ export declare type OrderAddress = {
2821
2845
  };
2822
2846
  export declare type OrderFilterParameter = {
2823
2847
  customerLastName?: Maybe<StringOperators>;
2848
+ transactionId?: Maybe<StringOperators>;
2824
2849
  id?: Maybe<IdOperators>;
2825
2850
  createdAt?: Maybe<DateOperators>;
2826
2851
  updatedAt?: Maybe<DateOperators>;
@@ -2938,6 +2963,7 @@ export declare type OrderLine = Node & {
2938
2963
  discounts: Array<Discount>;
2939
2964
  taxLines: Array<TaxLine>;
2940
2965
  order: Order;
2966
+ fulfillments?: Maybe<Array<Fulfillment>>;
2941
2967
  customFields?: Maybe<Scalars['JSON']>;
2942
2968
  };
2943
2969
  export declare type OrderLineInput = {
@@ -2987,6 +3013,7 @@ export declare type OrderProcessState = {
2987
3013
  };
2988
3014
  export declare type OrderSortParameter = {
2989
3015
  customerLastName?: Maybe<SortOrder>;
3016
+ transactionId?: Maybe<SortOrder>;
2990
3017
  id?: Maybe<SortOrder>;
2991
3018
  createdAt?: Maybe<SortOrder>;
2992
3019
  updatedAt?: Maybe<SortOrder>;
@@ -4097,6 +4124,7 @@ export declare type ShippingMethod = Node & {
4097
4124
  id: Scalars['ID'];
4098
4125
  createdAt: Scalars['DateTime'];
4099
4126
  updatedAt: Scalars['DateTime'];
4127
+ languageCode: LanguageCode;
4100
4128
  code: Scalars['String'];
4101
4129
  name: Scalars['String'];
4102
4130
  description: Scalars['String'];
@@ -4110,6 +4138,7 @@ export declare type ShippingMethodFilterParameter = {
4110
4138
  id?: Maybe<IdOperators>;
4111
4139
  createdAt?: Maybe<DateOperators>;
4112
4140
  updatedAt?: Maybe<DateOperators>;
4141
+ languageCode?: Maybe<StringOperators>;
4113
4142
  code?: Maybe<StringOperators>;
4114
4143
  name?: Maybe<StringOperators>;
4115
4144
  description?: Maybe<StringOperators>;
@@ -5399,6 +5428,9 @@ export declare type GetFacetWithValuesQuery = {
5399
5428
  export declare type DiscountFragment = ({
5400
5429
  __typename?: 'Discount';
5401
5430
  } & Pick<Discount, 'adjustmentSource' | 'amount' | 'amountWithTax' | 'description' | 'type'>);
5431
+ export declare type PaymentFragment = ({
5432
+ __typename?: 'Payment';
5433
+ } & Pick<Payment, 'id' | 'transactionId' | 'amount' | 'method' | 'state' | 'metadata'>);
5402
5434
  export declare type RefundFragment = ({
5403
5435
  __typename?: 'Refund';
5404
5436
  } & Pick<Refund, 'id' | 'state' | 'items' | 'shipping' | 'adjustment' | 'transactionId' | 'paymentId'>);
@@ -5422,9 +5454,13 @@ export declare type OrderFragment = ({
5422
5454
  export declare type FulfillmentFragment = ({
5423
5455
  __typename?: 'Fulfillment';
5424
5456
  } & Pick<Fulfillment, 'id' | 'state' | 'nextStates' | 'createdAt' | 'updatedAt' | 'method' | 'trackingCode'> & {
5425
- orderItems: Array<({
5426
- __typename?: 'OrderItem';
5427
- } & Pick<OrderItem, 'id'>)>;
5457
+ summary: Array<({
5458
+ __typename?: 'FulfillmentLineSummary';
5459
+ } & Pick<FulfillmentLineSummary, 'quantity'> & {
5460
+ orderLine: ({
5461
+ __typename?: 'OrderLine';
5462
+ } & Pick<OrderLine, 'id'>);
5463
+ })>;
5428
5464
  });
5429
5465
  export declare type OrderLineFragment = ({
5430
5466
  __typename?: 'OrderLine';
@@ -5438,13 +5474,12 @@ export declare type OrderLineFragment = ({
5438
5474
  discounts: Array<({
5439
5475
  __typename?: 'Discount';
5440
5476
  } & DiscountFragment)>;
5477
+ fulfillments?: Maybe<Array<({
5478
+ __typename?: 'Fulfillment';
5479
+ } & FulfillmentFragment)>>;
5441
5480
  items: Array<({
5442
5481
  __typename?: 'OrderItem';
5443
- } & Pick<OrderItem, 'id' | 'unitPrice' | 'unitPriceWithTax' | 'taxRate' | 'refundId' | 'cancelled'> & {
5444
- fulfillment?: Maybe<({
5445
- __typename?: 'Fulfillment';
5446
- } & FulfillmentFragment)>;
5447
- })>;
5482
+ } & Pick<OrderItem, 'id' | 'refundId' | 'cancelled'>)>;
5448
5483
  });
5449
5484
  export declare type OrderDetailFragment = ({
5450
5485
  __typename?: 'Order';
@@ -5537,7 +5572,7 @@ export declare type SettlePaymentMutationVariables = Exact<{
5537
5572
  export declare type SettlePaymentMutation = {
5538
5573
  settlePayment: ({
5539
5574
  __typename?: 'Payment';
5540
- } & Pick<Payment, 'id' | 'transactionId' | 'amount' | 'method' | 'state' | 'metadata'>) | ({
5575
+ } & PaymentFragment) | ({
5541
5576
  __typename?: 'SettlePaymentError';
5542
5577
  } & Pick<SettlePaymentError, 'paymentErrorMessage'> & ErrorResult_SettlePaymentError_Fragment) | ({
5543
5578
  __typename?: 'PaymentStateTransitionError';
@@ -5545,6 +5580,18 @@ export declare type SettlePaymentMutation = {
5545
5580
  __typename?: 'OrderStateTransitionError';
5546
5581
  } & Pick<OrderStateTransitionError, 'transitionError'> & ErrorResult_OrderStateTransitionError_Fragment);
5547
5582
  };
5583
+ export declare type CancelPaymentMutationVariables = Exact<{
5584
+ id: Scalars['ID'];
5585
+ }>;
5586
+ export declare type CancelPaymentMutation = {
5587
+ cancelPayment: ({
5588
+ __typename?: 'Payment';
5589
+ } & PaymentFragment) | ({
5590
+ __typename?: 'CancelPaymentError';
5591
+ } & Pick<CancelPaymentError, 'paymentErrorMessage'> & ErrorResult_CancelPaymentError_Fragment) | ({
5592
+ __typename?: 'PaymentStateTransitionError';
5593
+ } & Pick<PaymentStateTransitionError, 'transitionError'> & ErrorResult_PaymentStateTransitionError_Fragment);
5594
+ };
5548
5595
  export declare type TransitionPaymentToStateMutationVariables = Exact<{
5549
5596
  id: Scalars['ID'];
5550
5597
  state: Scalars['String'];
@@ -5552,7 +5599,7 @@ export declare type TransitionPaymentToStateMutationVariables = Exact<{
5552
5599
  export declare type TransitionPaymentToStateMutation = {
5553
5600
  transitionPaymentToState: ({
5554
5601
  __typename?: 'Payment';
5555
- } & Pick<Payment, 'id' | 'transactionId' | 'amount' | 'method' | 'state' | 'metadata'>) | ({
5602
+ } & PaymentFragment) | ({
5556
5603
  __typename?: 'PaymentStateTransitionError';
5557
5604
  } & Pick<PaymentStateTransitionError, 'transitionError'> & ErrorResult_PaymentStateTransitionError_Fragment);
5558
5605
  };
@@ -6172,6 +6219,14 @@ export declare type UpdateProductOptionMutation = {
6172
6219
  __typename?: 'ProductOption';
6173
6220
  } & ProductOptionFragment);
6174
6221
  };
6222
+ export declare type DeleteProductOptionMutationVariables = Exact<{
6223
+ id: Scalars['ID'];
6224
+ }>;
6225
+ export declare type DeleteProductOptionMutation = {
6226
+ deleteProductOption: ({
6227
+ __typename?: 'DeletionResponse';
6228
+ } & Pick<DeletionResponse, 'result' | 'message'>);
6229
+ };
6175
6230
  export declare type DeleteProductVariantMutationVariables = Exact<{
6176
6231
  id: Scalars['ID'];
6177
6232
  }>;
@@ -7532,6 +7587,9 @@ declare type ErrorResult_AlreadyRefundedError_Fragment = ({
7532
7587
  declare type ErrorResult_CancelActiveOrderError_Fragment = ({
7533
7588
  __typename?: 'CancelActiveOrderError';
7534
7589
  } & Pick<CancelActiveOrderError, 'errorCode' | 'message'>);
7590
+ declare type ErrorResult_CancelPaymentError_Fragment = ({
7591
+ __typename?: 'CancelPaymentError';
7592
+ } & Pick<CancelPaymentError, 'errorCode' | 'message'>);
7535
7593
  declare type ErrorResult_ChannelDefaultLanguageError_Fragment = ({
7536
7594
  __typename?: 'ChannelDefaultLanguageError';
7537
7595
  } & Pick<ChannelDefaultLanguageError, 'errorCode' | 'message'>);
@@ -7634,7 +7692,7 @@ declare type ErrorResult_RefundStateTransitionError_Fragment = ({
7634
7692
  declare type ErrorResult_SettlePaymentError_Fragment = ({
7635
7693
  __typename?: 'SettlePaymentError';
7636
7694
  } & Pick<SettlePaymentError, 'errorCode' | 'message'>);
7637
- 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;
7695
+ export declare type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_CancelPaymentError_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;
7638
7696
  export declare type ShippingMethodFragment = ({
7639
7697
  __typename?: 'ShippingMethod';
7640
7698
  } & Pick<ShippingMethod, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'name' | 'description' | 'fulfillmentHandlerCode'> & {
@@ -8128,6 +8186,9 @@ export declare namespace GetFacetWithValues {
8128
8186
  export declare namespace Discount {
8129
8187
  type Fragment = DiscountFragment;
8130
8188
  }
8189
+ export declare namespace Payment {
8190
+ type Fragment = PaymentFragment;
8191
+ }
8131
8192
  export declare namespace Refund {
8132
8193
  type Fragment = RefundFragment;
8133
8194
  }
@@ -8142,15 +8203,16 @@ export declare namespace Order {
8142
8203
  }
8143
8204
  export declare namespace Fulfillment {
8144
8205
  type Fragment = FulfillmentFragment;
8145
- type OrderItems = NonNullable<(NonNullable<FulfillmentFragment['orderItems']>)[number]>;
8206
+ type Summary = NonNullable<(NonNullable<FulfillmentFragment['summary']>)[number]>;
8207
+ type OrderLine = (NonNullable<NonNullable<(NonNullable<FulfillmentFragment['summary']>)[number]>['orderLine']>);
8146
8208
  }
8147
8209
  export declare namespace OrderLine {
8148
8210
  type Fragment = OrderLineFragment;
8149
8211
  type FeaturedAsset = (NonNullable<OrderLineFragment['featuredAsset']>);
8150
8212
  type ProductVariant = (NonNullable<OrderLineFragment['productVariant']>);
8151
8213
  type Discounts = NonNullable<(NonNullable<OrderLineFragment['discounts']>)[number]>;
8214
+ type Fulfillments = NonNullable<(NonNullable<OrderLineFragment['fulfillments']>)[number]>;
8152
8215
  type Items = NonNullable<(NonNullable<OrderLineFragment['items']>)[number]>;
8153
- type Fulfillment = (NonNullable<NonNullable<(NonNullable<OrderLineFragment['items']>)[number]>['fulfillment']>);
8154
8216
  }
8155
8217
  export declare namespace OrderDetail {
8156
8218
  type Fragment = OrderDetailFragment;
@@ -8189,9 +8251,6 @@ export declare namespace SettlePayment {
8189
8251
  type Variables = SettlePaymentMutationVariables;
8190
8252
  type Mutation = SettlePaymentMutation;
8191
8253
  type SettlePayment = (NonNullable<SettlePaymentMutation['settlePayment']>);
8192
- type PaymentInlineFragment = (DiscriminateUnion<(NonNullable<SettlePaymentMutation['settlePayment']>), {
8193
- __typename?: 'Payment';
8194
- }>);
8195
8254
  type SettlePaymentErrorInlineFragment = (DiscriminateUnion<(NonNullable<SettlePaymentMutation['settlePayment']>), {
8196
8255
  __typename?: 'SettlePaymentError';
8197
8256
  }>);
@@ -8202,13 +8261,21 @@ export declare namespace SettlePayment {
8202
8261
  __typename?: 'OrderStateTransitionError';
8203
8262
  }>);
8204
8263
  }
8264
+ export declare namespace CancelPayment {
8265
+ type Variables = CancelPaymentMutationVariables;
8266
+ type Mutation = CancelPaymentMutation;
8267
+ type CancelPayment = (NonNullable<CancelPaymentMutation['cancelPayment']>);
8268
+ type CancelPaymentErrorInlineFragment = (DiscriminateUnion<(NonNullable<CancelPaymentMutation['cancelPayment']>), {
8269
+ __typename?: 'CancelPaymentError';
8270
+ }>);
8271
+ type PaymentStateTransitionErrorInlineFragment = (DiscriminateUnion<(NonNullable<CancelPaymentMutation['cancelPayment']>), {
8272
+ __typename?: 'PaymentStateTransitionError';
8273
+ }>);
8274
+ }
8205
8275
  export declare namespace TransitionPaymentToState {
8206
8276
  type Variables = TransitionPaymentToStateMutationVariables;
8207
8277
  type Mutation = TransitionPaymentToStateMutation;
8208
8278
  type TransitionPaymentToState = (NonNullable<TransitionPaymentToStateMutation['transitionPaymentToState']>);
8209
- type PaymentInlineFragment = (DiscriminateUnion<(NonNullable<TransitionPaymentToStateMutation['transitionPaymentToState']>), {
8210
- __typename?: 'Payment';
8211
- }>);
8212
8279
  type PaymentStateTransitionErrorInlineFragment = (DiscriminateUnion<(NonNullable<TransitionPaymentToStateMutation['transitionPaymentToState']>), {
8213
8280
  __typename?: 'PaymentStateTransitionError';
8214
8281
  }>);
@@ -8510,6 +8577,11 @@ export declare namespace UpdateProductOption {
8510
8577
  type Mutation = UpdateProductOptionMutation;
8511
8578
  type UpdateProductOption = (NonNullable<UpdateProductOptionMutation['updateProductOption']>);
8512
8579
  }
8580
+ export declare namespace DeleteProductOption {
8581
+ type Variables = DeleteProductOptionMutationVariables;
8582
+ type Mutation = DeleteProductOptionMutation;
8583
+ type DeleteProductOption = (NonNullable<DeleteProductOptionMutation['deleteProductOption']>);
8584
+ }
8513
8585
  export declare namespace DeleteProductVariant {
8514
8586
  type Variables = DeleteProductVariantMutationVariables;
8515
8587
  type Mutation = DeleteProductVariantMutation;
@@ -24,13 +24,15 @@ export declare function configurableDefinitionToInstance(def: ConfigurableOperat
24
24
  * ```
25
25
  * {
26
26
  * code: 'my-operation',
27
- * args: [
27
+ * arguments: [
28
28
  * { name: 'someProperty', value: 'foo' }
29
29
  * ]
30
30
  * }
31
31
  * ```
32
32
  */
33
- export declare function toConfigurableOperationInput(operation: ConfigurableOperation, formValueOperations: any): ConfigurableOperationInput;
33
+ export declare function toConfigurableOperationInput(operation: ConfigurableOperation, formValueOperations: {
34
+ args: Record<string, any>;
35
+ }): ConfigurableOperationInput;
34
36
  export declare function configurableOperationValueIsValid(def?: ConfigurableOperationDefinition, value?: {
35
37
  code: string;
36
38
  args: {
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "1.6.3";
1
+ export declare const ADMIN_UI_VERSION = "1.7.0";
@@ -1,4 +1,5 @@
1
1
  export declare const DISCOUNT_FRAGMENT: import("graphql").DocumentNode;
2
+ export declare const PAYMENT_FRAGMENT: import("graphql").DocumentNode;
2
3
  export declare const REFUND_FRAGMENT: import("graphql").DocumentNode;
3
4
  export declare const ORDER_ADDRESS_FRAGMENT: import("graphql").DocumentNode;
4
5
  export declare const ORDER_FRAGMENT: import("graphql").DocumentNode;
@@ -8,6 +9,7 @@ export declare const ORDER_DETAIL_FRAGMENT: import("graphql").DocumentNode;
8
9
  export declare const GET_ORDERS_LIST: import("graphql").DocumentNode;
9
10
  export declare const GET_ORDER: import("graphql").DocumentNode;
10
11
  export declare const SETTLE_PAYMENT: import("graphql").DocumentNode;
12
+ export declare const CANCEL_PAYMENT: import("graphql").DocumentNode;
11
13
  export declare const TRANSITION_PAYMENT_TO_STATE: import("graphql").DocumentNode;
12
14
  export declare const CREATE_FULFILLMENT: import("graphql").DocumentNode;
13
15
  export declare const CANCEL_ORDER: import("graphql").DocumentNode;
@@ -28,6 +28,7 @@ export declare const SEARCH_PRODUCTS: import("graphql").DocumentNode;
28
28
  export declare const PRODUCT_SELECTOR_SEARCH: import("graphql").DocumentNode;
29
29
  export declare const UPDATE_PRODUCT_OPTION_GROUP: import("graphql").DocumentNode;
30
30
  export declare const UPDATE_PRODUCT_OPTION: import("graphql").DocumentNode;
31
+ export declare const DELETE_PRODUCT_OPTION: import("graphql").DocumentNode;
31
32
  export declare const DELETE_PRODUCT_VARIANT: import("graphql").DocumentNode;
32
33
  export declare const GET_PRODUCT_VARIANT_OPTIONS: import("graphql").DocumentNode;
33
34
  export declare const ASSIGN_PRODUCTS_TO_CHANNEL: import("graphql").DocumentNode;
@@ -14,6 +14,7 @@ export declare class OrderDataService {
14
14
  options?: import("../../common/generated-types").Maybe<HistoryEntryListOptions> | undefined;
15
15
  }>>;
16
16
  settlePayment(id: string): import("rxjs").Observable<import("../../common/generated-types").SettlePaymentMutation>;
17
+ cancelPayment(id: string): import("rxjs").Observable<import("../../common/generated-types").CancelPaymentMutation>;
17
18
  transitionPaymentToState(id: string, state: string): import("rxjs").Observable<import("../../common/generated-types").TransitionPaymentToStateMutation>;
18
19
  createFulfillment(input: FulfillOrderInput): import("rxjs").Observable<import("../../common/generated-types").CreateFulfillmentMutation>;
19
20
  transitionFulfillmentToState(id: string, state: string): import("rxjs").Observable<import("../../common/generated-types").TransitionFulfillmentToStateMutation>;
@@ -49,6 +49,7 @@ export declare class ProductDataService {
49
49
  createProductOptionGroups(productOptionGroup: CreateProductOptionGroupInput): import("rxjs").Observable<import("../../common/generated-types").CreateProductOptionGroupMutation>;
50
50
  addOptionGroupToProduct(variables: AddOptionGroupToProduct.Variables): import("rxjs").Observable<import("../../common/generated-types").AddOptionGroupToProductMutation>;
51
51
  addOptionToGroup(input: CreateProductOptionInput): import("rxjs").Observable<import("../../common/generated-types").AddOptionToGroupMutation>;
52
+ deleteProductOption(id: string): import("rxjs").Observable<import("../../common/generated-types").DeleteProductOptionMutation>;
52
53
  removeOptionGroupFromProduct(variables: RemoveOptionGroupFromProduct.Variables): import("rxjs").Observable<import("../../common/generated-types").RemoveOptionGroupFromProductMutation>;
53
54
  updateProductOption(input: UpdateProductOptionInput): import("rxjs").Observable<import("../../common/generated-types").UpdateProductOptionMutation>;
54
55
  updateProductOptionGroup(input: UpdateProductOptionGroupInput): import("rxjs").Observable<import("../../common/generated-types").UpdateProductOptionGroupMutation>;
@@ -1,13 +1,15 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import { FormGroup } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
2
4
  import { InputComponentConfig } from '../../../common/component-registry-types';
3
- import { CustomFieldConfig, CustomFieldsFragment } from '../../../common/generated-types';
5
+ import { CustomFieldConfig, CustomFieldsFragment, LanguageCode } from '../../../common/generated-types';
4
6
  import { DataService } from '../../../data/providers/data.service';
5
7
  import { CustomFieldComponentService, CustomFieldEntityName } from '../../../providers/custom-field-component/custom-field-component.service';
6
8
  /**
7
9
  * This component renders the appropriate type of form input control based
8
10
  * on the "type" property of the provided CustomFieldConfig.
9
11
  */
10
- export declare class CustomFieldControlComponent {
12
+ export declare class CustomFieldControlComponent implements OnInit {
11
13
  private dataService;
12
14
  private customFieldComponentService;
13
15
  entityName: CustomFieldEntityName;
@@ -19,7 +21,9 @@ export declare class CustomFieldControlComponent {
19
21
  hasCustomControl: boolean;
20
22
  private customComponentPlaceholder;
21
23
  private customComponentFactory;
24
+ uiLanguage$: Observable<LanguageCode>;
22
25
  constructor(dataService: DataService, customFieldComponentService: CustomFieldComponentService);
26
+ ngOnInit(): void;
23
27
  getFieldDefinition(): CustomFieldConfig & {
24
28
  ui?: InputComponentConfig;
25
29
  };
@@ -1,4 +1,4 @@
1
- import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
1
+ import { AfterContentInit, EventEmitter, OnChanges, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
2
  import { DataTableColumnComponent } from './data-table-column.component';
3
3
  /**
4
4
  * @description
@@ -59,7 +59,7 @@ import { DataTableColumnComponent } from './data-table-column.component';
59
59
  *
60
60
  * @docsCategory components
61
61
  */
62
- export declare class DataTableComponent<T> implements AfterContentInit {
62
+ export declare class DataTableComponent<T> implements AfterContentInit, OnChanges {
63
63
  items: T[];
64
64
  itemsPerPage: number;
65
65
  currentPage: number;
@@ -74,6 +74,9 @@ export declare class DataTableComponent<T> implements AfterContentInit {
74
74
  columns: QueryList<DataTableColumnComponent>;
75
75
  templateRefs: QueryList<TemplateRef<any>>;
76
76
  rowTemplate: TemplateRef<any>;
77
+ currentStart: number;
78
+ currentEnd: number;
77
79
  ngAfterContentInit(): void;
78
80
  trackByFn(index: number, item: any): any;
81
+ ngOnChanges(changes: SimpleChanges): void;
79
82
  }
@@ -35,12 +35,13 @@ export declare class FacetValueSelectorComponent implements OnInit, ControlValue
35
35
  selectedValuesChange: EventEmitter<import("../../../common/generated-types").FacetValueFragment[]>;
36
36
  facets: FacetWithValues.Fragment[];
37
37
  readonly: boolean;
38
+ transformControlValueAccessorValue: (value: FacetValueSeletorItem[]) => any[];
38
39
  private ngSelect;
39
40
  facetValues: FacetValueSeletorItem[];
40
41
  onChangeFn: (val: any) => void;
41
42
  onTouchFn: () => void;
42
43
  disabled: boolean;
43
- value: string[];
44
+ value: Array<string | FacetValue.Fragment>;
44
45
  constructor(dataService: DataService);
45
46
  ngOnInit(): void;
46
47
  onChange(selected: FacetValueSeletorItem[]): void;
@@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
5
5
  import { FormInputComponent, InputComponentConfig } from '../../../common/component-registry-types';
6
6
  import { FacetWithValues } from '../../../common/generated-types';
7
7
  import { DataService } from '../../../data/providers/data.service';
8
+ import { FacetValueSeletorItem } from '../../components/facet-value-selector/facet-value-selector.component';
8
9
  /**
9
10
  * @description
10
11
  * Allows the selection of multiple FacetValues via an autocomplete select input.
@@ -23,4 +24,5 @@ export declare class FacetValueFormInputComponent implements FormInputComponent,
23
24
  config: InputComponentConfig;
24
25
  constructor(dataService: DataService);
25
26
  ngOnInit(): void;
27
+ valueTransformFn: (values: FacetValueSeletorItem[]) => string | FacetValueSeletorItem[];
26
28
  }
@@ -9,7 +9,8 @@ import { FacetValueFormInputComponent } from './facet-value-form-input/facet-val
9
9
  import { PasswordFormInputComponent } from './password-form-input/password-form-input.component';
10
10
  import { ProductMultiSelectorFormInputComponent } from './product-multi-selector-form-input/product-multi-selector-form-input.component';
11
11
  import { ProductSelectorFormInputComponent } from './product-selector-form-input/product-selector-form-input.component';
12
- export declare const defaultFormInputs: (typeof ProductSelectorFormInputComponent | typeof CustomerGroupFormInputComponent | typeof PasswordFormInputComponent | typeof CurrencyFormInputComponent | typeof FacetValueFormInputComponent | typeof JsonEditorFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof CombinationModeFormInputComponent)[];
12
+ import { SelectFormInputComponent } from './select-form-input/select-form-input.component';
13
+ export declare const defaultFormInputs: (typeof ProductSelectorFormInputComponent | typeof CustomerGroupFormInputComponent | typeof PasswordFormInputComponent | typeof CurrencyFormInputComponent | typeof SelectFormInputComponent | typeof FacetValueFormInputComponent | typeof JsonEditorFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof CombinationModeFormInputComponent)[];
13
14
  /**
14
15
  * @description
15
16
  * Registers a custom FormInputComponent which can be used to control the argument inputs
@@ -1,7 +1,10 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import { FormControl } from '@angular/forms';
2
3
  import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
4
+ import { Observable } from 'rxjs';
3
5
  import { FormInputComponent } from '../../../common/component-registry-types';
4
- import { CustomFieldConfigFragment } from '../../../common/generated-types';
6
+ import { CustomFieldConfigFragment, LanguageCode } from '../../../common/generated-types';
7
+ import { DataService } from '../../../data/providers/data.service';
5
8
  /**
6
9
  * @description
7
10
  * Uses a select input to allow the selection of a string value. Should be used with
@@ -10,10 +13,15 @@ import { CustomFieldConfigFragment } from '../../../common/generated-types';
10
13
  * @docsCategory custom-input-components
11
14
  * @docsPage default-inputs
12
15
  */
13
- export declare class SelectFormInputComponent implements FormInputComponent {
16
+ export declare class SelectFormInputComponent implements FormInputComponent, OnInit {
17
+ private dataService;
14
18
  static readonly id: DefaultFormComponentId;
15
19
  readonly: boolean;
16
20
  formControl: FormControl;
17
21
  config: DefaultFormComponentConfig<'select-form-input'> & CustomFieldConfigFragment;
22
+ uiLanguage$: Observable<LanguageCode>;
18
23
  get options(): any;
24
+ constructor(dataService: DataService);
25
+ ngOnInit(): void;
26
+ trackByFn(index: number, item: any): any;
19
27
  }
@@ -1,16 +1,10 @@
1
- import { OnDestroy, PipeTransform } from '@angular/core';
2
- import { CustomFieldConfig, StringFieldOption } from '../../common/generated-types';
3
- import { DataService } from '../../data/providers/data.service';
1
+ import { PipeTransform } from '@angular/core';
2
+ import { CustomFieldConfig, LanguageCode, StringFieldOption } from '../../common/generated-types';
4
3
  /**
5
4
  * Displays a localized label for a CustomField or StringFieldOption, falling back to the
6
5
  * name/value if none are defined.
7
6
  */
8
- export declare class CustomFieldLabelPipe implements PipeTransform, OnDestroy {
9
- private dataService;
10
- private readonly subscription;
11
- private uiLanguageCode;
12
- constructor(dataService: DataService);
13
- transform(value: CustomFieldConfig | StringFieldOption): string;
14
- ngOnDestroy(): void;
7
+ export declare class CustomFieldLabelPipe implements PipeTransform {
8
+ transform(value: CustomFieldConfig | StringFieldOption, uiLanguageCode: LanguageCode | null): string;
15
9
  private isCustomFieldConfig;
16
10
  }