@budibase/frontend-core 2.4.42-alpha.0 → 2.4.42-alpha.1

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.
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.4.42-alpha.0",
3
+ "version": "2.4.42-alpha.1",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
7
7
  "svelte": "src/index.js",
8
8
  "dependencies": {
9
- "@budibase/bbui": "2.4.42-alpha.0",
10
- "@budibase/shared-core": "2.4.42-alpha.0",
9
+ "@budibase/bbui": "2.4.42-alpha.1",
10
+ "@budibase/shared-core": "2.4.42-alpha.1",
11
11
  "lodash": "^4.17.21",
12
12
  "svelte": "^3.46.2"
13
13
  },
14
- "gitHead": "b31f1ba51b6d82958938a9acc7f8bf1ccef104ac"
14
+ "gitHead": "7991f321a1339c06893c340f960b510321bf2554"
15
15
  }
package/src/api/index.js CHANGED
@@ -29,6 +29,7 @@ import { buildBackupsEndpoints } from "./backups"
29
29
  import { buildEnvironmentVariableEndpoints } from "./environmentVariables"
30
30
  import { buildEventEndpoints } from "./events"
31
31
  import { buildAuditLogsEndpoints } from "./auditLogs"
32
+ import { buildTenantEndpoints } from "./tenants"
32
33
 
33
34
  const defaultAPIClientConfig = {
34
35
  /**
@@ -253,5 +254,6 @@ export const createAPIClient = config => {
253
254
  ...buildEnvironmentVariableEndpoints(API),
254
255
  ...buildEventEndpoints(API),
255
256
  ...buildAuditLogsEndpoints(API),
257
+ ...buildTenantEndpoints(API),
256
258
  }
257
259
  }
@@ -0,0 +1,8 @@
1
+ export const buildTenantEndpoints = API => ({
2
+ /**
3
+ * Get information about a tenant
4
+ */
5
+ getTenantInfo: async tenantId => {
6
+ return await API.get({ url: `/api/system/tenants/${tenantId}/info` })
7
+ },
8
+ })