@gravitee/gamma-modules-sdk 1.2.0-gma-901.02c1fc7 → 1.2.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/dist/types.d.ts CHANGED
@@ -4,5 +4,4 @@ export type { Environment } from './environment/types';
4
4
  export type { IEnvironmentService, UseEnvironmentFn } from './environment/interfaces';
5
5
  export type { License } from './license/types';
6
6
  export type { ILicenseService, UseHasFeatureFn, UseHasPackFn } from './license/interfaces';
7
- export type { ModuleId, Pack, ModulePacks } from './modules';
8
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACtF,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC3F,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACtF,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/gamma-modules-sdk",
3
- "version": "1.2.0-gma-901.02c1fc7",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "packageManager": "yarn@4.13.0",
@@ -24,10 +24,6 @@
24
24
  "types": "./dist/routing.d.ts",
25
25
  "import": "./dist/routing.js"
26
26
  },
27
- "./modules": {
28
- "types": "./dist/modules.d.ts",
29
- "import": "./dist/modules.js"
30
- },
31
27
  "./mock": {
32
28
  "types": "./dist/mock.d.ts",
33
29
  "import": "./dist/mock.js"
package/dist/modules.d.ts DELETED
@@ -1,39 +0,0 @@
1
- /**
2
- * Technical catalog shared by the Gamma host and every federated module.
3
- *
4
- * Pure data — no React, no host dependency. The host enriches this with presentation
5
- * (titles, icons, upsell copy); modules consume the pack ids to gate enterprise features.
6
- * This is the single source of truth for the module → required-packs mapping.
7
- */
8
- /** Gamma module plugin ids. Must match `plugin.properties#id` of `gravitee-gamma-module-<id>`. */
9
- export type ModuleId = 'aim' | 'apim' | 'platform' | 'authz' | 'esm' | 'edge';
10
- /** Enterprise license pack ids, exactly as they appear in `license.packs`. */
11
- export type Pack = 'agent-management' | 'agent-mesh' | 'event-streaming-management' | 'event-native-management' | 'native-kafka' | 'edge-management' | 'authorization-management' | 'identity-and-access-management';
12
- /** Named constants for pack ids so host and modules share one vocabulary instead of raw strings. */
13
- export declare const PACKS: {
14
- readonly AGENT_MANAGEMENT: "agent-management";
15
- readonly AGENT_MESH: "agent-mesh";
16
- readonly EVENT_STREAMING_MANAGEMENT: "event-streaming-management";
17
- readonly EVENT_NATIVE_MANAGEMENT: "event-native-management";
18
- readonly NATIVE_KAFKA: "native-kafka";
19
- readonly EDGE_MANAGEMENT: "edge-management";
20
- readonly AUTHORIZATION_MANAGEMENT: "authorization-management";
21
- readonly IDENTITY_AND_ACCESS_MANAGEMENT: "identity-and-access-management";
22
- };
23
- export interface ModulePacks {
24
- readonly moduleId: ModuleId;
25
- /** Packs that unlock this module. Empty ⇒ core module: ships with every installation, no license gate. */
26
- readonly packs: readonly Pack[];
27
- }
28
- /**
29
- * Canonical module → required-packs mapping.
30
- *
31
- * A module is licensed when the org holds *all* of its packs. Core modules (`apim`, `platform`)
32
- * have no requirement and are always accessible.
33
- *
34
- * and whether `aim` additionally requires `agent-mesh`.
35
- */
36
- export declare const MODULE_PACKS: readonly ModulePacks[];
37
- /** Packs required to unlock `moduleId`. Empty for core modules and unknown ids. */
38
- export declare function packsForModule(moduleId: ModuleId): readonly Pack[];
39
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,kGAAkG;AAClG,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9E,8EAA8E;AAC9E,MAAM,MAAM,IAAI,GACZ,kBAAkB,GAClB,YAAY,GACZ,4BAA4B,GAC5B,yBAAyB,GACzB,cAAc,GACd,iBAAiB,GACjB,0BAA0B,GAC1B,gCAAgC,CAAC;AAErC,oGAAoG;AACpG,eAAO,MAAM,KAAK;;;;;;;;;CASuB,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,0GAA0G;IAC1G,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,WAAW,EAO9C,CAAC;AAEF,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,IAAI,EAAE,CAElE"}
package/dist/modules.js DELETED
@@ -1,41 +0,0 @@
1
- //#region src/modules.ts
2
- var e = {
3
- AGENT_MANAGEMENT: "agent-management",
4
- AGENT_MESH: "agent-mesh",
5
- EVENT_STREAMING_MANAGEMENT: "event-streaming-management",
6
- EVENT_NATIVE_MANAGEMENT: "event-native-management",
7
- NATIVE_KAFKA: "native-kafka",
8
- EDGE_MANAGEMENT: "edge-management",
9
- AUTHORIZATION_MANAGEMENT: "authorization-management",
10
- IDENTITY_AND_ACCESS_MANAGEMENT: "identity-and-access-management"
11
- }, t = [
12
- {
13
- moduleId: "aim",
14
- packs: [e.AGENT_MANAGEMENT]
15
- },
16
- {
17
- moduleId: "apim",
18
- packs: []
19
- },
20
- {
21
- moduleId: "platform",
22
- packs: []
23
- },
24
- {
25
- moduleId: "authz",
26
- packs: [e.AUTHORIZATION_MANAGEMENT]
27
- },
28
- {
29
- moduleId: "esm",
30
- packs: [e.EVENT_STREAMING_MANAGEMENT, e.EVENT_NATIVE_MANAGEMENT]
31
- },
32
- {
33
- moduleId: "edge",
34
- packs: [e.EDGE_MANAGEMENT]
35
- }
36
- ];
37
- function n(e) {
38
- return t.find((t) => t.moduleId === e)?.packs ?? [];
39
- }
40
- //#endregion
41
- export { t as MODULE_PACKS, e as PACKS, n as packsForModule };