@acorex-platform/extension-weather-openweathermap-client 0.0.37 → 0.0.46
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/fesm2022/acorex-platform-extension-weather-openweathermap-client-contracts.mjs +12 -1
- package/fesm2022/acorex-platform-extension-weather-openweathermap-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-extension-weather-openweathermap-client.mjs +1 -14
- package/fesm2022/acorex-platform-extension-weather-openweathermap-client.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-extension-weather-openweathermap-client-contracts.d.ts +5 -1
|
@@ -16,6 +16,17 @@ const RootConfig = {
|
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
|
|
19
|
+
const OpenWeatherMapExtensionManifest = {
|
|
20
|
+
name: RootConfig.module.name,
|
|
21
|
+
version: '1.0.0',
|
|
22
|
+
title: RootConfig.module.title,
|
|
23
|
+
icon: RootConfig.module.icon,
|
|
24
|
+
i18n: RootConfig.config.i18n,
|
|
25
|
+
type: 'integration',
|
|
26
|
+
domain: 'weather',
|
|
27
|
+
dependencies: [],
|
|
28
|
+
};
|
|
29
|
+
|
|
19
30
|
var AXEOpenWeatherMapCommandKeys;
|
|
20
31
|
(function (AXEOpenWeatherMapCommandKeys) {
|
|
21
32
|
AXEOpenWeatherMapCommandKeys["ConnectionConnect"] = "OpenWeatherMapExtension:Command:Connection.Connect";
|
|
@@ -35,5 +46,5 @@ var AXEOpenWeatherMapSettingKeys;
|
|
|
35
46
|
* Generated bundle index. Do not edit.
|
|
36
47
|
*/
|
|
37
48
|
|
|
38
|
-
export { AXEOpenWeatherMapCommandKeys, AXEOpenWeatherMapSettingKeys, RootConfig };
|
|
49
|
+
export { AXEOpenWeatherMapCommandKeys, AXEOpenWeatherMapSettingKeys, OpenWeatherMapExtensionManifest, RootConfig };
|
|
39
50
|
//# sourceMappingURL=acorex-platform-extension-weather-openweathermap-client-contracts.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-extension-weather-openweathermap-client-contracts.mjs","sources":["../../../../libs/extensions/weather/openweathermap/contracts/src/root-config.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/commands.keys.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/connection.types.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/settings.keys.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/acorex-platform-extension-weather-openweathermap-client-contracts.ts"],"sourcesContent":["//#region ---- OpenWeatherMap extension config ----\n\nconst config = {\n i18n: 'extensions-openweathermap',\n};\n\nconst MODULE_NAME = 'OpenWeatherMapExtension';\n\nexport const RootConfig = {\n config,\n module: {\n name: MODULE_NAME,\n title: `@${config.i18n}:integration.display-name`,\n icon: 'fa-light fa-cloud-sun',\n },\n integration: {\n providerId: 'openweathermap',\n },\n};\n\n//#endregion\n","export enum AXEOpenWeatherMapCommandKeys {\n ConnectionConnect = 'OpenWeatherMapExtension:Command:Connection.Connect',\n}\n","//#region ---- OpenWeatherMap tenant connection config ----\n\n/** Stored on IntegrationManagement connection `config` for server-side weather calls. */\nexport interface AXEOpenWeatherMapConnectionConfig {\n apiKey?: string;\n}\n\n//#endregion\n","//#region ---- OpenWeatherMap extension settings ----\n\nexport enum AXEOpenWeatherMapSettingKeys {\n ApiKey = 'OpenWeatherMapExtension:Setting:ApiKey',\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,2BAA2B;CAClC;AAED,MAAM,WAAW,GAAG,yBAAyB;AAEtC,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,yBAAA,CAA2B;AACjD,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,UAAU,EAAE,gBAAgB;AAC7B,KAAA;;AAGH;;
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-weather-openweathermap-client-contracts.mjs","sources":["../../../../libs/extensions/weather/openweathermap/contracts/src/root-config.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/manifest.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/commands.keys.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/connection.types.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/settings.keys.ts","../../../../libs/extensions/weather/openweathermap/contracts/src/acorex-platform-extension-weather-openweathermap-client-contracts.ts"],"sourcesContent":["//#region ---- OpenWeatherMap extension config ----\n\nconst config = {\n i18n: 'extensions-openweathermap',\n};\n\nconst MODULE_NAME = 'OpenWeatherMapExtension';\n\nexport const RootConfig = {\n config,\n module: {\n name: MODULE_NAME,\n title: `@${config.i18n}:integration.display-name`,\n icon: 'fa-light fa-cloud-sun',\n },\n integration: {\n providerId: 'openweathermap',\n },\n};\n\n//#endregion\n","\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\nexport const OpenWeatherMapExtensionManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'integration',\n domain: 'weather',\n dependencies: [],\n};\n","export enum AXEOpenWeatherMapCommandKeys {\n ConnectionConnect = 'OpenWeatherMapExtension:Command:Connection.Connect',\n}\n","//#region ---- OpenWeatherMap tenant connection config ----\n\n/** Stored on IntegrationManagement connection `config` for server-side weather calls. */\nexport interface AXEOpenWeatherMapConnectionConfig {\n apiKey?: string;\n}\n\n//#endregion\n","//#region ---- OpenWeatherMap extension settings ----\n\nexport enum AXEOpenWeatherMapSettingKeys {\n ApiKey = 'OpenWeatherMapExtension:Setting:ApiKey',\n}\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1
|
import { AXMIntegrationManagementModule } from '@acorex-platform/module-integration-management-client';
|
|
2
2
|
import { AXP_INTEGRATION_SECRET_STORE, AXP_INTEGRATION_RUNTIME_PROVIDER, AXP_INTEGRATION_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
3
|
-
import { AXP_LOGO_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER } from '@acorex-platform/framework-client/core';
|
|
4
3
|
import { provideCommandSetups } from '@acorex-platform/framework-client/runtime';
|
|
5
4
|
import * as i0 from '@angular/core';
|
|
6
5
|
import { Injectable, inject, NgModule } from '@angular/core';
|
|
7
6
|
import { RootConfig, AXEOpenWeatherMapCommandKeys } from '@acorex-platform/extension-weather-openweathermap-client/contracts';
|
|
7
|
+
import { AXP_LOGO_PROVIDER } from '@acorex-platform/framework-client/core';
|
|
8
8
|
import { AXPWidgetsList, AXP_INTEGRATION_AUTH_METHOD_TYPE, AXP_INTEGRATION_CONNECTION_SCOPE, AXP_INTEGRATION_CONNECTION_STATUS } from '@acorex-platform/framework-shared/core';
|
|
9
9
|
import { AXE_WEATHER_DOMAIN_ID } from '@acorex-platform/extension-weather-core-client/contracts';
|
|
10
10
|
import { trim, defaultTo } from 'lodash-es';
|
|
@@ -119,22 +119,10 @@ const provideOpenWeatherMapIntegrationRuntimeProvider = {
|
|
|
119
119
|
multi: true,
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
const OpenWeatherMapExtensionManifest = {
|
|
123
|
-
name: RootConfig.module.name,
|
|
124
|
-
version: '1.0.0',
|
|
125
|
-
title: RootConfig.module.title,
|
|
126
|
-
icon: RootConfig.module.icon,
|
|
127
|
-
i18n: RootConfig.config.i18n,
|
|
128
|
-
type: 'integration',
|
|
129
|
-
domain: 'weather',
|
|
130
|
-
dependencies: [],
|
|
131
|
-
};
|
|
132
|
-
|
|
133
122
|
class AXEOpenWeatherMapExtensionModule {
|
|
134
123
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEOpenWeatherMapExtensionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
135
124
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXEOpenWeatherMapExtensionModule, imports: [AXMIntegrationManagementModule] }); }
|
|
136
125
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEOpenWeatherMapExtensionModule, providers: [
|
|
137
|
-
{ provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: OpenWeatherMapExtensionManifest, multi: true },
|
|
138
126
|
AXE_OPENWEATHERMAP_LOGO_PROVIDER,
|
|
139
127
|
{ provide: AXP_INTEGRATION_PROVIDER, useClass: AXEOpenWeatherMapIntegrationProvider, multi: true },
|
|
140
128
|
provideOpenWeatherMapIntegrationRuntimeProvider,
|
|
@@ -151,7 +139,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
151
139
|
args: [{
|
|
152
140
|
imports: [AXMIntegrationManagementModule],
|
|
153
141
|
providers: [
|
|
154
|
-
{ provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: OpenWeatherMapExtensionManifest, multi: true },
|
|
155
142
|
AXE_OPENWEATHERMAP_LOGO_PROVIDER,
|
|
156
143
|
{ provide: AXP_INTEGRATION_PROVIDER, useClass: AXEOpenWeatherMapIntegrationProvider, multi: true },
|
|
157
144
|
provideOpenWeatherMapIntegrationRuntimeProvider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-extension-weather-openweathermap-client.mjs","sources":["../../../../libs/extensions/weather/openweathermap/client/src/lib/brand/openweathermap-logo-key.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/brand/openweathermap-logo.provider.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/integration/openweathermap.integration.provider.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/integration/openweathermap.integration-runtime.provider.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/manifest.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/openweathermap-extension.module.ts","../../../../libs/extensions/weather/openweathermap/client/src/acorex-platform-extension-weather-openweathermap-client.ts"],"sourcesContent":["//#region ---- OpenWeatherMap logo registry key ----\n\nexport const axpOpenWeatherMapLogoKey = 'openweathermap' as const;\n\n/** Mark artwork (89×71); consuming apps copy to `assets/images/brand/integrations/`. */\nexport const AXE_OPENWEATHERMAP_MARK_SRC = 'assets/images/brand/integrations/openweathermap-mark.svg';\n\n/** Source mark dimensions (89×71). */\nexport const AXE_OPENWEATHERMAP_MARK_ASPECT = 89 / 71;\n\n//#endregion\n","import {\n AXP_LOGO_PROVIDER,\n type AXPLogoProvider,\n type AXPLogoRequest,\n type AXPLogoView,\n} from '@acorex-platform/framework-client/core';\nimport {\n AXE_OPENWEATHERMAP_MARK_ASPECT,\n AXE_OPENWEATHERMAP_MARK_SRC,\n axpOpenWeatherMapLogoKey,\n} from './openweathermap-logo-key';\n\nconst openWeatherMapLogoProvider: AXPLogoProvider = {\n key: axpOpenWeatherMapLogoKey,\n resolve: async (request: AXPLogoRequest): Promise<AXPLogoView> => ({\n kind: 'image',\n src: AXE_OPENWEATHERMAP_MARK_SRC,\n height: request.size,\n width: Math.round(request.size * AXE_OPENWEATHERMAP_MARK_ASPECT),\n }),\n};\n\nexport const AXE_OPENWEATHERMAP_LOGO_PROVIDER = {\n provide: AXP_LOGO_PROVIDER,\n useValue: openWeatherMapLogoProvider,\n multi: true,\n} as const;\n","import {\n AXP_INTEGRATION_AUTH_METHOD_TYPE,\n AXP_INTEGRATION_CONNECTION_SCOPE,\n AXPWidgetsList,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPIntegrationProvider, AXPIntegrationProviderContext } from '@acorex-platform/framework-client/common';\nimport { Injectable } from '@angular/core';\nimport { AXE_WEATHER_DOMAIN_ID } from '@acorex-platform/extension-weather-core-client/contracts';\nimport { AXEOpenWeatherMapCommandKeys, RootConfig } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\nimport { axpOpenWeatherMapLogoKey } from '../brand/openweathermap-logo-key';\n\n@Injectable()\nexport class AXEOpenWeatherMapIntegrationProvider implements AXPIntegrationProvider {\n async provide(context: AXPIntegrationProviderContext): Promise<void> {\n const I18N = `@${RootConfig.config.i18n}:integration`;\n\n context.register({\n id: RootConfig.integration.providerId,\n domainId: AXE_WEATHER_DOMAIN_ID,\n module: RootConfig.module.name,\n displayName: `${I18N}.display-name`,\n description: `${I18N}.description`,\n icon: RootConfig.module.icon,\n logoKey: axpOpenWeatherMapLogoKey,\n connectionScopes: [AXP_INTEGRATION_CONNECTION_SCOPE.Tenant],\n allowMultipleConnections: false,\n defaultConnectionKey: 'default',\n connectCommandKey: AXEOpenWeatherMapCommandKeys.ConnectionConnect,\n authMethods: [\n {\n type: AXP_INTEGRATION_AUTH_METHOD_TYPE.Pat,\n label: `${I18N}.auth.pat.label`,\n instructions: `${I18N}.auth.pat.instructions`,\n supportsValidation: true,\n fields: [\n {\n type: AXPWidgetsList.Editors.PasswordBox,\n path: 'token',\n options: { placeholder: `${I18N}.auth.pat.token.placeholder` },\n },\n ],\n },\n ],\n });\n }\n}\n","import {\n AXP_INTEGRATION_CONNECTION_STATUS,\n type AXPIntegrationProviderRuntimeHooks,\n type AXPIntegrationRuntimeContext,\n type AXPIntegrationValidationResult,\n} from '@acorex-platform/framework-shared/core';\nimport {\n AXP_INTEGRATION_RUNTIME_PROVIDER,\n AXP_INTEGRATION_SECRET_STORE,\n type AXPIntegrationRuntimeProvider,\n} from '@acorex-platform/framework-client/common';\nimport { Injectable, inject } from '@angular/core';\nimport { defaultTo, trim } from 'lodash-es';\nimport { RootConfig } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\n\n@Injectable()\nexport class AXEOpenWeatherMapIntegrationRuntimeProvider implements AXPIntegrationRuntimeProvider {\n readonly providerId = RootConfig.integration.providerId;\n\n private readonly secretStore = inject(AXP_INTEGRATION_SECRET_STORE, { optional: true });\n\n async getHooks(): Promise<AXPIntegrationProviderRuntimeHooks> {\n return {\n validateConnection: (ctx) => this.validateConnection(ctx),\n };\n }\n\n private async validateConnection(ctx: AXPIntegrationRuntimeContext): Promise<AXPIntegrationValidationResult> {\n const apiKey = await this.resolveApiKey(ctx);\n if (!trim(defaultTo(apiKey, ''))) {\n return {\n valid: false,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Invalid,\n errorMessage: 'No API key available for OpenWeatherMap connection.',\n };\n }\n\n return {\n valid: true,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n externalAccountName: 'OpenWeatherMap',\n };\n }\n\n private async resolveApiKey(ctx: AXPIntegrationRuntimeContext): Promise<string | undefined> {\n const configKey = (ctx.config as { apiKey?: string } | null)?.apiKey;\n if (trim(defaultTo(configKey, ''))) {\n return configKey;\n }\n\n if (!this.secretStore) {\n return undefined;\n }\n\n const credentials = await this.secretStore.resolve(ctx.secretRef, ctx);\n return credentials.token;\n }\n}\n\nexport const provideOpenWeatherMapIntegrationRuntimeProvider = {\n provide: AXP_INTEGRATION_RUNTIME_PROVIDER,\n useClass: AXEOpenWeatherMapIntegrationRuntimeProvider,\n multi: true,\n};\n","import { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\n\nexport const OpenWeatherMapExtensionManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'integration',\n domain: 'weather',\n dependencies: [],\n};\n","import { AXMIntegrationManagementModule } from '@acorex-platform/module-integration-management-client';\nimport { AXP_INTEGRATION_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_MODULE_MANIFEST_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\nimport { AXEOpenWeatherMapCommandKeys } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\nimport { AXE_OPENWEATHERMAP_LOGO_PROVIDER } from './brand/openweathermap-logo.provider';\nimport { AXEOpenWeatherMapIntegrationProvider } from './integration/openweathermap.integration.provider';\nimport { provideOpenWeatherMapIntegrationRuntimeProvider } from './integration/openweathermap.integration-runtime.provider';\nimport { OpenWeatherMapExtensionManifest } from './manifest';\n\n@NgModule({\n imports: [AXMIntegrationManagementModule],\n providers: [\n { provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: OpenWeatherMapExtensionManifest, multi: true },\n AXE_OPENWEATHERMAP_LOGO_PROVIDER,\n { provide: AXP_INTEGRATION_PROVIDER, useClass: AXEOpenWeatherMapIntegrationProvider, multi: true },\n provideOpenWeatherMapIntegrationRuntimeProvider,\n provideCommandSetups([\n {\n key: AXEOpenWeatherMapCommandKeys.ConnectionConnect,\n command: () =>\n import('./features/connect/connect-openweathermap.command').then((c) => c.ConnectOpenWeatherMapCommand),\n },\n ]),\n ],\n})\nexport class AXEOpenWeatherMapExtensionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAEO,MAAM,wBAAwB,GAAG;AAExC;AACO,MAAM,2BAA2B,GAAG;AAE3C;AACO,MAAM,8BAA8B,GAAG,EAAE,GAAG;AAEnD;;ACEA,MAAM,0BAA0B,GAAoB;AAClD,IAAA,GAAG,EAAE,wBAAwB;AAC7B,IAAA,OAAO,EAAE,OAAO,OAAuB,MAA4B;AACjE,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,GAAG,EAAE,2BAA2B;QAChC,MAAM,EAAE,OAAO,CAAC,IAAI;QACpB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,GAAG,8BAA8B,CAAC;KACjE,CAAC;CACH;AAEM,MAAM,gCAAgC,GAAG;AAC9C,IAAA,OAA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AK,CAAC,CAAC,4BAA4B,CAAC;AAC1G,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC1BD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-weather-openweathermap-client.mjs","sources":["../../../../libs/extensions/weather/openweathermap/client/src/lib/brand/openweathermap-logo-key.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/brand/openweathermap-logo.provider.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/integration/openweathermap.integration.provider.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/integration/openweathermap.integration-runtime.provider.ts","../../../../libs/extensions/weather/openweathermap/client/src/lib/openweathermap-extension.module.ts","../../../../libs/extensions/weather/openweathermap/client/src/acorex-platform-extension-weather-openweathermap-client.ts"],"sourcesContent":["//#region ---- OpenWeatherMap logo registry key ----\n\nexport const axpOpenWeatherMapLogoKey = 'openweathermap' as const;\n\n/** Mark artwork (89×71); consuming apps copy to `assets/images/brand/integrations/`. */\nexport const AXE_OPENWEATHERMAP_MARK_SRC = 'assets/images/brand/integrations/openweathermap-mark.svg';\n\n/** Source mark dimensions (89×71). */\nexport const AXE_OPENWEATHERMAP_MARK_ASPECT = 89 / 71;\n\n//#endregion\n","import {\n AXP_LOGO_PROVIDER,\n type AXPLogoProvider,\n type AXPLogoRequest,\n type AXPLogoView,\n} from '@acorex-platform/framework-client/core';\nimport {\n AXE_OPENWEATHERMAP_MARK_ASPECT,\n AXE_OPENWEATHERMAP_MARK_SRC,\n axpOpenWeatherMapLogoKey,\n} from './openweathermap-logo-key';\n\nconst openWeatherMapLogoProvider: AXPLogoProvider = {\n key: axpOpenWeatherMapLogoKey,\n resolve: async (request: AXPLogoRequest): Promise<AXPLogoView> => ({\n kind: 'image',\n src: AXE_OPENWEATHERMAP_MARK_SRC,\n height: request.size,\n width: Math.round(request.size * AXE_OPENWEATHERMAP_MARK_ASPECT),\n }),\n};\n\nexport const AXE_OPENWEATHERMAP_LOGO_PROVIDER = {\n provide: AXP_LOGO_PROVIDER,\n useValue: openWeatherMapLogoProvider,\n multi: true,\n} as const;\n","import {\n AXP_INTEGRATION_AUTH_METHOD_TYPE,\n AXP_INTEGRATION_CONNECTION_SCOPE,\n AXPWidgetsList,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPIntegrationProvider, AXPIntegrationProviderContext } from '@acorex-platform/framework-client/common';\nimport { Injectable } from '@angular/core';\nimport { AXE_WEATHER_DOMAIN_ID } from '@acorex-platform/extension-weather-core-client/contracts';\nimport { AXEOpenWeatherMapCommandKeys, RootConfig } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\nimport { axpOpenWeatherMapLogoKey } from '../brand/openweathermap-logo-key';\n\n@Injectable()\nexport class AXEOpenWeatherMapIntegrationProvider implements AXPIntegrationProvider {\n async provide(context: AXPIntegrationProviderContext): Promise<void> {\n const I18N = `@${RootConfig.config.i18n}:integration`;\n\n context.register({\n id: RootConfig.integration.providerId,\n domainId: AXE_WEATHER_DOMAIN_ID,\n module: RootConfig.module.name,\n displayName: `${I18N}.display-name`,\n description: `${I18N}.description`,\n icon: RootConfig.module.icon,\n logoKey: axpOpenWeatherMapLogoKey,\n connectionScopes: [AXP_INTEGRATION_CONNECTION_SCOPE.Tenant],\n allowMultipleConnections: false,\n defaultConnectionKey: 'default',\n connectCommandKey: AXEOpenWeatherMapCommandKeys.ConnectionConnect,\n authMethods: [\n {\n type: AXP_INTEGRATION_AUTH_METHOD_TYPE.Pat,\n label: `${I18N}.auth.pat.label`,\n instructions: `${I18N}.auth.pat.instructions`,\n supportsValidation: true,\n fields: [\n {\n type: AXPWidgetsList.Editors.PasswordBox,\n path: 'token',\n options: { placeholder: `${I18N}.auth.pat.token.placeholder` },\n },\n ],\n },\n ],\n });\n }\n}\n","import {\n AXP_INTEGRATION_CONNECTION_STATUS,\n type AXPIntegrationProviderRuntimeHooks,\n type AXPIntegrationRuntimeContext,\n type AXPIntegrationValidationResult,\n} from '@acorex-platform/framework-shared/core';\nimport {\n AXP_INTEGRATION_RUNTIME_PROVIDER,\n AXP_INTEGRATION_SECRET_STORE,\n type AXPIntegrationRuntimeProvider,\n} from '@acorex-platform/framework-client/common';\nimport { Injectable, inject } from '@angular/core';\nimport { defaultTo, trim } from 'lodash-es';\nimport { RootConfig } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\n\n@Injectable()\nexport class AXEOpenWeatherMapIntegrationRuntimeProvider implements AXPIntegrationRuntimeProvider {\n readonly providerId = RootConfig.integration.providerId;\n\n private readonly secretStore = inject(AXP_INTEGRATION_SECRET_STORE, { optional: true });\n\n async getHooks(): Promise<AXPIntegrationProviderRuntimeHooks> {\n return {\n validateConnection: (ctx) => this.validateConnection(ctx),\n };\n }\n\n private async validateConnection(ctx: AXPIntegrationRuntimeContext): Promise<AXPIntegrationValidationResult> {\n const apiKey = await this.resolveApiKey(ctx);\n if (!trim(defaultTo(apiKey, ''))) {\n return {\n valid: false,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Invalid,\n errorMessage: 'No API key available for OpenWeatherMap connection.',\n };\n }\n\n return {\n valid: true,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n externalAccountName: 'OpenWeatherMap',\n };\n }\n\n private async resolveApiKey(ctx: AXPIntegrationRuntimeContext): Promise<string | undefined> {\n const configKey = (ctx.config as { apiKey?: string } | null)?.apiKey;\n if (trim(defaultTo(configKey, ''))) {\n return configKey;\n }\n\n if (!this.secretStore) {\n return undefined;\n }\n\n const credentials = await this.secretStore.resolve(ctx.secretRef, ctx);\n return credentials.token;\n }\n}\n\nexport const provideOpenWeatherMapIntegrationRuntimeProvider = {\n provide: AXP_INTEGRATION_RUNTIME_PROVIDER,\n useClass: AXEOpenWeatherMapIntegrationRuntimeProvider,\n multi: true,\n};\n","import { AXMIntegrationManagementModule } from '@acorex-platform/module-integration-management-client';\nimport { AXP_INTEGRATION_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\nimport { AXEOpenWeatherMapCommandKeys } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\nimport { AXE_OPENWEATHERMAP_LOGO_PROVIDER } from './brand/openweathermap-logo.provider';\nimport { AXEOpenWeatherMapIntegrationProvider } from './integration/openweathermap.integration.provider';\nimport { provideOpenWeatherMapIntegrationRuntimeProvider } from './integration/openweathermap.integration-runtime.provider';\n\n@NgModule({\n imports: [AXMIntegrationManagementModule],\n providers: [\n AXE_OPENWEATHERMAP_LOGO_PROVIDER,\n { provide: AXP_INTEGRATION_PROVIDER, useClass: AXEOpenWeatherMapIntegrationProvider, multi: true },\n provideOpenWeatherMapIntegrationRuntimeProvider,\n provideCommandSetups([\n {\n key: AXEOpenWeatherMapCommandKeys.ConnectionConnect,\n command: () =>\n import('./features/connect/connect-openweathermap.command').then((c) => c.ConnectOpenWeatherMapCommand),\n },\n ]),\n ],\n})\nexport class AXEOpenWeatherMapExtensionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAEO,MAAM,wBAAwB,GAAG;AAExC;AACO,MAAM,2BAA2B,GAAG;AAE3C;AACO,MAAM,8BAA8B,GAAG,EAAE,GAAG;AAEnD;;ACEA,MAAM,0BAA0B,GAAoB;AAClD,IAAA,GAAG,EAAE,wBAAwB;AAC7B,IAAA,OAAO,EAAE,OAAO,OAAuB,MAA4B;AACjE,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,GAAG,EAAE,2BAA2B;QAChC,MAAM,EAAE,OAAO,CAAC,IAAI;QACpB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,GAAG,8BAA8B,CAAC;KACjE,CAAC;CACH;AAEM,MAAM,gCAAgC,GAAG;AAC9C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,QAAQ,EAAE,0BAA0B;AACpC,IAAA,KAAK,EAAE,IAAI;;;MCbA,oCAAoC,CAA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CAAC,KAAK,CAAC,CAAC,4BAA4B,CAAC;AAC1G,iBAAA;aACF,CAAC;AACH,SAAA,EAAA,OAAA,EAAA,CAZS,8BAA8B,CAAA,EAAA,CAAA,CAAA;;2FAc7B,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAf5C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,8BAA8B,CAAC;AACzC,oBAAA,SAAS,EAAE;wBACT,gCAAgC;wBAChC,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,oCAAoC,EAAE,KAAK,EAAE,IAAI,EAAE;wBAClG,+CAA+C;AAC/C,wBAAA,oBAAoB,CAAC;AACnB,4BAAA;gCACE,GAAG,EAAE,4BAA4B,CAAC,iBAAiB;AACnD,gCAAA,OAAO,EAAE,MACP,OAAO,uGAAmD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,CAAC;AAC1G,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;ACvBD;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AXPModuleManifest } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
|
|
1
3
|
declare const RootConfig: {
|
|
2
4
|
config: {
|
|
3
5
|
i18n: string;
|
|
@@ -12,6 +14,8 @@ declare const RootConfig: {
|
|
|
12
14
|
};
|
|
13
15
|
};
|
|
14
16
|
|
|
17
|
+
declare const OpenWeatherMapExtensionManifest: AXPModuleManifest;
|
|
18
|
+
|
|
15
19
|
declare enum AXEOpenWeatherMapCommandKeys {
|
|
16
20
|
ConnectionConnect = "OpenWeatherMapExtension:Command:Connection.Connect"
|
|
17
21
|
}
|
|
@@ -25,5 +29,5 @@ declare enum AXEOpenWeatherMapSettingKeys {
|
|
|
25
29
|
ApiKey = "OpenWeatherMapExtension:Setting:ApiKey"
|
|
26
30
|
}
|
|
27
31
|
|
|
28
|
-
export { AXEOpenWeatherMapCommandKeys, AXEOpenWeatherMapSettingKeys, RootConfig };
|
|
32
|
+
export { AXEOpenWeatherMapCommandKeys, AXEOpenWeatherMapSettingKeys, OpenWeatherMapExtensionManifest, RootConfig };
|
|
29
33
|
export type { AXEOpenWeatherMapConnectionConfig };
|