Преглед изворни кода

feat(core): Add bulk delete mutations

Michael Bromley пре 2 година
родитељ
комит
2f5e096b27
36 измењених фајлова са 2455 додато и 1935 уклоњено
  1. 78 0
      packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts
  2. 631 649
      packages/common/src/generated-shop-types.ts
  3. 91 0
      packages/common/src/generated-types.ts
  4. 78 0
      packages/core/e2e/graphql/generated-e2e-admin-types.ts
  5. 11 0
      packages/core/src/api/resolvers/admin/administrator.resolver.ts
  6. 11 0
      packages/core/src/api/resolvers/admin/channel.resolver.ts
  7. 11 0
      packages/core/src/api/resolvers/admin/country.resolver.ts
  8. 11 0
      packages/core/src/api/resolvers/admin/customer-group.resolver.ts
  9. 11 0
      packages/core/src/api/resolvers/admin/customer.resolver.ts
  10. 11 0
      packages/core/src/api/resolvers/admin/payment-method.resolver.ts
  11. 20 10
      packages/core/src/api/resolvers/admin/promotion.resolver.ts
  12. 11 0
      packages/core/src/api/resolvers/admin/role.resolver.ts
  13. 11 1
      packages/core/src/api/resolvers/admin/seller.resolver.ts
  14. 11 0
      packages/core/src/api/resolvers/admin/shipping-method.resolver.ts
  15. 11 0
      packages/core/src/api/resolvers/admin/tax-category.resolver.ts
  16. 11 0
      packages/core/src/api/resolvers/admin/tax-rate.resolver.ts
  17. 11 0
      packages/core/src/api/resolvers/admin/zone.resolver.ts
  18. 2 0
      packages/core/src/api/schema/admin-api/administrator.api.graphql
  19. 3 0
      packages/core/src/api/schema/admin-api/channel.api.graphql
  20. 3 0
      packages/core/src/api/schema/admin-api/country.api.graphql
  21. 2 0
      packages/core/src/api/schema/admin-api/customer-group.api.graphql
  22. 3 0
      packages/core/src/api/schema/admin-api/customer.api.graphql
  23. 2 0
      packages/core/src/api/schema/admin-api/payment-method.api.graphql
  24. 1 0
      packages/core/src/api/schema/admin-api/promotion.api.graphql
  25. 2 0
      packages/core/src/api/schema/admin-api/role.api.graphql
  26. 2 0
      packages/core/src/api/schema/admin-api/seller.api.graphql
  27. 2 0
      packages/core/src/api/schema/admin-api/shipping-method.api.graphql
  28. 3 0
      packages/core/src/api/schema/admin-api/tax-category.api.graphql
  29. 2 0
      packages/core/src/api/schema/admin-api/tax-rate.api.graphql
  30. 3 0
      packages/core/src/api/schema/admin-api/zone.api.graphql
  31. 1 1
      packages/dev-server/test-plugins/multivendor-plugin/service/mv.service.ts
  32. 78 0
      packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts
  33. 78 0
      packages/payments-plugin/e2e/graphql/generated-admin-types.ts
  34. 603 621
      packages/payments-plugin/e2e/graphql/generated-shop-types.ts
  35. 635 653
      packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts
  36. 0 0
      schema-admin.json

+ 78 - 0
packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts

