@flowcore/sdk 1.10.0 → 1.10.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/esm/commands/api-key/api-key.create.d.ts +4 -0
  3. package/esm/commands/api-key/api-key.create.d.ts.map +1 -1
  4. package/esm/commands/api-key/api-key.create.js +9 -0
  5. package/esm/commands/data-core/data-core.create.d.ts +6 -2
  6. package/esm/commands/data-core/data-core.create.d.ts.map +1 -1
  7. package/esm/commands/data-core/data-core.create.js +12 -0
  8. package/esm/commands/data-core/data-core.delete-request.d.ts +6 -2
  9. package/esm/commands/data-core/data-core.delete-request.d.ts.map +1 -1
  10. package/esm/commands/data-core/data-core.delete-request.js +9 -0
  11. package/esm/commands/data-core/data-core.fetch.d.ts +3 -4
  12. package/esm/commands/data-core/data-core.fetch.d.ts.map +1 -1
  13. package/esm/commands/data-core/data-core.list.d.ts +2 -2
  14. package/esm/commands/data-core/data-core.list.d.ts.map +1 -1
  15. package/esm/commands/data-core/data-core.update.d.ts +2 -2
  16. package/esm/commands/data-core/data-core.update.d.ts.map +1 -1
  17. package/esm/commands/event-type/event-type.create.d.ts +6 -2
  18. package/esm/commands/event-type/event-type.create.d.ts.map +1 -1
  19. package/esm/commands/event-type/event-type.create.js +12 -0
  20. package/esm/commands/event-type/event-type.delete-request.d.ts +6 -2
  21. package/esm/commands/event-type/event-type.delete-request.d.ts.map +1 -1
  22. package/esm/commands/event-type/event-type.delete-request.js +9 -0
  23. package/esm/commands/event-type/event-type.fetch.d.ts +2 -3
  24. package/esm/commands/event-type/event-type.fetch.d.ts.map +1 -1
  25. package/esm/commands/event-type/event-type.list.d.ts +2 -2
  26. package/esm/commands/event-type/event-type.list.d.ts.map +1 -1
  27. package/esm/commands/event-type/event-type.truncate-request.d.ts +41 -0
  28. package/esm/commands/event-type/event-type.truncate-request.d.ts.map +1 -0
  29. package/esm/commands/event-type/event-type.truncate-request.js +107 -0
  30. package/esm/commands/flow-type/flow-type.create.d.ts +6 -2
  31. package/esm/commands/flow-type/flow-type.create.d.ts.map +1 -1
  32. package/esm/commands/flow-type/flow-type.create.js +12 -0
  33. package/esm/commands/flow-type/flow-type.delete-request.d.ts +7 -2
  34. package/esm/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
  35. package/esm/commands/flow-type/flow-type.delete-request.js +9 -0
  36. package/esm/commands/flow-type/flow-type.fetch.d.ts +4 -5
  37. package/esm/commands/flow-type/flow-type.fetch.d.ts.map +1 -1
  38. package/esm/commands/flow-type/flow-type.list.d.ts +2 -2
  39. package/esm/commands/flow-type/flow-type.list.d.ts.map +1 -1
  40. package/esm/commands/flow-type/flow-type.update.d.ts +2 -2
  41. package/esm/commands/flow-type/flow-type.update.d.ts.map +1 -1
  42. package/esm/commands/index.d.ts +1 -0
  43. package/esm/commands/index.d.ts.map +1 -1
  44. package/esm/commands/index.js +1 -0
  45. package/esm/commands/tenant/tenant.fetch.d.ts +4 -5
  46. package/esm/commands/tenant/tenant.fetch.d.ts.map +1 -1
  47. package/esm/common/command.d.ts +5 -0
  48. package/esm/common/command.d.ts.map +1 -1
  49. package/esm/common/command.js +10 -0
  50. package/esm/common/flowcore-client.d.ts.map +1 -1
  51. package/esm/common/flowcore-client.js +3 -2
  52. package/package.json +1 -1
  53. package/script/commands/api-key/api-key.create.d.ts +4 -0
  54. package/script/commands/api-key/api-key.create.d.ts.map +1 -1
  55. package/script/commands/api-key/api-key.create.js +9 -0
  56. package/script/commands/data-core/data-core.create.d.ts +6 -2
  57. package/script/commands/data-core/data-core.create.d.ts.map +1 -1
  58. package/script/commands/data-core/data-core.create.js +12 -0
  59. package/script/commands/data-core/data-core.delete-request.d.ts +6 -2
  60. package/script/commands/data-core/data-core.delete-request.d.ts.map +1 -1
  61. package/script/commands/data-core/data-core.delete-request.js +9 -0
  62. package/script/commands/data-core/data-core.fetch.d.ts +3 -4
  63. package/script/commands/data-core/data-core.fetch.d.ts.map +1 -1
  64. package/script/commands/data-core/data-core.list.d.ts +2 -2
  65. package/script/commands/data-core/data-core.list.d.ts.map +1 -1
  66. package/script/commands/data-core/data-core.update.d.ts +2 -2
  67. package/script/commands/data-core/data-core.update.d.ts.map +1 -1
  68. package/script/commands/event-type/event-type.create.d.ts +6 -2
  69. package/script/commands/event-type/event-type.create.d.ts.map +1 -1
  70. package/script/commands/event-type/event-type.create.js +12 -0
  71. package/script/commands/event-type/event-type.delete-request.d.ts +6 -2
  72. package/script/commands/event-type/event-type.delete-request.d.ts.map +1 -1
  73. package/script/commands/event-type/event-type.delete-request.js +9 -0
  74. package/script/commands/event-type/event-type.fetch.d.ts +2 -3
  75. package/script/commands/event-type/event-type.fetch.d.ts.map +1 -1
  76. package/script/commands/event-type/event-type.list.d.ts +2 -2
  77. package/script/commands/event-type/event-type.list.d.ts.map +1 -1
  78. package/script/commands/event-type/event-type.truncate-request.d.ts +41 -0
  79. package/script/commands/event-type/event-type.truncate-request.d.ts.map +1 -0
  80. package/script/commands/event-type/event-type.truncate-request.js +111 -0
  81. package/script/commands/flow-type/flow-type.create.d.ts +6 -2
  82. package/script/commands/flow-type/flow-type.create.d.ts.map +1 -1
  83. package/script/commands/flow-type/flow-type.create.js +12 -0
  84. package/script/commands/flow-type/flow-type.delete-request.d.ts +7 -2
  85. package/script/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
  86. package/script/commands/flow-type/flow-type.delete-request.js +9 -0
  87. package/script/commands/flow-type/flow-type.fetch.d.ts +4 -5
  88. package/script/commands/flow-type/flow-type.fetch.d.ts.map +1 -1
  89. package/script/commands/flow-type/flow-type.list.d.ts +2 -2
  90. package/script/commands/flow-type/flow-type.list.d.ts.map +1 -1
  91. package/script/commands/flow-type/flow-type.update.d.ts +2 -2
  92. package/script/commands/flow-type/flow-type.update.d.ts.map +1 -1
  93. package/script/commands/index.d.ts +1 -0
  94. package/script/commands/index.d.ts.map +1 -1
  95. package/script/commands/index.js +1 -0
  96. package/script/commands/tenant/tenant.fetch.d.ts +4 -5
  97. package/script/commands/tenant/tenant.fetch.d.ts.map +1 -1
  98. package/script/common/command.d.ts +5 -0
  99. package/script/common/command.d.ts.map +1 -1
  100. package/script/common/command.js +10 -0
  101. package/script/common/flowcore-client.d.ts.map +1 -1
  102. package/script/common/flowcore-client.js +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.10.2](https://github.com/flowcore-io/flowcore-sdk/compare/v1.10.1...v1.10.2) (2025-02-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add eventtype truncate command ([1f8d4b0](https://github.com/flowcore-io/flowcore-sdk/commit/1f8d4b0afa89e427b5835fa933208f6508d0c578))
9
+
10
+ ## [1.10.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.10.0...v1.10.1) (2025-02-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * disable retry for create resource commands ([c97f990](https://github.com/flowcore-io/flowcore-sdk/commit/c97f99017aaf6deef7ca431a61b5b4c322c3788f))
16
+
3
17
  ## [1.10.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.9.3...v1.10.0) (2025-02-03)
4
18
 
5
19
 
@@ -16,6 +16,10 @@ export interface ApiKeyCreateInput {
16
16
  export declare class ApiKeyCreateCommand extends GraphQlCommand<ApiKeyCreateInput, ApiKey & {
17
17
  value: string;
18
18
  }> {
19
+ /**
20
+ * Whether the command should retry on failure
21
+ */
22
+ protected retryOnFailure: boolean;
19
23
  /**
20
24
  * The allowed modes for the command
21
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.create.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAIrE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAA;CACb;AA4BD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;IACpG;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAC9B,WAAW,EAAE,OAAO,GACnB,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;IAiB7B;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CACtC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GACnC,OAAO,CAAC,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAevC"}
1
+ {"version":3,"file":"api-key.create.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAIrE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAA;CACb;AA4BD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;IACpG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAC9B,WAAW,EAAE,OAAO,GACnB,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;IAiB7B;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CACtC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GACnC,OAAO,CAAC,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAevC"}
@@ -29,6 +29,15 @@ const responseSchema = Type.Object({
29
29
  export class ApiKeyCreateCommand extends GraphQlCommand {
30
30
  constructor() {
31
31
  super(...arguments);
32
+ /**
33
+ * Whether the command should retry on failure
34
+ */
35
+ Object.defineProperty(this, "retryOnFailure", {
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true,
39
+ value: false
40
+ });
32
41
  /**
33
42
  * The allowed modes for the command
34
43
  */
@@ -3,7 +3,7 @@ import { type DataCore } from "../../contracts/data-core.js";
3
3
  /**
4
4
  * The input for the data core create command
5
5
  */
6
- export type DataCoreCreateInput = {
6
+ export interface DataCoreCreateInput {
7
7
  /** The tenant id */
8
8
  tenantId: string;
9
9
  /** The name of the data core */
@@ -14,11 +14,15 @@ export type DataCoreCreateInput = {
14
14
  accessControl: "public" | "private";
15
15
  /** Whether the data core is delete protected */
16
16
  deleteProtection: boolean;
17
- };
17
+ }
18
18
  /**
19
19
  * Create a data core
20
20
  */
21
21
  export declare class DataCoreCreateCommand extends Command<DataCoreCreateInput, DataCore> {
22
+ /**
23
+ * Whether the command should retry on failure
24
+ */
25
+ protected retryOnFailure: boolean;
22
26
  /**
23
27
  * Get the method
24
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"data-core.create.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,aAAa,EAAE,QAAQ,GAAG,SAAS,CAAA;IACnC,gDAAgD;IAChD,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
1
+ {"version":3,"file":"data-core.create.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,aAAa,EAAE,QAAQ,GAAG,SAAS,CAAA;IACnC,gDAAgD;IAChD,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/E;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
@@ -5,6 +5,18 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
5
  * Create a data core
6
6
  */
7
7
  export class DataCoreCreateCommand extends Command {
8
+ constructor() {
9
+ super(...arguments);
10
+ /**
11
+ * Whether the command should retry on failure
12
+ */
13
+ Object.defineProperty(this, "retryOnFailure", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: false
18
+ });
19
+ }
8
20
  /**
9
21
  * Get the method
10
22
  */
@@ -3,16 +3,20 @@ import type { FlowcoreClient } from "../../common/flowcore-client.js";
3
3
  /**
4
4
  * The input for the data core delete request command
5
5
  */
6
- export type DataCoreDeleteRequestInput = {
6
+ export interface DataCoreDeleteRequestInput {
7
7
  /** The id of the data core */
8
8
  dataCoreId: string;
9
9
  /** Wait for the data core to be deleted (default: true) */
10
10
  waitForDelete?: boolean;
11
- };
11
+ }
12
12
  /**
13
13
  * Request to delete a data core
14
14
  */
15
15
  export declare class DataCoreDeleteRequestCommand extends GraphQlCommand<DataCoreDeleteRequestInput, boolean> {
16
+ /**
17
+ * Whether the command should retry on failure
18
+ */
19
+ protected retryOnFailure: boolean;
16
20
  /**
17
21
  * Create a new data core delete request command
18
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"data-core.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAKxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AA4BD;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC;IACnG;;OAEG;gBACS,KAAK,EAAE,0BAA0B;IAO7C;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAW5D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
1
+ {"version":3,"file":"data-core.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAKxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AA4BD;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC;IACnG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;gBACS,KAAK,EAAE,0BAA0B;IAO7C;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAW5D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
@@ -40,6 +40,15 @@ export class DataCoreDeleteRequestCommand extends GraphQlCommand {
40
40
  ...input,
41
41
  waitForDelete: input.waitForDelete ?? true,
42
42
  });
43
+ /**
44
+ * Whether the command should retry on failure
45
+ */
46
+ Object.defineProperty(this, "retryOnFailure", {
47
+ enumerable: true,
48
+ configurable: true,
49
+ writable: true,
50
+ value: false
51
+ });
43
52
  }
44
53
  /**
45
54
  * Parse the response
@@ -4,18 +4,18 @@ import type { ClientError } from "../../exceptions/client-error.js";
4
4
  /**
5
5
  * The input for the data core fetch by id command
6
6
  */
7
- type DataCoreFetchByIdInput = {
7
+ export interface DataCoreFetchByIdInput {
8
8
  /** The id of the data core */
9
9
  dataCoreId: string;
10
10
  /** The name of the data core */
11
11
  dataCore?: never;
12
12
  /** The tenant id */
13
13
  tenantId?: never;
14
- };
14
+ }
15
15
  /**
16
16
  * The input for the data core fetch by name command
17
17
  */
18
- interface DataCoreFetchByNameInput {
18
+ export interface DataCoreFetchByNameInput {
19
19
  /** The tenant id */
20
20
  tenantId: string;
21
21
  /** The name of the data core */
@@ -52,5 +52,4 @@ export declare class DataCoreFetchCommand extends Command<DataCoreFetchInput, Da
52
52
  */
53
53
  protected handleClientError(error: ClientError): void;
54
54
  }
55
- export {};
56
55
  //# sourceMappingURL=data-core.fetch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-core.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,KAAK,sBAAsB,GAAG;IAC5B,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB,CAAA;AAED;;GAEG;AACH,UAAU,wBAAwB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,wBAAwB,CAAA;AAElF;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC;IAC7E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;IAYhE;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
1
+ {"version":3,"file":"data-core.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,wBAAwB,CAAA;AAElF;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC;IAC7E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;IAYhE;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
@@ -3,12 +3,12 @@ import { type DataCore } from "../../contracts/data-core.js";
3
3
  /**
4
4
  * The input for the data core fetch by name command
5
5
  */
6
- export type DataCoreListInput = {
6
+ export interface DataCoreListInput {
7
7
  /** The tenant id */
8
8
  tenantId?: string;
9
9
  /** The tenant name */
10
10
  tenant?: string;
11
- };
11
+ }
12
12
  /**
13
13
  * Fetch all data cores for a tenant
14
14
  */
@@ -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,MAAM,iBAAiB,GAAG;IAC9B,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;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,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"}
@@ -3,7 +3,7 @@ import { type DataCore } from "../../contracts/data-core.js";
3
3
  /**
4
4
  * The input for the data core update command
5
5
  */
6
- export type DataCoreUpdateInput = {
6
+ export interface DataCoreUpdateInput {
7
7
  /** The id of the data core */
8
8
  dataCoreId: string;
9
9
  /** The description of the data core */
@@ -12,7 +12,7 @@ export type DataCoreUpdateInput = {
12
12
  accessControl?: "public" | "private";
13
13
  /** Whether the data core is delete protected */
14
14
  deleteProtection?: boolean;
15
- };
15
+ }
16
16
  /**
17
17
  * Update a data core
18
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"data-core.update.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IACpC,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
1
+ {"version":3,"file":"data-core.update.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IACpC,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
@@ -3,18 +3,22 @@ import { type EventType } from "../../contracts/event-type.js";
3
3
  /**
4
4
  * The input for the event type create command
5
5
  */
6
- export type EventTypeCreateInput = {
6
+ export interface EventTypeCreateInput {
7
7
  /** The id of the flow type */
8
8
  flowTypeId: string;
9
9
  /** The name of the event type */
10
10
  name: string;
11
11
  /** The description of the event type */
12
12
  description: string;
13
- };
13
+ }
14
14
  /**
15
15
  * Create an event type
16
16
  */
17
17
  export declare class EventTypeCreateCommand extends Command<EventTypeCreateInput, EventType> {
18
+ /**
19
+ * Whether the command should retry on failure
20
+ */
21
+ protected retryOnFailure: boolean;
18
22
  /**
19
23
  * Get the method
20
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
1
+ {"version":3,"file":"event-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
@@ -5,6 +5,18 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
5
  * Create an event type
6
6
  */
7
7
  export class EventTypeCreateCommand extends Command {
8
+ constructor() {
9
+ super(...arguments);
10
+ /**
11
+ * Whether the command should retry on failure
12
+ */
13
+ Object.defineProperty(this, "retryOnFailure", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: false
18
+ });
19
+ }
8
20
  /**
9
21
  * Get the method
10
22
  */
@@ -3,16 +3,20 @@ import type { FlowcoreClient } from "../../common/flowcore-client.js";
3
3
  /**
4
4
  * The input for the event type delete request command
5
5
  */
6
- export type EventTypeDeleteRequestInput = {
6
+ export interface EventTypeDeleteRequestInput {
7
7
  /** The id of the event type */
8
8
  eventTypeId: string;
9
9
  /** Wait for the event type to be deleted (default: true) */
10
10
  waitForDelete?: boolean;
11
- };
11
+ }
12
12
  /**
13
13
  * Request to delete a event type
14
14
  */
15
15
  export declare class EventTypeDeleteRequestCommand extends GraphQlCommand<EventTypeDeleteRequestInput, boolean> {
16
+ /**
17
+ * Whether the command should retry on failure
18
+ */
19
+ protected retryOnFailure: boolean;
16
20
  /**
17
21
  * The allowed modes for the command
18
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IAEnB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AA+BD;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,cAAc,CAAC,2BAA2B,EAAE,OAAO,CAAC;IACrG;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;gBACS,KAAK,EAAE,2BAA2B;IAO9C;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAW5D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
1
+ {"version":3,"file":"event-type.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IAEnB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AA+BD;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,cAAc,CAAC,2BAA2B,EAAE,OAAO,CAAC;IACrG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;gBACS,KAAK,EAAE,2BAA2B;IAO9C;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAW5D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
@@ -43,6 +43,15 @@ export class EventTypeDeleteRequestCommand extends GraphQlCommand {
43
43
  ...input,
44
44
  waitForDelete: input.waitForDelete ?? true,
45
45
  });
46
+ /**
47
+ * Whether the command should retry on failure
48
+ */
49
+ Object.defineProperty(this, "retryOnFailure", {
50
+ enumerable: true,
51
+ configurable: true,
52
+ writable: true,
53
+ value: false
54
+ });
46
55
  /**
47
56
  * The allowed modes for the command
48
57
  */
@@ -1,7 +1,7 @@
1
1
  import { Command } from "../../common/command.js";
2
2
  import { type EventType } from "../../contracts/event-type.js";
3
3
  import type { ClientError } from "../../exceptions/client-error.js";
4
- interface EventTypeFetchByIdInput {
4
+ export interface EventTypeFetchByIdInput {
5
5
  /** The id of the event type */
6
6
  eventTypeId: string;
7
7
  /** The id of the flow type */
@@ -9,7 +9,7 @@ interface EventTypeFetchByIdInput {
9
9
  /** The name of the event type */
10
10
  eventType?: never;
11
11
  }
12
- interface EventTypeFetchByNameInput {
12
+ export interface EventTypeFetchByNameInput {
13
13
  /** The id of the flow type */
14
14
  flowTypeId: string;
15
15
  /** The name of the event type */
@@ -46,5 +46,4 @@ export declare class EventTypeFetchCommand extends Command<EventTypeFetchInput,
46
46
  */
47
47
  protected handleClientError(error: ClientError): void;
48
48
  }
49
- export {};
50
49
  //# sourceMappingURL=event-type.fetch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,UAAU,uBAAuB;IAC/B,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAA;CAClB;AAED,UAAU,yBAAyB;IACjC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GAAG,yBAAyB,CAAA;AAErF;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;IAYjE;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
1
+ {"version":3,"file":"event-type.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAA;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GAAG,yBAAyB,CAAA;AAErF;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;IAYjE;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
@@ -3,10 +3,10 @@ import { type EventType } from "../../contracts/event-type.js";
3
3
  /**
4
4
  * The input for the event type list command
5
5
  */
6
- export type EventTypeListInput = {
6
+ export interface EventTypeListInput {
7
7
  /** The flow type id */
8
8
  flowTypeId: string;
9
- };
9
+ }
10
10
  /**
11
11
  * Fetch all event types for a flow type
12
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.list.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAMpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE;CAIpE"}
1
+ {"version":3,"file":"event-type.list.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAMpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE;CAIpE"}
@@ -0,0 +1,41 @@
1
+ import { GraphQlCommand } from "../../common/command.js";
2
+ import type { FlowcoreClient } from "../../common/flowcore-client.js";
3
+ /**
4
+ * The input for the event type truncate request command
5
+ */
6
+ export interface EventTypeTruncateRequestInput {
7
+ /** The id of the event type */
8
+ eventTypeId: string;
9
+ /** Wait for the event type to be truncated (default: true) */
10
+ waitForTruncate?: boolean;
11
+ }
12
+ /**
13
+ * Request to truncate a event type
14
+ */
15
+ export declare class EventTypeTruncateRequestCommand extends GraphQlCommand<EventTypeTruncateRequestInput, boolean> {
16
+ /**
17
+ * Whether the command should retry on failure
18
+ */
19
+ protected retryOnFailure: boolean;
20
+ /**
21
+ * The allowed modes for the command
22
+ */
23
+ protected allowedModes: ("apiKey" | "bearer")[];
24
+ /**
25
+ * Create a new event type truncate request command
26
+ */
27
+ constructor(input: EventTypeTruncateRequestInput);
28
+ /**
29
+ * Parse the response
30
+ */
31
+ protected parseResponse(response: unknown): boolean;
32
+ /**
33
+ * Get the body for the request
34
+ */
35
+ protected getBody(): Record<string, unknown>;
36
+ /**
37
+ * Wait for the response (timeout: 25 seconds)
38
+ */
39
+ protected processResponse(client: FlowcoreClient, response: boolean): Promise<boolean>;
40
+ }
41
+ //# sourceMappingURL=event-type.truncate-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.truncate-request.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.truncate-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IAEnB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AA+BD;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,cAAc,CAAC,6BAA6B,EAAE,OAAO,CAAC;IACzG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;gBACS,KAAK,EAAE,6BAA6B;IAOhD;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAW5D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
@@ -0,0 +1,107 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { GraphQlCommand } from "../../common/command.js";
3
+ import { CommandError } from "../../exceptions/command-error.js";
4
+ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
+ import { NotFoundException } from "../../exceptions/not-found.js";
6
+ import { EventTypeFetchCommand } from "./event-type.fetch.js";
7
+ const graphQlQuery = `
8
+ mutation FLOWCORE_SDK_EVENT_TYPE_TRUNCATE_REQUEST($eventTypeId: ID!) {
9
+ eventType(id: $eventTypeId) {
10
+ requestTruncate {
11
+ truncating
12
+ }
13
+ }
14
+ }
15
+ `;
16
+ const responseSchema = Type.Object({
17
+ errors: Type.Optional(Type.Array(Type.Object({
18
+ message: Type.String(),
19
+ }))),
20
+ data: Type.Union([
21
+ Type.Object({
22
+ eventType: Type.Object({
23
+ requestTruncate: Type.Union([
24
+ Type.Object({
25
+ truncating: Type.Boolean(),
26
+ }),
27
+ Type.Null(),
28
+ ]),
29
+ }),
30
+ }),
31
+ Type.Null(),
32
+ ]),
33
+ });
34
+ /**
35
+ * Request to truncate a event type
36
+ */
37
+ export class EventTypeTruncateRequestCommand extends GraphQlCommand {
38
+ /**
39
+ * Create a new event type truncate request command
40
+ */
41
+ constructor(input) {
42
+ super({
43
+ ...input,
44
+ waitForTruncate: input.waitForTruncate ?? true,
45
+ });
46
+ /**
47
+ * Whether the command should retry on failure
48
+ */
49
+ Object.defineProperty(this, "retryOnFailure", {
50
+ enumerable: true,
51
+ configurable: true,
52
+ writable: true,
53
+ value: false
54
+ });
55
+ /**
56
+ * The allowed modes for the command
57
+ */
58
+ Object.defineProperty(this, "allowedModes", {
59
+ enumerable: true,
60
+ configurable: true,
61
+ writable: true,
62
+ value: ["bearer"]
63
+ });
64
+ }
65
+ /**
66
+ * Parse the response
67
+ */
68
+ parseResponse(response) {
69
+ const parsedResponse = parseResponseHelper(responseSchema, response);
70
+ if (parsedResponse.errors) {
71
+ throw new CommandError(this.constructor.name, parsedResponse.errors[0].message);
72
+ }
73
+ if (!parsedResponse.data?.eventType?.requestTruncate) {
74
+ throw new NotFoundException("EventType", { id: this.input.eventTypeId });
75
+ }
76
+ return parsedResponse.data.eventType.requestTruncate.truncating;
77
+ }
78
+ /**
79
+ * Get the body for the request
80
+ */
81
+ getBody() {
82
+ const { waitForTruncate: _, ...rest } = this.input;
83
+ return {
84
+ query: graphQlQuery,
85
+ variables: rest,
86
+ };
87
+ }
88
+ /**
89
+ * Wait for the response (timeout: 25 seconds)
90
+ */
91
+ async processResponse(client, response) {
92
+ if (!this.input.waitForTruncate) {
93
+ return response;
94
+ }
95
+ const start = Date.now();
96
+ while (Date.now() - start < 25_000) {
97
+ const response = await client.execute(new EventTypeFetchCommand({
98
+ eventTypeId: this.input.eventTypeId,
99
+ }));
100
+ if (response.isTruncating) {
101
+ break;
102
+ }
103
+ await new Promise((resolve) => setTimeout(resolve, 100));
104
+ }
105
+ return response;
106
+ }
107
+ }
@@ -3,18 +3,22 @@ import { type FlowType } from "../../contracts/flow-type.js";
3
3
  /**
4
4
  * The input for the data core create command
5
5
  */
6
- export type FlowTypeCreateInput = {
6
+ export interface FlowTypeCreateInput {
7
7
  /** The id of the data core */
8
8
  dataCoreId: string;
9
9
  /** The name of the flow type */
10
10
  name: string;
11
11
  /** The description of the flow type */
12
12
  description: string;
13
- };
13
+ }
14
14
  /**
15
15
  * Create a flow type
16
16
  */
17
17
  export declare class FlowTypeCreateCommand extends Command<FlowTypeCreateInput, FlowType> {
18
+ /**
19
+ * Whether the command should retry on failure
20
+ */
21
+ protected retryOnFailure: boolean;
18
22
  /**
19
23
  * Get the method
20
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"flow-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
1
+ {"version":3,"file":"flow-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/E;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
@@ -5,6 +5,18 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
5
  * Create a flow type
6
6
  */
7
7
  export class FlowTypeCreateCommand extends Command {
8
+ constructor() {
9
+ super(...arguments);
10
+ /**
11
+ * Whether the command should retry on failure
12
+ */
13
+ Object.defineProperty(this, "retryOnFailure", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: false
18
+ });
19
+ }
8
20
  /**
9
21
  * Get the method
10
22
  */
@@ -4,16 +4,20 @@ import type { ClientError } from "../../exceptions/client-error.js";
4
4
  /**
5
5
  * The input for the flow type delete request command
6
6
  */
7
- export type FlowTypeDeleteRequestInput = {
7
+ export interface FlowTypeDeleteRequestInput {
8
8
  /** The id of the flow type */
9
9
  flowTypeId: string;
10
10
  /** Whether to wait for the flow type to be deleted */
11
11
  waitForDelete?: boolean;
12
- };
12
+ }
13
13
  /**
14
14
  * Request to delete a flow type
15
15
  */
16
16
  export declare class FlowTypeDeleteRequestCommand extends GraphQlCommand<FlowTypeDeleteRequestInput, boolean> {
17
+ /**
18
+ * Whether the command should retry on failure
19
+ */
20
+ protected retryOnFailure: boolean;
17
21
  /**
18
22
  * The allowed modes for the command
19
23
  */
@@ -36,6 +40,7 @@ export declare class FlowTypeDeleteRequestCommand extends GraphQlCommand<FlowTyp
36
40
  parseResponse: (response: unknown) => boolean | Promise<boolean>;
37
41
  processResponse: (client: FlowcoreClient, response: boolean) => Promise<boolean>;
38
42
  handleClientError: (error: ClientError) => void;
43
+ retryOnFailure: boolean;
39
44
  }>;
40
45
  /**
41
46
  * Get the body for the request
@@ -1 +1 @@
1
- {"version":3,"file":"flow-type.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAmCD;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC;IACnG;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;gBACS,KAAK,EAAE,0BAA0B;IAO7C;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAWtC,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAC/D;QACE,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAA;QACrC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;QACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;QAChE,eAAe,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;QAChF,iBAAiB,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;KAChD,CACF;IAqBD;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
1
+ {"version":3,"file":"flow-type.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAmCD;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC;IACnG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;gBACS,KAAK,EAAE,0BAA0B;IAO7C;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAWtC,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAC/D;QACE,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAA;QACrC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;QACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;QAChE,eAAe,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;QAChF,iBAAiB,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;QAC/C,cAAc,EAAE,OAAO,CAAA;KACxB,CACF;IAqBD;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}