@kong-ui-public/entities-redis-configurations 0.0.1

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.
Files changed (56) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +52 -0
  3. package/dist/entities-redis-configurations.es.js +3182 -0
  4. package/dist/entities-redis-configurations.umd.js +1 -0
  5. package/dist/style.css +1 -0
  6. package/dist/types/components/ClusterNodes.vue.d.ts +14 -0
  7. package/dist/types/components/ClusterNodes.vue.d.ts.map +1 -0
  8. package/dist/types/components/DeleteWarningModal.vue.d.ts +17 -0
  9. package/dist/types/components/DeleteWarningModal.vue.d.ts.map +1 -0
  10. package/dist/types/components/FieldArrayCardContainer.vue.d.ts +60 -0
  11. package/dist/types/components/FieldArrayCardContainer.vue.d.ts.map +1 -0
  12. package/dist/types/components/LinkedPluginList.vue.d.ts +69 -0
  13. package/dist/types/components/LinkedPluginList.vue.d.ts.map +1 -0
  14. package/dist/types/components/LinkedPluginListModal.vue.d.ts +49 -0
  15. package/dist/types/components/LinkedPluginListModal.vue.d.ts.map +1 -0
  16. package/dist/types/components/LinkedPluginsInline.vue.d.ts +25 -0
  17. package/dist/types/components/LinkedPluginsInline.vue.d.ts.map +1 -0
  18. package/dist/types/components/PluginItem.vue.d.ts +13 -0
  19. package/dist/types/components/PluginItem.vue.d.ts.map +1 -0
  20. package/dist/types/components/RedisConfigurationConfigCard.vue.d.ts +62 -0
  21. package/dist/types/components/RedisConfigurationConfigCard.vue.d.ts.map +1 -0
  22. package/dist/types/components/RedisConfigurationForm.vue.d.ts +87 -0
  23. package/dist/types/components/RedisConfigurationForm.vue.d.ts.map +1 -0
  24. package/dist/types/components/RedisConfigurationList.vue.d.ts +119 -0
  25. package/dist/types/components/RedisConfigurationList.vue.d.ts.map +1 -0
  26. package/dist/types/components/SentinelNodes.vue.d.ts +14 -0
  27. package/dist/types/components/SentinelNodes.vue.d.ts.map +1 -0
  28. package/dist/types/composables/index.d.ts +6 -0
  29. package/dist/types/composables/index.d.ts.map +1 -0
  30. package/dist/types/composables/useI18n.d.ts +9 -0
  31. package/dist/types/composables/useI18n.d.ts.map +1 -0
  32. package/dist/types/composables/useLinkedPlugins.d.ts +27 -0
  33. package/dist/types/composables/useLinkedPlugins.d.ts.map +1 -0
  34. package/dist/types/composables/useRedisConfigurationForm.d.ts +168 -0
  35. package/dist/types/composables/useRedisConfigurationForm.d.ts.map +1 -0
  36. package/dist/types/constants.d.ts +7 -0
  37. package/dist/types/constants.d.ts.map +1 -0
  38. package/dist/types/helpers.d.ts +20 -0
  39. package/dist/types/helpers.d.ts.map +1 -0
  40. package/dist/types/index.d.ts +40 -0
  41. package/dist/types/index.d.ts.map +1 -0
  42. package/dist/types/partials-endpoints.d.ts +22 -0
  43. package/dist/types/partials-endpoints.d.ts.map +1 -0
  44. package/dist/types/types/index.d.ts +6 -0
  45. package/dist/types/types/index.d.ts.map +1 -0
  46. package/dist/types/types/redis-configuration-config.d.ts +8 -0
  47. package/dist/types/types/redis-configuration-config.d.ts.map +1 -0
  48. package/dist/types/types/redis-configuration-form.d.ts +40 -0
  49. package/dist/types/types/redis-configuration-form.d.ts.map +1 -0
  50. package/dist/types/types/redis-configuration-linked-plugins.d.ts +11 -0
  51. package/dist/types/types/redis-configuration-linked-plugins.d.ts.map +1 -0
  52. package/dist/types/types/redis-configuration-list.d.ts +31 -0
  53. package/dist/types/types/redis-configuration-list.d.ts.map +1 -0
  54. package/dist/types/types/redis-configuration.d.ts +56 -0
  55. package/dist/types/types/redis-configuration.d.ts.map +1 -0
  56. package/package.json +85 -0
