@player-ui/common-types-plugin 0.15.1 → 0.15.2-next.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/dist/CommonTypesPlugin.native.js +2 -2
- package/dist/CommonTypesPlugin.native.js.map +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +0 -785
- package/dist/index.mjs.map +1 -1
- package/dist/xlr/DataTypes.BooleanType.json +72 -0
- package/dist/xlr/DataTypes.CollectionType.json +39 -0
- package/dist/xlr/DataTypes.DateType.json +55 -0
- package/dist/xlr/DataTypes.IntegerNNType.json +75 -0
- package/dist/xlr/DataTypes.IntegerPosType.json +75 -0
- package/dist/xlr/DataTypes.IntegerType.json +55 -0
- package/dist/xlr/DataTypes.PhoneType.json +55 -0
- package/dist/xlr/DataTypes.StringType.json +62 -0
- package/dist/xlr/Formatters.commaNumber.json +28 -0
- package/dist/xlr/Formatters.currency.json +44 -0
- package/dist/xlr/Formatters.date.json +28 -0
- package/dist/xlr/Formatters.integer.json +14 -0
- package/dist/xlr/Formatters.phone.json +11 -0
- package/dist/xlr/Validators.collection.json +6 -0
- package/dist/xlr/Validators.email.json +6 -0
- package/dist/xlr/Validators.expression.json +23 -0
- package/dist/xlr/Validators.integer.json +6 -0
- package/dist/xlr/Validators.length.json +49 -0
- package/dist/xlr/Validators.max.json +22 -0
- package/dist/xlr/Validators.min.json +22 -0
- package/dist/xlr/Validators.oneOf.json +25 -0
- package/dist/xlr/Validators.phone.json +6 -0
- package/dist/xlr/Validators.readonly.json +6 -0
- package/dist/xlr/Validators.regex.json +22 -0
- package/dist/xlr/Validators.required.json +32 -0
- package/dist/xlr/Validators.string.json +6 -0
- package/dist/xlr/Validators.zip.json +6 -0
- package/dist/xlr/manifest.js +42 -0
- package/dist/xlr/manifest.json +51 -0
- package/package.json +6 -4
- package/src/index.ts +44 -2
- package/src/validators/index.ts +3 -3
- package/types/index.d.ts +24 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/data-types/types.ts",
|
|
3
|
+
"name": "PhoneType",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"type": {
|
|
7
|
+
"required": true,
|
|
8
|
+
"node": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "PhoneType"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"validation": {
|
|
14
|
+
"required": true,
|
|
15
|
+
"node": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"elementType": {
|
|
18
|
+
"type": "any"
|
|
19
|
+
},
|
|
20
|
+
"const": [
|
|
21
|
+
{
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"type": {
|
|
25
|
+
"required": true,
|
|
26
|
+
"node": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"const": "phone"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"format": {
|
|
38
|
+
"required": true,
|
|
39
|
+
"node": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"type": {
|
|
43
|
+
"required": true,
|
|
44
|
+
"node": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"const": "phone"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/data-types/types.ts",
|
|
3
|
+
"name": "StringType",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"type": {
|
|
7
|
+
"required": true,
|
|
8
|
+
"node": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "StringType"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"default": {
|
|
14
|
+
"required": true,
|
|
15
|
+
"node": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"const": ""
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"validation": {
|
|
21
|
+
"required": true,
|
|
22
|
+
"node": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"elementType": {
|
|
25
|
+
"type": "any"
|
|
26
|
+
},
|
|
27
|
+
"const": [
|
|
28
|
+
{
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"type": {
|
|
32
|
+
"required": true,
|
|
33
|
+
"node": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "string"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"format": {
|
|
45
|
+
"required": true,
|
|
46
|
+
"node": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"type": {
|
|
50
|
+
"required": true,
|
|
51
|
+
"node": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"const": "string"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/formats/index.ts",
|
|
3
|
+
"name": "commaNumber",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "FormatType<\n number,\n string,\n {\n /** The number of decimal places to show */\n precision?: number;\n }\n>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "number"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"precision": {
|
|
17
|
+
"required": false,
|
|
18
|
+
"node": {
|
|
19
|
+
"type": "number",
|
|
20
|
+
"title": "precision",
|
|
21
|
+
"description": "The number of decimal places to show"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/formats/index.ts",
|
|
3
|
+
"name": "currency",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "FormatType<\n number,\n string,\n {\n /** The symbol to use for currency */\n currencySymbol?: string;\n\n /** Use parenthesis instead of a - sign for negative values */\n useParensForNeg?: boolean;\n\n /** The number of decimal places to show */\n precision?: number;\n }\n>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "number"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"currencySymbol": {
|
|
17
|
+
"required": false,
|
|
18
|
+
"node": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"title": "currencySymbol",
|
|
21
|
+
"description": "The symbol to use for currency"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"useParensForNeg": {
|
|
25
|
+
"required": false,
|
|
26
|
+
"node": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"title": "useParensForNeg",
|
|
29
|
+
"description": "Use parenthesis instead of a - sign for negative values"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"precision": {
|
|
33
|
+
"required": false,
|
|
34
|
+
"node": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"title": "precision",
|
|
37
|
+
"description": "The number of decimal places to show"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/formats/index.ts",
|
|
3
|
+
"name": "date",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "FormatType<\n string,\n string,\n {\n /** The mask to use to format the date */\n mask?: string;\n }\n>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"mask": {
|
|
17
|
+
"required": false,
|
|
18
|
+
"node": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"title": "mask",
|
|
21
|
+
"description": "The mask to use to format the date"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/formats/index.ts",
|
|
3
|
+
"name": "integer",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "FormatType<number, string>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "number"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/formats/index.ts",
|
|
3
|
+
"name": "phone",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "FormatType<string>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "string"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "collection",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "email",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction"
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "expression",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction<{\n /**\n * The expression to evaluate.\n * Falsy values indicate an invalid response\n */\n exp: Expression;\n}>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"exp": {
|
|
11
|
+
"required": true,
|
|
12
|
+
"node": {
|
|
13
|
+
"type": "ref",
|
|
14
|
+
"ref": "Expression",
|
|
15
|
+
"title": "exp",
|
|
16
|
+
"description": "The expression to evaluate.\nFalsy values indicate an invalid response"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"additionalProperties": false
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "integer",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction"
|
|
6
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "length",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction<\n | {\n /** The minimum length to check against */\n min?: number;\n\n /** The maximum length to check against */\n max?: number;\n }\n | {\n /** The exact length to match against */\n exact: number;\n }\n>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "or",
|
|
9
|
+
"or": [
|
|
10
|
+
{
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"min": {
|
|
14
|
+
"required": false,
|
|
15
|
+
"node": {
|
|
16
|
+
"type": "number",
|
|
17
|
+
"title": "min",
|
|
18
|
+
"description": "The minimum length to check against"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"max": {
|
|
22
|
+
"required": false,
|
|
23
|
+
"node": {
|
|
24
|
+
"type": "number",
|
|
25
|
+
"title": "max",
|
|
26
|
+
"description": "The maximum length to check against"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"exact": {
|
|
36
|
+
"required": true,
|
|
37
|
+
"node": {
|
|
38
|
+
"type": "number",
|
|
39
|
+
"title": "exact",
|
|
40
|
+
"description": "The exact length to match against"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "max",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction<{\n /** The minimum value */\n value: number;\n}>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"value": {
|
|
11
|
+
"required": true,
|
|
12
|
+
"node": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"title": "value",
|
|
15
|
+
"description": "The minimum value"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "min",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction<{\n /** The minimum value */\n value: number;\n}>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"value": {
|
|
11
|
+
"required": true,
|
|
12
|
+
"node": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"title": "value",
|
|
15
|
+
"description": "The minimum value"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "oneOf",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction<{\n /** The enum values that are acceptable */\n options: Array<unknown>;\n}>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"options": {
|
|
11
|
+
"required": true,
|
|
12
|
+
"node": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"elementType": {
|
|
15
|
+
"type": "unknown"
|
|
16
|
+
},
|
|
17
|
+
"title": "options",
|
|
18
|
+
"description": "The enum values that are acceptable"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "phone",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "readonly",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction"
|
|
6
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "regex",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction<{\n /**\n * The regular expression to test: /pattern/\n * Can optionally include flags after the pattern: /pattern/flags\n */\n regex: string;\n}>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"regex": {
|
|
11
|
+
"required": true,
|
|
12
|
+
"node": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"title": "regex",
|
|
15
|
+
"description": "The regular expression to test: /pattern/\nCan optionally include flags after the pattern: /pattern/flags"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "required",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction<{\n /** An optional expression to limit the required check only if true */\n if?: Expression;\n\n /** An optional expression to limit the required check only if false */\n ifNot?: Expression;\n}>",
|
|
6
|
+
"genericArguments": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"if": {
|
|
11
|
+
"required": false,
|
|
12
|
+
"node": {
|
|
13
|
+
"type": "ref",
|
|
14
|
+
"ref": "Expression",
|
|
15
|
+
"title": "if",
|
|
16
|
+
"description": "An optional expression to limit the required check only if true"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"ifNot": {
|
|
20
|
+
"required": false,
|
|
21
|
+
"node": {
|
|
22
|
+
"type": "ref",
|
|
23
|
+
"ref": "Expression",
|
|
24
|
+
"title": "ifNot",
|
|
25
|
+
"description": "An optional expression to limit the required check only if false"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "string",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2571/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
|
+
"name": "zip",
|
|
4
|
+
"type": "ref",
|
|
5
|
+
"ref": "ValidatorFunction"
|
|
6
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const DataTypes_BooleanType = require("./DataTypes.BooleanType.json")
|
|
2
|
+
const DataTypes_IntegerType = require("./DataTypes.IntegerType.json")
|
|
3
|
+
const DataTypes_IntegerPosType = require("./DataTypes.IntegerPosType.json")
|
|
4
|
+
const DataTypes_IntegerNNType = require("./DataTypes.IntegerNNType.json")
|
|
5
|
+
const DataTypes_StringType = require("./DataTypes.StringType.json")
|
|
6
|
+
const DataTypes_CollectionType = require("./DataTypes.CollectionType.json")
|
|
7
|
+
const DataTypes_DateType = require("./DataTypes.DateType.json")
|
|
8
|
+
const DataTypes_PhoneType = require("./DataTypes.PhoneType.json")
|
|
9
|
+
const Formatters_commaNumber = require("./Formatters.commaNumber.json")
|
|
10
|
+
const Formatters_currency = require("./Formatters.currency.json")
|
|
11
|
+
const Formatters_date = require("./Formatters.date.json")
|
|
12
|
+
const Formatters_integer = require("./Formatters.integer.json")
|
|
13
|
+
const Formatters_phone = require("./Formatters.phone.json")
|
|
14
|
+
const Validators_collection = require("./Validators.collection.json")
|
|
15
|
+
const Validators_email = require("./Validators.email.json")
|
|
16
|
+
const Validators_expression = require("./Validators.expression.json")
|
|
17
|
+
const Validators_integer = require("./Validators.integer.json")
|
|
18
|
+
const Validators_length = require("./Validators.length.json")
|
|
19
|
+
const Validators_max = require("./Validators.max.json")
|
|
20
|
+
const Validators_min = require("./Validators.min.json")
|
|
21
|
+
const Validators_oneOf = require("./Validators.oneOf.json")
|
|
22
|
+
const Validators_phone = require("./Validators.phone.json")
|
|
23
|
+
const Validators_readonly = require("./Validators.readonly.json")
|
|
24
|
+
const Validators_regex = require("./Validators.regex.json")
|
|
25
|
+
const Validators_required = require("./Validators.required.json")
|
|
26
|
+
const Validators_string = require("./Validators.string.json")
|
|
27
|
+
const Validators_zip = require("./Validators.zip.json")
|
|
28
|
+
|
|
29
|
+
module.exports = {
|
|
30
|
+
"pluginName": "CommonTypes",
|
|
31
|
+
"capabilities": {
|
|
32
|
+
"Assets":[],
|
|
33
|
+
"Views":[],
|
|
34
|
+
"Expressions":[],
|
|
35
|
+
"DataTypes":[DataTypes_BooleanType,DataTypes_IntegerType,DataTypes_IntegerPosType,DataTypes_IntegerNNType,DataTypes_StringType,DataTypes_CollectionType,DataTypes_DateType,DataTypes_PhoneType],
|
|
36
|
+
"Formatters":[Formatters_commaNumber,Formatters_currency,Formatters_date,Formatters_integer,Formatters_phone],
|
|
37
|
+
"Validators":[Validators_collection,Validators_email,Validators_expression,Validators_integer,Validators_length,Validators_max,Validators_min,Validators_oneOf,Validators_phone,Validators_readonly,Validators_regex,Validators_required,Validators_string,Validators_zip],
|
|
38
|
+
},
|
|
39
|
+
"customPrimitives": [
|
|
40
|
+
"Expression","Asset","Binding","AssetWrapper","Schema.DataType","ExpressionHandler","FormatType","ValidatorFunction"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pluginName": "CommonTypes",
|
|
3
|
+
"capabilities": {
|
|
4
|
+
"Assets": [],
|
|
5
|
+
"Views": [],
|
|
6
|
+
"Expressions": [],
|
|
7
|
+
"DataTypes": [
|
|
8
|
+
"DataTypes.BooleanType",
|
|
9
|
+
"DataTypes.IntegerType",
|
|
10
|
+
"DataTypes.IntegerPosType",
|
|
11
|
+
"DataTypes.IntegerNNType",
|
|
12
|
+
"DataTypes.StringType",
|
|
13
|
+
"DataTypes.CollectionType",
|
|
14
|
+
"DataTypes.DateType",
|
|
15
|
+
"DataTypes.PhoneType"
|
|
16
|
+
],
|
|
17
|
+
"Formatters": [
|
|
18
|
+
"Formatters.commaNumber",
|
|
19
|
+
"Formatters.currency",
|
|
20
|
+
"Formatters.date",
|
|
21
|
+
"Formatters.integer",
|
|
22
|
+
"Formatters.phone"
|
|
23
|
+
],
|
|
24
|
+
"Validators": [
|
|
25
|
+
"Validators.collection",
|
|
26
|
+
"Validators.email",
|
|
27
|
+
"Validators.expression",
|
|
28
|
+
"Validators.integer",
|
|
29
|
+
"Validators.length",
|
|
30
|
+
"Validators.max",
|
|
31
|
+
"Validators.min",
|
|
32
|
+
"Validators.oneOf",
|
|
33
|
+
"Validators.phone",
|
|
34
|
+
"Validators.readonly",
|
|
35
|
+
"Validators.regex",
|
|
36
|
+
"Validators.required",
|
|
37
|
+
"Validators.string",
|
|
38
|
+
"Validators.zip"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"customPrimitives": [
|
|
42
|
+
"Expression",
|
|
43
|
+
"Asset",
|
|
44
|
+
"Binding",
|
|
45
|
+
"AssetWrapper",
|
|
46
|
+
"Schema.DataType",
|
|
47
|
+
"ExpressionHandler",
|
|
48
|
+
"FormatType",
|
|
49
|
+
"ValidatorFunction"
|
|
50
|
+
]
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"types"
|
|
7
7
|
],
|
|
8
8
|
"name": "@player-ui/common-types-plugin",
|
|
9
|
-
"version": "0.15.
|
|
9
|
+
"version": "0.15.2-next.0",
|
|
10
10
|
"main": "dist/cjs/index.cjs",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@player-ui/types-provider-plugin": "0.15.
|
|
12
|
+
"@player-ui/types-provider-plugin": "0.15.2-next.0",
|
|
13
13
|
"tslib": "^2.6.2"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@player-ui/player": "0.15.
|
|
16
|
+
"@player-ui/player": "0.15.2-next.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@player-ui/partial-match-registry": "workspace:*",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"types": "./types/index.d.ts",
|
|
31
31
|
"import": "./dist/index.mjs",
|
|
32
32
|
"default": "./dist/cjs/index.cjs"
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
|
+
"./dist/xlr/*": "./dist/xlr/*",
|
|
35
|
+
"./xlr": "./dist/xlr/manifest.js"
|
|
34
36
|
}
|
|
35
37
|
}
|