title | issue | author | author_email |
---|---|---|---|
Translate javascript services from sw-extension into TypeScript |
NEXT-20617 |
Sebastian Franze |
- Removed es-lint rule
@typescript-eslint/explicit-function-return-type
. - Changed
src/app/service/discount-campaign.service.js
tosrc/app/service/discount-campaign.service.ts
. - Added interface
ShopwareDiscountCampaignService
insrc/app/service/discount-campaign.service.ts
. - Changed
src/app/state/shopware-apps.store.js
tosrc/app/state/shopware-apps.store.ts
. - Added interface
ShopwareAppsState
insrc/app/state/shopware-apps.store.ts
. - Changed
src/core/service/api/app-modules.service.js
tosrc/core/service/api/app-modules.service.ts
. - Added type
AppModuleDefinition
insrc/core/service/api/app-modules.service.ts
. - Added type
AppModulesService
insrc/core/service/api/app-modules.service.ts
. - Changed
src/core/service/api/store.api.service.js
tosrc/core/service/api/store.api.service.ts
. - Added type
StoreApiService
insrc/core/service/api/store.api.service.ts
. - Deprecated
StoreApiService::getBasicParams
. Method will be private in future versions. - Added type parameter to
ApiService::handleResponse
. - Changed return type of
ApiService::handleResponse
toAxiosResponse<T>|T|unknown
. - Changed
src/module/sw-extension/service/extension-store-action.service.js
tosrc/module/sw-extension/service/extension-store-action.service.ts
. - Added type
ExtensionStoreActionService
insrc/module/sw-extension/service/extension-store-action.service.js
. - Added type
ExtensionVariantType
insrc/module/sw-extension/service/extension-store-action.service.js
. - Added type
ExtensionType
insrc/module/sw-extension/service/extension-store-action.service.js
. - Added type
DiscountCampaign
insrc/module/sw-extension/service/extension-store-action.service.js
. - Added type
ExtensionVariant
insrc/module/sw-extension/service/extension-store-action.service.js
. - Added type
StoreCategory
insrc/module/sw-extension/service/extension-store-action.service.js
. - Added type
License
insrc/module/sw-extension/service/extension-store-action.service.js
. - Added type
Extension
insrc/module/sw-extension/service/extension-store-action.service.js
. - Deprecated
ExtensionStoreActionService::basicHeaders
. Use private methodstoreHeaders
instead. - Changed
src/module/sw-extension/service/index.js
tosrc/module/sw-extension/service/index.ts
. - Added entry
extensionStoreActionService: ExtensionStoreActionService
to global interfaceServiceContainer
insrc/module/sw-extension/service/index.js
. - Added entry
shopwareExtensionService: ShopwareExtensionService
to global interfaceServiceContainer
insrc/module/sw-extension/service/index.js
. - Added entry
extensionErrorService: ExtensionErrorService
to global interfaceServiceContainer
insrc/module/sw-extension/service/index.js
. - Changed
src/module/sw-extension/service/shopware-extension.service.js
tosrc/module/sw-extension/service/shopware-extension.service.ts
. - Added type
ShopwareExtensionService
insrc/module/sw-extension/service/shopware-extension.service.ts
. - Added optional parameter
storeApiService
toShopwareExtensionService
. - Deprecated constructor parameter
storeApiService
inShopwareExtensionService
. Parameter will be required in future versions. - Deprecated
ShopwareExtensionService::updateModules
. Method will be private in future versions. - Deprecated
ShopwareExtensionService::_getLinkToTheme
. Will be removed. Use private functiongetLinkToTheme
instead. - Deprecated
ShopwareExtensionService::_getLinkToApp
. Will be removed. Use private functiongetLinkToApp
instead. - Deprecated
ShopwareExtensionService::_getAppFromStore
. Will be removed. Use private functiongetAppFromStore
instead. - Deprecated
ShopwareExtensionService::_appHasMainModule
. Will be removed. Use private functionappHasMainModule
instead. - Deprecated
ShopwareExtensionService::_createLinkToModule
. Will be removed. Use private functioncreateLinkToModule
instead. - Deprecated
ShopwareExtensionService::_orderByType
. Will be removed. Use private functionorderByType
instead. - Changed
src/module/sw-extension/store/extensions.store.js
tosrc/module/sw-extension/store/extensions.store.ts
- Added type
ShopwareExtensionsState
insrc/module/sw-extension/store/extensions.store.js
- Deprecated entries
licensedExtensions
,plugins
andtotalPlugins
inShopwareExtensionsState
- Deprecated entry
plugins
inShopwareExtensionsState
- Deprecated entry
totalPlugins
inShopwareExtensionsState
- Deprecated mutation
loadLicensedExtensions
inshopwareExtensionsStore
. Will be removed with no replacement. - Deprecated mutation
licensedExtensions
inshopwareExtensionsStore
. Will be removed with no replacement. - Deprecated mutation
commitPlugins
inshopwareExtensionsStore
. Will be removed with no replacement. - Changed
src/module/sw-extension/store/index.js
tosrc/module/sw-extension/store/index.ts
- Changed type of entry
acl
in global interfaceServiceContainer
toAclService
- Changed type of entry
shopwareDiscountCampaignService
in global interfaceServiceContainer
toShopwareDiscountCampaignService
- Changed type of entry
storeService
in global interfaceServiceContainer
toStoreApiService
- Added entry
appModulesService: AppModulesService
to global interfaceServiceContainer
- Added the following entries to the global interface
VuexRootState
:session.userPending: boolean
session.languageId: string
session.currentLocale: string|null
shopwareExtensions: ShopwareExtensionsState
extensionEntryRoutes: $TSFixMe
shopwareApps: ShopwareAppsState