Skip to content

Commit 8247900

Browse files
authored
fix: ts client missing matches_regex option for print_event (#701)
### Description This prs add the missing `matches_regex` option for the `print_event` predicate that is missing in the client SDK. #### Breaking change? No ### Checklist - [ ] All tests pass - [ ] Tests added in this PR (if applicable)
1 parent 1aac0f1 commit 8247900

File tree

1 file changed

+8
-0
lines changed
  • components/client/typescript/src/schemas/stacks

1 file changed

+8
-0
lines changed

components/client/typescript/src/schemas/stacks/if_this.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ export const StacksIfThisPrintEventSchema = Type.Object({
5353
});
5454
export type StacksIfThisPrintEvent = Static<typeof StacksIfThisPrintEventSchema>;
5555

56+
export const StacksIfThisPrintEventRegexSchema = Type.Object({
57+
scope: Type.Literal('print_event'),
58+
contract_identifier: Type.String(),
59+
matches_regex: Type.String(),
60+
});
61+
export type StacksIfThisPrintEventRegex = Static<typeof StacksIfThisPrintEventRegexSchema>;
62+
5663
export const StacksIfThisContractCallSchema = Type.Object({
5764
scope: Type.Literal('contract_call'),
5865
contract_identifier: Type.String(),
@@ -111,6 +118,7 @@ export const StacksIfThisSchema = Type.Union([
111118
StacksIfThisNftEventSchema,
112119
StacksIfThisStxEventSchema,
113120
StacksIfThisPrintEventSchema,
121+
StacksIfThisPrintEventRegexSchema,
114122
StacksIfThisContractCallSchema,
115123
StacksIfThisContractDeploymentSchema,
116124
StacksIfThisContractDeploymentTraitSchema,

0 commit comments

Comments
 (0)