@@ -2536,16 +2536,22 @@ export type Mutation = {
     createZone: Zone;
     /** Delete an Administrator */
     deleteAdministrator: DeletionResponse;
+    /** Delete multiple Administrators */
+    deleteAdministrators: Array<DeletionResponse>;
     /** Delete an Asset */
     deleteAsset: DeletionResponse;
     /** Delete multiple Assets */
     deleteAssets: DeletionResponse;
     /** Delete a Channel */
     deleteChannel: DeletionResponse;
+    /** Delete multiple Channels */
+    deleteChannels: Array<DeletionResponse>;
     /** Delete a Collection and all of its descendants */
     deleteCollection: DeletionResponse;
     /** Delete multiple Collections and all of their descendants */
     deleteCollections: Array<DeletionResponse>;
+    /** Delete multiple Countries */
+    deleteCountries: Array<DeletionResponse>;
     /** Delete a Country */
     deleteCountry: DeletionResponse;
     /** Delete a Customer */
@@ -2554,7 +2560,11 @@ export type Mutation = {
     deleteCustomerAddress: Success;
     /** Delete a CustomerGroup */
     deleteCustomerGroup: DeletionResponse;
+    /** Delete multiple CustomerGroups */
+    deleteCustomerGroups: Array<DeletionResponse>;
     deleteCustomerNote: DeletionResponse;
+    /** Deletes Customers */
+    deleteCustomers: Array<DeletionResponse>;
     /** Deletes a draft Order */
     deleteDraftOrder: DeletionResponse;
     /** Delete an existing Facet */
@@ -2566,6 +2576,8 @@ export type Mutation = {
     deleteOrderNote: DeletionResponse;
     /** Delete a PaymentMethod */
     deletePaymentMethod: DeletionResponse;
+    /** Delete multiple PaymentMethods */
+    deletePaymentMethods: Array<DeletionResponse>;
     /** Delete a Product */
     deleteProduct: DeletionResponse;
     /** Delete a ProductOption */
@@ -2577,23 +2589,36 @@ export type Mutation = {
     /** Delete multiple Products */
     deleteProducts: Array<DeletionResponse>;
     deletePromotion: DeletionResponse;
+    deletePromotions: Array<DeletionResponse>;
     /** Delete a Province */
     deleteProvince: DeletionResponse;
     /** Delete an existing Role */
     deleteRole: DeletionResponse;
+    /** Delete multiple Roles */
+    deleteRoles: Array<DeletionResponse>;
     /** Delete a Seller */
     deleteSeller: DeletionResponse;
+    /** Delete multiple Sellers */
+    deleteSellers: Array<DeletionResponse>;
     /** Delete a ShippingMethod */
     deleteShippingMethod: DeletionResponse;
+    /** Delete multiple ShippingMethods */
+    deleteShippingMethods: Array<DeletionResponse>;
     deleteStockLocation: DeletionResponse;
     /** Delete an existing Tag */
     deleteTag: DeletionResponse;
+    /** Deletes multiple TaxCategories */
+    deleteTaxCategories: Array<DeletionResponse>;
     /** Deletes a TaxCategory */
     deleteTaxCategory: DeletionResponse;
     /** Delete a TaxRate */
     deleteTaxRate: DeletionResponse;
+    /** Delete multiple TaxRates */
+    deleteTaxRates: Array<DeletionResponse>;
     /** Delete a Zone */
     deleteZone: DeletionResponse;
+    /** Delete a Zone */
+    deleteZones: Array<DeletionResponse>;
     flushBufferedJobs: Success;
     importProducts?: Maybe<ImportInfo>;
     /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
@@ -2901,6 +2926,10 @@ export type MutationDeleteAdministratorArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteAdministratorsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteAssetArgs = {
     input: DeleteAssetInput;
 };
@@ -2913,6 +2942,10 @@ export type MutationDeleteChannelArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteChannelsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCollectionArgs = {
     id: Scalars['ID'];
 };
@@ -2921,6 +2954,10 @@ export type MutationDeleteCollectionsArgs = {
     ids: Array<Scalars['ID']>;
 };
 
+export type MutationDeleteCountriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCountryArgs = {
     id: Scalars['ID'];
 };
@@ -2937,10 +2974,18 @@ export type MutationDeleteCustomerGroupArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomerGroupsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCustomerNoteArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteDraftOrderArgs = {
     orderId: Scalars['ID'];
 };
@@ -2969,6 +3014,11 @@ export type MutationDeletePaymentMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePaymentMethodsArgs = {
+    force?: InputMaybe<Scalars['Boolean']>;
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProductArgs = {
     id: Scalars['ID'];
 };
@@ -2993,6 +3043,10 @@ export type MutationDeletePromotionArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePromotionsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProvinceArgs = {
     id: Scalars['ID'];
 };
@@ -3001,14 +3055,26 @@ export type MutationDeleteRoleArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteRolesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteSellerArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteSellersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteShippingMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteShippingMethodsArgs = {
+    ids?: InputMaybe<Array<Scalars['ID']>>;
+};
+
 export type MutationDeleteStockLocationArgs = {
     input: DeleteStockLocationInput;
 };
@@ -3017,6 +3083,10 @@ export type MutationDeleteTagArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxCategoriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteTaxCategoryArgs = {
     id: Scalars['ID'];
 };
@@ -3025,10 +3095,18 @@ export type MutationDeleteTaxRateArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxRatesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteZoneArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteZonesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationFlushBufferedJobsArgs = {
     bufferIds?: InputMaybe<Array<Scalars['String']>>;
 };

Разлика између датотеке није приказан због своје велике величине
+ 631 - 649
packages/common/src/generated-shop-types.ts


+ 91 - 0
packages/common/src/generated-types.ts

@@ -2581,16 +2581,22 @@ export type Mutation = {
   createZone: Zone;
   /** Delete an Administrator */
   deleteAdministrator: DeletionResponse;
+  /** Delete multiple Administrators */
+  deleteAdministrators: Array<DeletionResponse>;
   /** Delete an Asset */
   deleteAsset: DeletionResponse;
   /** Delete multiple Assets */
   deleteAssets: DeletionResponse;
   /** Delete a Channel */
   deleteChannel: DeletionResponse;
+  /** Delete multiple Channels */
+  deleteChannels: Array<DeletionResponse>;
   /** Delete a Collection and all of its descendants */
   deleteCollection: DeletionResponse;
   /** Delete multiple Collections and all of their descendants */
   deleteCollections: Array<DeletionResponse>;
+  /** Delete multiple Countries */
+  deleteCountries: Array<DeletionResponse>;
   /** Delete a Country */
   deleteCountry: DeletionResponse;
   /** Delete a Customer */
@@ -2599,7 +2605,11 @@ export type Mutation = {
   deleteCustomerAddress: Success;
   /** Delete a CustomerGroup */
   deleteCustomerGroup: DeletionResponse;
+  /** Delete multiple CustomerGroups */
+  deleteCustomerGroups: Array<DeletionResponse>;
   deleteCustomerNote: DeletionResponse;
+  /** Deletes Customers */
+  deleteCustomers: Array<DeletionResponse>;
   /** Deletes a draft Order */
   deleteDraftOrder: DeletionResponse;
   /** Delete an existing Facet */
@@ -2611,6 +2621,8 @@ export type Mutation = {
   deleteOrderNote: DeletionResponse;
   /** Delete a PaymentMethod */
   deletePaymentMethod: DeletionResponse;
+  /** Delete multiple PaymentMethods */
+  deletePaymentMethods: Array<DeletionResponse>;
   /** Delete a Product */
   deleteProduct: DeletionResponse;
   /** Delete a ProductOption */
@@ -2622,23 +2634,36 @@ export type Mutation = {
   /** Delete multiple Products */
   deleteProducts: Array<DeletionResponse>;
   deletePromotion: DeletionResponse;
+  deletePromotions: Array<DeletionResponse>;
   /** Delete a Province */
   deleteProvince: DeletionResponse;
   /** Delete an existing Role */
   deleteRole: DeletionResponse;
+  /** Delete multiple Roles */
+  deleteRoles: Array<DeletionResponse>;
   /** Delete a Seller */
   deleteSeller: DeletionResponse;
+  /** Delete multiple Sellers */
+  deleteSellers: Array<DeletionResponse>;
   /** Delete a ShippingMethod */
   deleteShippingMethod: DeletionResponse;
+  /** Delete multiple ShippingMethods */
+  deleteShippingMethods: Array<DeletionResponse>;
   deleteStockLocation: DeletionResponse;
   /** Delete an existing Tag */
   deleteTag: DeletionResponse;
+  /** Deletes multiple TaxCategories */
+  deleteTaxCategories: Array<DeletionResponse>;
   /** Deletes a TaxCategory */
   deleteTaxCategory: DeletionResponse;
   /** Delete a TaxRate */
   deleteTaxRate: DeletionResponse;
+  /** Delete multiple TaxRates */
+  deleteTaxRates: Array<DeletionResponse>;
   /** Delete a Zone */
   deleteZone: DeletionResponse;
+  /** Delete a Zone */
+  deleteZones: Array<DeletionResponse>;
   flushBufferedJobs: Success;
   importProducts?: Maybe<ImportInfo>;
   /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
@@ -2994,6 +3019,11 @@ export type MutationDeleteAdministratorArgs = {
 };
 
 
+export type MutationDeleteAdministratorsArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteAssetArgs = {
   input: DeleteAssetInput;
 };
@@ -3009,6 +3039,11 @@ export type MutationDeleteChannelArgs = {
 };
 
 
+export type MutationDeleteChannelsArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteCollectionArgs = {
   id: Scalars['ID'];
 };
@@ -3019,6 +3054,11 @@ export type MutationDeleteCollectionsArgs = {
 };
 
 
+export type MutationDeleteCountriesArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteCountryArgs = {
   id: Scalars['ID'];
 };
@@ -3039,11 +3079,21 @@ export type MutationDeleteCustomerGroupArgs = {
 };
 
 
+export type MutationDeleteCustomerGroupsArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteCustomerNoteArgs = {
   id: Scalars['ID'];
 };
 
 
+export type MutationDeleteCustomersArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteDraftOrderArgs = {
   orderId: Scalars['ID'];
 };
@@ -3078,6 +3128,12 @@ export type MutationDeletePaymentMethodArgs = {
 };
 
 
+export type MutationDeletePaymentMethodsArgs = {
+  force?: InputMaybe<Scalars['Boolean']>;
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteProductArgs = {
   id: Scalars['ID'];
 };
@@ -3108,6 +3164,11 @@ export type MutationDeletePromotionArgs = {
 };
 
 
+export type MutationDeletePromotionsArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteProvinceArgs = {
   id: Scalars['ID'];
 };
@@ -3118,16 +3179,31 @@ export type MutationDeleteRoleArgs = {
 };
 
 
+export type MutationDeleteRolesArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteSellerArgs = {
   id: Scalars['ID'];
 };
 
 
+export type MutationDeleteSellersArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteShippingMethodArgs = {
   id: Scalars['ID'];
 };
 
 
+export type MutationDeleteShippingMethodsArgs = {
+  ids?: InputMaybe<Array<Scalars['ID']>>;
+};
+
+
 export type MutationDeleteStockLocationArgs = {
   input: DeleteStockLocationInput;
 };
@@ -3138,6 +3214,11 @@ export type MutationDeleteTagArgs = {
 };
 
 
+export type MutationDeleteTaxCategoriesArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteTaxCategoryArgs = {
   id: Scalars['ID'];
 };
@@ -3148,11 +3229,21 @@ export type MutationDeleteTaxRateArgs = {
 };
 
 
+export type MutationDeleteTaxRatesArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationDeleteZoneArgs = {
   id: Scalars['ID'];
 };
 
 
+export type MutationDeleteZonesArgs = {
+  ids: Array<Scalars['ID']>;
+};
+
+
 export type MutationFlushBufferedJobsArgs = {
   bufferIds?: InputMaybe<Array<Scalars['String']>>;
 };

+ 78 - 0
packages/core/e2e/graphql/generated-e2e-admin-types.ts

@@ -2536,16 +2536,22 @@ export type Mutation = {
     createZone: Zone;
     /** Delete an Administrator */
     deleteAdministrator: DeletionResponse;
+    /** Delete multiple Administrators */
+    deleteAdministrators: Array<DeletionResponse>;
     /** Delete an Asset */
     deleteAsset: DeletionResponse;
     /** Delete multiple Assets */
     deleteAssets: DeletionResponse;
     /** Delete a Channel */
     deleteChannel: DeletionResponse;
+    /** Delete multiple Channels */
+    deleteChannels: Array<DeletionResponse>;
     /** Delete a Collection and all of its descendants */
     deleteCollection: DeletionResponse;
     /** Delete multiple Collections and all of their descendants */
     deleteCollections: Array<DeletionResponse>;
+    /** Delete multiple Countries */
+    deleteCountries: Array<DeletionResponse>;
     /** Delete a Country */
     deleteCountry: DeletionResponse;
     /** Delete a Customer */
@@ -2554,7 +2560,11 @@ export type Mutation = {
     deleteCustomerAddress: Success;
     /** Delete a CustomerGroup */
     deleteCustomerGroup: DeletionResponse;
+    /** Delete multiple CustomerGroups */
+    deleteCustomerGroups: Array<DeletionResponse>;
     deleteCustomerNote: DeletionResponse;
+    /** Deletes Customers */
+    deleteCustomers: Array<DeletionResponse>;
     /** Deletes a draft Order */
     deleteDraftOrder: DeletionResponse;
     /** Delete an existing Facet */
@@ -2566,6 +2576,8 @@ export type Mutation = {
     deleteOrderNote: DeletionResponse;
     /** Delete a PaymentMethod */
     deletePaymentMethod: DeletionResponse;
+    /** Delete multiple PaymentMethods */
+    deletePaymentMethods: Array<DeletionResponse>;
     /** Delete a Product */
     deleteProduct: DeletionResponse;
     /** Delete a ProductOption */
@@ -2577,23 +2589,36 @@ export type Mutation = {
     /** Delete multiple Products */
     deleteProducts: Array<DeletionResponse>;
     deletePromotion: DeletionResponse;
+    deletePromotions: Array<DeletionResponse>;
     /** Delete a Province */
     deleteProvince: DeletionResponse;
     /** Delete an existing Role */
     deleteRole: DeletionResponse;
+    /** Delete multiple Roles */
+    deleteRoles: Array<DeletionResponse>;
     /** Delete a Seller */
     deleteSeller: DeletionResponse;
+    /** Delete multiple Sellers */
+    deleteSellers: Array<DeletionResponse>;
     /** Delete a ShippingMethod */
     deleteShippingMethod: DeletionResponse;
+    /** Delete multiple ShippingMethods */
+    deleteShippingMethods: Array<DeletionResponse>;
     deleteStockLocation: DeletionResponse;
     /** Delete an existing Tag */
     deleteTag: DeletionResponse;
+    /** Deletes multiple TaxCategories */
+    deleteTaxCategories: Array<DeletionResponse>;
     /** Deletes a TaxCategory */
     deleteTaxCategory: DeletionResponse;
     /** Delete a TaxRate */
     deleteTaxRate: DeletionResponse;
+    /** Delete multiple TaxRates */
+    deleteTaxRates: Array<DeletionResponse>;
     /** Delete a Zone */
     deleteZone: DeletionResponse;
+    /** Delete a Zone */
+    deleteZones: Array<DeletionResponse>;
     flushBufferedJobs: Success;
     importProducts?: Maybe<ImportInfo>;
     /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
@@ -2901,6 +2926,10 @@ export type MutationDeleteAdministratorArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteAdministratorsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteAssetArgs = {
     input: DeleteAssetInput;
 };
@@ -2913,6 +2942,10 @@ export type MutationDeleteChannelArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteChannelsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCollectionArgs = {
     id: Scalars['ID'];
 };
@@ -2921,6 +2954,10 @@ export type MutationDeleteCollectionsArgs = {
     ids: Array<Scalars['ID']>;
 };
 
+export type MutationDeleteCountriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCountryArgs = {
     id: Scalars['ID'];
 };
@@ -2937,10 +2974,18 @@ export type MutationDeleteCustomerGroupArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomerGroupsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCustomerNoteArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteDraftOrderArgs = {
     orderId: Scalars['ID'];
 };
@@ -2969,6 +3014,11 @@ export type MutationDeletePaymentMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePaymentMethodsArgs = {
+    force?: InputMaybe<Scalars['Boolean']>;
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProductArgs = {
     id: Scalars['ID'];
 };
@@ -2993,6 +3043,10 @@ export type MutationDeletePromotionArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePromotionsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProvinceArgs = {
     id: Scalars['ID'];
 };
@@ -3001,14 +3055,26 @@ export type MutationDeleteRoleArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteRolesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteSellerArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteSellersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteShippingMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteShippingMethodsArgs = {
+    ids?: InputMaybe<Array<Scalars['ID']>>;
+};
+
 export type MutationDeleteStockLocationArgs = {
     input: DeleteStockLocationInput;
 };
@@ -3017,6 +3083,10 @@ export type MutationDeleteTagArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxCategoriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteTaxCategoryArgs = {
     id: Scalars['ID'];
 };
@@ -3025,10 +3095,18 @@ export type MutationDeleteTaxRateArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxRatesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteZoneArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteZonesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationFlushBufferedJobsArgs = {
     bufferIds?: InputMaybe<Array<Scalars['String']>>;
 };

+ 11 - 0
packages/core/src/api/resolvers/admin/administrator.resolver.ts

@@ -4,6 +4,7 @@ import {
     MutationAssignRoleToAdministratorArgs,
     MutationCreateAdministratorArgs,
     MutationDeleteAdministratorArgs,
+    MutationDeleteAdministratorsArgs,
     MutationUpdateActiveAdministratorArgs,
     MutationUpdateAdministratorArgs,
     Permission,
@@ -110,4 +111,14 @@ export class AdministratorResolver {
         const { id } = args;
         return this.administratorService.softDelete(ctx, id);
     }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteAdministrator)
+    deleteAdministrators(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteAdministratorsArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.administratorService.softDelete(ctx, id)));
+    }
 }

+ 11 - 0
packages/core/src/api/resolvers/admin/channel.resolver.ts

@@ -4,6 +4,7 @@ import {
     DeletionResponse,
     MutationCreateChannelArgs,
     MutationDeleteChannelArgs,
+    MutationDeleteChannelsArgs,
     MutationUpdateChannelArgs,
     Permission,
     QueryChannelArgs,
@@ -87,4 +88,14 @@ export class ChannelResolver {
     ): Promise<DeletionResponse> {
         return this.channelService.delete(ctx, args.id);
     }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.SuperAdmin, Permission.DeleteChannel)
+    async deleteChannels(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteChannelsArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.channelService.delete(ctx, id)));
+    }
 }

+ 11 - 0
packages/core/src/api/resolvers/admin/country.resolver.ts

@@ -2,6 +2,7 @@ import { Args, Mutation, Query, Resolver } from '@nestjs/graphql';
 import {
     DeletionResponse,
     MutationCreateCountryArgs,
+    MutationDeleteCountriesArgs,
     MutationDeleteCountryArgs,
     MutationUpdateCountryArgs,
     Permission,
@@ -72,4 +73,14 @@ export class CountryResolver {
     ): Promise<DeletionResponse> {
         return this.countryService.delete(ctx, args.id);
     }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteSettings, Permission.DeleteCountry)
+    async deleteCountries(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteCountriesArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.countryService.delete(ctx, id)));
+    }
 }

+ 11 - 0
packages/core/src/api/resolvers/admin/customer-group.resolver.ts

@@ -6,6 +6,7 @@ import {
     MutationDeleteCustomerGroupArgs,
     MutationRemoveCustomersFromGroupArgs,
     MutationUpdateCustomerGroupArgs,
+    MutationDeleteCustomerGroupsArgs,
     Permission,
     QueryCustomerGroupArgs,
     QueryCustomerGroupsArgs,
@@ -74,6 +75,16 @@ export class CustomerGroupResolver {
         return this.customerGroupService.delete(ctx, args.id);
     }
 
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteCustomerGroup)
+    async deleteCustomerGroups(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteCustomerGroupsArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.customerGroupService.delete(ctx, id)));
+    }
+
     @Transaction()
     @Mutation()
     @Allow(Permission.UpdateCustomerGroup)

+ 11 - 0
packages/core/src/api/resolvers/admin/customer.resolver.ts

@@ -8,6 +8,7 @@ import {
     MutationDeleteCustomerAddressArgs,
     MutationDeleteCustomerArgs,
     MutationDeleteCustomerNoteArgs,
+    MutationDeleteCustomersArgs,
     MutationUpdateCustomerAddressArgs,
     MutationUpdateCustomerArgs,
     MutationUpdateCustomerNoteArgs,
@@ -132,6 +133,16 @@ export class CustomerResolver {
         return this.customerService.softDelete(ctx, args.id);
     }
 
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteCustomer)
+    async deleteCustomers(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteCustomersArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.deleteCustomer(ctx, { id })));
+    }
+
     @Transaction()
     @Mutation()
     @Allow(Permission.UpdateCustomer)

+ 11 - 0
packages/core/src/api/resolvers/admin/payment-method.resolver.ts

@@ -4,6 +4,7 @@ import {
     DeletionResponse,
     MutationCreatePaymentMethodArgs,
     MutationDeletePaymentMethodArgs,
+    MutationDeletePaymentMethodsArgs,
     MutationUpdatePaymentMethodArgs,
     Permission,
     QueryPaymentMethodArgs,
@@ -73,6 +74,16 @@ export class PaymentMethodResolver {
         return this.paymentMethodService.delete(ctx, args.id, args.force);
     }
 
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteSettings, Permission.DeletePaymentMethod)
+    deletePaymentMethods(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeletePaymentMethodsArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.paymentMethodService.delete(ctx, id, args.force)));
+    }
+
     @Query()
     @Allow(Permission.ReadSettings, Permission.ReadPaymentMethod)
     paymentMethodHandlers(@Ctx() ctx: RequestContext): ConfigurableOperationDefinition[] {

+ 20 - 10
packages/core/src/api/resolvers/admin/promotion.resolver.ts

@@ -4,7 +4,7 @@ import {
     DeletionResponse,
     MutationAssignPromotionsToChannelArgs,
     MutationCreatePromotionArgs,
-    MutationDeletePromotionArgs,
+    MutationDeletePromotionArgs, MutationDeletePromotionsArgs,
     MutationRemovePromotionsFromChannelArgs,
     MutationUpdatePromotionArgs,
     Permission,
@@ -34,7 +34,7 @@ export class PromotionResolver {
     ) {}
 
     @Query()
-    @Allow(Permission.ReadPromotion, Permission.ReadPromotion)
+    @Allow(Permission.ReadPromotion)
     promotions(
         @Ctx() ctx: RequestContext,
         @Args() args: QueryPromotionsArgs,
@@ -47,7 +47,7 @@ export class PromotionResolver {
     }
 
     @Query()
-    @Allow(Permission.ReadPromotion, Permission.ReadPromotion)
+    @Allow(Permission.ReadPromotion)
     promotion(
         @Ctx() ctx: RequestContext,
         @Args() args: QueryPromotionArgs,
@@ -57,20 +57,20 @@ export class PromotionResolver {
     }
 
     @Query()
-    @Allow(Permission.ReadPromotion, Permission.ReadPromotion)
+    @Allow(Permission.ReadPromotion)
     promotionConditions(@Ctx() ctx: RequestContext) {
         return this.promotionService.getPromotionConditions(ctx);
     }
 
     @Query()
-    @Allow(Permission.ReadPromotion, Permission.ReadPromotion)
+    @Allow(Permission.ReadPromotion)
     promotionActions(@Ctx() ctx: RequestContext) {
         return this.promotionService.getPromotionActions(ctx);
     }
 
     @Transaction()
     @Mutation()
-    @Allow(Permission.CreatePromotion, Permission.CreatePromotion)
+    @Allow(Permission.CreatePromotion)
     createPromotion(
         @Ctx() ctx: RequestContext,
         @Args() args: MutationCreatePromotionArgs,
@@ -88,7 +88,7 @@ export class PromotionResolver {
 
     @Transaction()
     @Mutation()
-    @Allow(Permission.UpdatePromotion, Permission.UpdatePromotion)
+    @Allow(Permission.UpdatePromotion)
     updatePromotion(
         @Ctx() ctx: RequestContext,
         @Args() args: MutationUpdatePromotionArgs,
@@ -110,7 +110,7 @@ export class PromotionResolver {
 
     @Transaction()
     @Mutation()
-    @Allow(Permission.DeletePromotion, Permission.DeletePromotion)
+    @Allow(Permission.DeletePromotion)
     deletePromotion(
         @Ctx() ctx: RequestContext,
         @Args() args: MutationDeletePromotionArgs,
@@ -120,7 +120,17 @@ export class PromotionResolver {
 
     @Transaction()
     @Mutation()
-    @Allow(Permission.UpdatePromotion, Permission.UpdatePromotion)
+    @Allow(Permission.DeletePromotion)
+    deletePromotions(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeletePromotionsArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.promotionService.softDeletePromotion(ctx, id));
+    }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.UpdatePromotion)
     assignPromotionsToChannel(
         @Ctx() ctx: RequestContext,
         @Args() args: MutationAssignPromotionsToChannelArgs,
@@ -130,7 +140,7 @@ export class PromotionResolver {
 
     @Transaction()
     @Mutation()
-    @Allow(Permission.UpdatePromotion, Permission.UpdatePromotion)
+    @Allow(Permission.UpdatePromotion)
     removePromotionsFromChannel(
         @Ctx() ctx: RequestContext,
         @Args() args: MutationRemovePromotionsFromChannelArgs,

+ 11 - 0
packages/core/src/api/resolvers/admin/role.resolver.ts

@@ -3,6 +3,7 @@ import {
     DeletionResponse,
     MutationCreateRoleArgs,
     MutationDeleteRoleArgs,
+    MutationDeleteRolesArgs,
     MutationUpdateRoleArgs,
     Permission,
     QueryRoleArgs,
@@ -65,4 +66,14 @@ export class RoleResolver {
         const { id } = args;
         return this.roleService.delete(ctx, id);
     }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteAdministrator)
+    deleteRoles(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteRolesArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.roleService.delete(ctx, id)));
+    }
 }

+ 11 - 1
packages/core/src/api/resolvers/admin/seller.resolver.ts

@@ -2,7 +2,7 @@ import { Args, Mutation, Query, Resolver } from '@nestjs/graphql';
 import {
     DeletionResponse,
     MutationCreateSellerArgs,
-    MutationDeleteSellerArgs,
+    MutationDeleteSellerArgs, MutationDeleteSellersArgs,
     MutationUpdateSellerArgs,
     Permission,
     QuerySellerArgs,
@@ -56,4 +56,14 @@ export class SellerResolver {
     ): Promise<DeletionResponse> {
         return this.sellerService.delete(ctx, args.id);
     }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteSeller)
+    async deleteSellers(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteSellersArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.sellerService.delete(ctx, id));
+    }
 }

+ 11 - 0
packages/core/src/api/resolvers/admin/shipping-method.resolver.ts

@@ -4,6 +4,7 @@ import {
     DeletionResponse,
     MutationCreateShippingMethodArgs,
     MutationDeleteShippingMethodArgs,
+    MutationDeleteShippingMethodsArgs,
     MutationUpdateShippingMethodArgs,
     Permission,
     QueryShippingMethodArgs,
@@ -100,6 +101,16 @@ export class ShippingMethodResolver {
         return this.shippingMethodService.softDelete(ctx, id);
     }
 
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteSettings, Permission.DeleteShippingMethod)
+    deleteShippingMethods(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteShippingMethodsArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.shippingMethodService.softDelete(ctx, id)));
+    }
+
     @Query()
     @Allow(Permission.ReadSettings, Permission.ReadShippingMethod)
     testShippingMethod(@Ctx() ctx: RequestContext, @Args() args: QueryTestShippingMethodArgs) {

+ 11 - 0
packages/core/src/api/resolvers/admin/tax-category.resolver.ts

@@ -4,6 +4,7 @@ import {
     MutationCreateTaxCategoryArgs,
     MutationDeleteTaxCategoryArgs,
     MutationUpdateTaxCategoryArgs,
+    MutationDeleteTaxCategoriesArgs,
     Permission,
     QueryTaxCategoriesArgs,
     QueryTaxCategoryArgs,
@@ -73,4 +74,14 @@ export class TaxCategoryResolver {
     ): Promise<DeletionResponse> {
         return this.taxCategoryService.delete(ctx, args.id);
     }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteSettings, Permission.DeleteTaxCategory)
+    async deleteTaxCategories(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteTaxCategoriesArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.taxCategoryService.delete(ctx, id)));
+    }
 }

+ 11 - 0
packages/core/src/api/resolvers/admin/tax-rate.resolver.ts

@@ -4,6 +4,7 @@ import {
     MutationCreateTaxRateArgs,
     MutationDeleteTaxRateArgs,
     MutationUpdateTaxRateArgs,
+    MutationDeleteTaxRatesArgs,
     Permission,
     QueryTaxRateArgs,
     QueryTaxRatesArgs,
@@ -71,4 +72,14 @@ export class TaxRateResolver {
     ): Promise<DeletionResponse> {
         return this.taxRateService.delete(ctx, args.id);
     }
+
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteSettings, Permission.DeleteTaxRate)
+    async deleteTaxRates(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteTaxRatesArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.taxRateService.delete(ctx, id)));
+    }
 }

