@vizzly/semantic-layer-public 0.0.3 → 0.0.5

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.
@@ -13,7 +13,7 @@ const REDACT_KEYS_FROM_ERROR_MESSAGE = ['unencryptedCredentials', 'encryptedCred
13
13
  const SUPPORTED_SECURE_FILTER_OPS = Object.keys(constants_2.supportedOperatorsConstants);
14
14
  const SUPPORTED_ALLOWED_GRANULARITIES = ['second', 'minute', 'hour', 'day', 'week', 'month', 'quarter', 'year'];
15
15
  const SUPPORTED_JOINS = ['rightJoin', 'leftJoin', 'innerJoin', 'outerJoin', 'leftOuterJoin', 'rightOuterJoin'];
16
- exports.ALLOWED_ID_REGEX = /^[a-zA-Z0-9_+/=-]*$/;
16
+ exports.ALLOWED_ID_REGEX = /^[a-zA-Z0-9_+/=-\s]*$/;
17
17
  exports.ID_REGEX_ERROR_MESSAGE = 'IDs must only use alpha numeric characters and _';
18
18
  const DEFAULT_SCHEMA_OPTIONS = { checkConnectionSpecificDataSets: true };
19
19
  const joiOptions = { abortEarly: false, allowUnknown: true };
@@ -98,7 +98,7 @@ const baseDataSetSchema = (fieldSchema) => ({
98
98
  .required()
99
99
  .regex(exports.ALLOWED_ID_REGEX, exports.ID_REGEX_ERROR_MESSAGE)
100
100
  .description('A unique ID for the data set. This should not change unless the meaning of the data set represents changes.'),
101
- connectionId: joi_1.default.string().required(),
101
+ connectionId: joi_1.default.string().optional(),
102
102
  hide: joi_1.default.boolean().optional().description('Hide the data set from the dashboard.'),
103
103
  name: joi_1.default.string()
104
104
  .required()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/semantic-layer-public",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",