@kong-ui-public/entities-plugins 2.6.6 → 2.6.7

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.
@@ -0,0 +1,73 @@
1
+ declare const _default: {
2
+ list: {
3
+ konnect: {
4
+ all: string;
5
+ forEntity: string;
6
+ };
7
+ kongManager: {
8
+ all: string;
9
+ forEntity: string;
10
+ };
11
+ };
12
+ select: {
13
+ konnect: {
14
+ availablePlugins: string;
15
+ };
16
+ kongManager: {
17
+ availablePlugins: string;
18
+ availablePluginsForOss: string;
19
+ };
20
+ };
21
+ form: {
22
+ konnect: {
23
+ create: {
24
+ all: string;
25
+ forEntity: string;
26
+ };
27
+ edit: {
28
+ all: string;
29
+ forEntity: string;
30
+ };
31
+ pluginSchema: string;
32
+ credential: {
33
+ create: string;
34
+ edit: string;
35
+ };
36
+ credentialSchema: string;
37
+ validate: string;
38
+ entityGetOne: string;
39
+ entityGetAll: string;
40
+ };
41
+ kongManager: {
42
+ create: {
43
+ all: string;
44
+ forEntity: string;
45
+ };
46
+ edit: {
47
+ all: string;
48
+ forEntity: string;
49
+ };
50
+ pluginSchema: string;
51
+ credential: {
52
+ create: string;
53
+ edit: string;
54
+ };
55
+ credentialSchema: string;
56
+ validate: string;
57
+ entityGetOne: string;
58
+ entityGetAll: string;
59
+ };
60
+ };
61
+ item: {
62
+ konnect: {
63
+ all: string;
64
+ forEntity: string;
65
+ };
66
+ kongManager: {
67
+ all: string;
68
+ forEntity: string;
69
+ };
70
+ };
71
+ };
72
+ export default _default;
73
+ //# sourceMappingURL=plugins-endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins-endpoints.d.ts","sourceRoot":"","sources":["../../src/plugins-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwEC"}
@@ -0,0 +1,73 @@
1
+ export default {
2
+ list: {
3
+ konnect: {
4
+ all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins',
5
+ forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins',
6
+ },
7
+ kongManager: {
8
+ all: '/{workspace}/plugins',
9
+ forEntity: '/{workspace}/{entityType}/{entityId}/plugins',
10
+ },
11
+ },
12
+ select: {
13
+ konnect: {
14
+ availablePlugins: '/v2/control-planes/{controlPlaneId}/core-entities/v1/available-plugins',
15
+ },
16
+ kongManager: {
17
+ availablePlugins: '/{workspace}/kong',
18
+ availablePluginsForOss: '/',
19
+ },
20
+ },
21
+ form: {
22
+ konnect: {
23
+ create: {
24
+ all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins',
25
+ forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins',
26
+ },
27
+ edit: {
28
+ all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins/{id}',
29
+ forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins/{id}',
30
+ },
31
+ pluginSchema: '/v2/control-planes/{controlPlaneId}/schemas/core-entities/plugins/{plugin}',
32
+ credential: {
33
+ create: '/v2/control-planes/{controlPlaneId}/core-entities/{resourceEndpoint}',
34
+ edit: '/v2/control-planes/{controlPlaneId}/core-entities/{resourceEndpoint}/{id}',
35
+ },
36
+ credentialSchema: '/v2/control-planes/{controlPlaneId}/schemas/core-entities/{plugin}',
37
+ validate: '/v2/control-planes/{controlPlaneId}/core-entities/v1/schemas/json/plugin/validate',
38
+ // VFG endpoints24
39
+ entityGetOne: '/v2/control-planes/{controlPlaneId}/core-entities/{entity}/{id}',
40
+ entityGetAll: '/v2/control-planes/{controlPlaneId}/core-entities/{entity}?size=1000',
41
+ },
42
+ kongManager: {
43
+ create: {
44
+ all: '/{workspace}/plugins',
45
+ forEntity: '/{workspace}/{entityType}/{entityId}/plugins',
46
+ },
47
+ edit: {
48
+ all: '/{workspace}/plugins/{id}',
49
+ forEntity: '/{workspace}/{entityType}/{entityId}/plugins/{id}',
50
+ },
51
+ pluginSchema: '/{workspace}/schemas/plugins/{plugin}',
52
+ credential: {
53
+ create: '/{workspace}/{resourceEndpoint}',
54
+ edit: '/{workspace}/{resourceEndpoint}/{id}',
55
+ },
56
+ credentialSchema: '/{workspace}/schemas/{plugin}',
57
+ validate: '/{workspace}/schemas/plugins/validate',
58
+ // VFG endpoints
59
+ entityGetOne: '/{workspace}/{entity}/{id}',
60
+ entityGetAll: '/{workspace}/{entity}',
61
+ },
62
+ },
63
+ item: {
64
+ konnect: {
65
+ all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins/{id}',
66
+ forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins/{id}',
67
+ },
68
+ kongManager: {
69
+ all: '/{workspace}/plugins/{id}',
70
+ forEntity: '/{workspace}/{entityType}/{entityId}/plugins/{id}',
71
+ },
72
+ },
73
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-plugins",
3
- "version": "2.6.6",
3
+ "version": "2.6.7",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-plugins.umd.js",
6
6
  "module": "./dist/entities-plugins.es.js",
@@ -15,7 +15,11 @@
15
15
  "types": "./dist/types/index.d.ts"
16
16
  },
17
17
  "./package.json": "./package.json",
18
- "./dist/*": "./dist/*"
18
+ "./dist/*": "./dist/*",
19
+ "./endpoints": {
20
+ "require": "./dist/endpoints/plugins-endpoints.js",
21
+ "types": "./dist/endpoints/plugins-endpoints.d.ts"
22
+ }
19
23
  },
20
24
  "publishConfig": {
21
25
  "access": "public"
@@ -54,18 +58,19 @@
54
58
  "@kong/icons": "^1.8.8",
55
59
  "marked": "^9.1.6",
56
60
  "@kong-ui-public/copy-uuid": "^2.0.19",
57
- "@kong-ui-public/entities-consumers": "^2.4.3",
58
- "@kong-ui-public/entities-routes": "^2.3.4",
61
+ "@kong-ui-public/entities-consumer-groups": "^2.3.3",
59
62
  "@kong-ui-public/entities-gateway-services": "^2.3.3",
60
- "@kong-ui-public/entities-shared": "^2.4.3",
61
- "@kong-ui-public/entities-consumer-groups": "^2.3.3"
63
+ "@kong-ui-public/entities-routes": "^2.3.4",
64
+ "@kong-ui-public/entities-consumers": "^2.4.3",
65
+ "@kong-ui-public/entities-shared": "^2.4.3"
62
66
  },
63
67
  "scripts": {
64
68
  "dev": "cross-env USE_SANDBOX=true vite",
65
- "build": "run-s typecheck build:package build:types",
69
+ "build": "run-s typecheck build:package build:types build:endpoints",
66
70
  "build:package": "vite build -m production",
67
71
  "build:analyzer": "BUILD_VISUALIZER='entities/entities-plugins' vite build -m production",
68
72
  "build:types": "vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly",
73
+ "build:endpoints": "tsc -p './tsconfig.endpoints.json'",
69
74
  "build:sandbox": "cross-env USE_SANDBOX=true vite build -m production",
70
75
  "preview": "cross-env USE_SANDBOX=true vite preview",
71
76
  "lint": "eslint '**/*.{js,jsx,ts,tsx,vue}' --ignore-path '../../../.eslintignore'",