@acorex-platform/extension-weather-weatherapi-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.
@@ -16,6 +16,17 @@ const RootConfig = {
16
16
  };
17
17
  //#endregion
18
18
 
19
+ const WeatherApiExtensionManifest = {
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 AXEWeatherApiCommandKeys;
20
31
  (function (AXEWeatherApiCommandKeys) {
21
32
  AXEWeatherApiCommandKeys["ConnectionConnect"] = "WeatherApiExtension:Command:Connection.Connect";
@@ -35,5 +46,5 @@ var AXEWeatherApiSettingKeys;
35
46
  * Generated bundle index. Do not edit.
36
47
  */
37
48
 
38
- export { AXEWeatherApiCommandKeys, AXEWeatherApiSettingKeys, RootConfig };
49
+ export { AXEWeatherApiCommandKeys, AXEWeatherApiSettingKeys, RootConfig, WeatherApiExtensionManifest };
39
50
  //# sourceMappingURL=acorex-platform-extension-weather-weatherapi-client-contracts.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-extension-weather-weatherapi-client-contracts.mjs","sources":["../../../../libs/extensions/weather/weatherapi/contracts/src/root-config.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/commands.keys.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/connection.types.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/settings.keys.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/acorex-platform-extension-weather-weatherapi-client-contracts.ts"],"sourcesContent":["//#region ---- WeatherAPI extension config ----\n\nconst config = {\n i18n: 'extensions-weatherapi',\n};\n\nconst MODULE_NAME = 'WeatherApiExtension';\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-rain',\n },\n integration: {\n providerId: 'weatherapi',\n },\n};\n\n//#endregion\n","export enum AXEWeatherApiCommandKeys {\n ConnectionConnect = 'WeatherApiExtension:Command:Connection.Connect',\n}\n","//#region ---- WeatherAPI tenant connection config ----\n\n/** Stored on IntegrationManagement connection `config` for server-side weather calls. */\nexport interface AXEWeatherApiConnectionConfig {\n apiKey?: string;\n}\n\n//#endregion\n","//#region ---- WeatherAPI extension settings ----\n\nexport enum AXEWeatherApiSettingKeys {\n ApiKey = 'WeatherApiExtension: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,uBAAuB;CAC9B;AAED,MAAM,WAAW,GAAG,qBAAqB;AAElC,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,4BAA4B;AACnC,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,UAAU,EAAE,YAAY;AACzB,KAAA;;AAGH;;ICpBY;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,mBAAA,CAAA,GAAA,gDAAoE;AACtE,CAAC,EAFW,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;;ACApC;AAOA;;ACPA;IAEY;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,QAAA,CAAA,GAAA,oCAA6C;AAC/C,CAAC,EAFW,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;AAIpC;;ACNA;;AAEG;;"}
1
+ {"version":3,"file":"acorex-platform-extension-weather-weatherapi-client-contracts.mjs","sources":["../../../../libs/extensions/weather/weatherapi/contracts/src/root-config.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/manifest.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/commands.keys.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/connection.types.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/settings.keys.ts","../../../../libs/extensions/weather/weatherapi/contracts/src/acorex-platform-extension-weather-weatherapi-client-contracts.ts"],"sourcesContent":["//#region ---- WeatherAPI extension config ----\n\nconst config = {\n i18n: 'extensions-weatherapi',\n};\n\nconst MODULE_NAME = 'WeatherApiExtension';\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-rain',\n },\n integration: {\n providerId: 'weatherapi',\n },\n};\n\n//#endregion\n","\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\nexport const WeatherApiExtensionManifest: 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 AXEWeatherApiCommandKeys {\n ConnectionConnect = 'WeatherApiExtension:Command:Connection.Connect',\n}\n","//#region ---- WeatherAPI tenant connection config ----\n\n/** Stored on IntegrationManagement connection `config` for server-side weather calls. */\nexport interface AXEWeatherApiConnectionConfig {\n apiKey?: string;\n}\n\n//#endregion\n","//#region ---- WeatherAPI extension settings ----\n\nexport enum AXEWeatherApiSettingKeys {\n ApiKey = 'WeatherApiExtension: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,uBAAuB;CAC9B;AAED,MAAM,WAAW,GAAG,qBAAqB;AAElC,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,4BAA4B;AACnC,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,UAAU,EAAE,YAAY;AACzB,KAAA;;AAGH;;AChBO,MAAM,2BAA2B,GAAsB;AAC5D,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,YAAY,EAAE,EAAE;;;ICZN;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,mBAAA,CAAA,GAAA,gDAAoE;AACtE,CAAC,EAFW,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;;ACApC;AAOA;;ACPA;IAEY;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,QAAA,CAAA,GAAA,oCAA6C;AAC/C,CAAC,EAFW,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;AAIpC;;ACNA;;AAEG;;"}
@@ -1,10 +1,10 @@
1
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, AXEWeatherApiCommandKeys } from '@acorex-platform/extension-weather-weatherapi-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 provideWeatherApiIntegrationRuntimeProvider = {
119
119
  multi: true,
120
120
  };
121
121
 
122
- const WeatherApiExtensionManifest = {
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 AXEWeatherApiExtensionModule {
134
123
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEWeatherApiExtensionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
135
124
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXEWeatherApiExtensionModule, imports: [AXMIntegrationManagementModule] }); }
136
125
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEWeatherApiExtensionModule, providers: [
137
- { provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: WeatherApiExtensionManifest, multi: true },
138
126
  AXE_WEATHERAPI_LOGO_PROVIDER,
139
127
  { provide: AXP_INTEGRATION_PROVIDER, useClass: AXEWeatherApiIntegrationProvider, multi: true },
140
128
  provideWeatherApiIntegrationRuntimeProvider,
@@ -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: WeatherApiExtensionManifest, multi: true },
155
142
  AXE_WEATHERAPI_LOGO_PROVIDER,
156
143
  { provide: AXP_INTEGRATION_PROVIDER, useClass: AXEWeatherApiIntegrationProvider, multi: true },
157
144
  provideWeatherApiIntegrationRuntimeProvider,
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-extension-weather-weatherapi-client.mjs","sources":["../../../../libs/extensions/weather/weatherapi/client/src/lib/brand/weatherapi-logo-key.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/brand/weatherapi-logo.provider.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/integration/weatherapi.integration.provider.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/integration/weatherapi.integration-runtime.provider.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/manifest.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/weatherapi-extension.module.ts","../../../../libs/extensions/weather/weatherapi/client/src/acorex-platform-extension-weather-weatherapi-client.ts"],"sourcesContent":["//#region ---- WeatherAPI logo registry key ----\n\nexport const axpWeatherApiLogoKey = 'weatherapi' as const;\n\n/** Mark artwork (739×1024); consuming apps copy to `assets/images/brand/integrations/`. */\nexport const AXE_WEATHERAPI_MARK_SRC = 'assets/images/brand/integrations/weatherapi-mark.svg';\n\n/** Source mark dimensions (739×1024). */\nexport const AXE_WEATHERAPI_MARK_ASPECT = 739 / 1024;\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_WEATHERAPI_MARK_ASPECT,\n AXE_WEATHERAPI_MARK_SRC,\n axpWeatherApiLogoKey,\n} from './weatherapi-logo-key';\n\nconst weatherApiLogoProvider: AXPLogoProvider = {\n key: axpWeatherApiLogoKey,\n resolve: async (request: AXPLogoRequest): Promise<AXPLogoView> => ({\n kind: 'image',\n src: AXE_WEATHERAPI_MARK_SRC,\n height: request.size,\n width: Math.round(request.size * AXE_WEATHERAPI_MARK_ASPECT),\n }),\n};\n\nexport const AXE_WEATHERAPI_LOGO_PROVIDER = {\n provide: AXP_LOGO_PROVIDER,\n useValue: weatherApiLogoProvider,\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 { AXEWeatherApiCommandKeys, RootConfig } from '@acorex-platform/extension-weather-weatherapi-client/contracts';\nimport { axpWeatherApiLogoKey } from '../brand/weatherapi-logo-key';\n\n@Injectable()\nexport class AXEWeatherApiIntegrationProvider 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: axpWeatherApiLogoKey,\n connectionScopes: [AXP_INTEGRATION_CONNECTION_SCOPE.Tenant],\n allowMultipleConnections: false,\n defaultConnectionKey: 'default',\n connectCommandKey: AXEWeatherApiCommandKeys.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-weatherapi-client/contracts';\n\n@Injectable()\nexport class AXEWeatherApiIntegrationRuntimeProvider 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 WeatherAPI connection.',\n };\n }\n\n return {\n valid: true,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n externalAccountName: 'WeatherAPI.com',\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 provideWeatherApiIntegrationRuntimeProvider = {\n provide: AXP_INTEGRATION_RUNTIME_PROVIDER,\n useClass: AXEWeatherApiIntegrationRuntimeProvider,\n multi: true,\n};\n","import { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/extension-weather-weatherapi-client/contracts';\n\nexport const WeatherApiExtensionManifest: 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 { AXEWeatherApiCommandKeys } from '@acorex-platform/extension-weather-weatherapi-client/contracts';\nimport { AXE_WEATHERAPI_LOGO_PROVIDER } from './brand/weatherapi-logo.provider';\nimport { AXEWeatherApiIntegrationProvider } from './integration/weatherapi.integration.provider';\nimport { provideWeatherApiIntegrationRuntimeProvider } from './integration/weatherapi.integration-runtime.provider';\nimport { WeatherApiExtensionManifest } from './manifest';\n\n@NgModule({\n imports: [AXMIntegrationManagementModule],\n providers: [\n { provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: WeatherApiExtensionManifest, multi: true },\n AXE_WEATHERAPI_LOGO_PROVIDER,\n { provide: AXP_INTEGRATION_PROVIDER, useClass: AXEWeatherApiIntegrationProvider, multi: true },\n provideWeatherApiIntegrationRuntimeProvider,\n provideCommandSetups([\n {\n key: AXEWeatherApiCommandKeys.ConnectionConnect,\n command: () =>\n import('./features/connect/connect-weatherapi.command').then((c) => c.ConnectWeatherApiCommand),\n },\n ]),\n ],\n})\nexport class AX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,8BAA8B,CAAA,EAAA,CAAA,CAAA;;2FAe7B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAhBxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,8BAA8B,CAAC;AACzC,oBAAA,SAAS,EAAE;wBACT,EAAE,OAAO,EAAE,4BAA4B,EAAE,QAAQ,EAAE,2BAA2B,EAAE,KAAK,EAAE,IAAI,EAAE;wBAC7F,4BAA4B;wBAC5B,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,gCAAgC,EAAE,KAAK,EAAE,IAAI,EAAE;wBAC9F,2CAA2C;AAC3C,wBAAA,oBAAoB,CAAC;AACnB,4BAAA;gCACE,GAAG,EAAE,wBAAwB,CAAC,iBAAiB;AAC/C,gCAAA,OAAO,EAAE,MACP,OAAO,+FAA+C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,wBAAwB,CAAC;AAClG,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC1BD;;AAEG;;"}
1
+ {"version":3,"file":"acorex-platform-extension-weather-weatherapi-client.mjs","sources":["../../../../libs/extensions/weather/weatherapi/client/src/lib/brand/weatherapi-logo-key.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/brand/weatherapi-logo.provider.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/integration/weatherapi.integration.provider.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/integration/weatherapi.integration-runtime.provider.ts","../../../../libs/extensions/weather/weatherapi/client/src/lib/weatherapi-extension.module.ts","../../../../libs/extensions/weather/weatherapi/client/src/acorex-platform-extension-weather-weatherapi-client.ts"],"sourcesContent":["//#region ---- WeatherAPI logo registry key ----\n\nexport const axpWeatherApiLogoKey = 'weatherapi' as const;\n\n/** Mark artwork (739×1024); consuming apps copy to `assets/images/brand/integrations/`. */\nexport const AXE_WEATHERAPI_MARK_SRC = 'assets/images/brand/integrations/weatherapi-mark.svg';\n\n/** Source mark dimensions (739×1024). */\nexport const AXE_WEATHERAPI_MARK_ASPECT = 739 / 1024;\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_WEATHERAPI_MARK_ASPECT,\n AXE_WEATHERAPI_MARK_SRC,\n axpWeatherApiLogoKey,\n} from './weatherapi-logo-key';\n\nconst weatherApiLogoProvider: AXPLogoProvider = {\n key: axpWeatherApiLogoKey,\n resolve: async (request: AXPLogoRequest): Promise<AXPLogoView> => ({\n kind: 'image',\n src: AXE_WEATHERAPI_MARK_SRC,\n height: request.size,\n width: Math.round(request.size * AXE_WEATHERAPI_MARK_ASPECT),\n }),\n};\n\nexport const AXE_WEATHERAPI_LOGO_PROVIDER = {\n provide: AXP_LOGO_PROVIDER,\n useValue: weatherApiLogoProvider,\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 { AXEWeatherApiCommandKeys, RootConfig } from '@acorex-platform/extension-weather-weatherapi-client/contracts';\nimport { axpWeatherApiLogoKey } from '../brand/weatherapi-logo-key';\n\n@Injectable()\nexport class AXEWeatherApiIntegrationProvider 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: axpWeatherApiLogoKey,\n connectionScopes: [AXP_INTEGRATION_CONNECTION_SCOPE.Tenant],\n allowMultipleConnections: false,\n defaultConnectionKey: 'default',\n connectCommandKey: AXEWeatherApiCommandKeys.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-weatherapi-client/contracts';\n\n@Injectable()\nexport class AXEWeatherApiIntegrationRuntimeProvider 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 WeatherAPI connection.',\n };\n }\n\n return {\n valid: true,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n externalAccountName: 'WeatherAPI.com',\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 provideWeatherApiIntegrationRuntimeProvider = {\n provide: AXP_INTEGRATION_RUNTIME_PROVIDER,\n useClass: AXEWeatherApiIntegrationRuntimeProvider,\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 { AXEWeatherApiCommandKeys } from '@acorex-platform/extension-weather-weatherapi-client/contracts';\nimport { AXE_WEATHERAPI_LOGO_PROVIDER } from './brand/weatherapi-logo.provider';\nimport { AXEWeatherApiIntegrationProvider } from './integration/weatherapi.integration.provider';\nimport { provideWeatherApiIntegrationRuntimeProvider } from './integration/weatherapi.integration-runtime.provider';\n\n@NgModule({\n imports: [AXMIntegrationManagementModule],\n providers: [\n AXE_WEATHERAPI_LOGO_PROVIDER,\n { provide: AXP_INTEGRATION_PROVIDER, useClass: AXEWeatherApiIntegrationProvider, multi: true },\n provideWeatherApiIntegrationRuntimeProvider,\n provideCommandSetups([\n {\n key: AXEWeatherApiCommandKeys.ConnectionConnect,\n command: () =>\n import('./features/connect/connect-weatherapi.command').then((c) => c.ConnectWeatherApiCommand),\n },\n ]),\n ],\n})\nexport class AXEWeatherApiExtensionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAEO,MAAM,oBAAoB,GAAG;AAEpC;AACO,MAAM,uBAAuB,GAAG;AAEvC;AACO,MAAM,0BAA0B,GAAG,GAAG,GAAG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.37",
3
+ "version": "0.0.46",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",
@@ -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 WeatherApiExtensionManifest: AXPModuleManifest;
18
+
15
19
  declare enum AXEWeatherApiCommandKeys {
16
20
  ConnectionConnect = "WeatherApiExtension:Command:Connection.Connect"
17
21
  }
@@ -25,5 +29,5 @@ declare enum AXEWeatherApiSettingKeys {
25
29
  ApiKey = "WeatherApiExtension:Setting:ApiKey"
26
30
  }
27
31
 
28
- export { AXEWeatherApiCommandKeys, AXEWeatherApiSettingKeys, RootConfig };
32
+ export { AXEWeatherApiCommandKeys, AXEWeatherApiSettingKeys, RootConfig, WeatherApiExtensionManifest };
29
33
  export type { AXEWeatherApiConnectionConfig };