@vendure/admin-ui 1.4.7 → 1.5.2
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/bundles/vendure-admin-ui-catalog.umd.js +134 -143
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +329 -269
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +51 -20
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +109 -19
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-system.umd.js.map +1 -1
- package/catalog/components/{product-assets/product-assets.component.d.ts → assets/assets.component.d.ts} +4 -10
- package/catalog/components/product-detail/product-detail.component.d.ts +2 -1
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +2 -1
- package/catalog/public_api.d.ts +1 -1
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +109 -6
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/customer-definitions.d.ts +1 -0
- package/core/data/providers/customer-data.service.d.ts +1 -0
- package/core/data/providers/promotion-data.service.d.ts +2 -2
- package/core/public_api.d.ts +2 -0
- package/core/shared/components/asset-preview-links/asset-preview-links.component.d.ts +5 -0
- package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
- package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +15 -0
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/address-card/address-card.component.d.ts +2 -0
- package/customer/components/customer-detail/customer-detail.component.d.ts +2 -0
- package/customer/components/customer-list/customer-list.component.d.ts +1 -2
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +3 -3
- package/esm2015/catalog/components/assets/assets.component.js +93 -0
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +2 -2
- package/esm2015/catalog/components/facet-detail/facet-detail.component.js +3 -3
- package/esm2015/catalog/components/product-detail/product-detail.component.js +4 -3
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +9 -2
- package/esm2015/catalog/public_api.js +2 -2
- package/esm2015/core/common/generated-types.js +30 -1
- package/esm2015/core/common/introspection-result.js +189 -249
- package/esm2015/core/common/utilities/configurable-operation-utils.js +21 -3
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/data/definitions/customer-definitions.js +8 -1
- package/esm2015/core/data/definitions/order-definitions.js +2 -1
- package/esm2015/core/data/providers/customer-data.service.js +5 -2
- package/esm2015/core/data/providers/interceptor.js +1 -1
- package/esm2015/core/data/providers/promotion-data.service.js +3 -2
- package/esm2015/core/data/providers/shipping-method-data.service.js +1 -1
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +1 -1
- package/esm2015/core/public_api.js +3 -1
- package/esm2015/core/shared/components/address-form/address-form.component.js +1 -1
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +2 -2
- package/esm2015/core/shared/components/asset-preview/asset-preview.component.js +4 -4
- package/esm2015/core/shared/components/asset-preview-links/asset-preview-links.component.js +18 -0
- package/esm2015/core/shared/components/object-tree/object-tree.component.js +3 -3
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.js +48 -0
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.js +2 -2
- package/esm2015/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.js +1 -1
- package/esm2015/core/shared/shared.module.js +5 -1
- package/esm2015/customer/components/address-card/address-card.component.js +9 -3
- package/esm2015/customer/components/customer-detail/customer-detail.component.js +35 -13
- package/esm2015/customer/components/customer-list/customer-list.component.js +12 -9
- package/esm2015/order/components/add-manual-payment-dialog/add-manual-payment-dialog.component.js +1 -1
- package/esm2015/order/components/cancel-order-dialog/cancel-order-dialog.component.js +36 -6
- package/esm2015/order/components/fulfill-order-dialog/fulfill-order-dialog.component.js +1 -1
- package/esm2015/order/components/line-refunds/line-refunds.component.js +1 -1
- package/esm2015/order/components/modification-detail/modification-detail.component.js +1 -1
- package/esm2015/order/components/order-detail/order-detail.component.js +2 -2
- package/esm2015/order/components/order-editor/order-editor.component.js +23 -8
- package/esm2015/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.js +1 -1
- package/esm2015/order/components/order-history/order-history.component.js +2 -2
- package/esm2015/order/components/order-list/order-list.component.js +1 -1
- package/esm2015/order/components/order-table/order-table.component.js +3 -3
- package/esm2015/order/components/refund-order-dialog/refund-order-dialog.component.js +10 -5
- package/esm2015/order/order.routes.js +1 -1
- package/esm2015/settings/components/role-list/role-list.component.js +1 -1
- package/esm2015/settings/components/test-order-builder/test-order-builder.component.js +1 -1
- package/esm2015/settings/providers/routing/shipping-method-resolver.js +1 -1
- package/esm2015/system/components/job-list/job-list.component.js +1 -1
- package/fesm2015/vendure-admin-ui-catalog.js +105 -111
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +310 -249
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +53 -22
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +69 -19
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/fesm2015/vendure-admin-ui-system.js.map +1 -1
- package/order/components/cancel-order-dialog/cancel-order-dialog.component.d.ts +3 -0
- package/order/components/order-editor/order-editor.component.d.ts +8 -2
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +5 -5
- package/static/i18n-messages/cs.json +7 -1
- package/static/i18n-messages/de.json +7 -1
- package/static/i18n-messages/en.json +9 -3
- package/static/i18n-messages/es.json +7 -1
- package/static/i18n-messages/fr.json +7 -1
- package/static/i18n-messages/it.json +7 -1
- package/static/i18n-messages/pl.json +7 -1
- package/static/i18n-messages/pt_BR.json +7 -1
- package/static/i18n-messages/pt_PT.json +7 -1
- package/static/i18n-messages/ru.json +7 -1
- package/static/i18n-messages/uk.json +7 -1
- package/static/i18n-messages/zh_Hans.json +7 -1
- package/static/i18n-messages/zh_Hant.json +7 -1
- package/static/styles/global/_overrides.scss +6 -0
- package/static/theme.min.css +1 -1
- package/static/vendure-ui-config.json +25 -10
- 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']>;
|
|
@@ -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'];
|
|
@@ -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']>;
|
|
@@ -3083,6 +3129,31 @@ export declare type PaymentStateTransitionError = ErrorResult & {
|
|
|
3083
3129
|
* Permissions for administrators and customers. Used to control access to
|
|
3084
3130
|
* GraphQL resolvers via the {@link Allow} decorator.
|
|
3085
3131
|
*
|
|
3132
|
+
* ## Understanding Permission.Owner
|
|
3133
|
+
*
|
|
3134
|
+
* `Permission.Owner` is a special permission which is used in some of the Vendure resolvers to indicate that that resolver should only
|
|
3135
|
+
* be accessible to the "owner" of that resource.
|
|
3136
|
+
*
|
|
3137
|
+
* For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
|
|
3138
|
+
* based on the activeUserId of the current session. As a result, the resolver code looks like this:
|
|
3139
|
+
*
|
|
3140
|
+
* @example
|
|
3141
|
+
* ```TypeScript
|
|
3142
|
+
* \@Query()
|
|
3143
|
+
* \@Allow(Permission.Owner)
|
|
3144
|
+
* async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
|
|
3145
|
+
* const userId = ctx.activeUserId;
|
|
3146
|
+
* if (userId) {
|
|
3147
|
+
* return this.customerService.findOneByUserId(ctx, userId);
|
|
3148
|
+
* }
|
|
3149
|
+
* }
|
|
3150
|
+
* ```
|
|
3151
|
+
*
|
|
3152
|
+
* Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
|
|
3153
|
+
* nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
|
|
3154
|
+
* of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
|
|
3155
|
+
*
|
|
3156
|
+
*
|
|
3086
3157
|
* @docsCategory common
|
|
3087
3158
|
*/
|
|
3088
3159
|
export declare enum Permission {
|
|
@@ -4153,6 +4224,10 @@ export declare type StringFieldOption = {
|
|
|
4153
4224
|
value: Scalars['String'];
|
|
4154
4225
|
label?: Maybe<Array<LocalizedString>>;
|
|
4155
4226
|
};
|
|
4227
|
+
/** Operators for filtering on a list of String fields */
|
|
4228
|
+
export declare type StringListOperators = {
|
|
4229
|
+
inList: Scalars['String'];
|
|
4230
|
+
};
|
|
4156
4231
|
/** Operators for filtering on a String field */
|
|
4157
4232
|
export declare type StringOperators = {
|
|
4158
4233
|
eq?: Maybe<Scalars['String']>;
|
|
@@ -5084,6 +5159,14 @@ export declare type UpdateCustomerAddressMutation = {
|
|
|
5084
5159
|
__typename?: 'Address';
|
|
5085
5160
|
} & AddressFragment);
|
|
5086
5161
|
};
|
|
5162
|
+
export declare type DeleteCustomerAddressMutationVariables = Exact<{
|
|
5163
|
+
id: Scalars['ID'];
|
|
5164
|
+
}>;
|
|
5165
|
+
export declare type DeleteCustomerAddressMutation = {
|
|
5166
|
+
deleteCustomerAddress: ({
|
|
5167
|
+
__typename?: 'Success';
|
|
5168
|
+
} & Pick<Success, 'success'>);
|
|
5169
|
+
};
|
|
5087
5170
|
export declare type CreateCustomerGroupMutationVariables = Exact<{
|
|
5088
5171
|
input: CreateCustomerGroupInput;
|
|
5089
5172
|
}>;
|
|
@@ -5342,7 +5425,7 @@ export declare type OrderLineFragment = ({
|
|
|
5342
5425
|
});
|
|
5343
5426
|
export declare type OrderDetailFragment = ({
|
|
5344
5427
|
__typename?: 'Order';
|
|
5345
|
-
} & Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'nextStates' | 'active' | 'subTotal' | 'subTotalWithTax' | 'total' | 'totalWithTax' | 'currencyCode' | 'shipping' | 'shippingWithTax'> & {
|
|
5428
|
+
} & Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'nextStates' | 'active' | 'couponCodes' | 'subTotal' | 'subTotalWithTax' | 'total' | 'totalWithTax' | 'currencyCode' | 'shipping' | 'shippingWithTax'> & {
|
|
5346
5429
|
customer?: Maybe<({
|
|
5347
5430
|
__typename?: 'Customer';
|
|
5348
5431
|
} & Pick<Customer, 'id' | 'firstName' | 'lastName'>)>;
|
|
@@ -5630,7 +5713,13 @@ export declare type ModifyOrderMutation = {
|
|
|
5630
5713
|
__typename?: 'NegativeQuantityError';
|
|
5631
5714
|
} & ErrorResult_NegativeQuantityError_Fragment) | ({
|
|
5632
5715
|
__typename?: 'InsufficientStockError';
|
|
5633
|
-
} & ErrorResult_InsufficientStockError_Fragment)
|
|
5716
|
+
} & ErrorResult_InsufficientStockError_Fragment) | ({
|
|
5717
|
+
__typename?: 'CouponCodeExpiredError';
|
|
5718
|
+
} & ErrorResult_CouponCodeExpiredError_Fragment) | ({
|
|
5719
|
+
__typename?: 'CouponCodeInvalidError';
|
|
5720
|
+
} & ErrorResult_CouponCodeInvalidError_Fragment) | ({
|
|
5721
|
+
__typename?: 'CouponCodeLimitError';
|
|
5722
|
+
} & ErrorResult_CouponCodeLimitError_Fragment);
|
|
5634
5723
|
};
|
|
5635
5724
|
export declare type AddManualPaymentMutationVariables = Exact<{
|
|
5636
5725
|
input: ManualPaymentInput;
|
|
@@ -7423,6 +7512,15 @@ declare type ErrorResult_CancelActiveOrderError_Fragment = ({
|
|
|
7423
7512
|
declare type ErrorResult_ChannelDefaultLanguageError_Fragment = ({
|
|
7424
7513
|
__typename?: 'ChannelDefaultLanguageError';
|
|
7425
7514
|
} & Pick<ChannelDefaultLanguageError, 'errorCode' | 'message'>);
|
|
7515
|
+
declare type ErrorResult_CouponCodeExpiredError_Fragment = ({
|
|
7516
|
+
__typename?: 'CouponCodeExpiredError';
|
|
7517
|
+
} & Pick<CouponCodeExpiredError, 'errorCode' | 'message'>);
|
|
7518
|
+
declare type ErrorResult_CouponCodeInvalidError_Fragment = ({
|
|
7519
|
+
__typename?: 'CouponCodeInvalidError';
|
|
7520
|
+
} & Pick<CouponCodeInvalidError, 'errorCode' | 'message'>);
|
|
7521
|
+
declare type ErrorResult_CouponCodeLimitError_Fragment = ({
|
|
7522
|
+
__typename?: 'CouponCodeLimitError';
|
|
7523
|
+
} & Pick<CouponCodeLimitError, 'errorCode' | 'message'>);
|
|
7426
7524
|
declare type ErrorResult_CreateFulfillmentError_Fragment = ({
|
|
7427
7525
|
__typename?: 'CreateFulfillmentError';
|
|
7428
7526
|
} & Pick<CreateFulfillmentError, 'errorCode' | 'message'>);
|
|
@@ -7513,7 +7611,7 @@ declare type ErrorResult_RefundStateTransitionError_Fragment = ({
|
|
|
7513
7611
|
declare type ErrorResult_SettlePaymentError_Fragment = ({
|
|
7514
7612
|
__typename?: 'SettlePaymentError';
|
|
7515
7613
|
} & 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;
|
|
7614
|
+
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
7615
|
export declare type ShippingMethodFragment = ({
|
|
7518
7616
|
__typename?: 'ShippingMethod';
|
|
7519
7617
|
} & Pick<ShippingMethod, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'name' | 'description' | 'fulfillmentHandlerCode'> & {
|
|
@@ -7881,6 +7979,11 @@ export declare namespace UpdateCustomerAddress {
|
|
|
7881
7979
|
type Mutation = UpdateCustomerAddressMutation;
|
|
7882
7980
|
type UpdateCustomerAddress = (NonNullable<UpdateCustomerAddressMutation['updateCustomerAddress']>);
|
|
7883
7981
|
}
|
|
7982
|
+
export declare namespace DeleteCustomerAddress {
|
|
7983
|
+
type Variables = DeleteCustomerAddressMutationVariables;
|
|
7984
|
+
type Mutation = DeleteCustomerAddressMutation;
|
|
7985
|
+
type DeleteCustomerAddress = (NonNullable<DeleteCustomerAddressMutation['deleteCustomerAddress']>);
|
|
7986
|
+
}
|
|
7884
7987
|
export declare namespace CreateCustomerGroup {
|
|
7885
7988
|
type Variables = CreateCustomerGroupMutationVariables;
|
|
7886
7989
|
type Mutation = CreateCustomerGroupMutation;
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "1.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "1.5.2";
|
|
@@ -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<{
|
package/core/public_api.d.ts
CHANGED
|
@@ -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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
-
|
|
26
|
+
ngOnChanges(): void;
|
|
27
27
|
isObject(value: any): boolean;
|
|
28
28
|
private getEntries;
|
|
29
29
|
}
|
|
@@ -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
|
+
}
|