@flowcore/sdk 1.15.0 → 1.16.0

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 (172) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/esm/commands/api-key/api-key.create.d.ts +1 -1
  3. package/esm/commands/api-key/api-key.create.d.ts.map +1 -1
  4. package/esm/commands/api-key/api-key.create.js +1 -1
  5. package/esm/commands/api-key/api-key.delete.d.ts +1 -1
  6. package/esm/commands/api-key/api-key.delete.d.ts.map +1 -1
  7. package/esm/commands/api-key/api-key.delete.js +1 -1
  8. package/esm/commands/api-key/api-key.list.d.ts +1 -1
  9. package/esm/commands/api-key/api-key.list.d.ts.map +1 -1
  10. package/esm/commands/api-key/api-key.list.js +1 -1
  11. package/esm/commands/container-registry/container-registry.delete.d.ts +1 -1
  12. package/esm/commands/container-registry/container-registry.delete.d.ts.map +1 -1
  13. package/esm/commands/container-registry/container-registry.delete.js +2 -1
  14. package/esm/commands/container-registry/container-registry.fetch.d.ts +1 -1
  15. package/esm/commands/container-registry/container-registry.fetch.d.ts.map +1 -1
  16. package/esm/commands/container-registry/container-registry.fetch.js +2 -1
  17. package/esm/commands/container-registry/container-registry.list.d.ts +1 -1
  18. package/esm/commands/container-registry/container-registry.list.d.ts.map +1 -1
  19. package/esm/commands/container-registry/container-registry.list.js +2 -1
  20. package/esm/commands/data-core/data-core.delete-request.d.ts +1 -1
  21. package/esm/commands/data-core/data-core.delete-request.d.ts.map +1 -1
  22. package/esm/commands/data-core/data-core.delete-request.js +1 -1
  23. package/esm/commands/event-type/event-type.delete-request.d.ts +1 -1
  24. package/esm/commands/event-type/event-type.delete-request.d.ts.map +1 -1
  25. package/esm/commands/event-type/event-type.delete-request.js +1 -1
  26. package/esm/commands/event-type/event-type.info.d.ts +35 -0
  27. package/esm/commands/event-type/event-type.info.d.ts.map +1 -0
  28. package/esm/commands/event-type/event-type.info.js +58 -0
  29. package/esm/commands/event-type/event-type.truncate-request.d.ts +1 -1
  30. package/esm/commands/event-type/event-type.truncate-request.d.ts.map +1 -1
  31. package/esm/commands/event-type/event-type.truncate-request.js +1 -1
  32. package/esm/commands/events/event.list.d.ts +62 -0
  33. package/esm/commands/events/event.list.d.ts.map +1 -0
  34. package/esm/commands/events/event.list.js +53 -0
  35. package/esm/commands/events/time-bucket.list.d.ts +49 -0
  36. package/esm/commands/events/time-bucket.list.d.ts.map +1 -0
  37. package/esm/commands/events/time-bucket.list.js +50 -0
  38. package/esm/commands/flow-type/flow-type.delete-request.d.ts +1 -1
  39. package/esm/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
  40. package/esm/commands/flow-type/flow-type.delete-request.js +1 -1
  41. package/esm/commands/index.d.ts +3 -1
  42. package/esm/commands/index.d.ts.map +1 -1
  43. package/esm/commands/index.js +4 -2
  44. package/esm/commands/secret/secret.create.d.ts +1 -1
  45. package/esm/commands/secret/secret.create.d.ts.map +1 -1
  46. package/esm/commands/secret/secret.create.js +1 -1
  47. package/esm/commands/secret/secret.delete.d.ts +1 -1
  48. package/esm/commands/secret/secret.delete.d.ts.map +1 -1
  49. package/esm/commands/secret/secret.delete.js +1 -1
  50. package/esm/commands/secret/secret.list.d.ts +1 -1
  51. package/esm/commands/secret/secret.list.d.ts.map +1 -1
  52. package/esm/commands/secret/secret.list.js +1 -1
  53. package/esm/commands/tenant/tenant.list.d.ts +1 -1
  54. package/esm/commands/tenant/tenant.list.d.ts.map +1 -1
  55. package/esm/commands/tenant/tenant.list.js +1 -1
  56. package/esm/commands/variable/variable.create.d.ts +1 -1
  57. package/esm/commands/variable/variable.create.d.ts.map +1 -1
  58. package/esm/commands/variable/variable.create.js +1 -1
  59. package/esm/commands/variable/variable.delete.d.ts +1 -1
  60. package/esm/commands/variable/variable.delete.d.ts.map +1 -1
  61. package/esm/commands/variable/variable.delete.js +1 -1
  62. package/esm/commands/variable/variable.list.d.ts +1 -1
  63. package/esm/commands/variable/variable.list.d.ts.map +1 -1
  64. package/esm/commands/variable/variable.list.js +1 -1
  65. package/esm/common/command-custom.d.ts +36 -0
  66. package/esm/common/command-custom.d.ts.map +1 -0
  67. package/esm/common/command-custom.js +28 -0
  68. package/esm/common/command-graphql.d.ts +19 -0
  69. package/esm/common/command-graphql.d.ts.map +1 -0
  70. package/esm/common/command-graphql.js +30 -0
  71. package/esm/common/command.d.ts +1 -17
  72. package/esm/common/command.d.ts.map +1 -1
  73. package/esm/common/command.js +0 -29
  74. package/esm/common/flowcore-client.d.ts.map +1 -1
  75. package/esm/common/flowcore-client.js +5 -2
  76. package/esm/common/notification-client.d.ts.map +1 -1
  77. package/esm/common/notification-client.js +4 -1
  78. package/esm/exceptions/client-error.d.ts +2 -1
  79. package/esm/exceptions/client-error.d.ts.map +1 -1
  80. package/esm/exceptions/client-error.js +8 -2
  81. package/esm/mod.d.ts +2 -0
  82. package/esm/mod.d.ts.map +1 -1
  83. package/esm/mod.js +2 -0
  84. package/package.json +1 -1
  85. package/script/commands/api-key/api-key.create.d.ts +1 -1
  86. package/script/commands/api-key/api-key.create.d.ts.map +1 -1
  87. package/script/commands/api-key/api-key.create.js +2 -2
  88. package/script/commands/api-key/api-key.delete.d.ts +1 -1
  89. package/script/commands/api-key/api-key.delete.d.ts.map +1 -1
  90. package/script/commands/api-key/api-key.delete.js +2 -2
  91. package/script/commands/api-key/api-key.list.d.ts +1 -1
  92. package/script/commands/api-key/api-key.list.d.ts.map +1 -1
  93. package/script/commands/api-key/api-key.list.js +2 -2
  94. package/script/commands/container-registry/container-registry.delete.d.ts +1 -1
  95. package/script/commands/container-registry/container-registry.delete.d.ts.map +1 -1
  96. package/script/commands/container-registry/container-registry.delete.js +4 -3
  97. package/script/commands/container-registry/container-registry.fetch.d.ts +1 -1
  98. package/script/commands/container-registry/container-registry.fetch.d.ts.map +1 -1
  99. package/script/commands/container-registry/container-registry.fetch.js +4 -3
  100. package/script/commands/container-registry/container-registry.list.d.ts +1 -1
  101. package/script/commands/container-registry/container-registry.list.d.ts.map +1 -1
  102. package/script/commands/container-registry/container-registry.list.js +4 -3
  103. package/script/commands/data-core/data-core.delete-request.d.ts +1 -1
  104. package/script/commands/data-core/data-core.delete-request.d.ts.map +1 -1
  105. package/script/commands/data-core/data-core.delete-request.js +2 -2
  106. package/script/commands/event-type/event-type.delete-request.d.ts +1 -1
  107. package/script/commands/event-type/event-type.delete-request.d.ts.map +1 -1
  108. package/script/commands/event-type/event-type.delete-request.js +2 -2
  109. package/script/commands/event-type/event-type.info.d.ts +35 -0
  110. package/script/commands/event-type/event-type.info.d.ts.map +1 -0
  111. package/script/commands/event-type/event-type.info.js +62 -0
  112. package/script/commands/event-type/event-type.truncate-request.d.ts +1 -1
  113. package/script/commands/event-type/event-type.truncate-request.d.ts.map +1 -1
  114. package/script/commands/event-type/event-type.truncate-request.js +2 -2
  115. package/script/commands/events/event.list.d.ts +62 -0
  116. package/script/commands/events/event.list.d.ts.map +1 -0
  117. package/script/commands/events/event.list.js +57 -0
  118. package/script/commands/events/time-bucket.list.d.ts +49 -0
  119. package/script/commands/events/time-bucket.list.d.ts.map +1 -0
  120. package/script/commands/events/time-bucket.list.js +54 -0
  121. package/script/commands/flow-type/flow-type.delete-request.d.ts +1 -1
  122. package/script/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
  123. package/script/commands/flow-type/flow-type.delete-request.js +2 -2
  124. package/script/commands/index.d.ts +3 -1
  125. package/script/commands/index.d.ts.map +1 -1
  126. package/script/commands/index.js +4 -2
  127. package/script/commands/secret/secret.create.d.ts +1 -1
  128. package/script/commands/secret/secret.create.d.ts.map +1 -1
  129. package/script/commands/secret/secret.create.js +2 -2
  130. package/script/commands/secret/secret.delete.d.ts +1 -1
  131. package/script/commands/secret/secret.delete.d.ts.map +1 -1
  132. package/script/commands/secret/secret.delete.js +2 -2
  133. package/script/commands/secret/secret.list.d.ts +1 -1
  134. package/script/commands/secret/secret.list.d.ts.map +1 -1
  135. package/script/commands/secret/secret.list.js +2 -2
  136. package/script/commands/tenant/tenant.list.d.ts +1 -1
  137. package/script/commands/tenant/tenant.list.d.ts.map +1 -1
  138. package/script/commands/tenant/tenant.list.js +2 -2
  139. package/script/commands/variable/variable.create.d.ts +1 -1
  140. package/script/commands/variable/variable.create.d.ts.map +1 -1
  141. package/script/commands/variable/variable.create.js +2 -2
  142. package/script/commands/variable/variable.delete.d.ts +1 -1
  143. package/script/commands/variable/variable.delete.d.ts.map +1 -1
  144. package/script/commands/variable/variable.delete.js +2 -2
  145. package/script/commands/variable/variable.list.d.ts +1 -1
  146. package/script/commands/variable/variable.list.d.ts.map +1 -1
  147. package/script/commands/variable/variable.list.js +2 -2
  148. package/script/common/command-custom.d.ts +36 -0
  149. package/script/common/command-custom.d.ts.map +1 -0
  150. package/script/common/command-custom.js +32 -0
  151. package/script/common/command-graphql.d.ts +19 -0
  152. package/script/common/command-graphql.d.ts.map +1 -0
  153. package/script/common/command-graphql.js +34 -0
  154. package/script/common/command.d.ts +1 -17
  155. package/script/common/command.d.ts.map +1 -1
  156. package/script/common/command.js +1 -31
  157. package/script/common/flowcore-client.d.ts.map +1 -1
  158. package/script/common/flowcore-client.js +5 -2
  159. package/script/common/notification-client.d.ts.map +1 -1
  160. package/script/common/notification-client.js +8 -5
  161. package/script/exceptions/client-error.d.ts +2 -1
  162. package/script/exceptions/client-error.d.ts.map +1 -1
  163. package/script/exceptions/client-error.js +8 -2
  164. package/script/mod.d.ts +2 -0
  165. package/script/mod.d.ts.map +1 -1
  166. package/script/mod.js +2 -0
  167. package/esm/commands/events/events.fetch-first-and-last-time-buckets.d.ts +0 -45
  168. package/esm/commands/events/events.fetch-first-and-last-time-buckets.d.ts.map +0 -1
  169. package/esm/commands/events/events.fetch-first-and-last-time-buckets.js +0 -40
  170. package/script/commands/events/events.fetch-first-and-last-time-buckets.d.ts +0 -45
  171. package/script/commands/events/events.fetch-first-and-last-time-buckets.d.ts.map +0 -1
  172. package/script/commands/events/events.fetch-first-and-last-time-buckets.js +0 -44
