@flowcore/sdk 1.54.0 → 1.55.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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.55.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.55.0...v1.55.1) (2025-07-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * revert to tenant list graphql ([3245bb9](https://github.com/flowcore-io/flowcore-sdk/commit/3245bb93d198801ad16f09e2fc9115513534777b))
9
+
10
+ ## [1.55.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.54.0...v1.55.0) (2025-07-17)
11
+
12
+
13
+ ### Features
14
+
15
+ * use new rest api for tenant list ([cfbc108](https://github.com/flowcore-io/flowcore-sdk/commit/cfbc108223b8b0ed0203e7fa8b8006556e154423))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * change tenant list response ([2b612db](https://github.com/flowcore-io/flowcore-sdk/commit/2b612dbdb1c23793901af01db4b56a8a8acea097))
21
+
3
22
  ## [1.54.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.53.0...v1.54.0) (2025-07-09)
4
23
 
5
24
 
@@ -1,4 +1,4 @@
1
- import { type Static, type TBoolean, type TLiteral, type TNull, type TObject, type TOptional, type TString, type TUnion } from "@sinclair/typebox";
1
+ import { type Static, type TArray, type TBoolean, type TLiteral, type TNull, type TObject, type TOptional, type TString, type TUnion } from "@sinclair/typebox";
2
2
  interface TenantById {
3
3
  tenantId: string;
4
4
  tenant?: never;
@@ -39,5 +39,21 @@ export declare const TenantSchema: TObject<{
39
39
  * The type for a tenant
40
40
  */
41
41
  export type Tenant = Static<typeof TenantSchema>;
42
+ /**
43
+ * The schema for a tenant list item
44
+ */
45
+ export declare const TenantListItemSchema: TObject<{
46
+ id: TString;
47
+ name: TString;
48
+ displayName: TString;
49
+ description: TString;
50
+ websiteUrl: TString;
51
+ isDedicated: TBoolean;
52
+ permissions: TArray<TString>;
53
+ }>;
54
+ /**
55
+ * The type for a tenant list item
56
+ */
57
+ export type TenantListItem = Static<typeof TenantListItemSchema>;
42
58
  export {};
43
59
  //# sourceMappingURL=tenant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAA;CACf;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,QAAQ,CAAA;IACrB,SAAS,EAAE,MAAM,CAAC;QAChB,KAAK;QACL,OAAO,CAAC;YACN,MAAM,EAAE,MAAM,CAAC;gBACb,QAAQ,CAAC,OAAO,CAAC;gBACjB,QAAQ,CAAC,UAAU,CAAC;gBACpB,QAAQ,CAAC,SAAS,CAAC;aACpB,CAAC,CAAA;YACF,aAAa,EAAE,OAAO,CAAC;gBACrB,MAAM,EAAE,OAAO,CAAA;gBACf,oBAAoB,EAAE,OAAO,CAAA;gBAC7B,4BAA4B,EAAE,OAAO,CAAA;aACtC,CAAC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BAA4B,EAAE,OAAO,CAAA;aACtC,CAAC,CAAA;SACH,CAAC;KACH,CAAC,CAAA;IACF,oBAAoB,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;CAC1C,CAuBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC;IACzC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,QAAQ,CAAA;IACrB,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;CAC7B,CAQC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
@@ -26,3 +26,15 @@ export const TenantSchema = Type.Object({
26
26
  ]),
27
27
  sensitiveDataEnabled: Type.Optional(Type.Boolean()),
28
28
  });
29
+ /**
30
+ * The schema for a tenant list item
31
+ */
32
+ export const TenantListItemSchema = Type.Object({
33
+ id: Type.String(),
34
+ name: Type.String(),
35
+ displayName: Type.String(),
36
+ description: Type.String(),
37
+ websiteUrl: Type.String(),
38
+ isDedicated: Type.Boolean(),
39
+ permissions: Type.Array(Type.String()),
40
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.54.0",
3
+ "version": "1.55.1",
4
4
  "description": "Flowcore SDK",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-sdk#readme",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- import { type Static, type TBoolean, type TLiteral, type TNull, type TObject, type TOptional, type TString, type TUnion } from "@sinclair/typebox";
1
+ import { type Static, type TArray, type TBoolean, type TLiteral, type TNull, type TObject, type TOptional, type TString, type TUnion } from "@sinclair/typebox";
2
2
  interface TenantById {
3
3
  tenantId: string;
4
4
  tenant?: never;
@@ -39,5 +39,21 @@ export declare const TenantSchema: TObject<{
39
39
  * The type for a tenant
40
40
  */
41
41
  export type Tenant = Static<typeof TenantSchema>;
42
+ /**
43
+ * The schema for a tenant list item
44
+ */
45
+ export declare const TenantListItemSchema: TObject<{
46
+ id: TString;
47
+ name: TString;
48
+ displayName: TString;
49
+ description: TString;
50
+ websiteUrl: TString;
51
+ isDedicated: TBoolean;
52
+ permissions: TArray<TString>;
53
+ }>;
54
+ /**
55
+ * The type for a tenant list item
56
+ */
57
+ export type TenantListItem = Static<typeof TenantListItemSchema>;
42
58
  export {};
43
59
  //# sourceMappingURL=tenant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAA;CACf;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,QAAQ,CAAA;IACrB,SAAS,EAAE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EAAE,QAAQ,CAAA;IACrB,SAAS,EAAE,MAAM,CAAC;QAChB,KAAK;QACL,OAAO,CAAC;YACN,MAAM,EAAE,MAAM,CAAC;gBACb,QAAQ,CAAC,OAAO,CAAC;gBACjB,QAAQ,CAAC,UAAU,CAAC;gBACpB,QAAQ,CAAC,SAAS,CAAC;aACpB,CAAC,CAAA;YACF,aAAa,EAAE,OAAO,CAAC;gBACrB,MAAM,EAAE,OAAO,CAAA;gBACf,oBAAoB,EAAE,OAAO,CAAA;gBAC7B,4BAA4B,EAAE,OAAO,CAAA;aACtC,CAAC,CAAA;SACH,CAAC;KACH,CAAC,CAAA;IACF,oBAAoB,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;CAC1C,CAuBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC;IACzC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,QAAQ,CAAA;IACrB,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;CAC7B,CAQC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TenantSchema = void 0;
3
+ exports.TenantListItemSchema = exports.TenantSchema = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
5
  /**
6
6
  * The schema for a tenant
@@ -29,3 +29,15 @@ exports.TenantSchema = typebox_1.Type.Object({
29
29
  ]),
30
30
  sensitiveDataEnabled: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
31
31
  });
32
+ /**
33
+ * The schema for a tenant list item
34
+ */
35
+ exports.TenantListItemSchema = typebox_1.Type.Object({
36
+ id: typebox_1.Type.String(),
37
+ name: typebox_1.Type.String(),
38
+ displayName: typebox_1.Type.String(),
39
+ description: typebox_1.Type.String(),
40
+ websiteUrl: typebox_1.Type.String(),
41
+ isDedicated: typebox_1.Type.Boolean(),
42
+ permissions: typebox_1.Type.Array(typebox_1.Type.String()),
43
+ });