@xemahq/platform-common 0.26.0 → 0.27.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.
@@ -1,4 +1,4 @@
1
1
  export { type GrowthGate, type GrowthGateSubject, type GrowthGateVerdict, GrowthGateRefusal, evaluateGrowthGate, growthGateSatisfiesFloor, } from './growth-gate';
2
2
  export { type OrgGrowthPolicy, EXTERNAL_PUBLISHING_FLOOR, EXTERNAL_PUBLISHING_ALWAYS_DECIDES, BACKGROUND_GRANTS_ALWAYS_DECIDE, MIN_INTERNAL_PUBLISH_REVIEW_QUORUM, MAX_INTERNAL_PUBLISH_REVIEW_QUORUM, allowListAdmits, internalPublishNeedsReview, } from './org-growth-policy';
3
- export { MemberShellMode, type MemberShellModeOverride, type OrgExperiencePolicy, resolveMemberShellMode, } from './member-shell-mode';
3
+ export { MemberShellMode, type MemberShellModeOverride, type OrgExperiencePolicy, } from './member-shell-mode';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/growth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,eAAe,EACpB,yBAAyB,EACzB,kCAAkC,EAClC,+BAA+B,EAC/B,kCAAkC,EAClC,kCAAkC,EAClC,eAAe,EACf,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/growth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,eAAe,EACpB,yBAAyB,EACzB,kCAAkC,EAClC,+BAA+B,EAC/B,kCAAkC,EAClC,kCAAkC,EAClC,eAAe,EACf,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,MAAM,qBAAqB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveMemberShellMode = exports.MemberShellMode = exports.internalPublishNeedsReview = exports.allowListAdmits = exports.MAX_INTERNAL_PUBLISH_REVIEW_QUORUM = exports.MIN_INTERNAL_PUBLISH_REVIEW_QUORUM = exports.BACKGROUND_GRANTS_ALWAYS_DECIDE = exports.EXTERNAL_PUBLISHING_ALWAYS_DECIDES = exports.EXTERNAL_PUBLISHING_FLOOR = exports.growthGateSatisfiesFloor = exports.evaluateGrowthGate = exports.GrowthGateRefusal = void 0;
3
+ exports.MemberShellMode = exports.internalPublishNeedsReview = exports.allowListAdmits = exports.MAX_INTERNAL_PUBLISH_REVIEW_QUORUM = exports.MIN_INTERNAL_PUBLISH_REVIEW_QUORUM = exports.BACKGROUND_GRANTS_ALWAYS_DECIDE = exports.EXTERNAL_PUBLISHING_ALWAYS_DECIDES = exports.EXTERNAL_PUBLISHING_FLOOR = exports.growthGateSatisfiesFloor = exports.evaluateGrowthGate = exports.GrowthGateRefusal = void 0;
4
4
  var growth_gate_1 = require("./growth-gate");
5
5
  Object.defineProperty(exports, "GrowthGateRefusal", { enumerable: true, get: function () { return growth_gate_1.GrowthGateRefusal; } });
6
6
  Object.defineProperty(exports, "evaluateGrowthGate", { enumerable: true, get: function () { return growth_gate_1.evaluateGrowthGate; } });