@@ -1,45 +0,0 @@
1
- import { Command } from "../../common/command.js";
2
- /**
3
- * The input for the events fetch indexes command
4
- */
5
- export interface EventsFetchFirstAndLastTimeBucketsInput {
6
- /** the tenant name */
7
- tenant: string;
8
- /** the data core id */
9
- dataCoreId: string;
10
- /** the flow type name */
11
- flowType: string;
12
- /** the event type name */
13
- eventType: string;
14
- }
15
- /**
16
- * The output for the events fetch indexes command
17
- */
18
- export interface EventsFetchFirstAndLastTimeBucketsOutput {
19
- /** the first time bucket */
20
- first?: string;
21
- /** the last time bucket */
22
- last?: string;
23
- }
24
- /**
25
- * Fetch time buckets for an event type
26
- */
27
- export declare class EventsFetchFirstAndLastTimeBucketsCommand extends Command<EventsFetchFirstAndLastTimeBucketsInput, EventsFetchFirstAndLastTimeBucketsOutput> {
28
- /**
29
- * Get the method for the request
30
- */
31
- protected getMethod(): string;
32
- /**
33
- * Get the base url for the request
34
- */
35
- protected getBaseUrl(): string;
36
- /**
37
- * Get the path for the request
38
- */
39
- protected getPath(): string;
40
- /**
41
- * Parse the response
42
- */
43
- protected parseResponse(rawResponse: unknown): EventsFetchFirstAndLastTimeBucketsOutput;
44
- }
45
- //# sourceMappingURL=events.fetch-first-and-last-time-buckets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.fetch-first-and-last-time-buckets.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch-first-and-last-time-buckets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAUD;;GAEG;AACH,qBAAa,yCAA0C,SAAQ,OAAO,CACpE,uCAAuC,EACvC,wCAAwC,CACzC;IACC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAGpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,wCAAwC;CAIjG"}
@@ -1,40 +0,0 @@
1
- import { Type } from "@sinclair/typebox";
2
- import { parseResponseHelper } from "../../utils/parse-response-helper.js";
3
- import { Command } from "../../common/command.js";
4
- /**
5
- * The response schema for the events fetch time buckets by names command
6
- */
7
- const responseSchema = Type.Object({
8
- first: Type.Optional(Type.String()),
9
- last: Type.Optional(Type.String()),
10
- });
11
- /**
12
- * Fetch time buckets for an event type
13
- */
14
- export class EventsFetchFirstAndLastTimeBucketsCommand extends Command {
15
- /**
16
- * Get the method for the request
17
- */
18
- getMethod() {
19
- return "GET";
20
- }
21
- /**
22
- * Get the base url for the request
23
- */
24
- getBaseUrl() {
25
- return "https://event-source.api.flowcore.io";
26
- }
27
- /**
28
- * Get the path for the request
29
- */
30
- getPath() {
31
- return `/api/v1/time-buckets/first-and-last/${this.input.tenant}/${this.input.dataCoreId}/${this.input.flowType}/${this.input.eventType}`;
32
- }
33
- /**
34
- * Parse the response
35
- */
36
- parseResponse(rawResponse) {
37
- const response = parseResponseHelper(responseSchema, rawResponse);
38
- return response;
39
- }
40
- }
@@ -1,45 +0,0 @@
1
- import { Command } from "../../common/command.js";
2
- /**
3
- * The input for the events fetch indexes command
4
- */
5
- export interface EventsFetchFirstAndLastTimeBucketsInput {
6
- /** the tenant name */
7
- tenant: string;
8
- /** the data core id */
9
- dataCoreId: string;
10
- /** the flow type name */
11
- flowType: string;
12
- /** the event type name */
13
- eventType: string;
14
- }
15
- /**
16
- * The output for the events fetch indexes command
17
- */
18
- export interface EventsFetchFirstAndLastTimeBucketsOutput {
19
- /** the first time bucket */
20
- first?: string;
21
- /** the last time bucket */
22
- last?: string;
23
- }
24
- /**
25
- * Fetch time buckets for an event type
26
- */
27
- export declare class EventsFetchFirstAndLastTimeBucketsCommand extends Command<EventsFetchFirstAndLastTimeBucketsInput, EventsFetchFirstAndLastTimeBucketsOutput> {
28
- /**
29
- * Get the method for the request
30
- */
31
- protected getMethod(): string;
32
- /**
33
- * Get the base url for the request
34
- */
35
- protected getBaseUrl(): string;
36
- /**
37
- * Get the path for the request
38
- */
39
- protected getPath(): string;
40
- /**
41
- * Parse the response
42
- */
43
- protected parseResponse(rawResponse: unknown): EventsFetchFirstAndLastTimeBucketsOutput;
44
- }
45
- //# sourceMappingURL=events.fetch-first-and-last-time-buckets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.fetch-first-and-last-time-buckets.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch-first-and-last-time-buckets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAUD;;GAEG;AACH,qBAAa,yCAA0C,SAAQ,OAAO,CACpE,uCAAuC,EACvC,wCAAwC,CACzC;IACC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAGpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,wCAAwC;CAIjG"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventsFetchFirstAndLastTimeBucketsCommand = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
5
- const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
6
- const command_js_1 = require("../../common/command.js");
7
- /**
8
- * The response schema for the events fetch time buckets by names command
9
- */
10
- const responseSchema = typebox_1.Type.Object({
11
- first: typebox_1.Type.Optional(typebox_1.Type.String()),
12
- last: typebox_1.Type.Optional(typebox_1.Type.String()),
13
- });
14
- /**
15
- * Fetch time buckets for an event type
16
- */
17
- class EventsFetchFirstAndLastTimeBucketsCommand extends command_js_1.Command {
18
- /**
19
- * Get the method for the request
20
- */
21
- getMethod() {
22
- return "GET";
23
- }
24
- /**
25
- * Get the base url for the request
26
- */
27
- getBaseUrl() {
28
- return "https://event-source.api.flowcore.io";
29
- }
30
- /**
31
- * Get the path for the request
32
- */
33
- getPath() {
34
- return `/api/v1/time-buckets/first-and-last/${this.input.tenant}/${this.input.dataCoreId}/${this.input.flowType}/${this.input.eventType}`;
35
- }
36
- /**
37
- * Parse the response
38
- */
39
- parseResponse(rawResponse) {
40
- const response = (0, parse_response_helper_js_1.parseResponseHelper)(responseSchema, rawResponse);
41
- return response;
42
- }
43
- }
44
- exports.EventsFetchFirstAndLastTimeBucketsCommand = EventsFetchFirstAndLastTimeBucketsCommand;