@open-mercato/sync-akeneo 0.6.6-develop.6465.1.019f0fb26f → 0.6.6-develop.6472.1.1673e7e66b

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,4 +1,6 @@
1
+ import { createLogger } from "@open-mercato/shared/lib/logger";
1
2
  import { applyAkeneoEnvPreset } from "./lib/preset.js";
3
+ const logger = createLogger("sync_akeneo");
2
4
  const setup = {
3
5
  async seedDefaults({ em, tenantId, organizationId, container }) {
4
6
  const credentialsService = container.resolve("integrationCredentialsService");
@@ -14,7 +16,7 @@ const setup = {
14
16
  });
15
17
  } catch (error) {
16
18
  const message = error instanceof Error ? error.message : "Unknown Akeneo preset error";
17
- console.warn(`[sync_akeneo] Failed to apply env preset during tenant setup: ${message}`);
19
+ logger.warn("Failed to apply env preset during tenant setup", { err: error });
18
20
  await integrationLogService.scoped("sync_akeneo", { tenantId, organizationId }).warn(
19
21
  "Akeneo env preset could not be applied during tenant setup.",
20
22
  { errorMessage: message }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/modules/sync_akeneo/setup.ts"],
4
- "sourcesContent": ["import type { ModuleSetupConfig } from '@open-mercato/shared/modules/setup'\nimport type { CredentialsService } from '@open-mercato/core/modules/integrations/lib/credentials-service'\nimport type { IntegrationLogService } from '@open-mercato/core/modules/integrations/lib/log-service'\nimport type { IntegrationStateService } from '@open-mercato/core/modules/integrations/lib/state-service'\nimport { applyAkeneoEnvPreset } from './lib/preset'\n\nexport const setup: ModuleSetupConfig = {\n async seedDefaults({ em, tenantId, organizationId, container }) {\n const credentialsService = container.resolve('integrationCredentialsService') as CredentialsService\n const integrationStateService = container.resolve('integrationStateService') as IntegrationStateService\n const integrationLogService = container.resolve('integrationLogService') as IntegrationLogService\n\n try {\n await applyAkeneoEnvPreset({\n em,\n credentialsService,\n integrationStateService,\n integrationLogService,\n scope: { tenantId, organizationId },\n })\n } catch (error) {\n const message = error instanceof Error ? error.message : 'Unknown Akeneo preset error'\n console.warn(`[sync_akeneo] Failed to apply env preset during tenant setup: ${message}`)\n await integrationLogService.scoped('sync_akeneo', { tenantId, organizationId }).warn(\n 'Akeneo env preset could not be applied during tenant setup.',\n { errorMessage: message },\n )\n }\n },\n}\n\nexport default setup\n"],
5
- "mappings": "AAIA,SAAS,4BAA4B;AAE9B,MAAM,QAA2B;AAAA,EACtC,MAAM,aAAa,EAAE,IAAI,UAAU,gBAAgB,UAAU,GAAG;AAC9D,UAAM,qBAAqB,UAAU,QAAQ,+BAA+B;AAC5E,UAAM,0BAA0B,UAAU,QAAQ,yBAAyB;AAC3E,UAAM,wBAAwB,UAAU,QAAQ,uBAAuB;AAEvE,QAAI;AACF,YAAM,qBAAqB;AAAA,QACzB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO,EAAE,UAAU,eAAe;AAAA,MACpC,CAAC;AAAA,IACH,SAAS,OAAO;AACd,YAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU;AACzD,cAAQ,KAAK,iEAAiE,OAAO,EAAE;AACvF,YAAM,sBAAsB,OAAO,eAAe,EAAE,UAAU,eAAe,CAAC,EAAE;AAAA,QAC9E;AAAA,QACA,EAAE,cAAc,QAAQ;AAAA,MAC1B;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;",
4
+ "sourcesContent": ["import type { ModuleSetupConfig } from '@open-mercato/shared/modules/setup'\nimport { createLogger } from '@open-mercato/shared/lib/logger'\nimport type { CredentialsService } from '@open-mercato/core/modules/integrations/lib/credentials-service'\nimport type { IntegrationLogService } from '@open-mercato/core/modules/integrations/lib/log-service'\nimport type { IntegrationStateService } from '@open-mercato/core/modules/integrations/lib/state-service'\nimport { applyAkeneoEnvPreset } from './lib/preset'\n\nconst logger = createLogger('sync_akeneo')\n\nexport const setup: ModuleSetupConfig = {\n async seedDefaults({ em, tenantId, organizationId, container }) {\n const credentialsService = container.resolve('integrationCredentialsService') as CredentialsService\n const integrationStateService = container.resolve('integrationStateService') as IntegrationStateService\n const integrationLogService = container.resolve('integrationLogService') as IntegrationLogService\n\n try {\n await applyAkeneoEnvPreset({\n em,\n credentialsService,\n integrationStateService,\n integrationLogService,\n scope: { tenantId, organizationId },\n })\n } catch (error) {\n const message = error instanceof Error ? error.message : 'Unknown Akeneo preset error'\n logger.warn('Failed to apply env preset during tenant setup', { err: error })\n await integrationLogService.scoped('sync_akeneo', { tenantId, organizationId }).warn(\n 'Akeneo env preset could not be applied during tenant setup.',\n { errorMessage: message },\n )\n }\n },\n}\n\nexport default setup\n"],
5
+ "mappings": "AACA,SAAS,oBAAoB;AAI7B,SAAS,4BAA4B;AAErC,MAAM,SAAS,aAAa,aAAa;AAElC,MAAM,QAA2B;AAAA,EACtC,MAAM,aAAa,EAAE,IAAI,UAAU,gBAAgB,UAAU,GAAG;AAC9D,UAAM,qBAAqB,UAAU,QAAQ,+BAA+B;AAC5E,UAAM,0BAA0B,UAAU,QAAQ,yBAAyB;AAC3E,UAAM,wBAAwB,UAAU,QAAQ,uBAAuB;AAEvE,QAAI;AACF,YAAM,qBAAqB;AAAA,QACzB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO,EAAE,UAAU,eAAe;AAAA,MACpC,CAAC;AAAA,IACH,SAAS,OAAO;AACd,YAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU;AACzD,aAAO,KAAK,kDAAkD,EAAE,KAAK,MAAM,CAAC;AAC5E,YAAM,sBAAsB,OAAO,eAAe,EAAE,UAAU,eAAe,CAAC,EAAE;AAAA,QAC9E;AAAA,QACA,EAAE,cAAc,QAAQ;AAAA,MAC1B;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/sync-akeneo",
3
- "version": "0.6.6-develop.6465.1.019f0fb26f",
3
+ "version": "0.6.6-develop.6472.1.1673e7e66b",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -53,18 +53,18 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@open-mercato/core": "0.6.6-develop.6465.1.019f0fb26f",
57
- "@open-mercato/ui": "0.6.6-develop.6465.1.019f0fb26f",
56
+ "@open-mercato/core": "0.6.6-develop.6472.1.1673e7e66b",
57
+ "@open-mercato/ui": "0.6.6-develop.6472.1.1673e7e66b",
58
58
  "node-html-markdown": "^2.0.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@mikro-orm/postgresql": "^7.0.14",
62
- "@open-mercato/shared": "0.6.6-develop.6465.1.019f0fb26f",
62
+ "@open-mercato/shared": "0.6.6-develop.6472.1.1673e7e66b",
63
63
  "react": "^19.0.0",
64
64
  "react-dom": "^19.0.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@open-mercato/shared": "0.6.6-develop.6465.1.019f0fb26f",
67
+ "@open-mercato/shared": "0.6.6-develop.6472.1.1673e7e66b",
68
68
  "@types/jest": "^30.0.0",
69
69
  "@types/react": "^19.2.17",
70
70
  "@types/react-dom": "^19.2.3",
@@ -1,9 +1,12 @@
1
1
  import type { ModuleSetupConfig } from '@open-mercato/shared/modules/setup'
2
+ import { createLogger } from '@open-mercato/shared/lib/logger'
2
3
  import type { CredentialsService } from '@open-mercato/core/modules/integrations/lib/credentials-service'
3
4
  import type { IntegrationLogService } from '@open-mercato/core/modules/integrations/lib/log-service'
4
5
  import type { IntegrationStateService } from '@open-mercato/core/modules/integrations/lib/state-service'
5
6
  import { applyAkeneoEnvPreset } from './lib/preset'
6
7
 
8
+ const logger = createLogger('sync_akeneo')
9
+
7
10
  export const setup: ModuleSetupConfig = {
8
11
  async seedDefaults({ em, tenantId, organizationId, container }) {
9
12
  const credentialsService = container.resolve('integrationCredentialsService') as CredentialsService
@@ -20,7 +23,7 @@ export const setup: ModuleSetupConfig = {
20
23
  })
21
24
  } catch (error) {
22
25
  const message = error instanceof Error ? error.message : 'Unknown Akeneo preset error'
23
- console.warn(`[sync_akeneo] Failed to apply env preset during tenant setup: ${message}`)
26
+ logger.warn('Failed to apply env preset during tenant setup', { err: error })
24
27
  await integrationLogService.scoped('sync_akeneo', { tenantId, organizationId }).warn(
25
28
  'Akeneo env preset could not be applied during tenant setup.',
26
29
  { errorMessage: message },