Skip to content

Commit

Permalink
feat: establishing a stable version of schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tiago-freire committed Aug 20, 2024
1 parent a0d1275 commit f772cef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions node/clients/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import PrivateClient from './PrivateClient'
import SourceCatalog from './SourceCatalog'
import TargetCatalog from './TargetCatalog'

const STABLE_SCHEMA_VERSION = '0.0.11'
const { VTEX_APP_VENDOR, VTEX_APP_NAME } = process.env
const STABLE_SCHEMA_APP_ID = `${VTEX_APP_VENDOR}.${VTEX_APP_NAME}@${STABLE_SCHEMA_VERSION}`

export class Clients extends IOClients {
public get httpClient() {
return this.getOrSet('httpClient', HttpClient)
Expand All @@ -36,14 +40,14 @@ export class Clients extends IOClients {
public get importExecution() {
return this.getOrSet(
'importExecution',
masterDataFor<ImportExecution>('importExecution')
masterDataFor<ImportExecution>('importExecution', STABLE_SCHEMA_APP_ID)
)
}

public get importEntity() {
return this.getOrSet(
'importEntity',
masterDataFor<ImportEntity>('importEntity')
masterDataFor<ImportEntity>('importEntity', STABLE_SCHEMA_APP_ID)
)
}
}
Expand Down

0 comments on commit f772cef

Please sign in to comment.