@flowcore/sdk 1.22.0 → 1.22.2

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.22.2](https://github.com/flowcore-io/flowcore-sdk/compare/v1.22.1...v1.22.2) (2025-03-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * change datacore list command ([5b75ed9](https://github.com/flowcore-io/flowcore-sdk/commit/5b75ed9a11410404e585800d782951c3a96451f6))
9
+
10
+ ## [1.22.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.22.0...v1.22.1) (2025-03-27)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **tenant:** :art: make configurationRepoCredentials required in tenant schema ([8fc755d](https://github.com/flowcore-io/flowcore-sdk/commit/8fc755dba5afccac58a034c14fb5881c4868a653))
16
+ * **tenant:** :art: remove unused TOptional type from tenant schema ([d757d09](https://github.com/flowcore-io/flowcore-sdk/commit/d757d09dd8eb211a4730822c04ea374463d0b347))
17
+
3
18
  ## [1.22.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.21.3...v1.22.0) (2025-03-27)
4
19
 
5
20
 
@@ -1,5 +1,5 @@
1
1
  import { Command } from "../../common/command.js";
2
- import { type DataCore } from "../../contracts/data-core.js";
2
+ import { type DataCoreWithAccess } from "../../contracts/data-core.js";
3
3
  /**
4
4
  * The input for the data core fetch by name command
5
5
  */
@@ -8,11 +8,13 @@ export interface DataCoreListInput {
8
8
  tenantId?: string;
9
9
  /** The tenant name */
10
10
  tenant?: string;
11
+ /** The data core name */
12
+ name?: string;
11
13
  }
12
14
  /**
13
15
  * Fetch all data cores for a tenant
14
16
  */
15
- export declare class DataCoreListCommand extends Command<DataCoreListInput, DataCore[]> {
17
+ export declare class DataCoreListCommand extends Command<DataCoreListInput, DataCoreWithAccess[]> {
16
18
  /**
17
19
  * Get the method
18
20
  */
@@ -28,6 +30,6 @@ export declare class DataCoreListCommand extends Command<DataCoreListInput, Data
28
30
  /**
29
31
  * Parse the response
30
32
  */
31
- protected parseResponse(rawResponse: unknown): DataCore[];
33
+ protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
32
34
  }
33
35
  //# sourceMappingURL=data-core.list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IAC7E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAWpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,EAAE;CAGnE"}
1
+ {"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;IACvF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
@@ -1,7 +1,11 @@
1
1
  import { Type } from "@sinclair/typebox";
2
2
  import { Command } from "../../common/command.js";
3
- import { DataCoreSchema } from "../../contracts/data-core.js";
3
+ import { DataCoreWithAccessSchema } from "../../contracts/data-core.js";
4
4
  import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
+ const responseSchema = Type.Object({
6
+ ...DataCoreWithAccessSchema.properties,
7
+ access: Type.Array(Type.String()),
8
+ });
5
9
  /**
6
10
  * Fetch all data cores for a tenant
7
11
  */
@@ -29,12 +33,15 @@ export class DataCoreListCommand extends Command {
29
33
  if (this.input.tenant) {
30
34
  queryParams.set("tenant", this.input.tenant);
31
35
  }
36
+ if (this.input.name) {
37
+ queryParams.set("name", this.input.name);
38
+ }
32
39
  return `/api/v1/data-cores?${queryParams.toString()}`;
33
40
  }
34
41
  /**
35
42
  * Parse the response
36
43
  */
37
44
  parseResponse(rawResponse) {
38
- return parseResponseHelper(Type.Array(DataCoreSchema), rawResponse);
45
+ return parseResponseHelper(Type.Array(responseSchema), rawResponse);
39
46
  }
40
47
  }
@@ -15,7 +15,6 @@ export * from "./data-core/data-core.delete-request.js";
15
15
  export * from "./data-core/data-core.exists.js";
16
16
  export * from "./data-core/data-core.fetch.js";
17
17
  export * from "./data-core/data-core.list.js";
18
- export * from "./data-core/data-core.list-new.js";
19
18
  export * from "./data-core/data-core.request-delete.js";
20
19
  export * from "./data-core/data-core.update.js";
21
20
  export * from "./flow-type/flow-type.create.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceR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CAAA;AACjD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,gDAAgD,CAAA;AAC9D,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAG5C,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mDAAmD,CAAA;AAGjE,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA"}
@@ -20,7 +20,6 @@ export * from "./data-core/data-core.delete-request.js";
20
20
  export * from "./data-core/data-core.exists.js";
21
21
  export * from "./data-core/data-core.fetch.js";
22
22
  export * from "./data-core/data-core.list.js";
23
- export * from "./data-core/data-core.list-new.js";
24
23
  export * from "./data-core/data-core.request-delete.js";
25
24
  export * from "./data-core/data-core.update.js";
26
25
  // Flow Types
@@ -16,7 +16,7 @@ const responseSchema = Type.Object({
16
16
  configuration: Type.Object({
17
17
  domain: Type.String(),
18
18
  configurationRepoUrl: Type.String(),
19
- configurationRepoCredentials: Type.Optional(Type.String()),
19
+ configurationRepoCredentials: Type.String(),
20
20
  }),
21
21
  }),
22
22
  ]),
@@ -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 TBoolean, type TLiteral, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
2
2
  interface TenantById {
3
3
  tenantId: string;
4
4
  tenant?: never;
@@ -29,7 +29,7 @@ export declare const TenantSchema: TObject<{
29
29
  configuration: TObject<{
30
30
  domain: TString;
31
31
  configurationRepoUrl: TString;
32
- configurationRepoCredentials: TOptional<TString>;
32
+ configurationRepoCredentials: TString;
33
33
  }>;
34
34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,CAAC,CAAA"}
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,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,CAAA;SACH,CAAC;KACH,CAAC,CAAA;CACH,CAsBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -20,7 +20,7 @@ export const TenantSchema = Type.Object({
20
20
  configuration: Type.Object({
21
21
  domain: Type.String(),
22
22
  configurationRepoUrl: Type.String(),
23
- configurationRepoCredentials: Type.Optional(Type.String()),
23
+ configurationRepoCredentials: Type.String(),
24
24
  }),
25
25
  }),
26
26
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "description": "Flowcore SDK",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-sdk#readme",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  import { Command } from "../../common/command.js";
2
- import { type DataCore } from "../../contracts/data-core.js";
2
+ import { type DataCoreWithAccess } from "../../contracts/data-core.js";
3
3
  /**
4
4
  * The input for the data core fetch by name command
5
5
  */
@@ -8,11 +8,13 @@ export interface DataCoreListInput {
8
8
  tenantId?: string;
9
9
  /** The tenant name */
10
10
  tenant?: string;
11
+ /** The data core name */
12
+ name?: string;
11
13
  }
12
14
  /**
13
15
  * Fetch all data cores for a tenant
14
16
  */
15
- export declare class DataCoreListCommand extends Command<DataCoreListInput, DataCore[]> {
17
+ export declare class DataCoreListCommand extends Command<DataCoreListInput, DataCoreWithAccess[]> {
16
18
  /**
17
19
  * Get the method
18
20
  */
@@ -28,6 +30,6 @@ export declare class DataCoreListCommand extends Command<DataCoreListInput, Data
28
30
  /**
29
31
  * Parse the response
30
32
  */
31
- protected parseResponse(rawResponse: unknown): DataCore[];
33
+ protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
32
34
  }
33
35
  //# sourceMappingURL=data-core.list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IAC7E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAWpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,EAAE;CAGnE"}
1
+ {"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;IACvF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
@@ -5,6 +5,10 @@ const typebox_1 = require("@sinclair/typebox");
5
5
  const command_js_1 = require("../../common/command.js");
6
6
  const data_core_js_1 = require("../../contracts/data-core.js");
7
7
  const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
8
+ const responseSchema = typebox_1.Type.Object({
9
+ ...data_core_js_1.DataCoreWithAccessSchema.properties,
10
+ access: typebox_1.Type.Array(typebox_1.Type.String()),
11
+ });
8
12
  /**
9
13
  * Fetch all data cores for a tenant
10
14
  */
@@ -32,13 +36,16 @@ class DataCoreListCommand extends command_js_1.Command {
32
36
  if (this.input.tenant) {
33
37
  queryParams.set("tenant", this.input.tenant);
34
38
  }
39
+ if (this.input.name) {
40
+ queryParams.set("name", this.input.name);
41
+ }
35
42
  return `/api/v1/data-cores?${queryParams.toString()}`;
36
43
  }
37
44
  /**
38
45
  * Parse the response
39
46
  */
40
47
  parseResponse(rawResponse) {
41
- return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(data_core_js_1.DataCoreSchema), rawResponse);
48
+ return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(responseSchema), rawResponse);
42
49
  }
43
50
  }
44
51
  exports.DataCoreListCommand = DataCoreListCommand;
@@ -15,7 +15,6 @@ export * from "./data-core/data-core.delete-request.js";
15
15
  export * from "./data-core/data-core.exists.js";
16
16
  export * from "./data-core/data-core.fetch.js";
17
17
  export * from "./data-core/data-core.list.js";
18
- export * from "./data-core/data-core.list-new.js";
19
18
  export * from "./data-core/data-core.request-delete.js";
20
19
  export * from "./data-core/data-core.update.js";
21
20
  export * from "./flow-type/flow-type.create.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7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4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA"}
@@ -36,7 +36,6 @@ __exportStar(require("./data-core/data-core.delete-request.js"), exports);
36
36
  __exportStar(require("./data-core/data-core.exists.js"), exports);
37
37
  __exportStar(require("./data-core/data-core.fetch.js"), exports);
38
38
  __exportStar(require("./data-core/data-core.list.js"), exports);
39
- __exportStar(require("./data-core/data-core.list-new.js"), exports);
40
39
  __exportStar(require("./data-core/data-core.request-delete.js"), exports);
41
40
  __exportStar(require("./data-core/data-core.update.js"), exports);
42
41
  // Flow Types
@@ -19,7 +19,7 @@ const responseSchema = typebox_1.Type.Object({
19
19
  configuration: typebox_1.Type.Object({
20
20
  domain: typebox_1.Type.String(),
21
21
  configurationRepoUrl: typebox_1.Type.String(),
22
- configurationRepoCredentials: typebox_1.Type.Optional(typebox_1.Type.String()),
22
+ configurationRepoCredentials: typebox_1.Type.String(),
23
23
  }),
24
24
  }),
25
25
  ]),
