@flowcore/sdk 1.15.0 → 1.17.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 (196) hide show
  1. package/CHANGELOG.md +29 -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/data-core/data-core.fetch.d.ts +22 -5
  24. package/esm/commands/data-core/data-core.fetch.d.ts.map +1 -1
  25. package/esm/commands/data-core/data-core.fetch.js +32 -7
  26. package/esm/commands/event-type/event-type.delete-request.d.ts +1 -1
  27. package/esm/commands/event-type/event-type.delete-request.d.ts.map +1 -1
  28. package/esm/commands/event-type/event-type.delete-request.js +1 -1
  29. package/esm/commands/event-type/event-type.info.d.ts +35 -0
  30. package/esm/commands/event-type/event-type.info.d.ts.map +1 -0
  31. package/esm/commands/event-type/event-type.info.js +58 -0
  32. package/esm/commands/event-type/event-type.truncate-request.d.ts +1 -1
  33. package/esm/commands/event-type/event-type.truncate-request.d.ts.map +1 -1
  34. package/esm/commands/event-type/event-type.truncate-request.js +1 -1
  35. package/esm/commands/events/event.list.d.ts +62 -0
  36. package/esm/commands/events/event.list.d.ts.map +1 -0
  37. package/esm/commands/events/event.list.js +53 -0
  38. package/esm/commands/events/time-bucket.list.d.ts +49 -0
  39. package/esm/commands/events/time-bucket.list.d.ts.map +1 -0
  40. package/esm/commands/events/time-bucket.list.js +50 -0
  41. package/esm/commands/flow-type/flow-type.delete-request.d.ts +1 -1
  42. package/esm/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
  43. package/esm/commands/flow-type/flow-type.delete-request.js +1 -1
  44. package/esm/commands/index.d.ts +3 -1
  45. package/esm/commands/index.d.ts.map +1 -1
  46. package/esm/commands/index.js +4 -2
  47. package/esm/commands/secret/secret.create.d.ts +1 -1
  48. package/esm/commands/secret/secret.create.d.ts.map +1 -1
  49. package/esm/commands/secret/secret.create.js +1 -1
  50. package/esm/commands/secret/secret.delete.d.ts +1 -1
  51. package/esm/commands/secret/secret.delete.d.ts.map +1 -1
  52. package/esm/commands/secret/secret.delete.js +1 -1
  53. package/esm/commands/secret/secret.list.d.ts +1 -1
  54. package/esm/commands/secret/secret.list.d.ts.map +1 -1
  55. package/esm/commands/secret/secret.list.js +1 -1
  56. package/esm/commands/tenant/tenant.list.d.ts +1 -1
  57. package/esm/commands/tenant/tenant.list.d.ts.map +1 -1
  58. package/esm/commands/tenant/tenant.list.js +1 -1
  59. package/esm/commands/variable/variable.create.d.ts +1 -1
  60. package/esm/commands/variable/variable.create.d.ts.map +1 -1
  61. package/esm/commands/variable/variable.create.js +1 -1
  62. package/esm/commands/variable/variable.delete.d.ts +1 -1
  63. package/esm/commands/variable/variable.delete.d.ts.map +1 -1
  64. package/esm/commands/variable/variable.delete.js +1 -1
  65. package/esm/commands/variable/variable.list.d.ts +1 -1
  66. package/esm/commands/variable/variable.list.d.ts.map +1 -1
  67. package/esm/commands/variable/variable.list.js +1 -1
  68. package/esm/common/command-custom.d.ts +36 -0
  69. package/esm/common/command-custom.d.ts.map +1 -0
  70. package/esm/common/command-custom.js +28 -0
  71. package/esm/common/command-graphql.d.ts +19 -0
  72. package/esm/common/command-graphql.d.ts.map +1 -0
  73. package/esm/common/command-graphql.js +30 -0
  74. package/esm/common/command.d.ts +1 -17
  75. package/esm/common/command.d.ts.map +1 -1
  76. package/esm/common/command.js +0 -29
  77. package/esm/common/flowcore-client.d.ts.map +1 -1
  78. package/esm/common/flowcore-client.js +5 -2
  79. package/esm/common/notification-client.d.ts.map +1 -1
  80. package/esm/common/notification-client.js +4 -1
  81. package/esm/contracts/data-core.d.ts +2 -24
  82. package/esm/contracts/data-core.d.ts.map +1 -1
  83. package/esm/contracts/data-core.js +1 -29
  84. package/esm/contracts/event-type.d.ts +1 -19
  85. package/esm/contracts/event-type.d.ts.map +1 -1
  86. package/esm/contracts/event-type.js +1 -26
  87. package/esm/contracts/flow-type.d.ts +1 -18
  88. package/esm/contracts/flow-type.d.ts.map +1 -1
  89. package/esm/contracts/flow-type.js +1 -23
  90. package/esm/exceptions/client-error.d.ts +2 -1
  91. package/esm/exceptions/client-error.d.ts.map +1 -1
  92. package/esm/exceptions/client-error.js +8 -2
  93. package/esm/mod.d.ts +2 -0
  94. package/esm/mod.d.ts.map +1 -1
  95. package/esm/mod.js +2 -0
  96. package/package.json +1 -1
  97. package/script/commands/api-key/api-key.create.d.ts +1 -1
  98. package/script/commands/api-key/api-key.create.d.ts.map +1 -1
  99. package/script/commands/api-key/api-key.create.js +2 -2
  100. package/script/commands/api-key/api-key.delete.d.ts +1 -1
  101. package/script/commands/api-key/api-key.delete.d.ts.map +1 -1
  102. package/script/commands/api-key/api-key.delete.js +2 -2
  103. package/script/commands/api-key/api-key.list.d.ts +1 -1
  104. package/script/commands/api-key/api-key.list.d.ts.map +1 -1
  105. package/script/commands/api-key/api-key.list.js +2 -2
  106. package/script/commands/container-registry/container-registry.delete.d.ts +1 -1
  107. package/script/commands/container-registry/container-registry.delete.d.ts.map +1 -1
  108. package/script/commands/container-registry/container-registry.delete.js +4 -3
  109. package/script/commands/container-registry/container-registry.fetch.d.ts +1 -1
  110. package/script/commands/container-registry/container-registry.fetch.d.ts.map +1 -1
  111. package/script/commands/container-registry/container-registry.fetch.js +4 -3
  112. package/script/commands/container-registry/container-registry.list.d.ts +1 -1
  113. package/script/commands/container-registry/container-registry.list.d.ts.map +1 -1
  114. package/script/commands/container-registry/container-registry.list.js +4 -3
  115. package/script/commands/data-core/data-core.delete-request.d.ts +1 -1
  116. package/script/commands/data-core/data-core.delete-request.d.ts.map +1 -1
  117. package/script/commands/data-core/data-core.delete-request.js +2 -2
  118. package/script/commands/data-core/data-core.fetch.d.ts +22 -5
  119. package/script/commands/data-core/data-core.fetch.d.ts.map +1 -1
  120. package/script/commands/data-core/data-core.fetch.js +32 -7
  121. package/script/commands/event-type/event-type.delete-request.d.ts +1 -1
  122. package/script/commands/event-type/event-type.delete-request.d.ts.map +1 -1
  123. package/script/commands/event-type/event-type.delete-request.js +2 -2
  124. package/script/commands/event-type/event-type.info.d.ts +35 -0
  125. package/script/commands/event-type/event-type.info.d.ts.map +1 -0
  126. package/script/commands/event-type/event-type.info.js +62 -0
  127. package/script/commands/event-type/event-type.truncate-request.d.ts +1 -1
  128. package/script/commands/event-type/event-type.truncate-request.d.ts.map +1 -1
  129. package/script/commands/event-type/event-type.truncate-request.js +2 -2
  130. package/script/commands/events/event.list.d.ts +62 -0
  131. package/script/commands/events/event.list.d.ts.map +1 -0
  132. package/script/commands/events/event.list.js +57 -0
  133. package/script/commands/events/time-bucket.list.d.ts +49 -0
  134. package/script/commands/events/time-bucket.list.d.ts.map +1 -0
  135. package/script/commands/events/time-bucket.list.js +54 -0
  136. package/script/commands/flow-type/flow-type.delete-request.d.ts +1 -1
  137. package/script/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
  138. package/script/commands/flow-type/flow-type.delete-request.js +2 -2
  139. package/script/commands/index.d.ts +3 -1
  140. package/script/commands/index.d.ts.map +1 -1
  141. package/script/commands/index.js +4 -2
  142. package/script/commands/secret/secret.create.d.ts +1 -1
  143. package/script/commands/secret/secret.create.d.ts.map +1 -1
  144. package/script/commands/secret/secret.create.js +2 -2
  145. package/script/commands/secret/secret.delete.d.ts +1 -1
  146. package/script/commands/secret/secret.delete.d.ts.map +1 -1
  147. package/script/commands/secret/secret.delete.js +2 -2
  148. package/script/commands/secret/secret.list.d.ts +1 -1
  149. package/script/commands/secret/secret.list.d.ts.map +1 -1
  150. package/script/commands/secret/secret.list.js +2 -2
  151. package/script/commands/tenant/tenant.list.d.ts +1 -1
  152. package/script/commands/tenant/tenant.list.d.ts.map +1 -1
  153. package/script/commands/tenant/tenant.list.js +2 -2
  154. package/script/commands/variable/variable.create.d.ts +1 -1
  155. package/script/commands/variable/variable.create.d.ts.map +1 -1
  156. package/script/commands/variable/variable.create.js +2 -2
  157. package/script/commands/variable/variable.delete.d.ts +1 -1
  158. package/script/commands/variable/variable.delete.d.ts.map +1 -1
  159. package/script/commands/variable/variable.delete.js +2 -2
  160. package/script/commands/variable/variable.list.d.ts +1 -1
  161. package/script/commands/variable/variable.list.d.ts.map +1 -1
  162. package/script/commands/variable/variable.list.js +2 -2
  163. package/script/common/command-custom.d.ts +36 -0
  164. package/script/common/command-custom.d.ts.map +1 -0
  165. package/script/common/command-custom.js +32 -0
  166. package/script/common/command-graphql.d.ts +19 -0
  167. package/script/common/command-graphql.d.ts.map +1 -0
  168. package/script/common/command-graphql.js +34 -0
  169. package/script/common/command.d.ts +1 -17
  170. package/script/common/command.d.ts.map +1 -1
  171. package/script/common/command.js +1 -31
  172. package/script/common/flowcore-client.d.ts.map +1 -1
  173. package/script/common/flowcore-client.js +5 -2
  174. package/script/common/notification-client.d.ts.map +1 -1
  175. package/script/common/notification-client.js +8 -5
  176. package/script/contracts/data-core.d.ts +2 -24
  177. package/script/contracts/data-core.d.ts.map +1 -1
  178. package/script/contracts/data-core.js +2 -31
  179. package/script/contracts/event-type.d.ts +1 -19
  180. package/script/contracts/event-type.d.ts.map +1 -1
  181. package/script/contracts/event-type.js +1 -27
  182. package/script/contracts/flow-type.d.ts +1 -18
  183. package/script/contracts/flow-type.d.ts.map +1 -1
  184. package/script/contracts/flow-type.js +1 -24
  185. package/script/exceptions/client-error.d.ts +2 -1
  186. package/script/exceptions/client-error.d.ts.map +1 -1
  187. package/script/exceptions/client-error.js +8 -2
  188. package/script/mod.d.ts +2 -0
  189. package/script/mod.d.ts.map +1 -1
  190. package/script/mod.js +2 -0
  191. package/esm/commands/events/events.fetch-first-and-last-time-buckets.d.ts +0 -45
  192. package/esm/commands/events/events.fetch-first-and-last-time-buckets.d.ts.map +0 -1
  193. package/esm/commands/events/events.fetch-first-and-last-time-buckets.js +0 -40
  194. package/script/commands/events/events.fetch-first-and-last-time-buckets.d.ts +0 -45
  195. package/script/commands/events/events.fetch-first-and-last-time-buckets.d.ts.map +0 -1
  196. package/script/commands/events/events.fetch-first-and-last-time-buckets.js +0 -44
