@katerai/sdk 0.10.0 → 0.11.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/CHANGELOG.md +40 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -12
- package/client.js.map +1 -1
- package/client.mjs +9 -12
- package/client.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/v1/compiler/cache.d.mts +0 -35
- package/resources/v1/compiler/cache.d.mts.map +1 -1
- package/resources/v1/compiler/cache.d.ts +0 -35
- package/resources/v1/compiler/cache.d.ts.map +1 -1
- package/resources/v1/compiler/cache.js +0 -9
- package/resources/v1/compiler/cache.js.map +1 -1
- package/resources/v1/compiler/cache.mjs +0 -9
- package/resources/v1/compiler/cache.mjs.map +1 -1
- package/resources/v1/compiler/combination.d.mts +123 -0
- package/resources/v1/compiler/combination.d.mts.map +1 -0
- package/resources/v1/compiler/combination.d.ts +123 -0
- package/resources/v1/compiler/combination.d.ts.map +1 -0
- package/resources/v1/compiler/combination.js +33 -0
- package/resources/v1/compiler/combination.js.map +1 -0
- package/resources/v1/compiler/combination.mjs +29 -0
- package/resources/v1/compiler/combination.mjs.map +1 -0
- package/resources/v1/compiler/compiler.d.mts +485 -84
- package/resources/v1/compiler/compiler.d.mts.map +1 -1
- package/resources/v1/compiler/compiler.d.ts +485 -84
- package/resources/v1/compiler/compiler.d.ts.map +1 -1
- package/resources/v1/compiler/compiler.js +29 -0
- package/resources/v1/compiler/compiler.js.map +1 -1
- package/resources/v1/compiler/compiler.mjs +29 -0
- package/resources/v1/compiler/compiler.mjs.map +1 -1
- package/resources/v1/compiler/index.d.mts +4 -2
- package/resources/v1/compiler/index.d.mts.map +1 -1
- package/resources/v1/compiler/index.d.ts +4 -2
- package/resources/v1/compiler/index.d.ts.map +1 -1
- package/resources/v1/compiler/index.js +3 -1
- package/resources/v1/compiler/index.js.map +1 -1
- package/resources/v1/compiler/index.mjs +1 -0
- package/resources/v1/compiler/index.mjs.map +1 -1
- package/resources/v1/compiler/manifest.d.mts +55 -0
- package/resources/v1/compiler/manifest.d.mts.map +1 -0
- package/resources/v1/compiler/manifest.d.ts +55 -0
- package/resources/v1/compiler/manifest.d.ts.map +1 -0
- package/resources/v1/compiler/manifest.js +32 -0
- package/resources/v1/compiler/manifest.js.map +1 -0
- package/resources/v1/compiler/manifest.mjs +28 -0
- package/resources/v1/compiler/manifest.mjs.map +1 -0
- package/resources/v1/connections.d.mts +3 -0
- package/resources/v1/connections.d.mts.map +1 -1
- package/resources/v1/connections.d.ts +3 -0
- package/resources/v1/connections.d.ts.map +1 -1
- package/resources/v1/connections.js +3 -0
- package/resources/v1/connections.js.map +1 -1
- package/resources/v1/connections.mjs +3 -0
- package/resources/v1/connections.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/tenants/groups.d.mts +3 -0
- package/resources/v1/tenants/groups.d.mts.map +1 -1
- package/resources/v1/tenants/groups.d.ts +3 -0
- package/resources/v1/tenants/groups.d.ts.map +1 -1
- package/resources/v1/tenants/groups.js +3 -0
- package/resources/v1/tenants/groups.js.map +1 -1
- package/resources/v1/tenants/groups.mjs +3 -0
- package/resources/v1/tenants/groups.mjs.map +1 -1
- package/resources/v1/tenants/tenants.d.mts +69 -10
- package/resources/v1/tenants/tenants.d.mts.map +1 -1
- package/resources/v1/tenants/tenants.d.ts +69 -10
- package/resources/v1/tenants/tenants.d.ts.map +1 -1
- package/resources/v1/tenants/tenants.js +30 -4
- package/resources/v1/tenants/tenants.js.map +1 -1
- package/resources/v1/tenants/tenants.mjs +30 -4
- package/resources/v1/tenants/tenants.mjs.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +12 -16
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/v1/compiler/cache.ts +1 -47
- package/src/resources/v1/compiler/combination.ts +160 -0
- package/src/resources/v1/compiler/compiler.ts +636 -190
- package/src/resources/v1/compiler/index.ts +8 -1
- package/src/resources/v1/compiler/manifest.ts +83 -0
- package/src/resources/v1/connections.ts +3 -0
- package/src/resources/v1/index.ts +2 -0
- package/src/resources/v1/tenants/groups.ts +3 -0
- package/src/resources/v1/tenants/tenants.ts +102 -12
- package/src/resources/v1/v1.ts +4 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;OAaG;IACH,eAAe,CACb,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;OAaG;IACH,eAAe,CACb,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerEnumerateResponse, type CompilerExecuteResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerEnumerateParams, type CompilerExecuteParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler/index.mjs";
|
|
1
|
+
export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerCompileDashboardResponse, type CompilerEnumerateResponse, type CompilerExecuteResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerCompileDashboardParams, type CompilerEnumerateParams, type CompilerExecuteParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler/index.mjs";
|
|
2
2
|
export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.mjs";
|
|
3
3
|
export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.mjs";
|
|
4
4
|
export { V1 } from "./v1.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerEnumerateResponse, type CompilerExecuteResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerEnumerateParams, type CompilerExecuteParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler/index.js";
|
|
1
|
+
export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerCompileDashboardResponse, type CompilerEnumerateResponse, type CompilerExecuteResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerCompileDashboardParams, type CompilerEnumerateParams, type CompilerExecuteParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler/index.js";
|
|
2
2
|
export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.js";
|
|
3
3
|
export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.js";
|
|
4
4
|
export { V1 } from "./v1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAqB0B;AApBxB,iGAAA,QAAQ,OAAA;AAqBV,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,4CAMyB;AALvB,gGAAA,OAAO,OAAA;AAMT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAoBT;OACM,EACL,WAAW,GAIZ;OACM,EACL,OAAO,GAKR;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Manage tenants (your end customers)
|
|
6
|
+
*/
|
|
4
7
|
export declare class Groups extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get all tenant groups as a TenantGroupSchema object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
|
|
1
|
+
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Manage tenants (your end customers)
|
|
6
|
+
*/
|
|
4
7
|
export declare class Groups extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get all tenant groups as a TenantGroupSchema object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Groups = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Manage tenants (your end customers)
|
|
8
|
+
*/
|
|
6
9
|
class Groups extends resource_1.APIResource {
|
|
7
10
|
/**
|
|
8
11
|
* Get all tenant groups as a TenantGroupSchema object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAZD,wBAYC"}
|
|
1
|
+
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAZD,wBAYC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Manage tenants (your end customers)
|
|
5
|
+
*/
|
|
3
6
|
export class Groups extends APIResource {
|
|
4
7
|
/**
|
|
5
8
|
* Get all tenant groups as a TenantGroupSchema object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -4,6 +4,9 @@ import { GroupGetTenantGroupsSchemaResponse, Groups } from "./groups.mjs";
|
|
|
4
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
5
|
import { type Uploadable } from "../../../core/uploads.mjs";
|
|
6
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Manage tenants (your end customers)
|
|
9
|
+
*/
|
|
7
10
|
export declare class Tenants extends APIResource {
|
|
8
11
|
groups: GroupsAPI.Groups;
|
|
9
12
|
/**
|
|
@@ -24,16 +27,20 @@ export declare class Tenants extends APIResource {
|
|
|
24
27
|
* - tenant_key (required): Unique tenant identifier
|
|
25
28
|
* - tenant_name (optional): Human-readable name
|
|
26
29
|
* - group_names (optional): Comma-separated list of group names
|
|
30
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
27
31
|
*
|
|
28
32
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
29
33
|
* added additively (not replaced) and auto-created if needed.
|
|
30
34
|
*
|
|
35
|
+
* Optionally processes attribute columns: values are validated against
|
|
36
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
37
|
+
*
|
|
31
38
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
32
39
|
*
|
|
33
40
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
34
41
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
35
42
|
*/
|
|
36
|
-
importFromCsv(
|
|
43
|
+
importFromCsv(params: TenantImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
37
44
|
/**
|
|
38
45
|
* Import tenants from a warehouse table using upsert semantics.
|
|
39
46
|
*
|
|
@@ -51,7 +58,7 @@ export declare class Tenants extends APIResource {
|
|
|
51
58
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
52
59
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
53
60
|
*/
|
|
54
|
-
importFromWarehouse(
|
|
61
|
+
importFromWarehouse(params: TenantImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
55
62
|
}
|
|
56
63
|
/**
|
|
57
64
|
* Response model for tenant import operation.
|
|
@@ -69,6 +76,10 @@ export interface ImportTenantsResponse {
|
|
|
69
76
|
* Existing tenants updated
|
|
70
77
|
*/
|
|
71
78
|
total_updated: number;
|
|
79
|
+
/**
|
|
80
|
+
* Non-fatal attribute validation errors during import
|
|
81
|
+
*/
|
|
82
|
+
attribute_errors?: Array<ImportTenantsResponse.AttributeError>;
|
|
72
83
|
/**
|
|
73
84
|
* Tenant-specific errors
|
|
74
85
|
*/
|
|
@@ -79,6 +90,27 @@ export interface ImportTenantsResponse {
|
|
|
79
90
|
groups_created?: Array<string>;
|
|
80
91
|
}
|
|
81
92
|
export declare namespace ImportTenantsResponse {
|
|
93
|
+
/**
|
|
94
|
+
* Error for a single attribute during import.
|
|
95
|
+
*/
|
|
96
|
+
interface AttributeError {
|
|
97
|
+
/**
|
|
98
|
+
* Attribute name that failed
|
|
99
|
+
*/
|
|
100
|
+
attribute: string;
|
|
101
|
+
/**
|
|
102
|
+
* Error message
|
|
103
|
+
*/
|
|
104
|
+
error: string;
|
|
105
|
+
/**
|
|
106
|
+
* Tenant key for which attribute processing failed
|
|
107
|
+
*/
|
|
108
|
+
tenant_key: string;
|
|
109
|
+
/**
|
|
110
|
+
* Value that caused the error
|
|
111
|
+
*/
|
|
112
|
+
value: string;
|
|
113
|
+
}
|
|
82
114
|
/**
|
|
83
115
|
* Error for a single tenant during import.
|
|
84
116
|
*/
|
|
@@ -128,39 +160,66 @@ export declare namespace TenantGetTenantsSchemaResponse {
|
|
|
128
160
|
}
|
|
129
161
|
export interface TenantImportFromCsvParams {
|
|
130
162
|
/**
|
|
131
|
-
* CSV file with tenant data
|
|
163
|
+
* Body param: CSV file with tenant data
|
|
132
164
|
*/
|
|
133
165
|
file: Uploadable;
|
|
166
|
+
/**
|
|
167
|
+
* Query param
|
|
168
|
+
*/
|
|
169
|
+
source?: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* Body param: JSON mapping: attribute_name -> csv_column_name
|
|
172
|
+
*/
|
|
173
|
+
attribute_columns?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Header param
|
|
176
|
+
*/
|
|
177
|
+
'X-Kater-CLI-ID'?: string;
|
|
134
178
|
}
|
|
135
179
|
export interface TenantImportFromWarehouseParams {
|
|
136
180
|
/**
|
|
137
|
-
* Warehouse connection ID to query
|
|
181
|
+
* Body param: Warehouse connection ID to query
|
|
138
182
|
*/
|
|
139
183
|
connection_id: string;
|
|
140
184
|
/**
|
|
141
|
-
* Database name containing the tenant table
|
|
185
|
+
* Body param: Database name containing the tenant table
|
|
142
186
|
*/
|
|
143
187
|
database: string;
|
|
144
188
|
/**
|
|
145
|
-
* Schema name containing the tenant table
|
|
189
|
+
* Body param: Schema name containing the tenant table
|
|
146
190
|
*/
|
|
147
191
|
schema: string;
|
|
148
192
|
/**
|
|
149
|
-
* Table name containing tenant data
|
|
193
|
+
* Body param: Table name containing tenant data
|
|
150
194
|
*/
|
|
151
195
|
table: string;
|
|
152
196
|
/**
|
|
153
|
-
* Column name for tenant key
|
|
197
|
+
* Body param: Column name for tenant key
|
|
154
198
|
*/
|
|
155
199
|
tenant_key_column: string;
|
|
156
200
|
/**
|
|
157
|
-
*
|
|
201
|
+
* Query param
|
|
202
|
+
*/
|
|
203
|
+
source?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Body param: Mapping of attribute names to warehouse column names for attribute
|
|
206
|
+
* import
|
|
207
|
+
*/
|
|
208
|
+
attribute_columns?: {
|
|
209
|
+
[key: string]: string;
|
|
210
|
+
} | null;
|
|
211
|
+
/**
|
|
212
|
+
* Body param: Column name for tenant group (optional)
|
|
158
213
|
*/
|
|
159
214
|
tenant_group_column?: string | null;
|
|
160
215
|
/**
|
|
161
|
-
* Column name for tenant display name (optional)
|
|
216
|
+
* Body param: Column name for tenant display name (optional)
|
|
162
217
|
*/
|
|
163
218
|
tenant_name_column?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Header param
|
|
221
|
+
*/
|
|
222
|
+
'X-Kater-CLI-ID'?: string;
|
|
164
223
|
}
|
|
165
224
|
export declare namespace Tenants {
|
|
166
225
|
export { type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;OAQG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAItF;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,aAAa,CACX,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAmBpC;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,CACjB,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAYrC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;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MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC5G"}
|
|
@@ -4,6 +4,9 @@ import { GroupGetTenantGroupsSchemaResponse, Groups } from "./groups.js";
|
|
|
4
4
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
5
|
import { type Uploadable } from "../../../core/uploads.js";
|
|
6
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
|
+
/**
|
|
8
|
+
* Manage tenants (your end customers)
|
|
9
|
+
*/
|
|
7
10
|
export declare class Tenants extends APIResource {
|
|
8
11
|
groups: GroupsAPI.Groups;
|
|
9
12
|
/**
|
|
@@ -24,16 +27,20 @@ export declare class Tenants extends APIResource {
|
|
|
24
27
|
* - tenant_key (required): Unique tenant identifier
|
|
25
28
|
* - tenant_name (optional): Human-readable name
|
|
26
29
|
* - group_names (optional): Comma-separated list of group names
|
|
30
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
27
31
|
*
|
|
28
32
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
29
33
|
* added additively (not replaced) and auto-created if needed.
|
|
30
34
|
*
|
|
35
|
+
* Optionally processes attribute columns: values are validated against
|
|
36
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
37
|
+
*
|
|
31
38
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
32
39
|
*
|
|
33
40
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
34
41
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
35
42
|
*/
|
|
36
|
-
importFromCsv(
|
|
43
|
+
importFromCsv(params: TenantImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
37
44
|
/**
|
|
38
45
|
* Import tenants from a warehouse table using upsert semantics.
|
|
39
46
|
*
|
|
@@ -51,7 +58,7 @@ export declare class Tenants extends APIResource {
|
|
|
51
58
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
52
59
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
53
60
|
*/
|
|
54
|
-
importFromWarehouse(
|
|
61
|
+
importFromWarehouse(params: TenantImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
55
62
|
}
|
|
56
63
|
/**
|
|
57
64
|
* Response model for tenant import operation.
|
|
@@ -69,6 +76,10 @@ export interface ImportTenantsResponse {
|
|
|
69
76
|
* Existing tenants updated
|
|
70
77
|
*/
|
|
71
78
|
total_updated: number;
|
|
79
|
+
/**
|
|
80
|
+
* Non-fatal attribute validation errors during import
|
|
81
|
+
*/
|
|
82
|
+
attribute_errors?: Array<ImportTenantsResponse.AttributeError>;
|
|
72
83
|
/**
|
|
73
84
|
* Tenant-specific errors
|
|
74
85
|
*/
|
|
@@ -79,6 +90,27 @@ export interface ImportTenantsResponse {
|
|
|
79
90
|
groups_created?: Array<string>;
|
|
80
91
|
}
|
|
81
92
|
export declare namespace ImportTenantsResponse {
|
|
93
|
+
/**
|
|
94
|
+
* Error for a single attribute during import.
|
|
95
|
+
*/
|
|
96
|
+
interface AttributeError {
|
|
97
|
+
/**
|
|
98
|
+
* Attribute name that failed
|
|
99
|
+
*/
|
|
100
|
+
attribute: string;
|
|
101
|
+
/**
|
|
102
|
+
* Error message
|
|
103
|
+
*/
|
|
104
|
+
error: string;
|
|
105
|
+
/**
|
|
106
|
+
* Tenant key for which attribute processing failed
|
|
107
|
+
*/
|
|
108
|
+
tenant_key: string;
|
|
109
|
+
/**
|
|
110
|
+
* Value that caused the error
|
|
111
|
+
*/
|
|
112
|
+
value: string;
|
|
113
|
+
}
|
|
82
114
|
/**
|
|
83
115
|
* Error for a single tenant during import.
|
|
84
116
|
*/
|
|
@@ -128,39 +160,66 @@ export declare namespace TenantGetTenantsSchemaResponse {
|
|
|
128
160
|
}
|
|
129
161
|
export interface TenantImportFromCsvParams {
|
|
130
162
|
/**
|
|
131
|
-
* CSV file with tenant data
|
|
163
|
+
* Body param: CSV file with tenant data
|
|
132
164
|
*/
|
|
133
165
|
file: Uploadable;
|
|
166
|
+
/**
|
|
167
|
+
* Query param
|
|
168
|
+
*/
|
|
169
|
+
source?: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* Body param: JSON mapping: attribute_name -> csv_column_name
|
|
172
|
+
*/
|
|
173
|
+
attribute_columns?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Header param
|
|
176
|
+
*/
|
|
177
|
+
'X-Kater-CLI-ID'?: string;
|
|
134
178
|
}
|
|
135
179
|
export interface TenantImportFromWarehouseParams {
|
|
136
180
|
/**
|
|
137
|
-
* Warehouse connection ID to query
|
|
181
|
+
* Body param: Warehouse connection ID to query
|
|
138
182
|
*/
|
|
139
183
|
connection_id: string;
|
|
140
184
|
/**
|
|
141
|
-
* Database name containing the tenant table
|
|
185
|
+
* Body param: Database name containing the tenant table
|
|
142
186
|
*/
|
|
143
187
|
database: string;
|
|
144
188
|
/**
|
|
145
|
-
* Schema name containing the tenant table
|
|
189
|
+
* Body param: Schema name containing the tenant table
|
|
146
190
|
*/
|
|
147
191
|
schema: string;
|
|
148
192
|
/**
|
|
149
|
-
* Table name containing tenant data
|
|
193
|
+
* Body param: Table name containing tenant data
|
|
150
194
|
*/
|
|
151
195
|
table: string;
|
|
152
196
|
/**
|
|
153
|
-
* Column name for tenant key
|
|
197
|
+
* Body param: Column name for tenant key
|
|
154
198
|
*/
|
|
155
199
|
tenant_key_column: string;
|
|
156
200
|
/**
|
|
157
|
-
*
|
|
201
|
+
* Query param
|
|
202
|
+
*/
|
|
203
|
+
source?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Body param: Mapping of attribute names to warehouse column names for attribute
|
|
206
|
+
* import
|
|
207
|
+
*/
|
|
208
|
+
attribute_columns?: {
|
|
209
|
+
[key: string]: string;
|
|
210
|
+
} | null;
|
|
211
|
+
/**
|
|
212
|
+
* Body param: Column name for tenant group (optional)
|
|
158
213
|
*/
|
|
159
214
|
tenant_group_column?: string | null;
|
|
160
215
|
/**
|
|
161
|
-
* Column name for tenant display name (optional)
|
|
216
|
+
* Body param: Column name for tenant display name (optional)
|
|
162
217
|
*/
|
|
163
218
|
tenant_name_column?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Header param
|
|
221
|
+
*/
|
|
222
|
+
'X-Kater-CLI-ID'?: string;
|
|
164
223
|
}
|
|
165
224
|
export declare namespace Tenants {
|
|
166
225
|
export { type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;OAQG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAItF;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,aAAa,CACX,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAmBpC;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,CACjB,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAYrC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAE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iB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC5G"}
|
|
@@ -6,7 +6,11 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const GroupsAPI = tslib_1.__importStar(require("./groups.js"));
|
|
8
8
|
const groups_1 = require("./groups.js");
|
|
9
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
9
10
|
const uploads_1 = require("../../../internal/uploads.js");
|
|
11
|
+
/**
|
|
12
|
+
* Manage tenants (your end customers)
|
|
13
|
+
*/
|
|
10
14
|
class Tenants extends resource_1.APIResource {
|
|
11
15
|
constructor() {
|
|
12
16
|
super(...arguments);
|
|
@@ -32,17 +36,30 @@ class Tenants extends resource_1.APIResource {
|
|
|
32
36
|
* - tenant_key (required): Unique tenant identifier
|
|
33
37
|
* - tenant_name (optional): Human-readable name
|
|
34
38
|
* - group_names (optional): Comma-separated list of group names
|
|
39
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
35
40
|
*
|
|
36
41
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
37
42
|
* added additively (not replaced) and auto-created if needed.
|
|
38
43
|
*
|
|
44
|
+
* Optionally processes attribute columns: values are validated against
|
|
45
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
46
|
+
*
|
|
39
47
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
40
48
|
*
|
|
41
49
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
42
50
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
43
51
|
*/
|
|
44
|
-
importFromCsv(
|
|
45
|
-
|
|
52
|
+
importFromCsv(params, options) {
|
|
53
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
54
|
+
return this._client.post('/api/v1/tenants/import/csv', (0, uploads_1.multipartFormRequestOptions)({
|
|
55
|
+
query: { source },
|
|
56
|
+
body,
|
|
57
|
+
...options,
|
|
58
|
+
headers: (0, headers_1.buildHeaders)([
|
|
59
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
60
|
+
options?.headers,
|
|
61
|
+
]),
|
|
62
|
+
}, this._client));
|
|
46
63
|
}
|
|
47
64
|
/**
|
|
48
65
|
* Import tenants from a warehouse table using upsert semantics.
|
|
@@ -61,8 +78,17 @@ class Tenants extends resource_1.APIResource {
|
|
|
61
78
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
62
79
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
63
80
|
*/
|
|
64
|
-
importFromWarehouse(
|
|
65
|
-
|
|
81
|
+
importFromWarehouse(params, options) {
|
|
82
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
83
|
+
return this._client.post('/api/v1/tenants/import/warehouse', {
|
|
84
|
+
query: { source },
|
|
85
|
+
body,
|
|
86
|
+
...options,
|
|
87
|
+
headers: (0, headers_1.buildHeaders)([
|
|
88
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
89
|
+
options?.headers,
|
|
90
|
+
]),
|
|
91
|
+
});
|
|
66
92
|
}
|
|
67
93
|
}
|
|
68
94
|
exports.Tenants = Tenants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAAsE;
|
|
1
|
+
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAAsE;AAGtE,0DAAyD;AAEzD,0DAAwE;AAExE;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0FhE,CAAC;IAxFC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,aAAa,CACX,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,4BAA4B,EAC5B,IAAA,qCAA2B,EACzB;YACE,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,CACjB,MAAuC,EACvC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA3FD,0BA2FC;AAiMD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as GroupsAPI from "./groups.mjs";
|
|
4
4
|
import { Groups } from "./groups.mjs";
|
|
5
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
5
6
|
import { multipartFormRequestOptions } from "../../../internal/uploads.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Manage tenants (your end customers)
|
|
9
|
+
*/
|
|
6
10
|
export class Tenants extends APIResource {
|
|
7
11
|
constructor() {
|
|
8
12
|
super(...arguments);
|
|
@@ -28,17 +32,30 @@ export class Tenants extends APIResource {
|
|
|
28
32
|
* - tenant_key (required): Unique tenant identifier
|
|
29
33
|
* - tenant_name (optional): Human-readable name
|
|
30
34
|
* - group_names (optional): Comma-separated list of group names
|
|
35
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
31
36
|
*
|
|
32
37
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
33
38
|
* added additively (not replaced) and auto-created if needed.
|
|
34
39
|
*
|
|
40
|
+
* Optionally processes attribute columns: values are validated against
|
|
41
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
42
|
+
*
|
|
35
43
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
36
44
|
*
|
|
37
45
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
38
46
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
39
47
|
*/
|
|
40
|
-
importFromCsv(
|
|
41
|
-
|
|
48
|
+
importFromCsv(params, options) {
|
|
49
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
50
|
+
return this._client.post('/api/v1/tenants/import/csv', multipartFormRequestOptions({
|
|
51
|
+
query: { source },
|
|
52
|
+
body,
|
|
53
|
+
...options,
|
|
54
|
+
headers: buildHeaders([
|
|
55
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
56
|
+
options?.headers,
|
|
57
|
+
]),
|
|
58
|
+
}, this._client));
|
|
42
59
|
}
|
|
43
60
|
/**
|
|
44
61
|
* Import tenants from a warehouse table using upsert semantics.
|
|
@@ -57,8 +74,17 @@ export class Tenants extends APIResource {
|
|
|
57
74
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
58
75
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
59
76
|
*/
|
|
60
|
-
importFromWarehouse(
|
|
61
|
-
|
|
77
|
+
importFromWarehouse(params, options) {
|
|
78
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
79
|
+
return this._client.post('/api/v1/tenants/import/warehouse', {
|
|
80
|
+
query: { source },
|
|
81
|
+
body,
|
|
82
|
+
...options,
|
|
83
|
+
headers: buildHeaders([
|
|
84
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
85
|
+
options?.headers,
|
|
86
|
+
]),
|
|
87
|
+
});
|
|
62
88
|
}
|
|
63
89
|
}
|
|
64
90
|
Tenants.Groups = Groups;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAsC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"tenants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAsC,MAAM,EAAE;OAG9C,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;AAEtC;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0FhE,CAAC;IAxFC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EA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mjs";
|
|
|
2
2
|
import * as ConnectionsAPI from "./connections.mjs";
|
|
3
3
|
import { Connection, ConnectionListConnectionsParams, ConnectionListConnectionsResponse, Connections } from "./connections.mjs";
|
|
4
4
|
import * as CompilerAPI from "./compiler/compiler.mjs";
|
|
5
|
-
import { ChartConfig, Compiler, CompilerCompileParams, CompilerCompileResponse, CompilerEnumerateParams, CompilerEnumerateResponse, CompilerErrorItem, CompilerExecuteParams, CompilerExecuteResponse, CompilerResolveParams, CompilerResolveResponse, CompilerValidateParams, CompilerValidateResponse, InlineField, Manifest, ManifestEntry, RefWithLabel, SubqueryCondition } from "./compiler/compiler.mjs";
|
|
5
|
+
import { ChartConfig, Compiler, CompilerCompileDashboardParams, CompilerCompileDashboardResponse, CompilerCompileParams, CompilerCompileResponse, CompilerEnumerateParams, CompilerEnumerateResponse, CompilerErrorItem, CompilerExecuteParams, CompilerExecuteResponse, CompilerResolveParams, CompilerResolveResponse, CompilerValidateParams, CompilerValidateResponse, InlineField, Manifest, ManifestEntry, RefWithLabel, SubqueryCondition } from "./compiler/compiler.mjs";
|
|
6
6
|
import * as TenantsAPI from "./tenants/tenants.mjs";
|
|
7
7
|
import { ImportTenantsResponse, TenantGetTenantsSchemaResponse, TenantImportFromCsvParams, TenantImportFromWarehouseParams, Tenants } from "./tenants/tenants.mjs";
|
|
8
8
|
export declare class V1 extends APIResource {
|
|
@@ -11,7 +11,7 @@ export declare class V1 extends APIResource {
|
|
|
11
11
|
tenants: TenantsAPI.Tenants;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace V1 {
|
|
14
|
-
export { Compiler as Compiler, type ChartConfig as ChartConfig, type CompilerErrorItem as CompilerErrorItem, type InlineField as InlineField, type Manifest as Manifest, type ManifestEntry as ManifestEntry, type RefWithLabel as RefWithLabel, type SubqueryCondition as SubqueryCondition, type CompilerCompileResponse as CompilerCompileResponse, type CompilerEnumerateResponse as CompilerEnumerateResponse, type CompilerExecuteResponse as CompilerExecuteResponse, type CompilerResolveResponse as CompilerResolveResponse, type CompilerValidateResponse as CompilerValidateResponse, type CompilerCompileParams as CompilerCompileParams, type CompilerEnumerateParams as CompilerEnumerateParams, type CompilerExecuteParams as CompilerExecuteParams, type CompilerResolveParams as CompilerResolveParams, type CompilerValidateParams as CompilerValidateParams, };
|
|
14
|
+
export { Compiler as Compiler, type ChartConfig as ChartConfig, type CompilerErrorItem as CompilerErrorItem, type InlineField as InlineField, type Manifest as Manifest, type ManifestEntry as ManifestEntry, type RefWithLabel as RefWithLabel, type SubqueryCondition as SubqueryCondition, type CompilerCompileResponse as CompilerCompileResponse, type CompilerCompileDashboardResponse as CompilerCompileDashboardResponse, type CompilerEnumerateResponse as CompilerEnumerateResponse, type CompilerExecuteResponse as CompilerExecuteResponse, type CompilerResolveResponse as CompilerResolveResponse, type CompilerValidateResponse as CompilerValidateResponse, type CompilerCompileParams as CompilerCompileParams, type CompilerCompileDashboardParams as CompilerCompileDashboardParams, type CompilerEnumerateParams as CompilerEnumerateParams, type CompilerExecuteParams as CompilerExecuteParams, type CompilerResolveParams as CompilerResolveParams, type CompilerValidateParams as CompilerValidateParams, };
|
|
15
15
|
export { Connections as Connections, type Connection as Connection, type ConnectionListConnectionsResponse as ConnectionListConnectionsResponse, type ConnectionListConnectionsParams as ConnectionListConnectionsParams, };
|
|
16
16
|
export { Tenants as Tenants, type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,UAAU,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,WAAW,EACZ;OACM,KAAK,WAAW;OAChB,EACL,WAAW,EACX,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