@@ -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 TBoolean, type TLiteral, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
2
2
  interface TenantById {
3
3
  tenantId: string;
4
4
  tenant?: never;
@@ -29,7 +29,7 @@ export declare const TenantSchema: TObject<{
29
29
  configuration: TObject<{
30
30
  domain: TString;
31
31
  configurationRepoUrl: TString;
32
- configurationRepoCredentials: TOptional<TString>;
32
+ configurationRepoCredentials: TString;
33
33
  }>;
34
34
  }>
35
35
  ]>;
@@ -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,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M,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,CAAA;SACH,CAAC;KACH,CAAC,CAAA;CACH,CAsBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -23,7 +23,7 @@ exports.TenantSchema = typebox_1.Type.Object({
23
23
  configuration: typebox_1.Type.Object({
24
24
  domain: typebox_1.Type.String(),
25
25
  configurationRepoUrl: typebox_1.Type.String(),
26
- configurationRepoCredentials: typebox_1.Type.Optional(typebox_1.Type.String()),
26
+ configurationRepoCredentials: typebox_1.Type.String(),
27
27
  }),
28
28
  }),
29
29
  ]),
@@ -1,35 +0,0 @@
1
- import { Command } from "../../common/command.js";
2
- import { type DataCoreWithAccess } from "../../contracts/data-core.js";
3
- /**
4
- * The input for the data core fetch by name command
5
- */
6
- export interface DataCoreListNewInput {
7
- /** The tenant id */
8
- tenantId?: string;
9
- /** The tenant name */
10
- tenant?: string;
11
- /** The data core name */
12
- name?: string;
13
- }
14
- /**
15
- * Fetch all data cores for a tenant
16
- */
17
- export declare class DataCoreListNewCommand extends Command<DataCoreListNewInput, DataCoreWithAccess[]> {
18
- /**
19
- * Get the method
20
- */
21
- protected getMethod(): string;
22
- /**
23
- * Get the base url
24
- */
25
- protected getBaseUrl(): string;
26
- /**
27
- * Get the path
28
- */
29
- protected getPath(): string;
30
- /**
31
- * Parse the response
32
- */
33
- protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
34
- }
35
- //# sourceMappingURL=data-core.list-new.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-core.list-new.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list-new.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAC7F;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
@@ -1,47 +0,0 @@
1
- import { Type } from "@sinclair/typebox";
2
- import { Command } from "../../common/command.js";
3
- import { DataCoreWithAccessSchema } from "../../contracts/data-core.js";
4
- import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
- const responseSchema = Type.Object({
6
- ...DataCoreWithAccessSchema.properties,
7
- access: Type.Array(Type.String()),
8
- });
9
- /**
10
- * Fetch all data cores for a tenant
11
- */
12
- export class DataCoreListNewCommand extends Command {
13
- /**
14
- * Get the method
15
- */
16
- getMethod() {
17
- return "GET";
18
- }
19
- /**
20
- * Get the base url
21
- */
22
- getBaseUrl() {
23
- return "https://data-core-2.api.flowcore.io";
24
- }
25
- /**
26
- * Get the path
27
- */
28
- getPath() {
29
- const queryParams = new URLSearchParams();
30
- if (this.input.tenantId) {
31
- queryParams.set("tenantId", this.input.tenantId);
32
- }
33
- if (this.input.tenant) {
34
- queryParams.set("tenant", this.input.tenant);
35
- }
36
- if (this.input.name) {
37
- queryParams.set("name", this.input.name);
38
- }
39
- return `/api/v1/data-cores/new?${queryParams.toString()}`;
40
- }
41
- /**
42
- * Parse the response
43
- */
44
- parseResponse(rawResponse) {
45
- return parseResponseHelper(Type.Array(responseSchema), rawResponse);
46
- }
47
- }
@@ -1,35 +0,0 @@
1
- import { Command } from "../../common/command.js";
2
- import { type DataCoreWithAccess } from "../../contracts/data-core.js";
3
- /**
4
- * The input for the data core fetch by name command
5
- */
6
- export interface DataCoreListNewInput {
7
- /** The tenant id */
8
- tenantId?: string;
9
- /** The tenant name */
10
- tenant?: string;
11
- /** The data core name */
12
- name?: string;
13
- }
14
- /**
15
- * Fetch all data cores for a tenant
16
- */
17
- export declare class DataCoreListNewCommand extends Command<DataCoreListNewInput, DataCoreWithAccess[]> {
18
- /**
19
- * Get the method
20
- */
21
- protected getMethod(): string;
22
- /**
23
- * Get the base url
24
- */
25
- protected getBaseUrl(): string;
26
- /**
27
- * Get the path
28
- */
29
- protected getPath(): string;
30
- /**
31
- * Parse the response
32
- */
33
- protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
34
- }
35
- //# sourceMappingURL=data-core.list-new.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-core.list-new.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list-new.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAC7F;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataCoreListNewCommand = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
5
- const command_js_1 = require("../../common/command.js");
6
- const data_core_js_1 = require("../../contracts/data-core.js");
7
- const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
8
- const responseSchema = typebox_1.Type.Object({
9
- ...data_core_js_1.DataCoreWithAccessSchema.properties,
10
- access: typebox_1.Type.Array(typebox_1.Type.String()),
11
- });
12
- /**
13
- * Fetch all data cores for a tenant
14
- */
15
- class DataCoreListNewCommand extends command_js_1.Command {
16
- /**
17
- * Get the method
18
- */
19
- getMethod() {
20
- return "GET";
21
- }
22
- /**
23
- * Get the base url
24
- */
25
- getBaseUrl() {
26
- return "https://data-core-2.api.flowcore.io";
27
- }
28
- /**
29
- * Get the path
30
- */
31
- getPath() {
32
- const queryParams = new URLSearchParams();
33
- if (this.input.tenantId) {
34
- queryParams.set("tenantId", this.input.tenantId);
35
- }
36
- if (this.input.tenant) {
37
- queryParams.set("tenant", this.input.tenant);
38
- }
39
- if (this.input.name) {
40
- queryParams.set("name", this.input.name);
41
- }
42
- return `/api/v1/data-cores/new?${queryParams.toString()}`;
43
- }
44
- /**
45
- * Parse the response
46
- */
47
- parseResponse(rawResponse) {
48
- return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(responseSchema), rawResponse);
49
- }
50
- }
51
- exports.DataCoreListNewCommand = DataCoreListNewCommand;