@vendure/admin-ui 2.0.0-next.16 → 2.0.0-next.18
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/catalog/catalog.module.d.ts +8 -3
- package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +22 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +41 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
- package/catalog/components/collection-list/collection-list-bulk-actions.d.ts +6 -0
- package/catalog/components/collection-list/collection-list.component.d.ts +7 -5
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +10 -6
- package/catalog/components/collection-tree/collection-tree.component.d.ts +3 -1
- package/catalog/components/facet-list/facet-list-bulk-actions.d.ts +5 -0
- package/catalog/components/facet-list/facet-list.component.d.ts +2 -1
- package/catalog/components/product-detail/product-detail.component.d.ts +1 -1
- package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
- package/catalog/components/product-list/product-list.component.d.ts +4 -2
- package/catalog/public_api.d.ts +6 -0
- package/core/common/generated-types.d.ts +269 -2
- package/core/common/utilities/bulk-action-utils.d.ts +19 -0
- package/core/common/utilities/configurable-operation-utils.d.ts +4 -1
- package/core/common/utilities/selection-manager.d.ts +7 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/collection-definitions.d.ts +3 -0
- package/core/data/definitions/facet-definitions.d.ts +3 -0
- package/core/data/definitions/product-definitions.d.ts +1 -0
- package/core/data/providers/collection-data.service.d.ts +3 -0
- package/core/data/providers/facet-data.service.d.ts +3 -0
- package/core/data/providers/product-data.service.d.ts +1 -0
- package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +9 -0
- package/core/providers/bulk-action-registry/bulk-action-types.d.ts +149 -0
- package/core/providers/bulk-action-registry/register-bulk-action.d.ts +53 -0
- package/core/providers/modal/modal.types.d.ts +2 -0
- package/core/providers/nav-builder/nav-builder-types.d.ts +1 -0
- package/core/public_api.d.ts +5 -0
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +1 -1
- package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +32 -0
- package/core/shared/components/data-table/data-table.component.d.ts +27 -8
- package/core/shared/shared.module.d.ts +32 -31
- package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +11 -4
- package/esm2020/catalog/catalog.module.mjs +31 -6
- package/esm2020/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.mjs +4 -1
- package/esm2020/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.mjs +50 -0
- package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.mjs +84 -0
- package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.mjs +69 -0
- package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +1 -1
- package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +3 -3
- package/esm2020/catalog/components/collection-list/collection-list-bulk-actions.mjs +143 -0
- package/esm2020/catalog/components/collection-list/collection-list.component.mjs +16 -7
- package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +13 -6
- package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +5 -3
- package/esm2020/catalog/components/facet-list/facet-list-bulk-actions.mjs +202 -0
- package/esm2020/catalog/components/facet-list/facet-list.component.mjs +14 -5
- package/esm2020/catalog/components/generate-product-variants/generate-product-variants.component.mjs +1 -1
- package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +7 -2
- package/esm2020/catalog/components/product-detail/product-detail.component.mjs +34 -22
- package/esm2020/catalog/components/product-list/product-list-bulk-actions.mjs +168 -0
- package/esm2020/catalog/components/product-list/product-list.component.mjs +9 -4
- package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +3 -3
- package/esm2020/catalog/providers/routing/collection-resolver.mjs +2 -1
- package/esm2020/catalog/public_api.mjs +7 -1
- package/esm2020/core/common/generated-types.mjs +3 -2
- package/esm2020/core/common/introspection-result.mjs +266 -191
- package/esm2020/core/common/utilities/bulk-action-utils.mjs +35 -0
- package/esm2020/core/common/utilities/configurable-operation-utils.mjs +7 -2
- package/esm2020/core/common/utilities/selection-manager.mjs +33 -1
- package/esm2020/core/common/version.mjs +2 -2
- package/esm2020/core/components/app-shell/app-shell.component.mjs +2 -2
- package/esm2020/core/data/definitions/collection-definitions.mjs +30 -1
- package/esm2020/core/data/definitions/facet-definitions.mjs +31 -1
- package/esm2020/core/data/definitions/order-definitions.mjs +443 -443
- package/esm2020/core/data/definitions/product-definitions.mjs +751 -743
- package/esm2020/core/data/providers/collection-data.service.mjs +17 -2
- package/esm2020/core/data/providers/facet-data.service.mjs +18 -2
- package/esm2020/core/data/providers/product-data.service.mjs +7 -2
- package/esm2020/core/data/utils/remove-readonly-custom-fields.mjs +4 -1
- package/esm2020/core/providers/bulk-action-registry/bulk-action-registry.service.mjs +28 -0
- package/esm2020/core/providers/bulk-action-registry/bulk-action-types.mjs +2 -0
- package/esm2020/core/providers/bulk-action-registry/register-bulk-action.mjs +63 -0
- package/esm2020/core/providers/modal/modal.service.mjs +2 -1
- package/esm2020/core/providers/modal/modal.types.mjs +1 -1
- package/esm2020/core/providers/nav-builder/nav-builder-types.mjs +1 -1
- package/esm2020/core/public_api.mjs +6 -1
- package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +2 -2
- package/esm2020/core/shared/components/bulk-action-menu/bulk-action-menu.component.mjs +97 -0
- package/esm2020/core/shared/components/custom-field-control/custom-field-control.component.mjs +1 -1
- package/esm2020/core/shared/components/data-table/data-table.component.mjs +62 -19
- package/esm2020/core/shared/components/dropdown/dropdown-menu.component.mjs +2 -2
- package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +7 -4
- package/esm2020/core/shared/components/language-selector/language-selector.component.mjs +3 -3
- package/esm2020/core/shared/components/simple-dialog/simple-dialog.component.mjs +3 -3
- package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +1 -1
- package/esm2020/core/shared/pipes/custom-field-label.pipe.mjs +1 -1
- package/esm2020/core/shared/pipes/locale-currency.pipe.mjs +10 -2
- package/esm2020/core/shared/shared.module.mjs +7 -3
- package/esm2020/customer/components/customer-detail/customer-detail.component.mjs +1 -1
- package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +7 -6
- package/esm2020/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +3 -3
- package/esm2020/customer/components/customer-list/customer-list.component.mjs +1 -1
- package/esm2020/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +1 -1
- package/esm2020/marketing/components/promotion-list/promotion-list.component.mjs +1 -1
- package/esm2020/order/components/order-editor/order-editor.component.mjs +12 -5
- package/esm2020/order/components/order-list/order-list.component.mjs +1 -1
- package/esm2020/settings/components/administrator-list/administrator-list.component.mjs +1 -1
- package/esm2020/settings/components/channel-list/channel-list.component.mjs +1 -1
- package/esm2020/settings/components/country-list/country-list.component.mjs +1 -1
- package/esm2020/settings/components/payment-method-list/payment-method-list.component.mjs +1 -1
- package/esm2020/settings/components/role-list/role-list.component.mjs +1 -1
- package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +3 -1
- package/esm2020/settings/components/shipping-method-list/shipping-method-list.component.mjs +1 -1
- package/esm2020/settings/components/tax-category-list/tax-category-list.component.mjs +1 -1
- package/esm2020/settings/components/tax-rate-list/tax-rate-list.component.mjs +1 -1
- package/esm2020/settings/components/zone-list/zone-list.component.mjs +3 -3
- package/esm2020/settings/components/zone-member-list/zone-member-list.component.mjs +3 -3
- package/esm2020/system/components/job-list/job-list.component.mjs +1 -1
- package/fesm2015/vendure-admin-ui-catalog.mjs +808 -49
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-core.mjs +1935 -1450
- package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.mjs +10 -9
- package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.mjs +1 -1
- package/fesm2015/vendure-admin-ui-marketing.mjs +1 -1
- package/fesm2015/vendure-admin-ui-order.mjs +9 -5
- package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.mjs +14 -12
- package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-system.mjs +1 -1
- package/fesm2020/vendure-admin-ui-catalog.mjs +800 -49
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-core.mjs +1927 -1450
- package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-customer.mjs +10 -9
- package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-dashboard.mjs +1 -1
- package/fesm2020/vendure-admin-ui-marketing.mjs +1 -1
- package/fesm2020/vendure-admin-ui-order.mjs +12 -5
- package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-settings.mjs +14 -12
- package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-system.mjs +1 -1
- package/package.json +2 -2
- package/settings/components/zone-member-list/zone-member-list.component.d.ts +3 -1
- package/static/i18n-messages/cs.json +19 -0
- package/static/i18n-messages/de.json +19 -0
- package/static/i18n-messages/en.json +22 -4
- package/static/i18n-messages/es.json +19 -0
- package/static/i18n-messages/fr.json +19 -0
- package/static/i18n-messages/it.json +19 -0
- package/static/i18n-messages/pl.json +19 -0
- package/static/i18n-messages/pt_BR.json +19 -0
- package/static/i18n-messages/pt_PT.json +19 -0
- package/static/i18n-messages/ru.json +19 -0
- package/static/i18n-messages/uk.json +19 -0
- package/static/i18n-messages/zh_Hans.json +19 -0
- package/static/i18n-messages/zh_Hant.json +19 -0
- package/static/styles/_variables.scss +1 -0
- package/static/styles/global/_overrides.scss +1 -1
- package/static/styles/global/_sass-overrides.scss +1 -1
- package/static/theme.min.css +1 -1
|
@@ -214,6 +214,14 @@ export declare type AssignAssetsToChannelInput = {
|
|
|
214
214
|
assetIds: Array<Scalars['ID']>;
|
|
215
215
|
channelId: Scalars['ID'];
|
|
216
216
|
};
|
|
217
|
+
export declare type AssignCollectionsToChannelInput = {
|
|
218
|
+
channelId: Scalars['ID'];
|
|
219
|
+
collectionIds: Array<Scalars['ID']>;
|
|
220
|
+
};
|
|
221
|
+
export declare type AssignFacetsToChannelInput = {
|
|
222
|
+
channelId: Scalars['ID'];
|
|
223
|
+
facetIds: Array<Scalars['ID']>;
|
|
224
|
+
};
|
|
217
225
|
export declare type AssignProductVariantsToChannelInput = {
|
|
218
226
|
channelId: Scalars['ID'];
|
|
219
227
|
priceFactor?: InputMaybe<Scalars['Float']>;
|
|
@@ -1304,6 +1312,7 @@ export declare enum ErrorCode {
|
|
|
1304
1312
|
CREATE_FULFILLMENT_ERROR = "CREATE_FULFILLMENT_ERROR",
|
|
1305
1313
|
EMAIL_ADDRESS_CONFLICT_ERROR = "EMAIL_ADDRESS_CONFLICT_ERROR",
|
|
1306
1314
|
EMPTY_ORDER_LINE_SELECTION_ERROR = "EMPTY_ORDER_LINE_SELECTION_ERROR",
|
|
1315
|
+
FACET_IN_USE_ERROR = "FACET_IN_USE_ERROR",
|
|
1307
1316
|
FULFILLMENT_STATE_TRANSITION_ERROR = "FULFILLMENT_STATE_TRANSITION_ERROR",
|
|
1308
1317
|
INSUFFICIENT_STOCK_ERROR = "INSUFFICIENT_STOCK_ERROR",
|
|
1309
1318
|
INSUFFICIENT_STOCK_ON_HAND_ERROR = "INSUFFICIENT_STOCK_ON_HAND_ERROR",
|
|
@@ -1359,6 +1368,14 @@ export declare type FacetFilterParameter = {
|
|
|
1359
1368
|
name?: InputMaybe<StringOperators>;
|
|
1360
1369
|
updatedAt?: InputMaybe<DateOperators>;
|
|
1361
1370
|
};
|
|
1371
|
+
export declare type FacetInUseError = ErrorResult & {
|
|
1372
|
+
__typename?: 'FacetInUseError';
|
|
1373
|
+
errorCode: ErrorCode;
|
|
1374
|
+
facetCode: Scalars['String'];
|
|
1375
|
+
message: Scalars['String'];
|
|
1376
|
+
productCount: Scalars['Int'];
|
|
1377
|
+
variantCount: Scalars['Int'];
|
|
1378
|
+
};
|
|
1362
1379
|
export declare type FacetList = PaginatedList & {
|
|
1363
1380
|
__typename?: 'FacetList';
|
|
1364
1381
|
items: Array<Facet>;
|
|
@@ -2159,6 +2176,10 @@ export declare type Mutation = {
|
|
|
2159
2176
|
addOptionGroupToProduct: Product;
|
|
2160
2177
|
/** Assign assets to channel */
|
|
2161
2178
|
assignAssetsToChannel: Array<Asset>;
|
|
2179
|
+
/** Assigns Collections to the specified Channel */
|
|
2180
|
+
assignCollectionsToChannel: Array<Collection>;
|
|
2181
|
+
/** Assigns Facets to the specified Channel */
|
|
2182
|
+
assignFacetsToChannel: Array<Facet>;
|
|
2162
2183
|
/** Assigns ProductVariants to the specified Channel */
|
|
2163
2184
|
assignProductVariantsToChannel: Array<ProductVariant>;
|
|
2164
2185
|
/** Assigns all ProductVariants of Product to the specified Channel */
|
|
@@ -2225,6 +2246,8 @@ export declare type Mutation = {
|
|
|
2225
2246
|
deleteChannel: DeletionResponse;
|
|
2226
2247
|
/** Delete a Collection and all of its descendants */
|
|
2227
2248
|
deleteCollection: DeletionResponse;
|
|
2249
|
+
/** Delete multiple Collections and all of their descendants */
|
|
2250
|
+
deleteCollections: Array<DeletionResponse>;
|
|
2228
2251
|
/** Delete a Country */
|
|
2229
2252
|
deleteCountry: DeletionResponse;
|
|
2230
2253
|
/** Delete a Customer */
|
|
@@ -2238,6 +2261,8 @@ export declare type Mutation = {
|
|
|
2238
2261
|
deleteFacet: DeletionResponse;
|
|
2239
2262
|
/** Delete one or more FacetValues */
|
|
2240
2263
|
deleteFacetValues: Array<DeletionResponse>;
|
|
2264
|
+
/** Delete multiple existing Facets */
|
|
2265
|
+
deleteFacets: Array<DeletionResponse>;
|
|
2241
2266
|
deleteOrderNote: DeletionResponse;
|
|
2242
2267
|
/** Delete a PaymentMethod */
|
|
2243
2268
|
deletePaymentMethod: DeletionResponse;
|
|
@@ -2247,6 +2272,10 @@ export declare type Mutation = {
|
|
|
2247
2272
|
deleteProductOption: DeletionResponse;
|
|
2248
2273
|
/** Delete a ProductVariant */
|
|
2249
2274
|
deleteProductVariant: DeletionResponse;
|
|
2275
|
+
/** Delete multiple ProductVariants */
|
|
2276
|
+
deleteProductVariants: Array<DeletionResponse>;
|
|
2277
|
+
/** Delete multiple Products */
|
|
2278
|
+
deleteProducts: Array<DeletionResponse>;
|
|
2250
2279
|
deletePromotion: DeletionResponse;
|
|
2251
2280
|
/** Delete an existing Role */
|
|
2252
2281
|
deleteRole: DeletionResponse;
|
|
@@ -2274,8 +2303,12 @@ export declare type Mutation = {
|
|
|
2274
2303
|
moveCollection: Collection;
|
|
2275
2304
|
refundOrder: RefundOrderResult;
|
|
2276
2305
|
reindex: Job;
|
|
2306
|
+
/** Removes Collections from the specified Channel */
|
|
2307
|
+
removeCollectionsFromChannel: Array<Collection>;
|
|
2277
2308
|
/** Remove Customers from a CustomerGroup */
|
|
2278
2309
|
removeCustomersFromGroup: CustomerGroup;
|
|
2310
|
+
/** Removes Facets from the specified Channel */
|
|
2311
|
+
removeFacetsFromChannel: Array<RemoveFacetFromChannelResult>;
|
|
2279
2312
|
/** Remove members from a Zone */
|
|
2280
2313
|
removeMembersFromZone: Zone;
|
|
2281
2314
|
/** Remove an OptionGroup from a Product */
|
|
@@ -2340,6 +2373,8 @@ export declare type Mutation = {
|
|
|
2340
2373
|
updateProductOptionGroup: ProductOptionGroup;
|
|
2341
2374
|
/** Update existing ProductVariants */
|
|
2342
2375
|
updateProductVariants: Array<Maybe<ProductVariant>>;
|
|
2376
|
+
/** Update multiple existing Products */
|
|
2377
|
+
updateProducts: Array<Product>;
|
|
2343
2378
|
updatePromotion: UpdatePromotionResult;
|
|
2344
2379
|
/** Update an existing Role */
|
|
2345
2380
|
updateRole: Role;
|
|
@@ -2382,6 +2417,12 @@ export declare type MutationAddOptionGroupToProductArgs = {
|
|
|
2382
2417
|
export declare type MutationAssignAssetsToChannelArgs = {
|
|
2383
2418
|
input: AssignAssetsToChannelInput;
|
|
2384
2419
|
};
|
|
2420
|
+
export declare type MutationAssignCollectionsToChannelArgs = {
|
|
2421
|
+
input: AssignCollectionsToChannelInput;
|
|
2422
|
+
};
|
|
2423
|
+
export declare type MutationAssignFacetsToChannelArgs = {
|
|
2424
|
+
input: AssignFacetsToChannelInput;
|
|
2425
|
+
};
|
|
2385
2426
|
export declare type MutationAssignProductVariantsToChannelArgs = {
|
|
2386
2427
|
input: AssignProductVariantsToChannelInput;
|
|
2387
2428
|
};
|
|
@@ -2491,6 +2532,9 @@ export declare type MutationDeleteChannelArgs = {
|
|
|
2491
2532
|
export declare type MutationDeleteCollectionArgs = {
|
|
2492
2533
|
id: Scalars['ID'];
|
|
2493
2534
|
};
|
|
2535
|
+
export declare type MutationDeleteCollectionsArgs = {
|
|
2536
|
+
ids: Array<Scalars['ID']>;
|
|
2537
|
+
};
|
|
2494
2538
|
export declare type MutationDeleteCountryArgs = {
|
|
2495
2539
|
id: Scalars['ID'];
|
|
2496
2540
|
};
|
|
@@ -2514,6 +2558,10 @@ export declare type MutationDeleteFacetValuesArgs = {
|
|
|
2514
2558
|
force?: InputMaybe<Scalars['Boolean']>;
|
|
2515
2559
|
ids: Array<Scalars['ID']>;
|
|
2516
2560
|
};
|
|
2561
|
+
export declare type MutationDeleteFacetsArgs = {
|
|
2562
|
+
force?: InputMaybe<Scalars['Boolean']>;
|
|
2563
|
+
ids: Array<Scalars['ID']>;
|
|
2564
|
+
};
|
|
2517
2565
|
export declare type MutationDeleteOrderNoteArgs = {
|
|
2518
2566
|
id: Scalars['ID'];
|
|
2519
2567
|
};
|
|
@@ -2530,6 +2578,12 @@ export declare type MutationDeleteProductOptionArgs = {
|
|
|
2530
2578
|
export declare type MutationDeleteProductVariantArgs = {
|
|
2531
2579
|
id: Scalars['ID'];
|
|
2532
2580
|
};
|
|
2581
|
+
export declare type MutationDeleteProductVariantsArgs = {
|
|
2582
|
+
ids: Array<Scalars['ID']>;
|
|
2583
|
+
};
|
|
2584
|
+
export declare type MutationDeleteProductsArgs = {
|
|
2585
|
+
ids: Array<Scalars['ID']>;
|
|
2586
|
+
};
|
|
2533
2587
|
export declare type MutationDeletePromotionArgs = {
|
|
2534
2588
|
id: Scalars['ID'];
|
|
2535
2589
|
};
|
|
@@ -2571,10 +2625,16 @@ export declare type MutationMoveCollectionArgs = {
|
|
|
2571
2625
|
export declare type MutationRefundOrderArgs = {
|
|
2572
2626
|
input: RefundOrderInput;
|
|
2573
2627
|
};
|
|
2628
|
+
export declare type MutationRemoveCollectionsFromChannelArgs = {
|
|
2629
|
+
input: RemoveCollectionsFromChannelInput;
|
|
2630
|
+
};
|
|
2574
2631
|
export declare type MutationRemoveCustomersFromGroupArgs = {
|
|
2575
2632
|
customerGroupId: Scalars['ID'];
|
|
2576
2633
|
customerIds: Array<Scalars['ID']>;
|
|
2577
2634
|
};
|
|
2635
|
+
export declare type MutationRemoveFacetsFromChannelArgs = {
|
|
2636
|
+
input: RemoveFacetsFromChannelInput;
|
|
2637
|
+
};
|
|
2578
2638
|
export declare type MutationRemoveMembersFromZoneArgs = {
|
|
2579
2639
|
memberIds: Array<Scalars['ID']>;
|
|
2580
2640
|
zoneId: Scalars['ID'];
|
|
@@ -2695,6 +2755,9 @@ export declare type MutationUpdateProductOptionGroupArgs = {
|
|
|
2695
2755
|
export declare type MutationUpdateProductVariantsArgs = {
|
|
2696
2756
|
input: Array<UpdateProductVariantInput>;
|
|
2697
2757
|
};
|
|
2758
|
+
export declare type MutationUpdateProductsArgs = {
|
|
2759
|
+
input: Array<UpdateProductInput>;
|
|
2760
|
+
};
|
|
2698
2761
|
export declare type MutationUpdatePromotionArgs = {
|
|
2699
2762
|
input: UpdatePromotionInput;
|
|
2700
2763
|
};
|
|
@@ -3162,7 +3225,7 @@ export declare type PaymentStateTransitionError = ErrorResult & {
|
|
|
3162
3225
|
*
|
|
3163
3226
|
* ## Understanding Permission.Owner
|
|
3164
3227
|
*
|
|
3165
|
-
* `Permission.Owner` is a special permission which is used in some
|
|
3228
|
+
* `Permission.Owner` is a special permission which is used in some Vendure resolvers to indicate that that resolver should only
|
|
3166
3229
|
* be accessible to the "owner" of that resource.
|
|
3167
3230
|
*
|
|
3168
3231
|
* For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
|
|
@@ -3962,6 +4025,16 @@ export declare type Release = Node & StockMovement & {
|
|
|
3962
4025
|
type: StockMovementType;
|
|
3963
4026
|
updatedAt: Scalars['DateTime'];
|
|
3964
4027
|
};
|
|
4028
|
+
export declare type RemoveCollectionsFromChannelInput = {
|
|
4029
|
+
channelId: Scalars['ID'];
|
|
4030
|
+
collectionIds: Array<Scalars['ID']>;
|
|
4031
|
+
};
|
|
4032
|
+
export declare type RemoveFacetFromChannelResult = Facet | FacetInUseError;
|
|
4033
|
+
export declare type RemoveFacetsFromChannelInput = {
|
|
4034
|
+
channelId: Scalars['ID'];
|
|
4035
|
+
facetIds: Array<Scalars['ID']>;
|
|
4036
|
+
force?: InputMaybe<Scalars['Boolean']>;
|
|
4037
|
+
};
|
|
3965
4038
|
export declare type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError;
|
|
3966
4039
|
export declare type RemoveProductVariantsFromChannelInput = {
|
|
3967
4040
|
channelId: Scalars['ID'];
|
|
@@ -4120,6 +4193,7 @@ export declare type ShippingLine = {
|
|
|
4120
4193
|
discountedPrice: Scalars['Int'];
|
|
4121
4194
|
discountedPriceWithTax: Scalars['Int'];
|
|
4122
4195
|
discounts: Array<Discount>;
|
|
4196
|
+
id: Scalars['ID'];
|
|
4123
4197
|
price: Scalars['Int'];
|
|
4124
4198
|
priceWithTax: Scalars['Int'];
|
|
4125
4199
|
shippingMethod: ShippingMethod;
|
|
@@ -4722,6 +4796,89 @@ export declare type Zone = Node & {
|
|
|
4722
4796
|
name: Scalars['String'];
|
|
4723
4797
|
updatedAt: Scalars['DateTime'];
|
|
4724
4798
|
};
|
|
4799
|
+
export declare type GetProductsWithFacetValuesByIdsQueryVariables = Exact<{
|
|
4800
|
+
ids: Array<Scalars['String']> | Scalars['String'];
|
|
4801
|
+
}>;
|
|
4802
|
+
export declare type GetProductsWithFacetValuesByIdsQuery = {
|
|
4803
|
+
products: {
|
|
4804
|
+
__typename?: 'ProductList';
|
|
4805
|
+
items: Array<{
|
|
4806
|
+
__typename?: 'Product';
|
|
4807
|
+
id: string;
|
|
4808
|
+
name: string;
|
|
4809
|
+
facetValues: Array<{
|
|
4810
|
+
__typename?: 'FacetValue';
|
|
4811
|
+
id: string;
|
|
4812
|
+
name: string;
|
|
4813
|
+
code: string;
|
|
4814
|
+
facet: {
|
|
4815
|
+
__typename?: 'Facet';
|
|
4816
|
+
id: string;
|
|
4817
|
+
name: string;
|
|
4818
|
+
code: string;
|
|
4819
|
+
};
|
|
4820
|
+
}>;
|
|
4821
|
+
}>;
|
|
4822
|
+
};
|
|
4823
|
+
};
|
|
4824
|
+
export declare type GetVariantsWithFacetValuesByIdsQueryVariables = Exact<{
|
|
4825
|
+
ids: Array<Scalars['String']> | Scalars['String'];
|
|
4826
|
+
}>;
|
|
4827
|
+
export declare type GetVariantsWithFacetValuesByIdsQuery = {
|
|
4828
|
+
productVariants: {
|
|
4829
|
+
__typename?: 'ProductVariantList';
|
|
4830
|
+
items: Array<{
|
|
4831
|
+
__typename?: 'ProductVariant';
|
|
4832
|
+
id: string;
|
|
4833
|
+
name: string;
|
|
4834
|
+
sku: string;
|
|
4835
|
+
facetValues: Array<{
|
|
4836
|
+
__typename?: 'FacetValue';
|
|
4837
|
+
id: string;
|
|
4838
|
+
name: string;
|
|
4839
|
+
code: string;
|
|
4840
|
+
facet: {
|
|
4841
|
+
__typename?: 'Facet';
|
|
4842
|
+
id: string;
|
|
4843
|
+
name: string;
|
|
4844
|
+
code: string;
|
|
4845
|
+
};
|
|
4846
|
+
}>;
|
|
4847
|
+
}>;
|
|
4848
|
+
};
|
|
4849
|
+
};
|
|
4850
|
+
export declare type UpdateProductsBulkMutationVariables = Exact<{
|
|
4851
|
+
input: Array<UpdateProductInput> | UpdateProductInput;
|
|
4852
|
+
}>;
|
|
4853
|
+
export declare type UpdateProductsBulkMutation = {
|
|
4854
|
+
updateProducts: Array<{
|
|
4855
|
+
__typename?: 'Product';
|
|
4856
|
+
id: string;
|
|
4857
|
+
name: string;
|
|
4858
|
+
facetValues: Array<{
|
|
4859
|
+
__typename?: 'FacetValue';
|
|
4860
|
+
id: string;
|
|
4861
|
+
name: string;
|
|
4862
|
+
code: string;
|
|
4863
|
+
}>;
|
|
4864
|
+
}>;
|
|
4865
|
+
};
|
|
4866
|
+
export declare type UpdateVariantsBulkMutationVariables = Exact<{
|
|
4867
|
+
input: Array<UpdateProductVariantInput> | UpdateProductVariantInput;
|
|
4868
|
+
}>;
|
|
4869
|
+
export declare type UpdateVariantsBulkMutation = {
|
|
4870
|
+
updateProductVariants: Array<{
|
|
4871
|
+
__typename?: 'ProductVariant';
|
|
4872
|
+
id: string;
|
|
4873
|
+
name: string;
|
|
4874
|
+
facetValues: Array<{
|
|
4875
|
+
__typename?: 'FacetValue';
|
|
4876
|
+
id: string;
|
|
4877
|
+
name: string;
|
|
4878
|
+
code: string;
|
|
4879
|
+
}>;
|
|
4880
|
+
} | null>;
|
|
4881
|
+
};
|
|
4725
4882
|
export declare type RoleFragment = {
|
|
4726
4883
|
__typename?: 'Role';
|
|
4727
4884
|
id: string;
|
|
@@ -5431,6 +5588,12 @@ export declare type CollectionFragment = {
|
|
|
5431
5588
|
isPrivate: boolean;
|
|
5432
5589
|
languageCode?: LanguageCode | null;
|
|
5433
5590
|
inheritFilters: boolean;
|
|
5591
|
+
breadcrumbs: Array<{
|
|
5592
|
+
__typename?: 'CollectionBreadcrumb';
|
|
5593
|
+
id: string;
|
|
5594
|
+
name: string;
|
|
5595
|
+
slug: string;
|
|
5596
|
+
}>;
|
|
5434
5597
|
featuredAsset?: {
|
|
5435
5598
|
__typename?: 'Asset';
|
|
5436
5599
|
id: string;
|
|
@@ -5552,6 +5715,12 @@ export declare type GetCollectionQuery = {
|
|
|
5552
5715
|
isPrivate: boolean;
|
|
5553
5716
|
languageCode?: LanguageCode | null;
|
|
5554
5717
|
inheritFilters: boolean;
|
|
5718
|
+
breadcrumbs: Array<{
|
|
5719
|
+
__typename?: 'CollectionBreadcrumb';
|
|
5720
|
+
id: string;
|
|
5721
|
+
name: string;
|
|
5722
|
+
slug: string;
|
|
5723
|
+
}>;
|
|
5555
5724
|
featuredAsset?: {
|
|
5556
5725
|
__typename?: 'Asset';
|
|
5557
5726
|
id: string;
|
|
@@ -5634,6 +5803,12 @@ export declare type CreateCollectionMutation = {
|
|
|
5634
5803
|
isPrivate: boolean;
|
|
5635
5804
|
languageCode?: LanguageCode | null;
|
|
5636
5805
|
inheritFilters: boolean;
|
|
5806
|
+
breadcrumbs: Array<{
|
|
5807
|
+
__typename?: 'CollectionBreadcrumb';
|
|
5808
|
+
id: string;
|
|
5809
|
+
name: string;
|
|
5810
|
+
slug: string;
|
|
5811
|
+
}>;
|
|
5637
5812
|
featuredAsset?: {
|
|
5638
5813
|
__typename?: 'Asset';
|
|
5639
5814
|
id: string;
|
|
@@ -5716,6 +5891,12 @@ export declare type UpdateCollectionMutation = {
|
|
|
5716
5891
|
isPrivate: boolean;
|
|
5717
5892
|
languageCode?: LanguageCode | null;
|
|
5718
5893
|
inheritFilters: boolean;
|
|
5894
|
+
breadcrumbs: Array<{
|
|
5895
|
+
__typename?: 'CollectionBreadcrumb';
|
|
5896
|
+
id: string;
|
|
5897
|
+
name: string;
|
|
5898
|
+
slug: string;
|
|
5899
|
+
}>;
|
|
5719
5900
|
featuredAsset?: {
|
|
5720
5901
|
__typename?: 'Asset';
|
|
5721
5902
|
id: string;
|
|
@@ -5798,6 +5979,12 @@ export declare type MoveCollectionMutation = {
|
|
|
5798
5979
|
isPrivate: boolean;
|
|
5799
5980
|
languageCode?: LanguageCode | null;
|
|
5800
5981
|
inheritFilters: boolean;
|
|
5982
|
+
breadcrumbs: Array<{
|
|
5983
|
+
__typename?: 'CollectionBreadcrumb';
|
|
5984
|
+
id: string;
|
|
5985
|
+
name: string;
|
|
5986
|
+
slug: string;
|
|
5987
|
+
}>;
|
|
5801
5988
|
featuredAsset?: {
|
|
5802
5989
|
__typename?: 'Asset';
|
|
5803
5990
|
id: string;
|
|
@@ -5875,6 +6062,16 @@ export declare type DeleteCollectionMutation = {
|
|
|
5875
6062
|
message?: string | null;
|
|
5876
6063
|
};
|
|
5877
6064
|
};
|
|
6065
|
+
export declare type DeleteCollectionsMutationVariables = Exact<{
|
|
6066
|
+
ids: Array<Scalars['ID']> | Scalars['ID'];
|
|
6067
|
+
}>;
|
|
6068
|
+
export declare type DeleteCollectionsMutation = {
|
|
6069
|
+
deleteCollections: Array<{
|
|
6070
|
+
__typename?: 'DeletionResponse';
|
|
6071
|
+
result: DeletionResult;
|
|
6072
|
+
message?: string | null;
|
|
6073
|
+
}>;
|
|
6074
|
+
};
|
|
5878
6075
|
export declare type GetCollectionContentsQueryVariables = Exact<{
|
|
5879
6076
|
id: Scalars['ID'];
|
|
5880
6077
|
options?: InputMaybe<ProductVariantListOptions>;
|
|
@@ -5914,6 +6111,26 @@ export declare type PreviewCollectionContentsQuery = {
|
|
|
5914
6111
|
}>;
|
|
5915
6112
|
};
|
|
5916
6113
|
};
|
|
6114
|
+
export declare type AssignCollectionsToChannelMutationVariables = Exact<{
|
|
6115
|
+
input: AssignCollectionsToChannelInput;
|
|
6116
|
+
}>;
|
|
6117
|
+
export declare type AssignCollectionsToChannelMutation = {
|
|
6118
|
+
assignCollectionsToChannel: Array<{
|
|
6119
|
+
__typename?: 'Collection';
|
|
6120
|
+
id: string;
|
|
6121
|
+
name: string;
|
|
6122
|
+
}>;
|
|
6123
|
+
};
|
|
6124
|
+
export declare type RemoveCollectionsFromChannelMutationVariables = Exact<{
|
|
6125
|
+
input: RemoveCollectionsFromChannelInput;
|
|
6126
|
+
}>;
|
|
6127
|
+
export declare type RemoveCollectionsFromChannelMutation = {
|
|
6128
|
+
removeCollectionsFromChannel: Array<{
|
|
6129
|
+
__typename?: 'Collection';
|
|
6130
|
+
id: string;
|
|
6131
|
+
name: string;
|
|
6132
|
+
}>;
|
|
6133
|
+
};
|
|
5917
6134
|
export declare type AddressFragment = {
|
|
5918
6135
|
__typename?: 'Address';
|
|
5919
6136
|
id: string;
|
|
@@ -6561,6 +6778,17 @@ export declare type DeleteFacetMutation = {
|
|
|
6561
6778
|
message?: string | null;
|
|
6562
6779
|
};
|
|
6563
6780
|
};
|
|
6781
|
+
export declare type DeleteFacetsMutationVariables = Exact<{
|
|
6782
|
+
ids: Array<Scalars['ID']> | Scalars['ID'];
|
|
6783
|
+
force?: InputMaybe<Scalars['Boolean']>;
|
|
6784
|
+
}>;
|
|
6785
|
+
export declare type DeleteFacetsMutation = {
|
|
6786
|
+
deleteFacets: Array<{
|
|
6787
|
+
__typename?: 'DeletionResponse';
|
|
6788
|
+
result: DeletionResult;
|
|
6789
|
+
message?: string | null;
|
|
6790
|
+
}>;
|
|
6791
|
+
};
|
|
6564
6792
|
export declare type CreateFacetValuesMutationVariables = Exact<{
|
|
6565
6793
|
input: Array<CreateFacetValueInput> | CreateFacetValueInput;
|
|
6566
6794
|
}>;
|
|
@@ -6716,6 +6944,30 @@ export declare type GetFacetWithValuesQuery = {
|
|
|
6716
6944
|
}>;
|
|
6717
6945
|
} | null;
|
|
6718
6946
|
};
|
|
6947
|
+
export declare type AssignFacetsToChannelMutationVariables = Exact<{
|
|
6948
|
+
input: AssignFacetsToChannelInput;
|
|
6949
|
+
}>;
|
|
6950
|
+
export declare type AssignFacetsToChannelMutation = {
|
|
6951
|
+
assignFacetsToChannel: Array<{
|
|
6952
|
+
__typename?: 'Facet';
|
|
6953
|
+
id: string;
|
|
6954
|
+
}>;
|
|
6955
|
+
};
|
|
6956
|
+
export declare type RemoveFacetsFromChannelMutationVariables = Exact<{
|
|
6957
|
+
input: RemoveFacetsFromChannelInput;
|
|
6958
|
+
}>;
|
|
6959
|
+
export declare type RemoveFacetsFromChannelMutation = {
|
|
6960
|
+
removeFacetsFromChannel: Array<{
|
|
6961
|
+
__typename?: 'Facet';
|
|
6962
|
+
id: string;
|
|
6963
|
+
} | {
|
|
6964
|
+
__typename?: 'FacetInUseError';
|
|
6965
|
+
errorCode: ErrorCode;
|
|
6966
|
+
message: string;
|
|
6967
|
+
variantCount: number;
|
|
6968
|
+
productCount: number;
|
|
6969
|
+
}>;
|
|
6970
|
+
};
|
|
6719
6971
|
export declare type DiscountFragment = {
|
|
6720
6972
|
__typename?: 'Discount';
|
|
6721
6973
|
adjustmentSource: string;
|
|
@@ -9140,6 +9392,16 @@ export declare type DeleteProductMutation = {
|
|
|
9140
9392
|
message?: string | null;
|
|
9141
9393
|
};
|
|
9142
9394
|
};
|
|
9395
|
+
export declare type DeleteProductsMutationVariables = Exact<{
|
|
9396
|
+
ids: Array<Scalars['ID']> | Scalars['ID'];
|
|
9397
|
+
}>;
|
|
9398
|
+
export declare type DeleteProductsMutation = {
|
|
9399
|
+
deleteProducts: Array<{
|
|
9400
|
+
__typename?: 'DeletionResponse';
|
|
9401
|
+
result: DeletionResult;
|
|
9402
|
+
message?: string | null;
|
|
9403
|
+
}>;
|
|
9404
|
+
};
|
|
9143
9405
|
export declare type CreateProductVariantsMutationVariables = Exact<{
|
|
9144
9406
|
input: Array<CreateProductVariantInput> | CreateProductVariantInput;
|
|
9145
9407
|
}>;
|
|
@@ -16603,6 +16865,11 @@ declare type ErrorResult_EmptyOrderLineSelectionError_Fragment = {
|
|
|
16603
16865
|
errorCode: ErrorCode;
|
|
16604
16866
|
message: string;
|
|
16605
16867
|
};
|
|
16868
|
+
declare type ErrorResult_FacetInUseError_Fragment = {
|
|
16869
|
+
__typename?: 'FacetInUseError';
|
|
16870
|
+
errorCode: ErrorCode;
|
|
16871
|
+
message: string;
|
|
16872
|
+
};
|
|
16606
16873
|
declare type ErrorResult_FulfillmentStateTransitionError_Fragment = {
|
|
16607
16874
|
__typename?: 'FulfillmentStateTransitionError';
|
|
16608
16875
|
errorCode: ErrorCode;
|
|
@@ -16738,7 +17005,7 @@ declare type ErrorResult_SettlePaymentError_Fragment = {
|
|
|
16738
17005
|
errorCode: ErrorCode;
|
|
16739
17006
|
message: string;
|
|
16740
17007
|
};
|
|
16741
|
-
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;
|
|
17008
|
+
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_FacetInUseError_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;
|
|
16742
17009
|
export declare type ShippingMethodFragment = {
|
|
16743
17010
|
__typename?: 'ShippingMethod';
|
|
16744
17011
|
id: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataService } from '../../data/providers/data.service';
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
* Resolves to an object containing the Channel code of the given channelId, or if no channelId
|
|
5
|
+
* is supplied, the code of the activeChannel.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getChannelCodeFromUserStatus(dataService: DataService, channelId?: string): Promise<{
|
|
8
|
+
channelCode: string;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
* Resolves to `true` if multiple Channels are set up.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isMultiChannel(dataService: DataService): Promise<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* @description
|
|
17
|
+
* Resolves to `true` if the current active Channel is not the default Channel.
|
|
18
|
+
*/
|
|
19
|
+
export declare function currentChannelIsNotDefault(dataService: DataService): Promise<boolean>;
|
|
@@ -31,7 +31,10 @@ export declare function configurableDefinitionToInstance(def: ConfigurableOperat
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export declare function toConfigurableOperationInput(operation: ConfigurableOperation, formValueOperations: {
|
|
34
|
-
args: Record<string,
|
|
34
|
+
args: Record<string, string> | Array<{
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}>;
|
|
35
38
|
}): ConfigurableOperationInput;
|
|
36
39
|
export declare function configurableOperationValueIsValid(def?: ConfigurableOperationDefinition, value?: {
|
|
37
40
|
code: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
1
2
|
export interface SelectionManagerOptions<T> {
|
|
2
3
|
multiSelect: boolean;
|
|
3
4
|
itemsAreEqual: (a: T, b: T) => boolean;
|
|
@@ -12,12 +13,18 @@ export declare class SelectionManager<T> {
|
|
|
12
13
|
private options;
|
|
13
14
|
constructor(options: SelectionManagerOptions<T>);
|
|
14
15
|
get selection(): T[];
|
|
16
|
+
selectionChanges$: Observable<T[]>;
|
|
15
17
|
private _selection;
|
|
16
18
|
private items;
|
|
19
|
+
private selectionChangesSubject;
|
|
17
20
|
setMultiSelect(isMultiSelect: boolean): void;
|
|
18
21
|
setCurrentItems(items: T[]): void;
|
|
19
22
|
toggleSelection(item: T, event?: MouseEvent): void;
|
|
20
23
|
selectMultiple(items: T[]): void;
|
|
24
|
+
clearSelection(): void;
|
|
21
25
|
isSelected(item: T): boolean;
|
|
26
|
+
areAllCurrentItemsSelected(): boolean;
|
|
27
|
+
toggleSelectAll(): void;
|
|
22
28
|
lastSelected(): T;
|
|
29
|
+
private invokeOnSelectionChangeHandler;
|
|
23
30
|
}
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "2.0.0-next.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "2.0.0-next.18";
|
|
@@ -6,5 +6,8 @@ export declare const CREATE_COLLECTION: import("apollo-angular").TypedDocumentNo
|
|
|
6
6
|
export declare const UPDATE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
7
7
|
export declare const MOVE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
8
8
|
export declare const DELETE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
|
+
export declare const DELETE_COLLECTIONS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
10
|
export declare const GET_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
10
11
|
export declare const PREVIEW_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
|
+
export declare const ASSIGN_COLLECTIONS_TO_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
13
|
+
export declare const REMOVE_COLLECTIONS_FROM_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -3,8 +3,11 @@ export declare const FACET_WITH_VALUES_FRAGMENT: import("apollo-angular").TypedD
|
|
|
3
3
|
export declare const CREATE_FACET: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
4
4
|
export declare const UPDATE_FACET: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
5
5
|
export declare const DELETE_FACET: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
6
|
+
export declare const DELETE_FACETS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
6
7
|
export declare const CREATE_FACET_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
7
8
|
export declare const UPDATE_FACET_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
8
9
|
export declare const DELETE_FACET_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
10
|
export declare const GET_FACET_LIST: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
10
11
|
export declare const GET_FACET_WITH_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
|
+
export declare const ASSIGN_FACETS_TO_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
13
|
+
export declare const REMOVE_FACETS_FROM_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -8,6 +8,7 @@ export declare const PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT: import("apollo-
|
|
|
8
8
|
export declare const UPDATE_PRODUCT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
9
|
export declare const CREATE_PRODUCT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
10
10
|
export declare const DELETE_PRODUCT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
11
|
+
export declare const DELETE_PRODUCTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
11
12
|
export declare const CREATE_PRODUCT_VARIANTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
13
|
export declare const UPDATE_PRODUCT_VARIANTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
13
14
|
export declare const CREATE_PRODUCT_OPTION_GROUP: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -14,6 +14,7 @@ export declare class CollectionDataService {
|
|
|
14
14
|
updateCollection(input: Codegen.UpdateCollectionInput): import("rxjs").Observable<Codegen.UpdateCollectionMutation>;
|
|
15
15
|
moveCollection(inputs: Codegen.MoveCollectionInput[]): import("rxjs").Observable<Codegen.MoveCollectionMutation[]>;
|
|
16
16
|
deleteCollection(id: string): import("rxjs").Observable<Codegen.DeleteCollectionMutation>;
|
|
17
|
+
deleteCollections(ids: string[]): import("rxjs").Observable<Codegen.DeleteCollectionsMutation>;
|
|
17
18
|
previewCollectionVariants(input: Codegen.PreviewCollectionVariantsInput, options: Codegen.ProductVariantListOptions): import("@vendure/admin-ui/core").QueryResult<Codegen.PreviewCollectionContentsQuery, Codegen.Exact<{
|
|
18
19
|
input: Codegen.PreviewCollectionVariantsInput;
|
|
19
20
|
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
@@ -22,4 +23,6 @@ export declare class CollectionDataService {
|
|
|
22
23
|
id: string;
|
|
23
24
|
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
24
25
|
}>>;
|
|
26
|
+
assignCollectionsToChannel(input: Codegen.AssignCollectionsToChannelInput): import("rxjs").Observable<Codegen.AssignCollectionsToChannelMutation>;
|
|
27
|
+
removeCollectionsFromChannel(input: Codegen.RemoveCollectionsFromChannelInput): import("rxjs").Observable<Codegen.RemoveCollectionsFromChannelMutation>;
|
|
25
28
|
}
|
|
@@ -15,7 +15,10 @@ export declare class FacetDataService {
|
|
|
15
15
|
createFacet(facet: Codegen.CreateFacetInput): import("rxjs").Observable<Codegen.CreateFacetMutation>;
|
|
16
16
|
updateFacet(facet: Codegen.UpdateFacetInput): import("rxjs").Observable<Codegen.UpdateFacetMutation>;
|
|
17
17
|
deleteFacet(id: string, force: boolean): import("rxjs").Observable<Codegen.DeleteFacetMutation>;
|
|
18
|
+
deleteFacets(ids: string[], force: boolean): import("rxjs").Observable<Codegen.DeleteFacetsMutation>;
|
|
18
19
|
createFacetValues(facetValues: Codegen.CreateFacetValueInput[]): import("rxjs").Observable<Codegen.CreateFacetValuesMutation>;
|
|
19
20
|
updateFacetValues(facetValues: Codegen.UpdateFacetValueInput[]): import("rxjs").Observable<Codegen.UpdateFacetValuesMutation>;
|
|
20
21
|
deleteFacetValues(ids: string[], force: boolean): import("rxjs").Observable<Codegen.DeleteFacetValuesMutation>;
|
|
22
|
+
assignFacetsToChannel(input: Codegen.AssignFacetsToChannelInput): import("rxjs").Observable<Codegen.AssignFacetsToChannelMutation>;
|
|
23
|
+
removeFacetsFromChannel(input: Codegen.RemoveFacetsFromChannelInput): import("rxjs").Observable<Codegen.RemoveFacetsFromChannelMutation>;
|
|
21
24
|
}
|
|
@@ -43,6 +43,7 @@ export declare class ProductDataService {
|
|
|
43
43
|
createProduct(product: Codegen.CreateProductInput): import("rxjs").Observable<Codegen.CreateProductMutation>;
|
|
44
44
|
updateProduct(product: Codegen.UpdateProductInput): import("rxjs").Observable<Codegen.UpdateProductMutation>;
|
|
45
45
|
deleteProduct(id: string): import("rxjs").Observable<Codegen.DeleteProductMutation>;
|
|
46
|
+
deleteProducts(ids: string[]): import("rxjs").Observable<Codegen.DeleteProductsMutation>;
|
|
46
47
|
createProductVariants(input: Codegen.CreateProductVariantInput[]): import("rxjs").Observable<Codegen.CreateProductVariantsMutation>;
|
|
47
48
|
updateProductVariants(variants: Codegen.UpdateProductVariantInput[]): import("rxjs").Observable<Codegen.UpdateProductVariantsMutation>;
|
|
48
49
|
deleteProductVariant(id: string): import("rxjs").Observable<Codegen.DeleteProductVariantMutation>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BulkAction, BulkActionLocationId } from './bulk-action-types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BulkActionRegistryService {
|
|
4
|
+
private locationBulActionMap;
|
|
5
|
+
registerBulkAction(bulkAction: BulkAction): void;
|
|
6
|
+
getBulkActionsForLocation(id: BulkActionLocationId): BulkAction[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BulkActionRegistryService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BulkActionRegistryService>;
|
|
9
|
+
}
|