@@ -1,10 +1,11 @@
1
- import { type Static, type TArray, 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 TObject, type TString, type TUnion } from "@sinclair/typebox";
2
2
  /**
3
3
  * The schema for a data core
4
4
  */
5
5
  export declare const DataCoreSchema: TObject<{
6
6
  id: TString;
7
7
  tenantId: TString;
8
+ tenant: TString;
8
9
  name: TString;
9
10
  description: TString;
10
11
  accessControl: TUnion<[TLiteral<"public">, TLiteral<"private">]>;
@@ -15,27 +16,4 @@ export declare const DataCoreSchema: TObject<{
15
16
  * The type for a data core
16
17
  */
17
18
  export type DataCore = Static<typeof DataCoreSchema>;
18
- /**
19
- * The schema for a data core v0
20
- */
21
- export declare const DataCoreV0Schema: TObject<{
22
- id: TString;
23
- name: TString;
24
- description: TUnion<[TString, TNull]>;
25
- isPublic: TBoolean;
26
- configuration: TOptional<TArray<TObject<{
27
- key: TLiteral<"DELETE_PROTECTION_ENABLED">;
28
- value: TUnion<[TLiteral<"true">, TLiteral<"false">]>;
29
- }>>>;
30
- truncating: TBoolean;
31
- deleting: TBoolean;
32
- }>;
33
- /**
34
- * The type for a data core v0
35
- */
36
- export type DataCoreV0 = Static<typeof DataCoreV0Schema>;
37
- /**
38
- * Convert a data core v0 to a data core
39
- */
40
- export declare const dataCoreV0ToDataCore: (dataCoreV0: DataCoreV0, organizationId: string) => DataCore;
41
19
  //# sourceMappingURL=data-core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-core.d.ts","sourceRoot":"","sources":["../../src/contracts/data-core.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,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;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IAChE,gBAAgB,EAAE,QAAQ,CAAA;IAC1B,UAAU,EAAE,QAAQ,CAAA;CACrB,CAQC,CAAA;AACF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE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A;IAC1B,UAAU,EAAE,QAAQ,CAAA;CACrB,CASC,CAAA;AACF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -5,38 +5,10 @@ import { Type, } from "@sinclair/typebox";
5
5
  export const DataCoreSchema = Type.Object({
6
6
  id: Type.String(),
7
7
  tenantId: Type.String(),
8
+ tenant: Type.String(),
8
9
  name: Type.String(),
9
10
  description: Type.String(),
10
11
  accessControl: Type.Union([Type.Literal("public"), Type.Literal("private")]),
11
12
  deleteProtection: Type.Boolean(),
12
13
  isDeleting: Type.Boolean(),
13
14
  });
14
- /**
15
- * The schema for a data core v0
16
- */
17
- export const DataCoreV0Schema = Type.Object({
18
- id: Type.String(),
19
- name: Type.String(),
20
- description: Type.Union([Type.String(), Type.Null()]),
21
- isPublic: Type.Boolean(),
22
- configuration: Type.Optional(Type.Array(Type.Object({
23
- key: Type.Literal("DELETE_PROTECTION_ENABLED"),
24
- value: Type.Union([Type.Literal("true"), Type.Literal("false")]),
25
- }), { minItems: 0, maxItems: 1 })),
26
- truncating: Type.Boolean(),
27
- deleting: Type.Boolean(),
28
- });
29
- /**
30
- * Convert a data core v0 to a data core
31
- */
32
- export const dataCoreV0ToDataCore = (dataCoreV0, organizationId) => {
33
- return {
34
- id: dataCoreV0.id,
35
- tenantId: organizationId,
36
- name: dataCoreV0.name,
37
- description: dataCoreV0.description ?? "",
38
- accessControl: dataCoreV0.isPublic ? "public" : "private",
39
- deleteProtection: dataCoreV0.configuration?.[0]?.value === "true",
40
- isDeleting: dataCoreV0.deleting,
41
- };
42
- };
@@ -1,4 +1,4 @@
1
- import { type Static, type TBoolean, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
1
+ import { type Static, type TBoolean, type TObject, type TString } from "@sinclair/typebox";
2
2
  /**
3
3
  * The schema for an event type
4
4
  */
@@ -16,22 +16,4 @@ export declare const EventTypeSchema: TObject<{
16
16
  * The type for an event type
17
17
  */
18
18
  export type EventType = Static<typeof EventTypeSchema>;
19
- /**
20
- * The schema for an event type v0
21
- */
22
- export declare const EventTypeV0Schema: TObject<{
23
- id: TString;
24
- name: TString;
25
- description: TUnion<[TString, TNull]>;
26
- truncating: TBoolean;
27
- deleting: TBoolean;
28
- }>;
29
- /**
30
- * The type for an event type v0
31
- */
32
- export type EventTypeV0 = Static<typeof EventTypeV0Schema>;
33
- /**
34
- * Convert an event type v0 to an event type
35
- */
36
- export declare const eventTypeV0ToEventType: (eventTypeV0: EventTypeV0, organizationId: string, dataCoreId: string, flowTypeId: string) => EventType;
37
19
  //# sourceMappingURL=event-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,QAAQ,CAAA;IACtB,UAAU,EAAE,QAAQ,CAAA;CACrB,CASC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAEtD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC;IACtC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;IACrC,UAAU,EAAE,QAAQ,CAAA;IACpB,QAAQ,EAAE,QAAQ,CAAA;CACnB,CAMC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE1D;;GAEG;AACH,eAAO,MAAM,sBAAsB,gBACpB,WAAW,kBACR,MAAM,cACV,MAAM,cACN,MAAM,KACjB,SAWF,CAAA"}
1
+ {"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,QAAQ,CAAA;IACtB,UAAU,EAAE,QAAQ,CAAA;CACrB,CASC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Type, } from "@sinclair/typebox";
1
+ import { Type } from "@sinclair/typebox";
2
2
  /**
3
3
  * The schema for an event type
4
4
  */
@@ -12,28 +12,3 @@ export const EventTypeSchema = Type.Object({
12
12
  isTruncating: Type.Boolean(),
13
13
  isDeleting: Type.Boolean(),
14
14
  });
15
- /**
16
- * The schema for an event type v0
17
- */
18
- export const EventTypeV0Schema = Type.Object({
19
- id: Type.String(),
20
- name: Type.String(),
21
- description: Type.Union([Type.String(), Type.Null()]),
22
- truncating: Type.Boolean(),
23
- deleting: Type.Boolean(),
24
- });
25
- /**
26
- * Convert an event type v0 to an event type
27
- */
28
- export const eventTypeV0ToEventType = (eventTypeV0, organizationId, dataCoreId, flowTypeId) => {
29
- return {
30
- id: eventTypeV0.id,
31
- tenantId: organizationId,
32
- dataCoreId,
33
- flowTypeId,
34
- name: eventTypeV0.name,
35
- description: eventTypeV0.description ?? "",
36
- isTruncating: eventTypeV0.truncating,
37
- isDeleting: eventTypeV0.deleting,
38
- };
39
- };
@@ -1,4 +1,4 @@
1
- import { type Static, type TBoolean, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
1
+ import { type Static, type TBoolean, type TObject, type TString } from "@sinclair/typebox";
2
2
  /**
3
3
  * The schema for a flow type
4
4
  */
@@ -14,21 +14,4 @@ export declare const FlowTypeSchema: TObject<{
14
14
  * The type for a flow type
15
15
  */
16
16
  export type FlowType = Static<typeof FlowTypeSchema>;
17
- /**
18
- * The schema for a flow type v0
19
- */
20
- export declare const FlowTypeV0Schema: TObject<{
21
- id: TString;
22
- aggregator: TString;
23
- description: TUnion<[TString, TNull]>;
24
- deleting: TBoolean;
25
- }>;
26
- /**
27
- * The type for a flow type v0
28
- */
29
- export type FlowTypeV0 = Static<typeof FlowTypeV0Schema>;
30
- /**
31
- * Convert a flow type v0 to a flow type
32
- */
33
- export declare const flowTypeV0ToFlowType: (flowTypeV0: FlowTypeV0, organizationId: string, dataCoreId: string) => FlowType;
34
17
  //# sourceMappingURL=flow-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-type.d.ts","sourceRoot":"","sources":["../../src/contracts/flow-type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;CACrB,CAOC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC;IACrC,EAAE,EAAE,OAAO,CAAA;IACX,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;IACrC,QAAQ,EAAE,QAAQ,CAAA;CACnB,CAKC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,oBAAoB,eACnB,UAAU,kBACN,MAAM,cACV,MAAM,KACjB,QASF,CAAA"}
1
+ {"version":3,"file":"flow-type.d.ts","sourceRoot":"","sources":["../../src/contracts/flow-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;CACrB,CAOC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Type, } from "@sinclair/typebox";
1
+ import { Type } from "@sinclair/typebox";
2
2
  /**
3
3
  * The schema for a flow type
4
4
  */
@@ -10,25 +10,3 @@ export const FlowTypeSchema = Type.Object({
10
10
  description: Type.String(),
11
11
  isDeleting: Type.Boolean(),
12
12
  });
13
- /**
14
- * The schema for a flow type v0
15
- */
16
- export const FlowTypeV0Schema = Type.Object({
17
- id: Type.String(),
18
- aggregator: Type.String(),
19
- description: Type.Union([Type.String(), Type.Null()]),
20
- deleting: Type.Boolean(),
21
- });
22
- /**
23
- * Convert a flow type v0 to a flow type
24
- */
25
- export const flowTypeV0ToFlowType = (flowTypeV0, organizationId, dataCoreId) => {
26
- return {
27
- id: flowTypeV0.id,
28
- tenantId: organizationId,
29
- dataCoreId,
30
- name: flowTypeV0.aggregator,
31
- description: flowTypeV0.description ?? "",
32
- isDeleting: flowTypeV0.deleting,
33
- };
34
- };
@@ -3,7 +3,8 @@
3
3
  */
4
4
  export declare class ClientError extends Error {
5
5
  readonly status: number;
6
+ readonly command: string;
6
7
  readonly body?: unknown | undefined;
7
- constructor(message: string, status: number, body?: unknown | undefined);
8
+ constructor(message: string, status: number, command: string, body?: unknown | undefined);
8
9
  }
9
10
  //# sourceMappingURL=client-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-error.d.ts","sourceRoot":"","sources":["../../src/exceptions/client-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;aACS,MAAM,EAAE,MAAM;aAAkB,IAAI,CAAC,EAAE,OAAO;gBAA/E,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,EAAkB,IAAI,CAAC,EAAE,OAAO,YAAA;CAG5F"}
1
+ {"version":3,"file":"client-error.d.ts","sourceRoot":"","sources":["../../src/exceptions/client-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;aAGlB,MAAM,EAAE,MAAM;aACd,OAAO,EAAE,MAAM;aACf,IAAI,CAAC,EAAE,OAAO;gBAH9B,OAAO,EAAE,MAAM,EACC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,OAAO,YAAA;CAIjC"}
@@ -2,14 +2,20 @@
2
2
  * An error thrown when the client request fails
3
3
  */
4
4
  export class ClientError extends Error {
5
- constructor(message, status, body) {
6
- super(`Client failed with ${status}: ${body ? JSON.stringify(body) : message}`);
5
+ constructor(message, status, command, body) {
6
+ super(`${command} failed with ${status}: ${body ? JSON.stringify(body) : message}`);
7
7
  Object.defineProperty(this, "status", {
8
8
  enumerable: true,
9
9
  configurable: true,
10
10
  writable: true,
11
11
  value: status
12
12
  });
13
+ Object.defineProperty(this, "command", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: command
18
+ });
13
19
  Object.defineProperty(this, "body", {
14
20
  enumerable: true,
15
21
  configurable: true,
package/esm/mod.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export * from "./commands/index.js";
2
2
  export * from "./common/command.js";
3
+ export * from "./common/command-custom.js";
4
+ export * from "./common/command-graphql.js";
3
5
  export * from "./common/flowcore-client.js";
4
6
  export * from "./common/notification-client.js";
5
7
  export * from "./contracts/index.js";
package/esm/mod.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA"}
package/esm/mod.js CHANGED
@@ -1,5 +1,7 @@
1
1
  export * from "./commands/index.js";
2
2
  export * from "./common/command.js";
3
+ export * from "./common/command-custom.js";
4
+ export * from "./common/command-graphql.js";
3
5
  export * from "./common/flowcore-client.js";
4
6
  export * from "./common/notification-client.js";
5
7
  export * from "./contracts/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.15.0",
3
+ "version": "1.17.0",
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 { GraphQlCommand } from "../../common/command.js";
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
2
  import type { ApiKey } from "../../contracts/api-key.js";
3
3
  import type { FlowcoreClient } from "../../common/flowcore-client.js";
4
4
  /**
@@ -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,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;IACH,UAAmB,YAAY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O,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"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApiKeyCreateCommand = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
- const command_js_1 = require("../../common/command.js");
5
+ const command_graphql_js_1 = require("../../common/command-graphql.js");
6
6
  const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
7
  const api_key_list_js_1 = require("./api-key.list.js");
8
8
  const command_error_js_1 = require("../../exceptions/command-error.js");
@@ -29,7 +29,7 @@ const responseSchema = typebox_1.Type.Object({
29
29
  /**
30
30
  * Create an API key
31
31
  */
32
- class ApiKeyCreateCommand extends command_js_1.GraphQlCommand {
32
+ class ApiKeyCreateCommand extends command_graphql_js_1.GraphQlCommand {
33
33
  constructor() {
34
34
  super(...arguments);
35
35
  /**
@@ -1,4 +1,4 @@
1
- import { GraphQlCommand } from "../../common/command.js";
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
2
  /**
3
3
  * The input for the API key delete command
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAyBD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACjF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO;IAW/D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
1
+ {"version":3,"file":"api-key.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAIhE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAyBD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACjF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO;IAW/D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApiKeyDeleteCommand = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
- const command_js_1 = require("../../common/command.js");
5
+ const command_graphql_js_1 = require("../../common/command-graphql.js");
6
6
  const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
7
  const command_error_js_1 = require("../../exceptions/command-error.js");
8
8
  const graphQlQueryById = `
@@ -25,7 +25,7 @@ const responseSchema = typebox_1.Type.Object({
25
25
  /**
26
26
  * Delete an API key
27
27
  */
28
- class ApiKeyDeleteCommand extends command_js_1.GraphQlCommand {
28
+ class ApiKeyDeleteCommand extends command_graphql_js_1.GraphQlCommand {
29
29
  constructor() {
30
30
  super(...arguments);
31
31
  /**
@@ -1,4 +1,4 @@
1
- import { GraphQlCommand } from "../../common/command.js";
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
2
  import type { ApiKey } from "../../contracts/api-key.js";
3
3
  /**
4
4
  * The input for the API key list command
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.list.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AA0BD;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC9E;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE;IAKhE;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
1
+ {"version":3,"file":"api-key.list.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AA0BD;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC9E;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE;IAKhE;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApiKeyListCommand = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
- const command_js_1 = require("../../common/command.js");
5
+ const command_graphql_js_1 = require("../../common/command-graphql.js");
6
6
  const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
7
  const graphQlQueryById = `
8
8
  query FLOWCORE_SDK_API_KEY_LIST($tenantId: ID!) {
@@ -29,7 +29,7 @@ const responseSchema = typebox_1.Type.Object({
29
29
  /**
30
30
  * List api keys
31
31
  */
32
- class ApiKeyListCommand extends command_js_1.GraphQlCommand {
32
+ class ApiKeyListCommand extends command_graphql_js_1.GraphQlCommand {
33
33
  constructor() {
34
34
  super(...arguments);
35
35
  /**
@@ -1,5 +1,5 @@
1
+ import { Command } from "../../common/command.js";
1
2
  import { type ContainerRegistryDelete } from "../../contracts/container.js";
2
- import { Command } from "../../mod.js";
3
3
  export interface ContainerRegistryDeleteInput {
4
4
  /** The id of the new container-registry */
5
5
  containerId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"container-registry.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAiC,MAAM,8BAA8B,CAAA;AAC1G,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAA;AAE3D,MAAM,WAAW,4BAA4B;IAC3C,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,4BAA4B,EAAE,uBAAuB,CAAC;cAC7F,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,uBAAuB;CAG7E"}
1
+ {"version":3,"file":"container-registry.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,uBAAuB,EAAiC,MAAM,8BAA8B,CAAA;AAG1G,MAAM,WAAW,4BAA4B;IAC3C,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,4BAA4B,EAAE,uBAAuB,CAAC;cAC7F,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,uBAAuB;CAG7E"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContainerRegistryDeleteCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
4
5
  const container_js_1 = require("../../contracts/container.js");
5
- const mod_js_1 = require("../../mod.js");
6
- class ContainerRegistryDeleteCommand extends mod_js_1.Command {
6
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
+ class ContainerRegistryDeleteCommand extends command_js_1.Command {
7
8
  getMethod() {
8
9
  return "DELETE";
9
10
  }
@@ -23,7 +24,7 @@ class ContainerRegistryDeleteCommand extends mod_js_1.Command {
23
24
  * Parse the response
24
25
  */
25
26
  parseResponse(response) {
26
- return (0, mod_js_1.parseResponseHelper)(container_js_1.ContainerRegistryDeleteSchema, response);
27
+ return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistryDeleteSchema, response);
27
28
  }
28
29
  }
29
30
  exports.ContainerRegistryDeleteCommand = ContainerRegistryDeleteCommand;
@@ -1,5 +1,5 @@
1
1
  import { type ContainerRegistry } from "../../contracts/container.js";
2
- import { Command } from "../../mod.js";
2
+ import { Command } from "../../common/command.js";
3
3
  export interface ContainerRegistryFetchInput {
4
4
  /** The id of container */
5
5
  containerId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"container-registry.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAA;AAE3D,MAAM,WAAW,2BAA2B;IAC1C,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,6BAA8B,SAAQ,OAAO,CAAC,2BAA2B,EAAE,iBAAiB,CAAC;cACrF,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,iBAAiB;CAGvE"}
1
+ {"version":3,"file":"container-registry.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,MAAM,WAAW,2BAA2B;IAC1C,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,6BAA8B,SAAQ,OAAO,CAAC,2BAA2B,EAAE,iBAAiB,CAAC;cACrF,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,iBAAiB;CAGvE"}
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContainerRegistryFetchCommand = void 0;
4
4
  const container_js_1 = require("../../contracts/container.js");
5
- const mod_js_1 = require("../../mod.js");
6
- class ContainerRegistryFetchCommand extends mod_js_1.Command {
5
+ const command_js_1 = require("../../common/command.js");
6
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
+ class ContainerRegistryFetchCommand extends command_js_1.Command {
7
8
  getMethod() {
8
9
  return "GET";
9
10
  }
@@ -23,7 +24,7 @@ class ContainerRegistryFetchCommand extends mod_js_1.Command {
23
24
  * Parse the response
24
25
  */
25
26
  parseResponse(response) {
26
- return (0, mod_js_1.parseResponseHelper)(container_js_1.ContainerRegistrySchema, response);
27
+ return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistrySchema, response);
27
28
  }
28
29
  }
29
30
  exports.ContainerRegistryFetchCommand = ContainerRegistryFetchCommand;
@@ -1,5 +1,5 @@
1
+ import { Command } from "../../common/command.js";
1
2
  import { type ContainerRegistryList } from "../../contracts/container.js";
2
- import { Command } from "../../mod.js";
3
3
  export interface ContainerRegistryFetchTenantInput {
4
4
  /** The tenant id */
5
5
  tenantId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"container-registry.list.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAA+B,MAAM,8BAA8B,CAAA;AACtG,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAA;AAE3D,MAAM,WAAW,iCAAiC;IAChD,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,0BAA2B,SAAQ,OAAO,CAAC,iCAAiC,EAAE,qBAAqB,CAAC;cAC5F,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,qBAAqB;CAG3E"}
1
+ {"version":3,"file":"container-registry.list.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,qBAAqB,EAA+B,MAAM,8BAA8B,CAAA;AAGtG,MAAM,WAAW,iCAAiC;IAChD,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,0BAA2B,SAAQ,OAAO,CAAC,iCAAiC,EAAE,qBAAqB,CAAC;cAC5F,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,qBAAqB;CAG3E"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContainerRegistListCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
4
5
  const container_js_1 = require("../../contracts/container.js");
5
- const mod_js_1 = require("../../mod.js");
6
- class ContainerRegistListCommand extends mod_js_1.Command {
6
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
+ class ContainerRegistListCommand extends command_js_1.Command {
7
8
  getMethod() {
8
9
  return "GET";
9
10
  }
@@ -23,7 +24,7 @@ class ContainerRegistListCommand extends mod_js_1.Command {
23
24
  * Parse the response
24
25
  */
25
26
  parseResponse(response) {
26
- return (0, mod_js_1.parseResponseHelper)(container_js_1.ContainerRegistryListSchema, response);
27
+ return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistryListSchema, response);
27
28
  }
28
29
  }
29
30
  exports.ContainerRegistListCommand = ContainerRegistListCommand;
@@ -1,4 +1,4 @@
1
- import { GraphQlCommand } from "../../common/command.js";
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
2
  import type { FlowcoreClient } from "../../common/flowcore-client.js";
3
3
  /**
4
4
  * The input for the data core delete request command
@@ -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,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AA4BD;;;GAGG;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"}
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,iCAAiC,CAAA;AAKhE,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;;;GAGG;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"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataCoreDeleteRequestCommand = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
- const command_js_1 = require("../../common/command.js");
5
+ const command_graphql_js_1 = require("../../common/command-graphql.js");
6
6
  const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
7
  const command_error_js_1 = require("../../exceptions/command-error.js");
8
8
  const not_found_js_1 = require("../../exceptions/not-found.js");
@@ -35,7 +35,7 @@ const responseSchema = typebox_1.Type.Object({
35
35
  * Request to delete a data core
36
36
  * @deprecated Use `DataCoreRequestDeleteCommand` instead
37
37
  */
38
- class DataCoreDeleteRequestCommand extends command_js_1.GraphQlCommand {
38
+ class DataCoreDeleteRequestCommand extends command_graphql_js_1.GraphQlCommand {
39
39
  /**
40
40
  * Create a new data core delete request command
41
41
  */
@@ -7,17 +7,34 @@ import type { ClientError } from "../../exceptions/client-error.js";
7
7
  export interface DataCoreFetchByIdInput {
8
8
  /** The id of the data core */
9
9
  dataCoreId: string;
10
- /** The name of the data core */
11
- dataCore?: never;
12
10
  /** The tenant id */
13
11
  tenantId?: never;
12
+ /** The tenant */
13
+ tenant?: never;
14
+ /** The name of the data core */
15
+ dataCore?: never;
14
16
  }
15
17
  /**
16
- * The input for the data core fetch by name command
18
+ * The input for the data core fetch by name and tenant id command
17
19
  */
18
- export interface DataCoreFetchByNameInput {
20
+ export interface DataCoreFetchByNameAndTenantIdInput {
19
21
  /** The tenant id */
20
22
  tenantId: string;
23
+ /** The tenant */
24
+ tenant?: never;
25
+ /** The name of the data core */
26
+ dataCore: string;
27
+ /** The id of the data core */
28
+ dataCoreId?: never;
29
+ }
30
+ /**
31
+ * The input for the data core fetch by name and tenant command
32
+ */
33
+ export interface DataCoreFetchByNameAndTenantInput {
34
+ /** The tenant id */
35
+ tenantId?: never;
36
+ /** The tenant */
37
+ tenant: string;
21
38
  /** The name of the data core */
22
39
  dataCore: string;
23
40
  /** The id of the data core */
@@ -26,7 +43,7 @@ export interface DataCoreFetchByNameInput {
26
43
  /**
27
44
  * The input for the data core fetch command
28
45
  */
29
- export type DataCoreFetchInput = DataCoreFetchByIdInput | DataCoreFetchByNameInput;
46
+ export type DataCoreFetchInput = DataCoreFetchByIdInput | DataCoreFetchByNameAndTenantIdInput | DataCoreFetchByNameAndTenantInput;
30
47
  /**
31
48
  * Fetch a data core
32
49
  */
@@ -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,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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