@lightdash/common 0.2143.2 → 0.2143.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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/authorization/roleToScopeMapping.d.ts.map +1 -1
- package/dist/cjs/authorization/roleToScopeMapping.js +2 -2
- package/dist/cjs/authorization/roleToScopeMapping.js.map +1 -1
- package/dist/cjs/types/organizationMemberProfile.d.ts +1 -0
- package/dist/cjs/types/organizationMemberProfile.d.ts.map +1 -1
- package/dist/cjs/types/organizationMemberProfile.js +9 -1
- package/dist/cjs/types/organizationMemberProfile.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/authorization/roleToScopeMapping.d.ts.map +1 -1
- package/dist/esm/authorization/roleToScopeMapping.js +3 -3
- package/dist/esm/authorization/roleToScopeMapping.js.map +1 -1
- package/dist/esm/types/organizationMemberProfile.d.ts +1 -0
- package/dist/esm/types/organizationMemberProfile.d.ts.map +1 -1
- package/dist/esm/types/organizationMemberProfile.js +8 -0
- package/dist/esm/types/organizationMemberProfile.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/authorization/roleToScopeMapping.d.ts.map +1 -1
- package/dist/types/authorization/roleToScopeMapping.js +3 -3
- package/dist/types/authorization/roleToScopeMapping.js.map +1 -1
- package/dist/types/types/organizationMemberProfile.d.ts +1 -0
- package/dist/types/types/organizationMemberProfile.d.ts.map +1 -1
- package/dist/types/types/organizationMemberProfile.js +8 -0
- package/dist/types/types/organizationMemberProfile.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roleToScopeMapping.d.ts","sourceRoot":"","sources":["../../../src/authorization/roleToScopeMapping.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"roleToScopeMapping.d.ts","sourceRoot":"","sources":["../../../src/authorization/roleToScopeMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EAEpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AA2GrD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,CAoBnE,CAAC;AAET;;GAEG;AACH,eAAO,MAAM,mBAAmB,SAAU,iBAAiB,KAAG,MAAM,EAEnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,SAChC,iBAAiB,KACxB,MAAM,EAkBR,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,cAAc,EAWzC,CAAC;AAER,eAAO,MAAM,YAAY,aAAc,MAAM,KAAG,QAAQ,IAAI,iBACF,CAAC"}
|
|
@@ -142,8 +142,8 @@ const getNonEnterpriseScopesForRole = (role) => {
|
|
|
142
142
|
exports.getNonEnterpriseScopesForRole = getNonEnterpriseScopesForRole;
|
|
143
143
|
const getSystemRoles = () => ROLE_HIERARCHY.map((role) => ({
|
|
144
144
|
roleUuid: role,
|
|
145
|
-
name: role,
|
|
146
|
-
description: role,
|
|
145
|
+
name: projectMemberRole_1.ProjectMemberRoleLabels[role],
|
|
146
|
+
description: projectMemberRole_1.ProjectMemberRoleLabels[role],
|
|
147
147
|
ownerType: 'system',
|
|
148
148
|
scopes: (0, exports.getAllScopesForRole)(role),
|
|
149
149
|
organizationUuid: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roleToScopeMapping.js","sourceRoot":"","sources":["../../../src/authorization/roleToScopeMapping.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"roleToScopeMapping.js","sourceRoot":"","sources":["../../../src/authorization/roleToScopeMapping.ts"],"names":[],"mappings":";;;AAAA,kEAGoC;AAGpC;;;GAGG;AAEH;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACrB,CAAC,qCAAiB,CAAC,MAAM,CAAC,EAAE;QACxB,4B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,EACf,EAAE;IACV,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC;QAC7B,kBAAkB;QAClB,oBAAoB;QACpB,2BAA2B;QAC3B,6BAA6B;QAC7B,cAAc;QACd,oBAAoB;QACpB,sBAAsB;QACtB,gBAAgB;QAChB,sBAAsB;QACtB,sBAAsB;QACtB,4BAA4B;KAC/B,CAAC,CAAC;IAEH,OAAO,kCAA0B,CAAC,IAAI,CAAC,CAAC,MAAM,CAC1C,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,CAC1C,CAAC;AACN,CAAC,CAAC;AApBW,QAAA,6BAA6B,iCAoBxC;AAEK,MAAM,cAAc,GAAG,GAAqB,EAAE,CACjD,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC1B,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,2CAAuB,CAAC,IAAI,CAAC;IACnC,WAAW,EAAE,2CAAuB,CAAC,IAAI,CAAC;IAC1C,SAAS,EAAE,QAAQ;IACnB,MAAM,EAAE,IAAA,2BAAmB,EAAC,IAAI,CAAC;IACjC,gBAAgB,EAAE,IAAI;IACtB,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;CAClB,CAAC,CAAC,CAAC;AAXK,QAAA,cAAc,kBAWnB;AAED,MAAM,YAAY,GAAG,CAAC,QAAgB,EAAiC,EAAE,CAC5E,cAAc,CAAC,QAAQ,CAAC,QAA6B,CAAC,CAAC;AAD9C,QAAA,YAAY,gBACkC"}
|
|
@@ -8,6 +8,7 @@ export declare enum OrganizationMemberRole {
|
|
|
8
8
|
DEVELOPER = "developer",
|
|
9
9
|
ADMIN = "admin"
|
|
10
10
|
}
|
|
11
|
+
export declare const OrganizationMemberRoleLabels: Record<OrganizationMemberRole, string>;
|
|
11
12
|
export declare const isOrganizationMemberRole: (x: string) => x is OrganizationMemberRole;
|
|
12
13
|
/**
|
|
13
14
|
* Profile for a user's membership in an organization
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationMemberProfile.d.ts","sourceRoot":"","sources":["../../../src/types/organizationMemberProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,oBAAY,sBAAsB;IAC9B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,kBAAkB,uBAAuB;IACzC,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,KAAK,UAAU;CAClB;AAED,eAAO,MAAM,wBAAwB,MAC9B,MAAM,KACV,CAAC,IAAI,sBACuE,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACpC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,IAAI,CAAC;IACpB,aAAa,EAAE,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,yBAAyB,GAAG;IAC1E,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,qCAAqC,QACzC,yBAAyB,GAAG,mCAAmC,KACrE,GAAG,IAAI,mCAAsD,CAAC;AAEjE,MAAM,MAAM,+BAA+B,GAAG;IAC1C,IAAI,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IACxC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,iBAAiB,CAAC,yBAAyB,EAAE,CAAC,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,sBAAsB,yVAiB9D,CAAC"}
|
|
1
|
+
{"version":3,"file":"organizationMemberProfile.d.ts","sourceRoot":"","sources":["../../../src/types/organizationMemberProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,oBAAY,sBAAsB;IAC9B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,kBAAkB,uBAAuB;IACzC,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,KAAK,UAAU;CAClB;AAED,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC7C,sBAAsB,EACtB,MAAM,CAQT,CAAC;AAEF,eAAO,MAAM,wBAAwB,MAC9B,MAAM,KACV,CAAC,IAAI,sBACuE,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACpC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,IAAI,CAAC;IACpB,aAAa,EAAE,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,yBAAyB,GAAG;IAC1E,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,qCAAqC,QACzC,yBAAyB,GAAG,mCAAmC,KACrE,GAAG,IAAI,mCAAsD,CAAC;AAEjE,MAAM,MAAM,+BAA+B,GAAG;IAC1C,IAAI,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IACxC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,iBAAiB,CAAC,yBAAyB,EAAE,CAAC,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,sBAAsB,yVAiB9D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRoleDescription = exports.isOrganizationMemberProfileWithGroups = exports.isOrganizationMemberRole = exports.OrganizationMemberRole = void 0;
|
|
3
|
+
exports.getRoleDescription = exports.isOrganizationMemberProfileWithGroups = exports.isOrganizationMemberRole = exports.OrganizationMemberRoleLabels = exports.OrganizationMemberRole = void 0;
|
|
4
4
|
var OrganizationMemberRole;
|
|
5
5
|
(function (OrganizationMemberRole) {
|
|
6
6
|
OrganizationMemberRole["MEMBER"] = "member";
|
|
@@ -10,6 +10,14 @@ var OrganizationMemberRole;
|
|
|
10
10
|
OrganizationMemberRole["DEVELOPER"] = "developer";
|
|
11
11
|
OrganizationMemberRole["ADMIN"] = "admin";
|
|
12
12
|
})(OrganizationMemberRole || (exports.OrganizationMemberRole = OrganizationMemberRole = {}));
|
|
13
|
+
exports.OrganizationMemberRoleLabels = {
|
|
14
|
+
[OrganizationMemberRole.MEMBER]: 'Member',
|
|
15
|
+
[OrganizationMemberRole.VIEWER]: 'Viewer',
|
|
16
|
+
[OrganizationMemberRole.INTERACTIVE_VIEWER]: 'Interactive Viewer',
|
|
17
|
+
[OrganizationMemberRole.EDITOR]: 'Editor',
|
|
18
|
+
[OrganizationMemberRole.DEVELOPER]: 'Developer',
|
|
19
|
+
[OrganizationMemberRole.ADMIN]: 'Admin',
|
|
20
|
+
};
|
|
13
21
|
const isOrganizationMemberRole = (x) => Object.values(OrganizationMemberRole).includes(x);
|
|
14
22
|
exports.isOrganizationMemberRole = isOrganizationMemberRole;
|
|
15
23
|
const isOrganizationMemberProfileWithGroups = (obj) => 'groups' in obj;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationMemberProfile.js","sourceRoot":"","sources":["../../../src/types/organizationMemberProfile.ts"],"names":[],"mappings":";;;AAGA,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAC9B,2CAAiB,CAAA;IACjB,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,2CAAiB,CAAA;IACjB,iDAAuB,CAAA;IACvB,yCAAe,CAAA;AACnB,CAAC,EAPW,sBAAsB,sCAAtB,sBAAsB,QAOjC;
|
|
1
|
+
{"version":3,"file":"organizationMemberProfile.js","sourceRoot":"","sources":["../../../src/types/organizationMemberProfile.ts"],"names":[],"mappings":";;;AAGA,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAC9B,2CAAiB,CAAA;IACjB,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,2CAAiB,CAAA;IACjB,iDAAuB,CAAA;IACvB,yCAAe,CAAA;AACnB,CAAC,EAPW,sBAAsB,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