@flowcore/sdk 1.31.0 → 1.32.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.
- package/CHANGELOG.md +12 -0
- package/README.md +7 -1
- package/esm/contracts/event-type.d.ts +2 -2
- package/esm/contracts/event-type.d.ts.map +1 -1
- package/esm/contracts/event-type.js +1 -1
- package/package.json +1 -1
- package/script/contracts/event-type.d.ts +2 -2
- package/script/contracts/event-type.d.ts.map +1 -1
- package/script/contracts/event-type.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.32.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.31.0...v1.32.0) (2025-04-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **event-type:** :sparkles: add PII mask configuration to EventTypeCreateCommand ([3a1ccc2](https://github.com/flowcore-io/flowcore-sdk/commit/3a1ccc239bbfeb164f4537c28275df4f07751239))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **event-type:** :sparkles: add piiMask initialization in EventType tests ([9666cc5](https://github.com/flowcore-io/flowcore-sdk/commit/9666cc5dcace9cb4db7c180c2fd2ac24b86ff21a))
|
|
14
|
+
|
|
3
15
|
## [1.31.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.30.0...v1.31.0) (2025-04-22)
|
|
4
16
|
|
|
5
17
|
|
package/README.md
CHANGED
|
@@ -509,7 +509,13 @@ import { EventTypeCreateCommand, FlowcoreClient } from "@flowcore/sdk"
|
|
|
509
509
|
const command = new EventTypeCreateCommand({
|
|
510
510
|
flowTypeId: "your-flow-type-id",
|
|
511
511
|
name: "my-event-type",
|
|
512
|
-
description: "My awesome event type"
|
|
512
|
+
description: "My awesome event type",
|
|
513
|
+
piiMask: {
|
|
514
|
+
key: "entityId",
|
|
515
|
+
paths: [
|
|
516
|
+
{ path: "$.entityId", type: "string" }
|
|
517
|
+
]
|
|
518
|
+
}
|
|
513
519
|
})
|
|
514
520
|
|
|
515
521
|
const result = await client.execute(command)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static, type TArray, type TBoolean, type TLiteral, type TObject, type
|
|
1
|
+
import { type Static, type TArray, type TBoolean, type TLiteral, type TObject, type TString, type TUnion } from "@sinclair/typebox";
|
|
2
2
|
export declare const EventTypePiiMaskTypeSchema: TObject<{
|
|
3
3
|
path: TString;
|
|
4
4
|
type: TUnion<[TLiteral<"string">, TLiteral<"number">, TLiteral<"boolean">]>;
|
|
@@ -19,7 +19,7 @@ export declare const EventTypeSchema: TObject<{
|
|
|
19
19
|
description: TString;
|
|
20
20
|
isTruncating: TBoolean;
|
|
21
21
|
isDeleting: TBoolean;
|
|
22
|
-
piiMask:
|
|
22
|
+
piiMask: TArray<typeof EventTypePiiMaskSchema>;
|
|
23
23
|
}>;
|
|
24
24
|
/**
|
|
25
25
|
* The type for an event type
|
|
@@ -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,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC;IAC/C,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;CAC5E,CAGC,CAAA;AAEF,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC;IAC3C,GAAG,EAAE,OAAO,CAAA;IACZ,KAAK,EAAE,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;CACjD,CAGC,CAAA;AAEF;;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;IACpB,OAAO,EAAE,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAC/C,CAUC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static, type TArray, type TBoolean, type TLiteral, type TObject, type
|
|
1
|
+
import { type Static, type TArray, type TBoolean, type TLiteral, type TObject, type TString, type TUnion } from "@sinclair/typebox";
|
|
2
2
|
export declare const EventTypePiiMaskTypeSchema: TObject<{
|
|
3
3
|
path: TString;
|
|
4
4
|
type: TUnion<[TLiteral<"string">, TLiteral<"number">, TLiteral<"boolean">]>;
|
|
@@ -19,7 +19,7 @@ export declare const EventTypeSchema: TObject<{
|
|
|
19
19
|
description: TString;
|
|
20
20
|
isTruncating: TBoolean;
|
|
21
21
|
isDeleting: TBoolean;
|
|
22
|
-
piiMask:
|
|
22
|
+
piiMask: TArray<typeof EventTypePiiMaskSchema>;
|
|
23
23
|
}>;
|
|
24
24
|
/**
|
|
25
25
|
* The type for an event type
|
|
@@ -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,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC;IAC/C,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;CAC5E,CAGC,CAAA;AAEF,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC;IAC3C,GAAG,EAAE,OAAO,CAAA;IACZ,KAAK,EAAE,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;CACjD,CAGC,CAAA;AAEF;;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;IACpB,OAAO,EAAE,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAC/C,CAUC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -22,5 +22,5 @@ exports.EventTypeSchema = typebox_1.Type.Object({
|
|
|
22
22
|
description: typebox_1.Type.String(),
|
|
23
23
|
isTruncating: typebox_1.Type.Boolean(),
|
|
24
24
|
isDeleting: typebox_1.Type.Boolean(),
|
|
25
|
-
piiMask: typebox_1.Type.
|
|
25
|
+
piiMask: typebox_1.Type.Array(exports.EventTypePiiMaskSchema),
|
|
26
26
|
});
|