+ 11 - 0
packages/core/src/api/resolvers/admin/zone.resolver.ts

@@ -4,6 +4,7 @@ import {
     MutationAddMembersToZoneArgs,
     MutationCreateZoneArgs,
     MutationDeleteZoneArgs,
+    MutationDeleteZonesArgs,
     MutationRemoveMembersFromZoneArgs,
     MutationUpdateZoneArgs,
     Permission,
@@ -57,6 +58,16 @@ export class ZoneResolver {
         return this.zoneService.delete(ctx, args.id);
     }
 
+    @Transaction()
+    @Mutation()
+    @Allow(Permission.DeleteSettings, Permission.DeleteZone)
+    async deleteZones(
+        @Ctx() ctx: RequestContext,
+        @Args() args: MutationDeleteZonesArgs,
+    ): Promise<DeletionResponse[]> {
+        return Promise.all(args.ids.map(id => this.zoneService.delete(ctx, id)));
+    }
+
     @Transaction()
     @Mutation()
     @Allow(Permission.UpdateSettings, Permission.UpdateZone)

+ 2 - 0
packages/core/src/api/schema/admin-api/administrator.api.graphql

@@ -13,6 +13,8 @@ type Mutation {
     updateActiveAdministrator(input: UpdateActiveAdministratorInput!): Administrator!
     "Delete an Administrator"
     deleteAdministrator(id: ID!): DeletionResponse!
+    "Delete multiple Administrators"
+    deleteAdministrators(ids: [ID!]!): [DeletionResponse!]!
     "Assign a Role to an Administrator"
     assignRoleToAdministrator(administratorId: ID!, roleId: ID!): Administrator!
 }

+ 3 - 0
packages/core/src/api/schema/admin-api/channel.api.graphql

@@ -13,6 +13,9 @@ type Mutation {
 
     "Delete a Channel"
     deleteChannel(id: ID!): DeletionResponse!
+
+    "Delete multiple Channels"
+    deleteChannels(ids: [ID!]!): [DeletionResponse!]!
 }
 
 type ChannelList implements PaginatedList {

+ 3 - 0
packages/core/src/api/schema/admin-api/country.api.graphql

@@ -12,6 +12,9 @@ type Mutation {
 
     "Delete a Country"
     deleteCountry(id: ID!): DeletionResponse!
+
+    "Delete multiple Countries"
+    deleteCountries(ids: [ID!]!): [DeletionResponse!]!
 }
 
 input CountryTranslationInput {

+ 2 - 0
packages/core/src/api/schema/admin-api/customer-group.api.graphql

@@ -10,6 +10,8 @@ type Mutation {
     updateCustomerGroup(input: UpdateCustomerGroupInput!): CustomerGroup!
     "Delete a CustomerGroup"
     deleteCustomerGroup(id: ID!): DeletionResponse!
+    "Delete multiple CustomerGroups"
+    deleteCustomerGroups(ids: [ID!]!): [DeletionResponse!]!
     "Add Customers to a CustomerGroup"
     addCustomersToGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
     "Remove Customers from a CustomerGroup"

+ 3 - 0
packages/core/src/api/schema/admin-api/customer.api.graphql

@@ -13,6 +13,9 @@ type Mutation {
     "Delete a Customer"
     deleteCustomer(id: ID!): DeletionResponse!
 
+    "Deletes Customers"
+    deleteCustomers(ids: [ID!]!): [DeletionResponse!]!
+
     "Create a new Address and associate it with the Customer specified by customerId"
     createCustomerAddress(customerId: ID!, input: CreateAddressInput!): Address!
 

+ 2 - 0
packages/core/src/api/schema/admin-api/payment-method.api.graphql

@@ -12,6 +12,8 @@ type Mutation {
     updatePaymentMethod(input: UpdatePaymentMethodInput!): PaymentMethod!
     "Delete a PaymentMethod"
     deletePaymentMethod(id: ID!, force: Boolean): DeletionResponse!
+    "Delete multiple PaymentMethods"
+    deletePaymentMethods(ids: [ID!]!, force: Boolean): [DeletionResponse!]!
 }
 
 type PaymentMethodList implements PaginatedList {

+ 1 - 0
packages/core/src/api/schema/admin-api/promotion.api.graphql

@@ -9,6 +9,7 @@ type Mutation {
     createPromotion(input: CreatePromotionInput!): CreatePromotionResult!
     updatePromotion(input: UpdatePromotionInput!): UpdatePromotionResult!
     deletePromotion(id: ID!): DeletionResponse!
+    deletePromotions(ids: [ID!]!): [DeletionResponse!]!
     "Assigns Promotions to the specified Channel"
     assignPromotionsToChannel(input: AssignPromotionsToChannelInput!): [Promotion!]!
     "Removes Promotions from the specified Channel"

+ 2 - 0
packages/core/src/api/schema/admin-api/role.api.graphql

@@ -10,6 +10,8 @@ type Mutation {
   updateRole(input: UpdateRoleInput!): Role!
   "Delete an existing Role"
   deleteRole(id: ID!): DeletionResponse!
+  "Delete multiple Roles"
+  deleteRoles(ids: [ID!]!): [DeletionResponse!]!
 }
 
 # generated by generateListOptions function

+ 2 - 0
packages/core/src/api/schema/admin-api/seller.api.graphql

@@ -10,6 +10,8 @@ type Mutation {
   updateSeller(input: UpdateSellerInput!): Seller!
   "Delete a Seller"
   deleteSeller(id: ID!): DeletionResponse!
+  "Delete multiple Sellers"
+  deleteSellers(ids: [ID!]!): [DeletionResponse!]!
 }
 
 type SellerList implements PaginatedList {

+ 2 - 0
packages/core/src/api/schema/admin-api/shipping-method.api.graphql

@@ -15,6 +15,8 @@ type Mutation {
     updateShippingMethod(input: UpdateShippingMethodInput!): ShippingMethod!
     "Delete a ShippingMethod"
     deleteShippingMethod(id: ID!): DeletionResponse!
+    "Delete multiple ShippingMethods"
+    deleteShippingMethods(ids: [ID!]): [DeletionResponse!]!
 }
 
 # generated by generateListOptions function

+ 3 - 0
packages/core/src/api/schema/admin-api/tax-category.api.graphql

@@ -19,6 +19,9 @@ type Mutation {
 
     "Deletes a TaxCategory"
     deleteTaxCategory(id: ID!): DeletionResponse!
+
+    "Deletes multiple TaxCategories"
+    deleteTaxCategories(ids: [ID!]!): [DeletionResponse!]!
 }
 
 input CreateTaxCategoryInput {

+ 2 - 0
packages/core/src/api/schema/admin-api/tax-rate.api.graphql

@@ -10,6 +10,8 @@ type Mutation {
   updateTaxRate(input: UpdateTaxRateInput!): TaxRate!
   "Delete a TaxRate"
   deleteTaxRate(id: ID!): DeletionResponse!
+  "Delete multiple TaxRates"
+  deleteTaxRates(ids: [ID!]!): [DeletionResponse!]!
 }
 
 # generated by generateListOptions function

+ 3 - 0
packages/core/src/api/schema/admin-api/zone.api.graphql

@@ -13,6 +13,9 @@ type Mutation {
     "Delete a Zone"
     deleteZone(id: ID!): DeletionResponse!
 
+    "Delete a Zone"
+    deleteZones(ids: [ID!]!): [DeletionResponse!]!
+
     "Add members to a Zone"
     addMembersToZone(zoneId: ID!, memberIds: [ID!]!): Zone!
 

+ 1 - 1
packages/dev-server/test-plugins/multivendor-plugin/service/mv.service.ts

@@ -105,7 +105,7 @@ export class MultivendorService {
             code: shopCode,
             sellerId: seller.id,
             token: `${shopCode}-token`,
-            currencyCode: defaultChannel.currencyCode,
+            currencyCode: defaultChannel.defaultCurrencyCode,
             defaultLanguageCode: defaultChannel.defaultLanguageCode,
             pricesIncludeTax: defaultChannel.pricesIncludeTax,
             defaultShippingZoneId: defaultChannel.defaultShippingZone.id,

+ 78 - 0
packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts

@@ -2536,16 +2536,22 @@ export type Mutation = {
     createZone: Zone;
     /** Delete an Administrator */
     deleteAdministrator: DeletionResponse;
+    /** Delete multiple Administrators */
+    deleteAdministrators: Array<DeletionResponse>;
     /** Delete an Asset */
     deleteAsset: DeletionResponse;
     /** Delete multiple Assets */
     deleteAssets: DeletionResponse;
     /** Delete a Channel */
     deleteChannel: DeletionResponse;
+    /** Delete multiple Channels */
+    deleteChannels: Array<DeletionResponse>;
     /** Delete a Collection and all of its descendants */
     deleteCollection: DeletionResponse;
     /** Delete multiple Collections and all of their descendants */
     deleteCollections: Array<DeletionResponse>;
+    /** Delete multiple Countries */
+    deleteCountries: Array<DeletionResponse>;
     /** Delete a Country */
     deleteCountry: DeletionResponse;
     /** Delete a Customer */
@@ -2554,7 +2560,11 @@ export type Mutation = {
     deleteCustomerAddress: Success;
     /** Delete a CustomerGroup */
     deleteCustomerGroup: DeletionResponse;
+    /** Delete multiple CustomerGroups */
+    deleteCustomerGroups: Array<DeletionResponse>;
     deleteCustomerNote: DeletionResponse;
+    /** Deletes Customers */
+    deleteCustomers: Array<DeletionResponse>;
     /** Deletes a draft Order */
     deleteDraftOrder: DeletionResponse;
     /** Delete an existing Facet */
@@ -2566,6 +2576,8 @@ export type Mutation = {
     deleteOrderNote: DeletionResponse;
     /** Delete a PaymentMethod */
     deletePaymentMethod: DeletionResponse;
+    /** Delete multiple PaymentMethods */
+    deletePaymentMethods: Array<DeletionResponse>;
     /** Delete a Product */
     deleteProduct: DeletionResponse;
     /** Delete a ProductOption */
@@ -2577,23 +2589,36 @@ export type Mutation = {
     /** Delete multiple Products */
     deleteProducts: Array<DeletionResponse>;
     deletePromotion: DeletionResponse;
+    deletePromotions: Array<DeletionResponse>;
     /** Delete a Province */
     deleteProvince: DeletionResponse;
     /** Delete an existing Role */
     deleteRole: DeletionResponse;
+    /** Delete multiple Roles */
+    deleteRoles: Array<DeletionResponse>;
     /** Delete a Seller */
     deleteSeller: DeletionResponse;
+    /** Delete multiple Sellers */
+    deleteSellers: Array<DeletionResponse>;
     /** Delete a ShippingMethod */
     deleteShippingMethod: DeletionResponse;
+    /** Delete multiple ShippingMethods */
+    deleteShippingMethods: Array<DeletionResponse>;
     deleteStockLocation: DeletionResponse;
     /** Delete an existing Tag */
     deleteTag: DeletionResponse;
+    /** Deletes multiple TaxCategories */
+    deleteTaxCategories: Array<DeletionResponse>;
     /** Deletes a TaxCategory */
     deleteTaxCategory: DeletionResponse;
     /** Delete a TaxRate */
     deleteTaxRate: DeletionResponse;
+    /** Delete multiple TaxRates */
+    deleteTaxRates: Array<DeletionResponse>;
     /** Delete a Zone */
     deleteZone: DeletionResponse;
+    /** Delete a Zone */
+    deleteZones: Array<DeletionResponse>;
     flushBufferedJobs: Success;
     importProducts?: Maybe<ImportInfo>;
     /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
@@ -2901,6 +2926,10 @@ export type MutationDeleteAdministratorArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteAdministratorsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteAssetArgs = {
     input: DeleteAssetInput;
 };
@@ -2913,6 +2942,10 @@ export type MutationDeleteChannelArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteChannelsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCollectionArgs = {
     id: Scalars['ID'];
 };
@@ -2921,6 +2954,10 @@ export type MutationDeleteCollectionsArgs = {
     ids: Array<Scalars['ID']>;
 };
 
+export type MutationDeleteCountriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCountryArgs = {
     id: Scalars['ID'];
 };
@@ -2937,10 +2974,18 @@ export type MutationDeleteCustomerGroupArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomerGroupsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCustomerNoteArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteDraftOrderArgs = {
     orderId: Scalars['ID'];
 };
@@ -2969,6 +3014,11 @@ export type MutationDeletePaymentMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePaymentMethodsArgs = {
+    force?: InputMaybe<Scalars['Boolean']>;
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProductArgs = {
     id: Scalars['ID'];
 };
@@ -2993,6 +3043,10 @@ export type MutationDeletePromotionArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePromotionsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProvinceArgs = {
     id: Scalars['ID'];
 };
@@ -3001,14 +3055,26 @@ export type MutationDeleteRoleArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteRolesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteSellerArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteSellersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteShippingMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteShippingMethodsArgs = {
+    ids?: InputMaybe<Array<Scalars['ID']>>;
+};
+
 export type MutationDeleteStockLocationArgs = {
     input: DeleteStockLocationInput;
 };
@@ -3017,6 +3083,10 @@ export type MutationDeleteTagArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxCategoriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteTaxCategoryArgs = {
     id: Scalars['ID'];
 };
@@ -3025,10 +3095,18 @@ export type MutationDeleteTaxRateArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxRatesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteZoneArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteZonesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationFlushBufferedJobsArgs = {
     bufferIds?: InputMaybe<Array<Scalars['String']>>;
 };

+ 78 - 0
packages/payments-plugin/e2e/graphql/generated-admin-types.ts

@@ -2536,16 +2536,22 @@ export type Mutation = {
     createZone: Zone;
     /** Delete an Administrator */
     deleteAdministrator: DeletionResponse;
+    /** Delete multiple Administrators */
+    deleteAdministrators: Array<DeletionResponse>;
     /** Delete an Asset */
     deleteAsset: DeletionResponse;
     /** Delete multiple Assets */
     deleteAssets: DeletionResponse;
     /** Delete a Channel */
     deleteChannel: DeletionResponse;
+    /** Delete multiple Channels */
+    deleteChannels: Array<DeletionResponse>;
     /** Delete a Collection and all of its descendants */
     deleteCollection: DeletionResponse;
     /** Delete multiple Collections and all of their descendants */
     deleteCollections: Array<DeletionResponse>;
+    /** Delete multiple Countries */
+    deleteCountries: Array<DeletionResponse>;
     /** Delete a Country */
     deleteCountry: DeletionResponse;
     /** Delete a Customer */
@@ -2554,7 +2560,11 @@ export type Mutation = {
     deleteCustomerAddress: Success;
     /** Delete a CustomerGroup */
     deleteCustomerGroup: DeletionResponse;
+    /** Delete multiple CustomerGroups */
+    deleteCustomerGroups: Array<DeletionResponse>;
     deleteCustomerNote: DeletionResponse;
+    /** Deletes Customers */
+    deleteCustomers: Array<DeletionResponse>;
     /** Deletes a draft Order */
     deleteDraftOrder: DeletionResponse;
     /** Delete an existing Facet */
@@ -2566,6 +2576,8 @@ export type Mutation = {
     deleteOrderNote: DeletionResponse;
     /** Delete a PaymentMethod */
     deletePaymentMethod: DeletionResponse;
+    /** Delete multiple PaymentMethods */
+    deletePaymentMethods: Array<DeletionResponse>;
     /** Delete a Product */
     deleteProduct: DeletionResponse;
     /** Delete a ProductOption */
@@ -2577,23 +2589,36 @@ export type Mutation = {
     /** Delete multiple Products */
     deleteProducts: Array<DeletionResponse>;
     deletePromotion: DeletionResponse;
+    deletePromotions: Array<DeletionResponse>;
     /** Delete a Province */
     deleteProvince: DeletionResponse;
     /** Delete an existing Role */
     deleteRole: DeletionResponse;
+    /** Delete multiple Roles */
+    deleteRoles: Array<DeletionResponse>;
     /** Delete a Seller */
     deleteSeller: DeletionResponse;
+    /** Delete multiple Sellers */
+    deleteSellers: Array<DeletionResponse>;
     /** Delete a ShippingMethod */
     deleteShippingMethod: DeletionResponse;
+    /** Delete multiple ShippingMethods */
+    deleteShippingMethods: Array<DeletionResponse>;
     deleteStockLocation: DeletionResponse;
     /** Delete an existing Tag */
     deleteTag: DeletionResponse;
+    /** Deletes multiple TaxCategories */
+    deleteTaxCategories: Array<DeletionResponse>;
     /** Deletes a TaxCategory */
     deleteTaxCategory: DeletionResponse;
     /** Delete a TaxRate */
     deleteTaxRate: DeletionResponse;
+    /** Delete multiple TaxRates */
+    deleteTaxRates: Array<DeletionResponse>;
     /** Delete a Zone */
     deleteZone: DeletionResponse;
+    /** Delete a Zone */
+    deleteZones: Array<DeletionResponse>;
     flushBufferedJobs: Success;
     importProducts?: Maybe<ImportInfo>;
     /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
@@ -2901,6 +2926,10 @@ export type MutationDeleteAdministratorArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteAdministratorsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteAssetArgs = {
     input: DeleteAssetInput;
 };
@@ -2913,6 +2942,10 @@ export type MutationDeleteChannelArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteChannelsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCollectionArgs = {
     id: Scalars['ID'];
 };
@@ -2921,6 +2954,10 @@ export type MutationDeleteCollectionsArgs = {
     ids: Array<Scalars['ID']>;
 };
 
+export type MutationDeleteCountriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCountryArgs = {
     id: Scalars['ID'];
 };
@@ -2937,10 +2974,18 @@ export type MutationDeleteCustomerGroupArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomerGroupsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteCustomerNoteArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteCustomersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteDraftOrderArgs = {
     orderId: Scalars['ID'];
 };
@@ -2969,6 +3014,11 @@ export type MutationDeletePaymentMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePaymentMethodsArgs = {
+    force?: InputMaybe<Scalars['Boolean']>;
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProductArgs = {
     id: Scalars['ID'];
 };
@@ -2993,6 +3043,10 @@ export type MutationDeletePromotionArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeletePromotionsArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteProvinceArgs = {
     id: Scalars['ID'];
 };
@@ -3001,14 +3055,26 @@ export type MutationDeleteRoleArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteRolesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteSellerArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteSellersArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteShippingMethodArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteShippingMethodsArgs = {
+    ids?: InputMaybe<Array<Scalars['ID']>>;
+};
+
 export type MutationDeleteStockLocationArgs = {
     input: DeleteStockLocationInput;
 };
@@ -3017,6 +3083,10 @@ export type MutationDeleteTagArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxCategoriesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteTaxCategoryArgs = {
     id: Scalars['ID'];
 };
@@ -3025,10 +3095,18 @@ export type MutationDeleteTaxRateArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteTaxRatesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationDeleteZoneArgs = {
     id: Scalars['ID'];
 };
 
+export type MutationDeleteZonesArgs = {
+    ids: Array<Scalars['ID']>;
+};
+
 export type MutationFlushBufferedJobsArgs = {
     bufferIds?: InputMaybe<Array<Scalars['String']>>;
 };

Разлика између датотеке није приказан због своје велике величине
+ 603 - 621
packages/payments-plugin/e2e/graphql/generated-shop-types.ts


Разлика између датотеке није приказан због своје велике величине
+ 635 - 653
packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
schema-admin.json


Неке датотеке нису приказане због велике количине промена