@kong-ui-public/entities-plugins 2.17.2 → 2.17.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":"plugins-endpoints.d.ts","sourceRoot":"","sources":["../../src/plugins-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwEC"}
1
+ {"version":3,"file":"plugins-endpoints.d.ts","sourceRoot":"","sources":["../../src/plugins-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAwEC"}
@@ -1,73 +1,75 @@
1
+ var konnectBaseApiUrl = '/v2/control-planes/{controlPlaneId}/core-entities';
2
+ var KMBaseApiUrl = '/{workspace}';
1
3
  export default {
2
4
  list: {
3
5
  konnect: {
4
- all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins',
5
- forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins',
6
+ all: "".concat(konnectBaseApiUrl, "/plugins"),
7
+ forEntity: "".concat(konnectBaseApiUrl, "/{entityType}/{entityId}/plugins"),
6
8
  },
7
9
  kongManager: {
8
- all: '/{workspace}/plugins',
9
- forEntity: '/{workspace}/{entityType}/{entityId}/plugins',
10
+ all: "".concat(KMBaseApiUrl, "/plugins"),
11
+ forEntity: "".concat(KMBaseApiUrl, "/{entityType}/{entityId}/plugins"),
10
12
  },
11
13
  },
12
14
  select: {
13
15
  konnect: {
14
- availablePlugins: '/v2/control-planes/{controlPlaneId}/core-entities/v1/available-plugins',
16
+ availablePlugins: "".concat(konnectBaseApiUrl, "/v1/available-plugins"),
15
17
  },
16
18
  kongManager: {
17
- availablePlugins: '/{workspace}/kong',
19
+ availablePlugins: "".concat(KMBaseApiUrl, "/kong"),
18
20
  availablePluginsForOss: '/',
19
21
  },
20
22
  },
21
23
  form: {
22
24
  konnect: {
23
25
  create: {
24
- all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins',
25
- forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins',
26
+ all: "".concat(konnectBaseApiUrl, "/plugins"),
27
+ forEntity: "".concat(konnectBaseApiUrl, "/{entityType}/{entityId}/plugins"),
26
28
  },
27
29
  edit: {
28
- all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins/{id}',
29
- forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins/{id}',
30
+ all: "".concat(konnectBaseApiUrl, "/plugins/{id}"),
31
+ forEntity: "".concat(konnectBaseApiUrl, "/{entityType}/{entityId}/plugins/{id}"),
30
32
  },
31
33
  pluginSchema: '/v2/control-planes/{controlPlaneId}/schemas/core-entities/plugins/{plugin}',
32
34
  credential: {
33
- create: '/v2/control-planes/{controlPlaneId}/core-entities/{resourceEndpoint}',
34
- edit: '/v2/control-planes/{controlPlaneId}/core-entities/{resourceEndpoint}/{id}',
35
+ create: "".concat(konnectBaseApiUrl, "/{resourceEndpoint}"),
36
+ edit: "".concat(konnectBaseApiUrl, "/{resourceEndpoint}/{id}"),
35
37
  },
36
38
  credentialSchema: '/v2/control-planes/{controlPlaneId}/schemas/core-entities/{plugin}',
37
- validate: '/v2/control-planes/{controlPlaneId}/core-entities/v1/schemas/json/plugin/validate',
39
+ validate: "".concat(konnectBaseApiUrl, "/v1/schemas/json/plugin/validate"),
38
40
  // VFG endpoints24
39
- entityGetOne: '/v2/control-planes/{controlPlaneId}/core-entities/{entity}/{id}',
40
- entityGetAll: '/v2/control-planes/{controlPlaneId}/core-entities/{entity}?size=1000',
41
+ entityGetOne: "".concat(konnectBaseApiUrl, "/{entity}/{id}"),
42
+ entityGetAll: "".concat(konnectBaseApiUrl, "/{entity}?size=1000"),
41
43
  },
42
44
  kongManager: {
43
45
  create: {
44
- all: '/{workspace}/plugins',
45
- forEntity: '/{workspace}/{entityType}/{entityId}/plugins',
46
+ all: "".concat(KMBaseApiUrl, "/plugins"),
47
+ forEntity: "".concat(KMBaseApiUrl, "/{entityType}/{entityId}/plugins"),
46
48
  },
47
49
  edit: {
48
- all: '/{workspace}/plugins/{id}',
49
- forEntity: '/{workspace}/{entityType}/{entityId}/plugins/{id}',
50
+ all: "".concat(KMBaseApiUrl, "/plugins/{id}"),
51
+ forEntity: "".concat(KMBaseApiUrl, "/{entityType}/{entityId}/plugins/{id}"),
50
52
  },
51
- pluginSchema: '/{workspace}/schemas/plugins/{plugin}',
53
+ pluginSchema: "".concat(KMBaseApiUrl, "/schemas/plugins/{plugin}"),
52
54
  credential: {
53
- create: '/{workspace}/{resourceEndpoint}',
54
- edit: '/{workspace}/{resourceEndpoint}/{id}',
55
+ create: "".concat(KMBaseApiUrl, "/{resourceEndpoint}"),
56
+ edit: "".concat(KMBaseApiUrl, "/{resourceEndpoint}/{id}"),
55
57
  },
56
- credentialSchema: '/{workspace}/schemas/{plugin}',
57
- validate: '/{workspace}/schemas/plugins/validate',
58
+ credentialSchema: "".concat(KMBaseApiUrl, "/schemas/{plugin}"),
59
+ validate: "".concat(KMBaseApiUrl, "/schemas/plugins/validate"),
58
60
  // VFG endpoints
59
- entityGetOne: '/{workspace}/{entity}/{id}',
60
- entityGetAll: '/{workspace}/{entity}',
61
+ entityGetOne: "".concat(KMBaseApiUrl, "/{entity}/{id}"),
62
+ entityGetAll: "".concat(KMBaseApiUrl, "/{entity}"),
61
63
  },
62
64
  },
63
65
  item: {
64
66
  konnect: {
65
- all: '/v2/control-planes/{controlPlaneId}/core-entities/plugins/{id}',
66
- forEntity: '/v2/control-planes/{controlPlaneId}/core-entities/{entityType}/{entityId}/plugins/{id}',
67
+ all: "".concat(konnectBaseApiUrl, "/plugins/{id}"),
68
+ forEntity: "".concat(konnectBaseApiUrl, "/{entityType}/{entityId}/plugins/{id}"),
67
69
  },
68
70
  kongManager: {
69
- all: '/{workspace}/plugins/{id}',
70
- forEntity: '/{workspace}/{entityType}/{entityId}/plugins/{id}',
71
+ all: "".concat(KMBaseApiUrl, "/plugins/{id}"),
72
+ forEntity: "".concat(KMBaseApiUrl, "/{entityType}/{entityId}/plugins/{id}"),
71
73
  },
72
74
  },
73
75
  };