@@ -0,0 +1,11 @@
1
+ export type RedisConfigurationLinkedPlugin = {
2
+ id: string;
3
+ name: string;
4
+ instance_name?: string;
5
+ };
6
+ export type RedisConfigurationLinkedPluginsResponse = {
7
+ next: string | null;
8
+ count: number;
9
+ data: RedisConfigurationLinkedPlugin[];
10
+ };
11
+ //# sourceMappingURL=redis-configuration-linked-plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-configuration-linked-plugins.d.ts","sourceRoot":"","sources":["../../../src/types/redis-configuration-linked-plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,uCAAuC,GAAG;IACpD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,8BAA8B,EAAE,CAAA;CACvC,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { KonnectBaseTableConfig, KongManagerBaseTableConfig, FilterSchema } from '@kong-ui-public/entities-shared';
2
+ import type { RouteLocationRaw } from 'vue-router';
3
+ export interface BaseRedisConfigurationListConfig {
4
+ /** Route for creating a redis configuration */
5
+ createRoute: RouteLocationRaw;
6
+ /** A function that returns the route for viewing a redis configuration */
7
+ getViewRoute: (id: string) => RouteLocationRaw;
8
+ /** A function that returns the route for editing a redis configuration */
9
+ getEditRoute: (id: string) => RouteLocationRaw;
10
+ }
11
+ /** Konnect redis configuration list config */
12
+ export interface KonnectRedisConfigurationListConfig extends KonnectBaseTableConfig, BaseRedisConfigurationListConfig {
13
+ }
14
+ /** Kong Manager redis configuration list config */
15
+ export interface KongManagerRedisConfigurationListConfig extends KongManagerBaseTableConfig, BaseRedisConfigurationListConfig {
16
+ /** FilterSchema for fuzzy match */
17
+ filterSchema?: FilterSchema;
18
+ }
19
+ export interface EntityRow extends Record<string, any> {
20
+ id: string;
21
+ name: string;
22
+ }
23
+ export interface CopyEventPayload {
24
+ /** The entity row */
25
+ entity: EntityRow;
26
+ /** The field being copied. If omitted, the entity JSON is being copied. */
27
+ field?: string;
28
+ /** The toaster message */
29
+ message: string;
30
+ }
31
+ //# sourceMappingURL=redis-configuration-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-configuration-list.d.ts","sourceRoot":"","sources":["../../../src/types/redis-configuration-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,gCAAgC;IAC/C,+CAA+C;IAC/C,WAAW,EAAE,gBAAgB,CAAA;IAC7B,0EAA0E;IAC1E,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAC9C,0EAA0E;IAC1E,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;CAC/C;AAED,8CAA8C;AAC9C,MAAM,WAAW,mCAAoC,SAAQ,sBAAsB,EAAE,gCAAgC;CAAI;AAEzH,mDAAmD;AACnD,MAAM,WAAW,uCAAwC,SAAQ,0BAA0B,EAAE,gCAAgC;IAC3H,mCAAmC;IACnC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB;IACrB,MAAM,EAAE,SAAS,CAAA;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}
@@ -0,0 +1,56 @@
1
+ export declare enum RedisType {
2
+ HOST_PORT_CE = 0,
3
+ HOST_PORT_EE = 1,
4
+ SENTINEL = 2,
5
+ CLUSTER = 3
6
+ }
7
+ export declare enum PartialType {
8
+ REDIS_CE = "redis-ce",
9
+ REDIS_EE = "redis-ee"
10
+ }
11
+ export type SentinelNode = {
12
+ host: string;
13
+ port: number;
14
+ };
15
+ export type ClusterNode = {
16
+ ip: string;
17
+ port: number;
18
+ };
19
+ export type RedisConfigurationDTO = {
20
+ name: string;
21
+ type: PartialType;
22
+ config: RedisConfigurationConfigDTO;
23
+ };
24
+ export type RedisConfigurationConfigDTO = {
25
+ cluster_max_redirections: number | null;
26
+ cluster_nodes: ClusterNode[] | null;
27
+ connect_timeout: number | null;
28
+ connection_is_proxied: boolean | null;
29
+ database: number | null;
30
+ host: string | null;
31
+ keepalive_backlog: number | null;
32
+ keepalive_pool_size: number | null;
33
+ password: string | null;
34
+ port: number | null;
35
+ timeout: number | null;
36
+ read_timeout: number | null;
37
+ send_timeout: number | null;
38
+ sentinel_master: string | null;
39
+ sentinel_nodes: SentinelNode[] | null;
40
+ sentinel_password: string | null;
41
+ sentinel_role: string | null;
42
+ sentinel_username: string | null;
43
+ server_name: string | null;
44
+ ssl_verify: boolean | null;
45
+ ssl: boolean | null;
46
+ username: string | null;
47
+ };
48
+ export type RedisConfigurationResponse = RedisConfigurationDTO & {
49
+ created_at: string;
50
+ id: string;
51
+ updated_at: string;
52
+ };
53
+ export type Identifiable<T> = T & {
54
+ id: string;
55
+ };
56
+ //# sourceMappingURL=redis-configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-configuration.d.ts","sourceRoot":"","sources":["../../../src/types/redis-configuration.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,YAAY,IAAA;IACZ,YAAY,IAAA;IACZ,QAAQ,IAAA;IACR,OAAO,IAAA;CACR;AAED,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE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CACnB,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA"}
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@kong-ui-public/entities-redis-configurations",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "main": "./dist/entities-redis-configurations.umd.js",
6
+ "module": "./dist/entities-redis-configurations.es.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/entities-redis-configurations.es.js",
14
+ "require": "./dist/entities-redis-configurations.umd.js",
15
+ "types": "./dist/types/index.d.ts"
16
+ },
17
+ "./package.json": "./package.json",
18
+ "./dist/*": "./dist/*"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "devDependencies": {
24
+ "@kong/design-tokens": "1.17.2",
25
+ "@kong/icons": "^1.20.0",
26
+ "@kong/kongponents": "9.14.8",
27
+ "@types/uuid": "^10.0.0",
28
+ "axios": "^1.7.7",
29
+ "vue": "^3.5.12",
30
+ "vue-router": "^4.4.5",
31
+ "@kong-ui-public/entities-plugins": "^9.12.4",
32
+ "@kong-ui-public/entities-shared": "^3.17.2",
33
+ "@kong-ui-public/entities-vaults": "^3.15.1",
34
+ "@kong-ui-public/i18n": "^2.2.10"
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/Kong/public-ui-components.git",
39
+ "directory": "packages/entities/entities-redis-configurations"
40
+ },
41
+ "homepage": "https://github.com/Kong/public-ui-components/tree/main/packages/entities/entities-redis-configurations",
42
+ "bugs": {
43
+ "url": "https://github.com/Kong/public-ui-components/issues"
44
+ },
45
+ "author": "Kong, Inc.",
46
+ "license": "Apache-2.0",
47
+ "volta": {
48
+ "extends": "../../../package.json"
49
+ },
50
+ "distSizeChecker": {
51
+ "errorLimit": "400KB"
52
+ },
53
+ "peerDependencies": {
54
+ "@kong/icons": "^1.20.0",
55
+ "@kong/kongponents": "9.14.8",
56
+ "axios": "^1.7.7",
57
+ "vue": ">= 3.3.13 < 4",
58
+ "vue-router": "^4.4.5",
59
+ "@kong-ui-public/entities-plugins": "^9.12.4",
60
+ "@kong-ui-public/entities-vaults": "^3.15.1",
61
+ "@kong-ui-public/i18n": "^2.2.10",
62
+ "@kong-ui-public/entities-shared": "^3.17.2"
63
+ },
64
+ "dependencies": {
65
+ "uuid": "^10.0.0"
66
+ },
67
+ "scripts": {
68
+ "dev": "cross-env USE_SANDBOX=true vite",
69
+ "build": "run-s typecheck build:package build:types",
70
+ "build:package": "vite build -m production",
71
+ "build:analyzer": "BUILD_VISUALIZER='entities/entities-redis-configurations' vite build -m production",
72
+ "build:types": "vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly",
73
+ "build:sandbox": "cross-env USE_SANDBOX=true vite build -m production",
74
+ "preview": "cross-env USE_SANDBOX=true vite preview",
75
+ "lint": "eslint",
76
+ "lint:fix": "eslint --fix",
77
+ "stylelint": "stylelint --allow-empty-input './src/**/*.{css,scss,sass,less,styl,vue}'",
78
+ "stylelint:fix": "stylelint --allow-empty-input './src/**/*.{css,scss,sass,less,styl,vue}' --fix",
79
+ "typecheck": "vue-tsc -p './tsconfig.build.json' --noEmit",
80
+ "test:component": "BABEL_ENV=cypress cross-env FORCE_COLOR=1 cypress run --component -b chrome --spec './src/**/*.cy.ts' --project '../../../.'",
81
+ "test:component:open": "BABEL_ENV=cypress cross-env FORCE_COLOR=1 cypress open --component -b chrome --project '../../../.'",
82
+ "test:unit": "cross-env FORCE_COLOR=1 vitest run",
83
+ "test:unit:open": "cross-env FORCE_COLOR=1 vitest --ui"
84
+ }
85
+ }