@lightdash/common 0.1464.3 → 0.1466.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/LICENSE +6 -2
- package/dist/compiler/exploreCompiler.d.ts +1 -1
- package/dist/compiler/exploreCompiler.js +3 -7
- package/dist/compiler/exploreCompiler.mock.js +2 -0
- package/dist/compiler/lightdashProjectConfig.d.ts +19 -0
- package/dist/compiler/lightdashProjectConfig.js +41 -0
- package/dist/compiler/translator.js +9 -11
- package/dist/compiler/translator.mock.js +9 -0
- package/dist/ee/Ai/schemas.d.ts +2094 -0
- package/dist/ee/Ai/schemas.js +201 -0
- package/dist/ee/Ai/types.d.ts +136 -0
- package/dist/ee/Ai/types.js +12 -0
- package/dist/ee/commercialFeatureFlags.d.ts +5 -0
- package/dist/ee/commercialFeatureFlags.js +9 -0
- package/dist/ee/embed/index.d.ts +180 -0
- package/dist/ee/embed/index.js +73 -0
- package/dist/ee/index.d.ts +14 -0
- package/dist/ee/index.js +19 -0
- package/dist/ee/scim/errors.d.ts +32 -0
- package/dist/ee/scim/errors.js +24 -0
- package/dist/ee/scim/types.d.ts +119 -0
- package/dist/ee/scim/types.js +2 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3 -1
- package/dist/index.test.js +23 -0
- package/dist/schemas/json/lightdash-dbt-2.0.json +50 -6
- package/dist/schemas/json/lightdash-project-config-1.0.json +33 -1
- package/dist/types/analytics.d.ts +2 -0
- package/dist/types/analytics.js +2 -0
- package/dist/types/catalog.d.ts +3 -2
- package/dist/types/dashboard.d.ts +2 -2
- package/dist/types/dbt.d.ts +5 -2
- package/dist/types/dbt.js +7 -9
- package/dist/types/explore.d.ts +2 -1
- package/dist/types/field.d.ts +2 -1
- package/dist/types/lightdashProjectConfig.d.ts +8 -1
- package/dist/types/slack.d.ts +1 -0
- package/dist/types/slackSettings.js +1 -0
- package/dist/types/tags.d.ts +5 -0
- package/dist/utils/email.d.ts +1 -0
- package/dist/utils/email.js +3 -1
- package/dist/utils/item.d.ts +1 -0
- package/package.json +1 -1
package/dist/types/tags.d.ts
CHANGED
@@ -5,6 +5,7 @@ export type Tag = {
|
|
5
5
|
name: string;
|
6
6
|
color: string;
|
7
7
|
createdAt: Date;
|
8
|
+
yamlReference: string | null;
|
8
9
|
createdBy: Pick<LightdashUser, 'userUuid' | 'firstName' | 'lastName'> | null;
|
9
10
|
};
|
10
11
|
export type ApiGetTagsResponse = {
|
@@ -17,3 +18,7 @@ export type ApiCreateTagResponse = {
|
|
17
18
|
tagUuid: string;
|
18
19
|
};
|
19
20
|
};
|
21
|
+
export type ApiReplaceYamlTagsResponse = {
|
22
|
+
status: 'ok';
|
23
|
+
results: undefined;
|
24
|
+
};
|
package/dist/utils/email.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
1
|
export declare const getEmailDomain: (email: string) => string;
|
2
2
|
export declare const isValidEmailDomain: (value: string) => RegExpMatchArray | null;
|
3
3
|
export declare const validateOrganizationEmailDomains: (domains: string[]) => string | undefined;
|
4
|
+
export declare const isValidEmailAddress: (email: string) => boolean;
|
package/dist/utils/email.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateOrganizationEmailDomains = exports.isValidEmailDomain = exports.getEmailDomain = void 0;
|
3
|
+
exports.isValidEmailAddress = exports.validateOrganizationEmailDomains = exports.isValidEmailDomain = exports.getEmailDomain = void 0;
|
4
4
|
const getEmailDomain = (email) => {
|
5
5
|
if (/\s/.test(email)) {
|
6
6
|
throw new Error(`Invalid email, contains whitespace: ${email}`);
|
@@ -78,3 +78,5 @@ const validateOrganizationEmailDomains = (domains) => {
|
|
78
78
|
return `${readableDomainList} ${invalidDomains.length === 1 ? 'is' : 'are'} not allowed as organization email(s)`;
|
79
79
|
};
|
80
80
|
exports.validateOrganizationEmailDomains = validateOrganizationEmailDomains;
|
81
|
+
const isValidEmailAddress = (email) => /^[\w.+-]+@[\w-]+\.[A-Za-z]{2,}(?:\.[A-Za-z]{2,})*$/.test(email);
|
82
|
+
exports.isValidEmailAddress = isValidEmailAddress;
|
package/dist/utils/item.d.ts
CHANGED
@@ -53,6 +53,7 @@ export declare const replaceDimensionInExplore: (explore: Explore, dimension: Co
|
|
53
53
|
type?: import("../types/explore").ExploreType | undefined;
|
54
54
|
spotlight?: {
|
55
55
|
visibility: "show" | "hide";
|
56
|
+
categories?: string[] | undefined;
|
56
57
|
} | undefined;
|
57
58
|
};
|
58
59
|
export declare const canApplyFormattingToCustomMetric: (item: Dimension, customMetricType: MetricType) => boolean;
|