@machinemetrics/mm-erp-sdk 0.1.1-beta.4 → 0.1.1-beta.6

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.
@@ -3144,7 +3144,18 @@ const runDataSyncService = async (connectorPath) => {
3144
3144
  logger,
3145
3145
  worker: {
3146
3146
  env: {
3147
- CONNECTOR_PATH: connectorPath
3147
+ CONNECTOR_PATH: connectorPath,
3148
+ // Pass through all required environment variables
3149
+ MM_MAPPING_SERVICE_URL: process.env.MM_MAPPING_SERVICE_URL,
3150
+ MM_MAPPING_AUTH_SERVICE_URL: process.env.MM_MAPPING_AUTH_SERVICE_URL,
3151
+ MM_MAPPING_SERVICE_TOKEN: process.env.MM_MAPPING_SERVICE_TOKEN,
3152
+ ERP_SYSTEM: process.env.ERP_SYSTEM,
3153
+ LOG_LEVEL: process.env.LOG_LEVEL,
3154
+ NODE_ENV: process.env.NODE_ENV,
3155
+ RETRY_ATTEMPTS: process.env.RETRY_ATTEMPTS,
3156
+ CACHE_TTL: process.env.CACHE_TTL,
3157
+ // Pass through all other environment variables that might be needed
3158
+ ...process.env
3148
3159
  }
3149
3160
  },
3150
3161
  jobs: [
@@ -3210,6 +3221,7 @@ const SQLServerConfigSchema = z.object({
3210
3221
  password: z.string().nonempty("Password is required."),
3211
3222
  database: z.string().nonempty("Database name is required."),
3212
3223
  server: z.string().nonempty("Server is required."),
3224
+ port: z.coerce.number().int().positive("Port must be a positive integer.").default(1433),
3213
3225
  connectionTimeout: z.coerce.number().int().positive("Connection timeout must be a positive integer.").default(3e4),
3214
3226
  requestTimeout: z.coerce.number().int().positive("Request timeout must be a positive integer.").default(6e4),
3215
3227
  pool: z.object({