@bodhiapp/app-bindings 0.0.31 → 0.0.32

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.
Files changed (3) hide show
  1. package/index.d.ts +4 -0
  2. package/index.js +2 -1
  3. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -19,6 +19,8 @@ export interface NapiAppOptions {
19
19
  appStatus?: string
20
20
  /** User ID of the tenant creator (optional) */
21
21
  createdBy?: string
22
+ /** Custom tenant name (optional, defaults to "BodhiApp") */
23
+ tenantName?: string
22
24
  }
23
25
  /** Create a new NapiAppOptions with empty configuration */
24
26
  export declare function createNapiAppOptions(): NapiAppOptions
@@ -32,6 +34,8 @@ export declare function setSystemSetting(config: NapiAppOptions, key: string, va
32
34
  export declare function setClientCredentials(config: NapiAppOptions, clientId: string, clientSecret: string): NapiAppOptions
33
35
  /** Set the user ID of the tenant creator */
34
36
  export declare function setCreatedBy(config: NapiAppOptions, userId: string): NapiAppOptions
37
+ /** Set the tenant name (defaults to "BodhiApp" if not set) */
38
+ export declare function setTenantName(config: NapiAppOptions, name: string): NapiAppOptions
35
39
  /** Set app status */
36
40
  export declare function setAppStatus(config: NapiAppOptions, status: string): NapiAppOptions
37
41
  export const BODHI_HOME: string
package/index.js CHANGED
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { createNapiAppOptions, setEnvVar, setAppSetting, setSystemSetting, setClientCredentials, setCreatedBy, setAppStatus, BODHI_HOME, BODHI_HOST, BODHI_PORT, BODHI_SCHEME, BODHI_LOG_LEVEL, BODHI_LOG_STDOUT, BODHI_LOGS, BODHI_ENV_TYPE, BODHI_APP_TYPE, BODHI_VERSION, BODHI_COMMIT_SHA, BODHI_AUTH_URL, BODHI_AUTH_REALM, BODHI_ENCRYPTION_KEY, BODHI_EXEC_LOOKUP_PATH, BODHI_EXEC_VARIANT, BODHI_KEEP_ALIVE_SECS, BODHI_PUBLIC_SCHEME, BODHI_PUBLIC_HOST, BODHI_PUBLIC_PORT, BODHI_SESSION_DB_URL, BODHI_APP_DB_URL, BODHI_DEPLOYMENT, BODHI_MULTITENANT_CLIENT_ID, BODHI_MULTITENANT_CLIENT_SECRET, HF_HOME, DEFAULT_HOST, DEFAULT_PORT, BodhiServer } = nativeBinding
313
+ const { createNapiAppOptions, setEnvVar, setAppSetting, setSystemSetting, setClientCredentials, setCreatedBy, setTenantName, setAppStatus, BODHI_HOME, BODHI_HOST, BODHI_PORT, BODHI_SCHEME, BODHI_LOG_LEVEL, BODHI_LOG_STDOUT, BODHI_LOGS, BODHI_ENV_TYPE, BODHI_APP_TYPE, BODHI_VERSION, BODHI_COMMIT_SHA, BODHI_AUTH_URL, BODHI_AUTH_REALM, BODHI_ENCRYPTION_KEY, BODHI_EXEC_LOOKUP_PATH, BODHI_EXEC_VARIANT, BODHI_KEEP_ALIVE_SECS, BODHI_PUBLIC_SCHEME, BODHI_PUBLIC_HOST, BODHI_PUBLIC_PORT, BODHI_SESSION_DB_URL, BODHI_APP_DB_URL, BODHI_DEPLOYMENT, BODHI_MULTITENANT_CLIENT_ID, BODHI_MULTITENANT_CLIENT_SECRET, HF_HOME, DEFAULT_HOST, DEFAULT_PORT, BodhiServer } = nativeBinding
314
314
 
315
315
  module.exports.createNapiAppOptions = createNapiAppOptions
316
316
  module.exports.setEnvVar = setEnvVar
@@ -318,6 +318,7 @@ module.exports.setAppSetting = setAppSetting
318
318
  module.exports.setSystemSetting = setSystemSetting
319
319
  module.exports.setClientCredentials = setClientCredentials
320
320
  module.exports.setCreatedBy = setCreatedBy
321
+ module.exports.setTenantName = setTenantName
321
322
  module.exports.setAppStatus = setAppStatus
322
323
  module.exports.BODHI_HOME = BODHI_HOME
323
324
  module.exports.BODHI_HOST = BODHI_HOST
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/app-bindings",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "NAPI-RS bindings for BodhiApp server with integrated tests",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -85,7 +85,7 @@
85
85
  "index.js"
86
86
  ],
87
87
  "optionalDependencies": {
88
- "@bodhiapp/app-bindings-darwin-arm64": "0.0.31",
89
- "@bodhiapp/app-bindings-linux-x64-gnu": "0.0.31"
88
+ "@bodhiapp/app-bindings-darwin-arm64": "0.0.32",
89
+ "@bodhiapp/app-bindings-linux-x64-gnu": "0.0.32"
90
90
  }
91
91
  }