@acorex-platform/extension-weather-openweathermap-client 0.0.32 → 0.0.37

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.
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-extension-weather-openweathermap-client-connect-openweathermap.command-V6yqCW6m.mjs","sources":["../../../../libs/extensions/weather/openweathermap/client/src/lib/features/connect/connect-openweathermap.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n AXP_INTEGRATION_AUTH_METHOD_TYPE,\n AXP_INTEGRATION_CONNECTION_STATUS,\n type AXPRuntimeCommandResult,\n type AXPIntegrationConnectionScope,\n} from '@acorex-platform/framework-shared/core';\nimport {\n AXMIntegrationConnectionManager,\n AXP_INTEGRATION_CREDENTIAL_MASK,\n hasConfiguredIntegrationCredentials,\n isMaskedIntegrationCredential,\n toSafeIntegrationConnectionDto,\n type ConnectCommandResult,\n} from '@acorex-platform/module-integration-management-client';\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n type AXPDialogRef,\n type IActionBuilder,\n type IDialogBuilder,\n type IFlexContainerBuilder,\n} from '@acorex-platform/framework-client/layout/builder';\nimport { Injectable, inject } from '@angular/core';\nimport { trim } from 'lodash-es';\nimport { RootConfig } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\n\nexport interface ConnectOpenWeatherMapCommandInput {\n providerId?: string;\n connectionScope?: AXPIntegrationConnectionScope;\n}\n\ninterface OpenWeatherMapConnectFormResult {\n apiKey: string;\n}\n\n//#region ----- Connect OpenWeatherMap -----\n\n@Injectable({ providedIn: 'root' })\nexport class ConnectOpenWeatherMapCommand implements AXPCommand<ConnectOpenWeatherMapCommandInput, ConnectCommandResult> {\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly connectionManager = inject(AXMIntegrationConnectionManager);\n\n async execute(input: ConnectOpenWeatherMapCommandInput = {}): AXPCommandExecuteResultPromise<ConnectCommandResult> {\n try {\n const providerId = input.providerId ?? RootConfig.integration.providerId;\n const connectionScope = input.connectionScope ?? 'tenant';\n const I18N = `@${RootConfig.config.i18n}:integration.connect`;\n const existing = await this.connectionManager.findByUniqueKey({\n providerId,\n connectionScope,\n connectionKey: 'default',\n });\n const isReconfigure = hasConfiguredIntegrationCredentials(existing);\n\n const form = await this.openConnectDialog({\n i18nPrefix: I18N,\n isReconfigure,\n apiKey: isReconfigure ? AXP_INTEGRATION_CREDENTIAL_MASK : '',\n });\n\n if (!form) {\n return { success: true, kind: 'object', data: { outcome: 'cancelled' } };\n }\n\n let apiKey = trim(form.apiKey);\n if (isMaskedIntegrationCredential(apiKey) && existing) {\n const config = (existing.config ?? {}) as { apiKey?: string };\n apiKey = trim(config.apiKey ?? '');\n }\n if (!apiKey) {\n return {\n success: false,\n message: { text: `${I18N}.pat-dialog.messages.api-key-required` },\n };\n }\n\n const connection = await this.connectionManager.upsertConnection({\n providerId,\n authMethodType: AXP_INTEGRATION_AUTH_METHOD_TYPE.Pat,\n connectionScope,\n connectionKey: 'default',\n displayName: existing?.displayName ?? 'OpenWeatherMap',\n instanceUrl: existing?.instanceUrl ?? null,\n externalAccountName: AXP_INTEGRATION_CREDENTIAL_MASK,\n config: { apiKey },\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n isRevoked: false,\n isDisabled: false,\n });\n\n return { success: true, kind: 'object',\n data: { outcome: 'connected', connection: toSafeIntegrationConnectionDto(connection) },\n };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Failed to connect OpenWeatherMap.';\n return { success: false, message: { text: message } };\n }\n }\n\n private async openConnectDialog(input: {\n i18nPrefix: string;\n isReconfigure: boolean;\n apiKey: string;\n }): Promise<OpenWeatherMapConnectFormResult | null> {\n const result = await this.layoutBuilder\n .create()\n .dialog<OpenWeatherMapConnectFormResult | null>((dialog: IDialogBuilder<OpenWeatherMapConnectFormResult | null>) => {\n dialog\n .setTitle(\n input.isReconfigure\n ? `${input.i18nPrefix}.pat-dialog.configure-title`\n : `${input.i18nPrefix}.pat-dialog.title`,\n )\n .setSize('md')\n .setCloseButton(true)\n .setContext({ apiKey: input.apiKey })\n .content((flex: IFlexContainerBuilder) => {\n flex\n .setDirection('column')\n .setGap('12px')\n .customWidget('text-block-layout', {\n content: `${input.i18nPrefix}.pat-dialog.instructions`,\n })\n .formField(`${input.i18nPrefix}.pat-dialog.fields.api-key`, (field) => {\n field.path('apiKey');\n field.passwordBox({\n placeholder: `${input.i18nPrefix}.pat-dialog.placeholders.api-key`,\n revealToggle: true,\n validations: [{ rule: 'required' }],\n });\n });\n })\n .setActions((actions: IActionBuilder) => {\n actions\n .cancel('@general:actions.cancel.title')\n .submit(`${input.i18nPrefix}.pat-dialog.actions.save`);\n })\n .onAction(async (ref: AXPDialogRef) => {\n if (ref.action() === 'cancel') {\n return null;\n }\n const ctx = ref.context() as { apiKey?: string };\n const apiKey = trim(ctx.apiKey ?? '');\n if (!apiKey) {\n throw new Error(`${input.i18nPrefix}.pat-dialog.messages.api-key-required`);\n }\n return { apiKey };\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<OpenWeatherMapConnectFormResult>(result);\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;AAoCA;MAGa,4BAA4B,CAAA;AADzC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,+BAA+B,CAAC;AAiH7E,IAAA;AA/GC,IAAA,MAAM,OAAO,CAAC,KAAA,GAA2C,EAAE,EAAA;AACzD,QAAA,IAAI;YACF,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,UAAU,CAAC,WAAW,CAAC,UAAU;AACxE,YAAA,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,QAAQ;YACzD,MAAM,IAAI,GAAG,CAAA,CA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AA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,cADf,MAAM,EAAA,CAAA,CAAA;;2FACnB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-extension-weather-openweathermap-client-connect-openweathermap.command-V6yqCW6m.mjs","sources":["../../../../libs/extensions/weather/openweathermap/client/src/lib/features/connect/connect-openweathermap.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n AXP_INTEGRATION_AUTH_METHOD_TYPE,\n AXP_INTEGRATION_CONNECTION_STATUS,\n type AXPRuntimeCommandResult,\n type AXPIntegrationConnectionScope,\n} from '@acorex-platform/framework-shared/core';\nimport {\n AXMIntegrationConnectionManager,\n AXP_INTEGRATION_CREDENTIAL_MASK,\n hasConfiguredIntegrationCredentials,\n isMaskedIntegrationCredential,\n toSafeIntegrationConnectionDto,\n type ConnectCommandResult,\n} from '@acorex-platform/module-integration-management-client';\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n type AXPDialogRef,\n type IActionBuilder,\n type IDialogBuilder,\n type IFlexContainerBuilder,\n} from '@acorex-platform/framework-client/layout/builder';\nimport { Injectable, inject } from '@angular/core';\nimport { trim } from 'lodash-es';\nimport { RootConfig } from '@acorex-platform/extension-weather-openweathermap-client/contracts';\n\nexport interface ConnectOpenWeatherMapCommandInput {\n providerId?: string;\n connectionScope?: AXPIntegrationConnectionScope;\n}\n\ninterface OpenWeatherMapConnectFormResult {\n apiKey: string;\n}\n\n//#region ----- Connect OpenWeatherMap -----\n\n@Injectable({ providedIn: 'root' })\nexport class ConnectOpenWeatherMapCommand implements AXPCommand<ConnectOpenWeatherMapCommandInput, ConnectCommandResult> {\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly connectionManager = inject(AXMIntegrationConnectionManager);\n\n async execute(input: ConnectOpenWeatherMapCommandInput = {}): AXPCommandExecuteResultPromise<ConnectCommandResult> {\n try {\n const providerId = input.providerId ?? RootConfig.integration.providerId;\n const connectionScope = input.connectionScope ?? 'tenant';\n const I18N = `@${RootConfig.config.i18n}:integration.connect`;\n const existing = await this.connectionManager.findByUniqueKey({\n providerId,\n connectionScope,\n connectionKey: 'default',\n });\n const isReconfigure = hasConfiguredIntegrationCredentials(existing);\n\n const form = await this.openConnectDialog({\n i18nPrefix: I18N,\n isReconfigure,\n apiKey: isReconfigure ? AXP_INTEGRATION_CREDENTIAL_MASK : '',\n });\n\n if (!form) {\n return { success: true, kind: 'object', data: { outcome: 'cancelled' } };\n }\n\n let apiKey = trim(form.apiKey);\n if (isMaskedIntegrationCredential(apiKey) && existing) {\n const config = (existing.config ?? {}) as { apiKey?: string };\n apiKey = trim(config.apiKey ?? '');\n }\n if (!apiKey) {\n return {\n success: false,\n message: { text: `${I18N}.pat-dialog.messages.api-key-required` },\n };\n }\n\n const connection = await this.connectionManager.upsertConnection({\n providerId,\n authMethodType: AXP_INTEGRATION_AUTH_METHOD_TYPE.Pat,\n connectionScope,\n connectionKey: 'default',\n displayName: existing?.displayName ?? 'OpenWeatherMap',\n instanceUrl: existing?.instanceUrl ?? null,\n externalAccountName: AXP_INTEGRATION_CREDENTIAL_MASK,\n config: { apiKey },\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n isRevoked: false,\n isDisabled: false,\n });\n\n return { success: true, kind: 'object',\n data: { outcome: 'connected', connection: toSafeIntegrationConnectionDto(connection) },\n };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Failed to connect OpenWeatherMap.';\n return { success: false, message: { text: message } };\n }\n }\n\n private async openConnectDialog(input: {\n i18nPrefix: string;\n isReconfigure: boolean;\n apiKey: string;\n }): Promise<OpenWeatherMapConnectFormResult | null> {\n const result = await this.layoutBuilder\n .create()\n .dialog<OpenWeatherMapConnectFormResult | null>((dialog: IDialogBuilder<OpenWeatherMapConnectFormResult | null>) => {\n dialog\n .setTitle(\n input.isReconfigure\n ? `${input.i18nPrefix}.pat-dialog.configure-title`\n : `${input.i18nPrefix}.pat-dialog.title`,\n )\n .setSize('md')\n .setCloseButton(true)\n .setContext({ apiKey: input.apiKey })\n .content((flex: IFlexContainerBuilder) => {\n flex\n .setDirection('column')\n .setGap('12px')\n .customWidget('text-block-layout', {\n content: `${input.i18nPrefix}.pat-dialog.instructions`,\n })\n .formField(`${input.i18nPrefix}.pat-dialog.fields.api-key`, (field) => {\n field.path('apiKey');\n field.passwordBox({\n placeholder: `${input.i18nPrefix}.pat-dialog.placeholders.api-key`,\n revealToggle: true,\n validations: [{ rule: 'required' }],\n });\n });\n })\n .setActions((actions: IActionBuilder) => {\n actions\n .cancel('@general:actions.cancel.title')\n .submit(`${input.i18nPrefix}.pat-dialog.actions.save`);\n })\n .onAction(async (ref: AXPDialogRef) => {\n if (ref.action() === 'cancel') {\n return null;\n }\n const ctx = ref.context() as { apiKey?: string };\n const apiKey = trim(ctx.apiKey ?? '');\n if (!apiKey) {\n throw new Error(`${input.i18nPrefix}.pat-dialog.messages.api-key-required`);\n }\n return { apiKey };\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<OpenWeatherMapConnectFormResult>(result);\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;AAoCA;MAGa,4BAA4B,CAAA;AADzC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,+BAA+B,CAAC;AAiH7E,IAAA;AA/GC,IAAA,MAAM,OAAO,CAAC,KAAA,GAA2C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A,OAAO,EAAE,MAAM,EAAE;AACnB,YAAA,CAAC,CAAC;AACN,QAAA,CAAC;AACA,aAAA,IAAI,EAAE;AAET,QAAA,OAAO,gCAAgC,CAAkC,MAAM,CAAC;IAClF;8GAlHW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,cADf,MAAM,EAAA,CAAA,CAAA;;2FACnB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -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;;ICpBY;AAAZ,CAAA,UAAY,4BAA4B,EAAA;AACtC,IAAA,4BAAA,CAAA,mBAAA,CAAA,GAAA,oDAAwE;AAC1E,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,GAAA,EAAA,CAAA,CAAA;;ACAxC;AAOA;;ACPA;IAEY;AAAZ,CAAA,UAAY,4BAA4B,EAAA;AACtC,IAAA,4BAAA,CAAA,QAAA,CAAA,GAAA,wCAAiD;AACnD,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,GAAA,EAAA,CAAA,CAAA;AAIxC;;ACNA;;AAEG;;;;"}
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;;ICpBY;AAAZ,CAAA,UAAY,4BAA4B,EAAA;AACtC,IAAA,4BAAA,CAAA,mBAAA,CAAA,GAAA,oDAAwE;AAC1E,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,GAAA,EAAA,CAAA,CAAA;;ACAxC;AAOA;;ACPA;IAEY;AAAZ,CAAA,UAAY,4BAA4B,EAAA;AACtC,IAAA,4BAAA,CAAA,QAAA,CAAA,GAAA,wCAAiD;AACnD,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,GAAA,EAAA,CAAA,CAAA;AAIxC;;ACNA;;AAEG;;"}
@@ -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":";;;;;;;;;;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,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,8BAA8B,CAAC;AACzC,oBAAA,SAAS,EAAE;wBACT,EAAE,OAAO,EAAE,4BAA4B,EAAE,QAAQ,EAAE,+BAA+B,EAAE,KAAK,EAAE,IAAI,EAAE;wBACjG,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;;;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/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,OAAO,EAAE,iBAAiB;AAC1B,IAAA,QAAQ,EAAE,0BAA0B;AACpC,IAAA,KAAK,EAAE,IAAI;;;MCbA,oCAAoC,CAAA;IAC/C,MAAM,OAAO,CAAC,OAAsC,EAAA;QAClD,MAAM,IAAI,GAAG,CAAA,CAAA,EAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,YAAA,CAAc;QAErD,OAAO,CAAC,QAAQ,CAAC;AACf,YAAA,EAAE,EAAE,UAAU,CAAC,WAAW,CAAC,UAAU;AACrC,YAAA,QAAQ,EAAE,qBAAqB;AAC/B,YAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;YAC9B,WAAW,EAAE,CAA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AoB,CAAC;AACnB,gBAAA;oBACE,GAAG,EAAE,4BAA4B,CAAC,iBAAiB;AACnD,oBAAA,OAAO,EAAE,MACP,OAAO,uGAAmD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,CAAC;AAC1G,iBAAA;aACF,CAAC;AACH,SAAA,EAAA,OAAA,EAAA,CAbS,8BAA8B,CAAA,EAAA,CAAA,CAAA;;2FAe7B,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAhB5C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,8BAA8B,CAAC;AACzC,oBAAA,SAAS,EAAE;wBACT,EAAE,OAAO,EAAE,4BAA4B,EAAE,QAAQ,EAAE,+BAA+B,EAAE,KAAK,EAAE,IAAI,EAAE;wBACjG,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;;;AC1BD;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/extension-weather-openweathermap-client",
3
- "version": "0.0.32",
3
+ "version": "0.0.37",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",