Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/add-does-not-contain-operator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@transcend-io/privacy-types": patch
"@transcend-io/sdk": patch
"@transcend-io/cli": patch
---

Add `DOES_NOT_CONTAIN` attribute to `ComparisonOperator` for assessment rules, and regenerate `transcend.yml` JSON schema.
12 changes: 8 additions & 4 deletions packages/cli/schema/transcend-yml-schema-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -42162,7 +42162,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down Expand Up @@ -42211,7 +42212,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down Expand Up @@ -42610,7 +42612,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down Expand Up @@ -42659,7 +42662,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down
12 changes: 8 additions & 4 deletions packages/cli/schema/transcend-yml-schema-v10.json
Original file line number Diff line number Diff line change
Expand Up @@ -42162,7 +42162,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down Expand Up @@ -42211,7 +42212,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down Expand Up @@ -42610,7 +42612,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down Expand Up @@ -42659,7 +42662,8 @@
"IS_NOT_ONE_OF",
"CONTAINS",
"IS_SHOWN",
"IS_NOT_SHOWN"
"IS_NOT_SHOWN",
"DOES_NOT_CONTAIN"
]
}
}
Expand Down
2 changes: 2 additions & 0 deletions packages/privacy-types/src/assessmentForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ export const ComparisonOperator = makeEnum({
IsShown: 'IS_SHOWN',
/** is not shown */
IsNotShown: 'IS_NOT_SHOWN',
/** does not contain */
DoesNotContain: 'DOES_NOT_CONTAIN',
});

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const AssessmentRuleWithOperands = t.type({
t.literal(ComparisonOperator.IsOneOf),
t.literal(ComparisonOperator.IsNotOneOf),
t.literal(ComparisonOperator.Contains),
t.literal(ComparisonOperator.DoesNotContain),
]),
comparisonOperands: t.array(t.string),
});
Expand Down
Loading