@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.
@@ -1 +1 @@
1
- {"version":3,"file":"roleToScopeMapping.d.ts","sourceRoot":"","sources":["../../../src/authorization/roleToScopeMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,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"}
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"}
@@ -1,4 +1,4 @@
1
- import { ProjectMemberRole } from '../types/projectMemberRole';
1
+ import { ProjectMemberRole, ProjectMemberRoleLabels, } from '../types/projectMemberRole';
2
2
  /**
3
3
  * Utility functions to convert project member roles to equivalent scope sets
4
4
  * for testing migration compatibility between role-based and scope-based authorization
@@ -137,8 +137,8 @@ export const getNonEnterpriseScopesForRole = (role) => {
137
137
  };
138
138
  export const getSystemRoles = () => ROLE_HIERARCHY.map((role) => ({
139
139
  roleUuid: role,
140
- name: role,
141
- description: role,
140
+ name: ProjectMemberRoleLabels[role],
141
+ description: ProjectMemberRoleLabels[role],
142
142
  ownerType: 'system',
143
143
  scopes: getAllScopesForRole(role),
144
144
  organizationUuid: null,
@@ -1 +1 @@
1
- {"version":3,"file":"roleToScopeMapping.js","sourceRoot":"","sources":["../../../src/authorization/roleToScopeMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;GAGG;AAEH;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACrB,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE;QACxB,4BAA4B;QAC5B,gBAAgB;QAChB,qBAAqB,EAAE,yCAAyC;QAChE,iBAAiB;QACjB,YAAY;QACZ,cAAc;QACd,kBAAkB;QAClB,wBAAwB;QACxB,WAAW;QACX,kBAAkB;QAElB,qCAAqC;QACrC,kBAAkB;QAClB,2BAA2B;QAC3B,yBAAyB;KAC5B;IAED,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,EAAE;QACpC,4CAA4C;QAC5C,qBAAqB;QACrB,qBAAqB;QACrB,gBAAgB;QAChB,yBAAyB;QACzB,4BAA4B;QAC5B,0BAA0B;QAC1B,qBAAqB;QAErB,oEAAoE;QACpE,wBAAwB,EAAE,mBAAmB;QAC7C,yBAAyB,EAAE,mBAAmB;QAC9C,uBAAuB,EAAE,gCAAgC;QAEzD,o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AC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC1B,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,QAAQ;IACnB,MAAM,EAAE,mBAAmB,CAAC,IAAI,CAAC;IACjC,gBAAgB,EAAE,IAAI;IACtB,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;CAClB,CAAC,CAAC,CAAC;AAER,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAgB,EAAiC,EAAE,CAC5E,cAAc,CAAC,QAAQ,CAAC,QAA6B,CAAC,CAAC"}
1
+ {"version":3,"file":"roleToScopeMapping.js","sourceRoot":"","sources":["../../../src/authorization/roleToScopeMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,uBAAuB,GAC1B,MAAM,4BAA4B,CAAC;AAGpC;;;GAGG;AAEH;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACrB,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE;QACxB,4BAA4B;QAC5B,gBAAgB;QAChB,qBAAqB,EAAE,yCAAyC;QAChE,iBAAiB;QACjB,YAAY;QACZ,cAAc;QACd,kBAAkB;QAClB,wBAAwB;QACxB,WAAW;QACX,kBAAkB;QAElB,qCAAqC;QACrC,kBAAkB;QAClB,2BAA2B;QAC3B,yBAAyB;KAC5B;IAED,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,EAAE;QACpC,4CAA4C;QAC5C,qBAAqB;QACrB,qBAAqB;QACrB,gBAAgB;QAChB,yBAAyB;QACzB,4BAA4B;QAC5B,0BAA0B;QAC1B,qBAAqB;QAErB,oEAAoE;QACpE,wBAAwB,EAAE,mBAAmB;QAC7C,yBAAyB,EAAE,mBAAmB;QAC9C,uBAAuB,EAAE,gCAAgC;QAEzD,oBAAoB;QACpB,cAAc;QACd,sBAAsB;KACzB;IAED,CAAC,iBAAiB,CAAC,MAAM,CAA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AE,uBAAuB,CAAC,IAAI,CAAC;IACnC,WAAW,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAC1C,SAAS,EAAE,QAAQ;IACnB,MAAM,EAAE,mBAAmB,CAAC,IAAI,CAAC;IACjC,gBAAgB,EAAE,IAAI;IACtB,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;CAClB,CAAC,CAAC,CAAC;AAER,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAgB,EAAiC,EAAE,CAC5E,cAAc,CAAC,QAAQ,CAAC,QAA6B,CAAC,CAAC"}
@@ -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,WAA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,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,sBAAsB,yVAiB9D,CAAC"}
@@ -7,6 +7,14 @@ export var OrganizationMemberRole;
7
7
  OrganizationMemberRole["DEVELOPER"] = "developer";
8
8
  OrganizationMemberRole["ADMIN"] = "admin";
9
9
  })(OrganizationMemberRole || (OrganizationMemberRole = {}));
10
+ export const OrganizationMemberRoleLabels = {
11
+ [OrganizationMemberRole.MEMBER]: 'Member',
12
+ [OrganizationMemberRole.VIEWER]: 'Viewer',
13
+ [OrganizationMemberRole.INTERACTIVE_VIEWER]: 'Interactive Viewer',
14
+ [OrganizationMemberRole.EDITOR]: 'Editor',
15
+ [OrganizationMemberRole.DEVELOPER]: 'Developer',
16
+ [OrganizationMemberRole.ADMIN]: 'Admin',
17
+ };
10
18
  export const isOrganizationMemberRole = (x) => Object.values(OrganizationMemberRole).includes(x);
11
19
  export const isOrganizationMemberProfileWithGroups = (obj) => 'groups' in obj;
12
20
  export const getRoleDescription = (role) => {
@@ -1 +1 @@
1
- {"version":3,"file":"organizationMemberProfile.js","sourceRoot":"","sources":["../../../src/types/organizationMemberProfile.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,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,KAAtB,sBAAsB,QAOjC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACpC,CAAS,EACkB,EAAE,CAC7B,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,CAA2B,CAAC,CAAC;AA2ChF,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACjD,GAAoE,EAC1B,EAAE,CAAC,QAAQ,IAAI,GAAG,CAAC;AAgBjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAA4B,EAAE,EAAE;IAC/D,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,sBAAsB,CAAC,MAAM;YAC9B,OAAO,kFAAkF,CAAC;QAC9F,KAAK,sBAAsB,CAAC,MAAM;YAC9B,OAAO,sCAAsC,CAAC;QAClD,KAAK,sBAAsB,CAAC,kBAAkB;YAC1C,OAAO,+FAA+F,CAAC;QAC3G,KAAK,sBAAsB,CAAC,MAAM;YAC9B,OAAO,sCAAsC,CAAC;QAClD,KAAK,sBAAsB,CAAC,SAAS;YACjC,OAAO,sCAAsC,CAAC;QAClD,KAAK,sBAAsB,CAAC,KAAK;YAC7B,OAAO,oEAAoE,CAAC;QAChF;YACI,OAAO,IAAI,CAAC;IACpB,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"organizationMemberProfile.js","sourceRoot":"","sources":["../../../src/types/organizationMemberProfile.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,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,KAAtB,sBAAsB,QAOjC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAGrC;IACA,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,QAAQ;IACzC,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,QAAQ;IACzC,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,EAAE,oBAAoB;IACjE,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,QAAQ;IACzC,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE,WAAW;IAC/C,CAAC,sBAAsB,CAAC,KAAK,CAAC,EAAE,OAAO;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACpC,CAAS,EACkB,EAAE,CAC7B,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,CAA2B,CAAC,CAAC;AA2ChF,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACjD,GAAoE,EAC1B,EAAE,CAAC,QAAQ,IAAI,GAAG,CAAC;AAgBjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAA4B,EAAE,EAAE;IAC/D,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,sBAAsB,CAAC,MAAM;YAC9B,OAAO,kFAAkF,CAAC;QAC9F,KAAK,sBAAsB,CAAC,MAAM;YAC9B,OAAO,sCAAsC,CAAC;QAClD,KAAK,sBAAsB,CAAC,kBAAkB;YAC1C,OAAO,+FAA+F,CAAC;QAC3G,KAAK,sBAAsB,CAAC,MAAM;YAC9B,OAAO,sCAAsC,CAAC;QAClD,KAAK,sBAAsB,CAAC,SAAS;YACjC,OAAO,sCAAsC,CAAC;QAClD,KAAK,sBAAsB,CAAC,KAAK;YAC7B,OAAO,oEAAoE,CAAC;QAChF;YACI,OAAO,IAAI,CAAC;IACpB,CAAC;AACL,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.2143.2",
3
+ "version": "0.2143.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",