@openframe-org/criteria-set-protocol 1.4.1 → 1.4.3
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.
|
@@ -113,6 +113,7 @@ export type DataMap = {
|
|
|
113
113
|
version: string;
|
|
114
114
|
elements: Record<string, any>;
|
|
115
115
|
result: any;
|
|
116
|
+
certificates?: string[];
|
|
116
117
|
};
|
|
117
118
|
export type CertificateDefinitionType = 'number' | 'percentage';
|
|
118
119
|
type AbstractCertificateDefinitionRules<Rules> = Rules extends undefined | never ? {
|
|
@@ -129,7 +130,7 @@ type AbstractCertificateDefinition<Type extends CertificateDefinitionType, Rules
|
|
|
129
130
|
name: string;
|
|
130
131
|
description?: string;
|
|
131
132
|
};
|
|
132
|
-
type NumberBasedCertificateDefinitionRules = ({
|
|
133
|
+
export type NumberBasedCertificateDefinitionRules = ({
|
|
133
134
|
minimum?: number;
|
|
134
135
|
exclusiveMinimum?: never;
|
|
135
136
|
} | {
|
|
@@ -142,7 +143,8 @@ type NumberBasedCertificateDefinitionRules = ({
|
|
|
142
143
|
maximum?: never;
|
|
143
144
|
exclusiveMaximum?: number;
|
|
144
145
|
});
|
|
146
|
+
export type PercentageBasedCertificateDefinitionRules = NumberBasedCertificateDefinitionRules;
|
|
145
147
|
export type NumberBasedCertificateDefinition = AbstractCertificateDefinition<'number', NumberBasedCertificateDefinitionRules>;
|
|
146
|
-
export type PercentageBasedCertificateDefinition = AbstractCertificateDefinition<'percentage',
|
|
148
|
+
export type PercentageBasedCertificateDefinition = AbstractCertificateDefinition<'percentage', PercentageBasedCertificateDefinitionRules>;
|
|
147
149
|
export type CertificateDefinition = NumberBasedCertificateDefinition | PercentageBasedCertificateDefinition;
|
|
148
150
|
export {};
|
package/package.json
CHANGED