@@ -15,5 +15,4 @@ Object.defineProperty(exports, "allowListAdmits", { enumerable: true, get: funct
15
15
  Object.defineProperty(exports, "internalPublishNeedsReview", { enumerable: true, get: function () { return org_growth_policy_1.internalPublishNeedsReview; } });
16
16
  var member_shell_mode_1 = require("./member-shell-mode");
17
17
  Object.defineProperty(exports, "MemberShellMode", { enumerable: true, get: function () { return member_shell_mode_1.MemberShellMode; } });
18
- Object.defineProperty(exports, "resolveMemberShellMode", { enumerable: true, get: function () { return member_shell_mode_1.resolveMemberShellMode; } });
19
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/growth/index.ts"],"names":[],"mappings":";;;AAAA,6CAOuB;AAHrB,gHAAA,iBAAiB,OAAA;AACjB,iHAAA,kBAAkB,OAAA;AAClB,uHAAA,wBAAwB,OAAA;AAE1B,yDAS6B;AAP3B,8HAAA,yBAAyB,OAAA;AACzB,uIAAA,kCAAkC,OAAA;AAClC,oIAAA,+BAA+B,OAAA;AAC/B,uIAAA,kCAAkC,OAAA;AAClC,uIAAA,kCAAkC,OAAA;AAClC,oHAAA,eAAe,OAAA;AACf,+HAAA,0BAA0B,OAAA;AAE5B,yDAK6B;AAJ3B,oHAAA,eAAe,OAAA;AAGf,2HAAA,sBAAsB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/growth/index.ts"],"names":[],"mappings":";;;AAAA,6CAOuB;AAHrB,gHAAA,iBAAiB,OAAA;AACjB,iHAAA,kBAAkB,OAAA;AAClB,uHAAA,wBAAwB,OAAA;AAE1B,yDAS6B;AAP3B,8HAAA,yBAAyB,OAAA;AACzB,uIAAA,kCAAkC,OAAA;AAClC,oIAAA,+BAA+B,OAAA;AAC/B,uIAAA,kCAAkC,OAAA;AAClC,uIAAA,kCAAkC,OAAA;AAClC,oHAAA,eAAe,OAAA;AACf,+HAAA,0BAA0B,OAAA;AAE5B,yDAI6B;AAH3B,oHAAA,eAAe,OAAA"}
@@ -10,5 +10,4 @@ export interface OrgExperiencePolicy {
10
10
  readonly memberShellMode?: MemberShellMode;
11
11
  readonly shellModeOverrides?: readonly MemberShellModeOverride[];
12
12
  }
13
- export declare function resolveMemberShellMode(policy: OrgExperiencePolicy | undefined, subjectGroupIds: readonly string[]): MemberShellMode;
14
13
  //# sourceMappingURL=member-shell-mode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"member-shell-mode.d.ts","sourceRoot":"","sources":["../../../src/lib/growth/member-shell-mode.ts"],"names":[],"mappings":"AAcA,oBAAY,eAAe;IAEzB,IAAI,SAAS;IAEb,aAAa,mBAAmB;CACjC;AAGD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;CAChC;AASD,MAAM,WAAW,mBAAmB;IAElC,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAClE;AAeD,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,eAAe,EAAE,SAAS,MAAM,EAAE,GACjC,eAAe,CAUjB"}
1
+ {"version":3,"file":"member-shell-mode.d.ts","sourceRoot":"","sources":["../../../src/lib/growth/member-shell-mode.ts"],"names":[],"mappings":"AAcA,oBAAY,eAAe;IAEzB,IAAI,SAAS;IAEb,aAAa,mBAAmB;CACjC;AAGD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;CAChC;AASD,MAAM,WAAW,mBAAmB;IAkBlC,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAClE"}
@@ -1,21 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MemberShellMode = void 0;
4
- exports.resolveMemberShellMode = resolveMemberShellMode;
5
4
  var MemberShellMode;
6
5
  (function (MemberShellMode) {
7
6
  MemberShellMode["Full"] = "full";
8
7
  MemberShellMode["PortalFocused"] = "portal-focused";
9
8
  })(MemberShellMode || (exports.MemberShellMode = MemberShellMode = {}));
10
- function resolveMemberShellMode(policy, subjectGroupIds) {
11
- if (policy === undefined) {
12
- return MemberShellMode.Full;
13
- }
14
- for (const override of policy.shellModeOverrides ?? []) {
15
- if (subjectGroupIds.includes(override.groupId)) {
16
- return override.mode;
17
- }
18
- }
19
- return policy.memberShellMode ?? MemberShellMode.Full;
20
- }
21
9
  //# sourceMappingURL=member-shell-mode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"member-shell-mode.js","sourceRoot":"","sources":["../../../src/lib/growth/member-shell-mode.ts"],"names":[],"mappings":";;;AAqDA,wDAaC;AApDD,IAAY,eAKX;AALD,WAAY,eAAe;IAEzB,gCAAa,CAAA;IAEb,mDAAgC,CAAA;AAClC,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAkCD,SAAgB,sBAAsB,CACpC,MAAuC,EACvC,eAAkC;IAElC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,eAAe,CAAC,IAAI,CAAC;IAC9B,CAAC;IACD,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,kBAAkB,IAAI,EAAE,EAAE,CAAC;QACvD,IAAI,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/C,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC;AACxD,CAAC"}
1
+ {"version":3,"file":"member-shell-mode.js","sourceRoot":"","sources":["../../../src/lib/growth/member-shell-mode.ts"],"names":[],"mappings":";;;AAcA,IAAY,eAKX;AALD,WAAY,eAAe;IAEzB,gCAAa,CAAA;IAEb,mDAAgC,CAAA;AAClC,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/platform-common",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Shared NestJS building blocks for Xema services — auth guards, response redaction, CORS configuration, and crypto helpers.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
@@ -62,7 +62,7 @@
62
62
  "rxjs": "7.8.2",
63
63
  "ts-jest": "^29.4.9",
64
64
  "typescript": "5.9.3",
65
- "@xemahq/kernel-contracts": "^31.0.0"
65
+ "@xemahq/kernel-contracts": "^32.1.0"
66
66
  },
67
67
  "exports": {
68
68
  ".": {