@prismatic-io/spectral 7.5.0 → 7.5.1

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.
@@ -146,7 +146,7 @@ export interface ConditionalInputField extends BaseInputField {
146
146
  /** Data type the InputField will collect. */
147
147
  type: "conditional";
148
148
  /** Collection type of the InputField */
149
- collection: Extract<InputFieldCollection, "valuelist">;
149
+ collection: InputFieldCollection;
150
150
  /** Default value for this field. */
151
151
  default?: ConditionalExpression;
152
152
  /** Clean function */
@@ -1,91 +1 @@
1
- /**
2
- * This file contains types to help define conditional logic for the Prismatic
3
- * branch component, https://prismatic.io/docs/components/branch/
4
- */
5
- /** @ignore */
6
- export declare enum BooleanOperator {
7
- and = "and",
8
- or = "or"
9
- }
10
- export declare const BooleanOperatorPhrase: string[];
11
- export declare enum UnaryOperator {
12
- isTrue = "isTrue",
13
- isFalse = "isFalse",
14
- doesNotExist = "doesNotExist",
15
- exists = "exists"
16
- }
17
- export declare const UnaryOperatorPhrase: {
18
- isTrue: string;
19
- isFalse: string;
20
- doesNotExist: string;
21
- exists: string;
22
- };
23
- export declare enum BinaryOperator {
24
- equal = "equal",
25
- notEqual = "notEqual",
26
- greaterThan = "greaterThan",
27
- greaterThanOrEqual = "greaterThanOrEqual",
28
- lessThan = "lessThan",
29
- lessThanOrEqual = "lessThanOrEqual",
30
- in = "in",
31
- notIn = "notIn",
32
- exactlyMatches = "exactlyMatches",
33
- doesNotExactlyMatch = "doesNotExactlyMatch",
34
- startsWith = "startsWith",
35
- doesNotStartWith = "doesNotStartWith",
36
- endsWith = "endsWith",
37
- doesNotEndWith = "doesNotEndWith",
38
- dateTimeAfter = "dateTimeAfter",
39
- dateTimeBefore = "dateTimeBefore",
40
- dateTimeSame = "dateTimeSame"
41
- }
42
- export declare const BinaryOperatorPhrase: {
43
- equal: string;
44
- notEqual: string;
45
- greaterThan: string;
46
- greaterThanOrEqual: string;
47
- lessThan: string;
48
- lessThanOrEqual: string;
49
- in: string;
50
- notIn: string;
51
- exactlyMatches: string;
52
- doesNotExactlyMatch: string;
53
- startsWith: string;
54
- doesNotStartWith: string;
55
- endsWith: string;
56
- doesNotEndWith: string;
57
- dateTimeAfter: string;
58
- dateTimeBefore: string;
59
- dateTimeSame: string;
60
- };
61
- export declare type TermOperator = UnaryOperator | BinaryOperator;
62
- export declare const TermOperatorPhrase: {
63
- equal: string;
64
- notEqual: string;
65
- greaterThan: string;
66
- greaterThanOrEqual: string;
67
- lessThan: string;
68
- lessThanOrEqual: string;
69
- in: string;
70
- notIn: string;
71
- exactlyMatches: string;
72
- doesNotExactlyMatch: string;
73
- startsWith: string;
74
- doesNotStartWith: string;
75
- endsWith: string;
76
- doesNotEndWith: string;
77
- dateTimeAfter: string;
78
- dateTimeBefore: string;
79
- dateTimeSame: string;
80
- isTrue: string;
81
- isFalse: string;
82
- doesNotExist: string;
83
- exists: string;
84
- };
85
- export declare type Term = unknown;
86
- export declare type TermExpression = [TermOperator, Term, Term?];
87
- export declare type BooleanExpression = [
88
- BooleanOperator.and | BooleanOperator.or,
89
- ...ConditionalExpression[]
90
- ];
91
- export declare type ConditionalExpression = TermExpression | BooleanExpression;
1
+ export * from "../conditionalLogic/types";
@@ -1,67 +1,17 @@
1
1
  "use strict";
2
- /**
3
- * This file contains types to help define conditional logic for the Prismatic
4
- * branch component, https://prismatic.io/docs/components/branch/
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TermOperatorPhrase = exports.BinaryOperatorPhrase = exports.BinaryOperator = exports.UnaryOperatorPhrase = exports.UnaryOperator = exports.BooleanOperatorPhrase = exports.BooleanOperator = void 0;
8
- /** @ignore */
9
- var BooleanOperator;
10
- (function (BooleanOperator) {
11
- BooleanOperator["and"] = "and";
12
- BooleanOperator["or"] = "or";
13
- })(BooleanOperator = exports.BooleanOperator || (exports.BooleanOperator = {}));
14
- exports.BooleanOperatorPhrase = Object.keys(BooleanOperator);
15
- var UnaryOperator;
16
- (function (UnaryOperator) {
17
- UnaryOperator["isTrue"] = "isTrue";
18
- UnaryOperator["isFalse"] = "isFalse";
19
- UnaryOperator["doesNotExist"] = "doesNotExist";
20
- UnaryOperator["exists"] = "exists";
21
- })(UnaryOperator = exports.UnaryOperator || (exports.UnaryOperator = {}));
22
- exports.UnaryOperatorPhrase = {
23
- [UnaryOperator.isTrue]: "is true",
24
- [UnaryOperator.isFalse]: "is false",
25
- [UnaryOperator.doesNotExist]: "does not exist",
26
- [UnaryOperator.exists]: "exists",
27
- };
28
- var BinaryOperator;
29
- (function (BinaryOperator) {
30
- BinaryOperator["equal"] = "equal";
31
- BinaryOperator["notEqual"] = "notEqual";
32
- BinaryOperator["greaterThan"] = "greaterThan";
33
- BinaryOperator["greaterThanOrEqual"] = "greaterThanOrEqual";
34
- BinaryOperator["lessThan"] = "lessThan";
35
- BinaryOperator["lessThanOrEqual"] = "lessThanOrEqual";
36
- BinaryOperator["in"] = "in";
37
- BinaryOperator["notIn"] = "notIn";
38
- BinaryOperator["exactlyMatches"] = "exactlyMatches";
39
- BinaryOperator["doesNotExactlyMatch"] = "doesNotExactlyMatch";
40
- BinaryOperator["startsWith"] = "startsWith";
41
- BinaryOperator["doesNotStartWith"] = "doesNotStartWith";
42
- BinaryOperator["endsWith"] = "endsWith";
43
- BinaryOperator["doesNotEndWith"] = "doesNotEndWith";
44
- BinaryOperator["dateTimeAfter"] = "dateTimeAfter";
45
- BinaryOperator["dateTimeBefore"] = "dateTimeBefore";
46
- BinaryOperator["dateTimeSame"] = "dateTimeSame";
47
- })(BinaryOperator = exports.BinaryOperator || (exports.BinaryOperator = {}));
48
- exports.BinaryOperatorPhrase = {
49
- [BinaryOperator.equal]: "equal",
50
- [BinaryOperator.notEqual]: "does not equal",
51
- [BinaryOperator.greaterThan]: "is greater than",
52
- [BinaryOperator.greaterThanOrEqual]: "is greater than or equal to",
53
- [BinaryOperator.lessThan]: "is less than",
54
- [BinaryOperator.lessThanOrEqual]: "is less than or equal to",
55
- [BinaryOperator.in]: "contained in",
56
- [BinaryOperator.notIn]: "not contained in",
57
- [BinaryOperator.exactlyMatches]: "exactly matches",
58
- [BinaryOperator.doesNotExactlyMatch]: "does not exactly match",
59
- [BinaryOperator.startsWith]: "starts with",
60
- [BinaryOperator.doesNotStartWith]: "does not start with",
61
- [BinaryOperator.endsWith]: "ends with",
62
- [BinaryOperator.doesNotEndWith]: "does not end with",
63
- [BinaryOperator.dateTimeAfter]: "is after (date/time)",
64
- [BinaryOperator.dateTimeBefore]: "is before (date/time)",
65
- [BinaryOperator.dateTimeSame]: "is the same (date/time)",
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
66
15
  };
67
- exports.TermOperatorPhrase = Object.assign(Object.assign({}, exports.UnaryOperatorPhrase), exports.BinaryOperatorPhrase);
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../conditionalLogic/types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "7.5.0",
3
+ "version": "7.5.1",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"