@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.
- package/LICENSE +201 -0
- package/README.md +52 -0
- package/dist/entities-redis-configurations.es.js +3182 -0
- package/dist/entities-redis-configurations.umd.js +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/ClusterNodes.vue.d.ts +14 -0
- package/dist/types/components/ClusterNodes.vue.d.ts.map +1 -0
- package/dist/types/components/DeleteWarningModal.vue.d.ts +17 -0
- package/dist/types/components/DeleteWarningModal.vue.d.ts.map +1 -0
- package/dist/types/components/FieldArrayCardContainer.vue.d.ts +60 -0
- package/dist/types/components/FieldArrayCardContainer.vue.d.ts.map +1 -0
- package/dist/types/components/LinkedPluginList.vue.d.ts +69 -0
- package/dist/types/components/LinkedPluginList.vue.d.ts.map +1 -0
- package/dist/types/components/LinkedPluginListModal.vue.d.ts +49 -0
- package/dist/types/components/LinkedPluginListModal.vue.d.ts.map +1 -0
- package/dist/types/components/LinkedPluginsInline.vue.d.ts +25 -0
- package/dist/types/components/LinkedPluginsInline.vue.d.ts.map +1 -0
- package/dist/types/components/PluginItem.vue.d.ts +13 -0
- package/dist/types/components/PluginItem.vue.d.ts.map +1 -0
- package/dist/types/components/RedisConfigurationConfigCard.vue.d.ts +62 -0
- package/dist/types/components/RedisConfigurationConfigCard.vue.d.ts.map +1 -0
- package/dist/types/components/RedisConfigurationForm.vue.d.ts +87 -0
- package/dist/types/components/RedisConfigurationForm.vue.d.ts.map +1 -0
- package/dist/types/components/RedisConfigurationList.vue.d.ts +119 -0
- package/dist/types/components/RedisConfigurationList.vue.d.ts.map +1 -0
- package/dist/types/components/SentinelNodes.vue.d.ts +14 -0
- package/dist/types/components/SentinelNodes.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +6 -0
- package/dist/types/composables/index.d.ts.map +1 -0
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/composables/useLinkedPlugins.d.ts +27 -0
- package/dist/types/composables/useLinkedPlugins.d.ts.map +1 -0
- package/dist/types/composables/useRedisConfigurationForm.d.ts +168 -0
- package/dist/types/composables/useRedisConfigurationForm.d.ts.map +1 -0
- package/dist/types/constants.d.ts +7 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/helpers.d.ts +20 -0
- package/dist/types/helpers.d.ts.map +1 -0
- package/dist/types/index.d.ts +40 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/partials-endpoints.d.ts +22 -0
- package/dist/types/partials-endpoints.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/redis-configuration-config.d.ts +8 -0
- package/dist/types/types/redis-configuration-config.d.ts.map +1 -0
- package/dist/types/types/redis-configuration-form.d.ts +40 -0
- package/dist/types/types/redis-configuration-form.d.ts.map +1 -0
- package/dist/types/types/redis-configuration-linked-plugins.d.ts +11 -0
- package/dist/types/types/redis-configuration-linked-plugins.d.ts.map +1 -0
- package/dist/types/types/redis-configuration-list.d.ts +31 -0
- package/dist/types/types/redis-configuration-list.d.ts.map +1 -0
- package/dist/types/types/redis-configuration.d.ts +56 -0
- package/dist/types/types/redis-configuration.d.ts.map +1 -0
- package/package.json +85 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
2
|
+
import '@kong-ui-public/entities-vaults/dist/style.css';
|
|
3
|
+
import { PartialType } from '../types';
|
|
4
|
+
import type { PropType } from 'vue';
|
|
5
|
+
import type { KongManagerRedisConfigurationFormConfig, KonnectRedisConfigurationFormConfig, RedisConfigurationResponse } from '../types';
|
|
6
|
+
import type { AxiosError } from 'axios';
|
|
7
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
config: {
|
|
9
|
+
type: PropType<KonnectRedisConfigurationFormConfig | KongManagerRedisConfigurationFormConfig>;
|
|
10
|
+
required: true;
|
|
11
|
+
validator: (config: KonnectRedisConfigurationFormConfig | KongManagerRedisConfigurationFormConfig) => boolean;
|
|
12
|
+
};
|
|
13
|
+
/** If a valid partialId is provided, it will put the form in Edit mode instead of Create */
|
|
14
|
+
partialId: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Teleport target for the actions
|
|
21
|
+
*/
|
|
22
|
+
actionTeleportTarget: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Top offset for the slideout
|
|
27
|
+
*/
|
|
28
|
+
slidoutTopOffset: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Set disabled partial type, only for create mode
|
|
34
|
+
*/
|
|
35
|
+
disabledPartialType: {
|
|
36
|
+
type: PropType<PartialType>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
40
|
+
cancel: () => any;
|
|
41
|
+
error: (error: AxiosError<unknown, any>) => any;
|
|
42
|
+
loading: (isLoading: boolean) => any;
|
|
43
|
+
update: (data: RedisConfigurationResponse) => any;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
config: {
|
|
46
|
+
type: PropType<KonnectRedisConfigurationFormConfig | KongManagerRedisConfigurationFormConfig>;
|
|
47
|
+
required: true;
|
|
48
|
+
validator: (config: KonnectRedisConfigurationFormConfig | KongManagerRedisConfigurationFormConfig) => boolean;
|
|
49
|
+
};
|
|
50
|
+
/** If a valid partialId is provided, it will put the form in Edit mode instead of Create */
|
|
51
|
+
partialId: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
required: false;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Teleport target for the actions
|
|
58
|
+
*/
|
|
59
|
+
actionTeleportTarget: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Top offset for the slideout
|
|
64
|
+
*/
|
|
65
|
+
slidoutTopOffset: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Set disabled partial type, only for create mode
|
|
71
|
+
*/
|
|
72
|
+
disabledPartialType: {
|
|
73
|
+
type: PropType<PartialType>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{
|
|
77
|
+
onCancel?: (() => any) | undefined;
|
|
78
|
+
onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
79
|
+
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
80
|
+
onUpdate?: ((data: RedisConfigurationResponse) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
partialId: string;
|
|
83
|
+
slidoutTopOffset: number;
|
|
84
|
+
disabledPartialType: PartialType;
|
|
85
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
export default _default;
|
|
87
|
+
//# sourceMappingURL=RedisConfigurationForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedisConfigurationForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RedisConfigurationForm.vue"],"names":[],"mappings":"AA2nBA,OAAO,gDAAgD,CAAA;AACvD,OAAO,gDAAgD,CAAA;AAMvD,OAAO,EAAa,WAAW,EAAE,MAAM,UAAU,CAAA;AAOjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EACV,uCAAuC,EACvC,mCAAmC,EACnC,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;;;cAs7BnB,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC;;IAOnG,4FAA4F;;;;;;IAM5F;;OAEG;;;;IAIH;;OAEG;;;;;IAKH;;OAEG;;cAEe,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;cAhCrB,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC;;IAOnG,4FAA4F;;;;;;IAM5F;;OAEG;;;;IAIH;;OAEG;;;;;IAKH;;OAEG;;cAEe,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;;;AA7CzC,wBAiDG"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { KonnectRedisConfigurationListConfig, KongManagerRedisConfigurationListConfig, EntityRow, CopyEventPayload } from '../types';
|
|
3
|
+
import type { AxiosError } from 'axios';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
6
|
+
config: {
|
|
7
|
+
type: PropType<KonnectRedisConfigurationListConfig | KongManagerRedisConfigurationListConfig>;
|
|
8
|
+
required: true;
|
|
9
|
+
validator: (config: KonnectRedisConfigurationListConfig | KongManagerRedisConfigurationListConfig) => boolean;
|
|
10
|
+
};
|
|
11
|
+
cacheIdentifier: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
|
|
16
|
+
canCreate: {
|
|
17
|
+
type: PropType<() => boolean | Promise<boolean>>;
|
|
18
|
+
required: false;
|
|
19
|
+
default: () => Promise<boolean>;
|
|
20
|
+
};
|
|
21
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
|
|
22
|
+
canDelete: {
|
|
23
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
24
|
+
required: false;
|
|
25
|
+
default: () => Promise<boolean>;
|
|
26
|
+
};
|
|
27
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
|
|
28
|
+
canEdit: {
|
|
29
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
30
|
+
required: false;
|
|
31
|
+
default: () => Promise<boolean>;
|
|
32
|
+
};
|
|
33
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
|
|
34
|
+
canRetrieve: {
|
|
35
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: () => Promise<boolean>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Enables the new empty state design, this prop can be removed when
|
|
41
|
+
* the khcp-14756-empty-states-m2 FF is removed.
|
|
42
|
+
*/
|
|
43
|
+
enableV2EmptyStates: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
48
|
+
error: (error: AxiosError<unknown, any>) => any;
|
|
49
|
+
"click:learn-more": () => any;
|
|
50
|
+
"click:plugin": (param: {
|
|
51
|
+
id: string;
|
|
52
|
+
plugin: string;
|
|
53
|
+
}) => any;
|
|
54
|
+
"copy:error": (payload: CopyEventPayload) => any;
|
|
55
|
+
"copy:success": (payload: CopyEventPayload) => any;
|
|
56
|
+
"delete:success": (key: EntityRow) => any;
|
|
57
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
59
|
+
config: {
|
|
60
|
+
type: PropType<KonnectRedisConfigurationListConfig | KongManagerRedisConfigurationListConfig>;
|
|
61
|
+
required: true;
|
|
62
|
+
validator: (config: KonnectRedisConfigurationListConfig | KongManagerRedisConfigurationListConfig) => boolean;
|
|
63
|
+
};
|
|
64
|
+
cacheIdentifier: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
|
|
69
|
+
canCreate: {
|
|
70
|
+
type: PropType<() => boolean | Promise<boolean>>;
|
|
71
|
+
required: false;
|
|
72
|
+
default: () => Promise<boolean>;
|
|
73
|
+
};
|
|
74
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
|
|
75
|
+
canDelete: {
|
|
76
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
77
|
+
required: false;
|
|
78
|
+
default: () => Promise<boolean>;
|
|
79
|
+
};
|
|
80
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
|
|
81
|
+
canEdit: {
|
|
82
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
83
|
+
required: false;
|
|
84
|
+
default: () => Promise<boolean>;
|
|
85
|
+
};
|
|
86
|
+
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
|
|
87
|
+
canRetrieve: {
|
|
88
|
+
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
89
|
+
required: false;
|
|
90
|
+
default: () => Promise<boolean>;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Enables the new empty state design, this prop can be removed when
|
|
94
|
+
* the khcp-14756-empty-states-m2 FF is removed.
|
|
95
|
+
*/
|
|
96
|
+
enableV2EmptyStates: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
102
|
+
"onClick:learn-more"?: (() => any) | undefined;
|
|
103
|
+
"onClick:plugin"?: ((param: {
|
|
104
|
+
id: string;
|
|
105
|
+
plugin: string;
|
|
106
|
+
}) => any) | undefined;
|
|
107
|
+
"onCopy:error"?: ((payload: CopyEventPayload) => any) | undefined;
|
|
108
|
+
"onCopy:success"?: ((payload: CopyEventPayload) => any) | undefined;
|
|
109
|
+
"onDelete:success"?: ((key: EntityRow) => any) | undefined;
|
|
110
|
+
}>, {
|
|
111
|
+
cacheIdentifier: string;
|
|
112
|
+
canCreate: () => boolean | Promise<boolean>;
|
|
113
|
+
canDelete: (row: EntityRow) => boolean | Promise<boolean>;
|
|
114
|
+
canEdit: (row: EntityRow) => boolean | Promise<boolean>;
|
|
115
|
+
canRetrieve: (row: EntityRow) => boolean | Promise<boolean>;
|
|
116
|
+
enableV2EmptyStates: boolean;
|
|
117
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
|
+
export default _default;
|
|
119
|
+
//# sourceMappingURL=RedisConfigurationList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedisConfigurationList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RedisConfigurationList.vue"],"names":[],"mappings":"AA2hBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EACV,mCAAmC,EACnC,uCAAuC,EACvC,SAAS,EAET,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAEjB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;;IAm7BrC,oHAAoH;;cAElG,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E;;;OAGG;;;;;;;;;YAjD8B,MAAM;gBAAU,MAAM;;;;;;IAOvD,oHAAoH;;cAElG,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E;;;OAGG;;;;;;;;;YAjD8B,MAAM;gBAAU,MAAM;;;;;;;qBAwBpB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAjD7E,wBA8DG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Identifiable, SentinelNode } from '../types';
|
|
2
|
+
declare let __VLS_typeProps: {
|
|
3
|
+
readonly?: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue: Identifiable<SentinelNode>[];
|
|
7
|
+
} & typeof __VLS_typeProps;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (modelValue: Identifiable<SentinelNode>[]) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((modelValue: Identifiable<SentinelNode>[]) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=SentinelNodes.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SentinelNodes.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SentinelNodes.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAK1D,QAAA,IAAI,eAAe,EAAG;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAqBF,KAAK,iBAAiB,GAAG;IACzB,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC;CACxC,GAAG,OAAO,eAAe,CAAC;;;;;;AA0J3B,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAG/B,wBAEC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
+
import english from '../locales/en.json';
|
|
3
|
+
interface UseI18nReturn {
|
|
4
|
+
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
+
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
+
}
|
|
7
|
+
export default function useI18n(): UseI18nReturn;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type KongManagerConfig, type KonnectConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
+
import type { RedisConfigurationLinkedPluginsResponse } from '../types';
|
|
3
|
+
type RequestParams = {
|
|
4
|
+
partialId: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
offset?: string | null;
|
|
7
|
+
query?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function buildLinksCacheKey(partialId: string): string;
|
|
10
|
+
export declare const useLinkedPluginsFetcher: (config: KonnectConfig | KongManagerConfig) => {
|
|
11
|
+
fetcher: (params: RequestParams) => Promise<RedisConfigurationLinkedPluginsResponse>;
|
|
12
|
+
};
|
|
13
|
+
export declare const useLinkedPlugins: (param: {
|
|
14
|
+
partialId: string;
|
|
15
|
+
config: KonnectConfig | KongManagerConfig;
|
|
16
|
+
requestParams?: RequestParams;
|
|
17
|
+
}) => import("vue").Ref<{
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
instance_name?: string | undefined;
|
|
21
|
+
}[], import("../types").RedisConfigurationLinkedPlugin[] | {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
instance_name?: string | undefined;
|
|
25
|
+
}[]>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=useLinkedPlugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinkedPlugins.d.ts","sourceRoot":"","sources":["../../../src/composables/useLinkedPlugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAMtG,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,UAAU,CAAA;AAEvE,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,UAEnD;AAED,eAAO,MAAM,uBAAuB,WAAY,aAAa,GAAG,iBAAiB;sBAIrD,aAAa;CAwBxC,CAAA;AAED,eAAO,MAAM,gBAAgB,UAAW;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,GAAG,iBAAiB,CAAC;IAC1C,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;;;;;;;;IAkBA,CAAA"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { EntityBaseFormType } from '@kong-ui-public/entities-shared';
|
|
2
|
+
import { RedisType } from '../types';
|
|
3
|
+
import type { KongManagerRedisConfigurationFormConfig, KonnectRedisConfigurationFormConfig, RedisConfigurationResponse } from '../types';
|
|
4
|
+
export type Options = {
|
|
5
|
+
partialId?: string;
|
|
6
|
+
defaultRedisType?: RedisType;
|
|
7
|
+
config: KonnectRedisConfigurationFormConfig | KongManagerRedisConfigurationFormConfig;
|
|
8
|
+
};
|
|
9
|
+
export declare const useRedisConfigurationForm: (options: Options) => {
|
|
10
|
+
form: {
|
|
11
|
+
fields: {
|
|
12
|
+
name: string;
|
|
13
|
+
type: import("../types").PartialType;
|
|
14
|
+
config: {
|
|
15
|
+
cluster_max_redirections: number;
|
|
16
|
+
cluster_nodes: {
|
|
17
|
+
ip: string;
|
|
18
|
+
port: number;
|
|
19
|
+
id: string;
|
|
20
|
+
}[];
|
|
21
|
+
connect_timeout: number;
|
|
22
|
+
connection_is_proxied: boolean;
|
|
23
|
+
database: number;
|
|
24
|
+
host?: string | undefined;
|
|
25
|
+
keepalive_backlog: number;
|
|
26
|
+
keepalive_pool_size: number;
|
|
27
|
+
password: string;
|
|
28
|
+
port?: number | undefined;
|
|
29
|
+
read_timeout: number;
|
|
30
|
+
send_timeout: number;
|
|
31
|
+
sentinel_master?: string | undefined;
|
|
32
|
+
sentinel_nodes: {
|
|
33
|
+
host: string;
|
|
34
|
+
port: number;
|
|
35
|
+
id: string;
|
|
36
|
+
}[];
|
|
37
|
+
sentinel_password: string;
|
|
38
|
+
sentinel_role?: ("master" | "slave" | "any") | undefined;
|
|
39
|
+
sentinel_username: string;
|
|
40
|
+
server_name?: string | undefined;
|
|
41
|
+
ssl_verify: boolean;
|
|
42
|
+
ssl: boolean;
|
|
43
|
+
timeout?: number | undefined;
|
|
44
|
+
username: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly: boolean;
|
|
48
|
+
errorMessage: string;
|
|
49
|
+
};
|
|
50
|
+
canSubmit: import("vue").ComputedRef<boolean | undefined>;
|
|
51
|
+
payload: import("vue").ComputedRef<{
|
|
52
|
+
name: string;
|
|
53
|
+
type: import("../types").PartialType;
|
|
54
|
+
config: {
|
|
55
|
+
host: string | undefined;
|
|
56
|
+
port: unknown;
|
|
57
|
+
timeout: unknown;
|
|
58
|
+
username: string | null;
|
|
59
|
+
database: unknown;
|
|
60
|
+
password: string | null;
|
|
61
|
+
ssl: boolean;
|
|
62
|
+
ssl_verify: boolean;
|
|
63
|
+
server_name: string | null;
|
|
64
|
+
connect_timeout?: undefined;
|
|
65
|
+
connection_is_proxied?: undefined;
|
|
66
|
+
keepalive_backlog?: undefined;
|
|
67
|
+
keepalive_pool_size?: undefined;
|
|
68
|
+
read_timeout?: undefined;
|
|
69
|
+
send_timeout?: undefined;
|
|
70
|
+
cluster_nodes?: undefined;
|
|
71
|
+
cluster_max_redirections?: undefined;
|
|
72
|
+
sentinel_master?: undefined;
|
|
73
|
+
sentinel_role?: undefined;
|
|
74
|
+
sentinel_nodes?: undefined;
|
|
75
|
+
sentinel_username?: undefined;
|
|
76
|
+
sentinel_password?: undefined;
|
|
77
|
+
};
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
type: import("../types").PartialType;
|
|
81
|
+
config: {
|
|
82
|
+
connect_timeout: unknown;
|
|
83
|
+
connection_is_proxied: boolean;
|
|
84
|
+
database: unknown;
|
|
85
|
+
host: string | undefined;
|
|
86
|
+
keepalive_backlog: unknown;
|
|
87
|
+
keepalive_pool_size: unknown;
|
|
88
|
+
password: string | null;
|
|
89
|
+
port: unknown;
|
|
90
|
+
read_timeout: unknown;
|
|
91
|
+
send_timeout: unknown;
|
|
92
|
+
server_name: string | null;
|
|
93
|
+
ssl_verify: boolean;
|
|
94
|
+
ssl: boolean;
|
|
95
|
+
username: string | null;
|
|
96
|
+
cluster_nodes: null;
|
|
97
|
+
cluster_max_redirections: null;
|
|
98
|
+
sentinel_master: null;
|
|
99
|
+
sentinel_role: null;
|
|
100
|
+
sentinel_nodes: null;
|
|
101
|
+
sentinel_username: null;
|
|
102
|
+
sentinel_password: null;
|
|
103
|
+
timeout?: undefined;
|
|
104
|
+
};
|
|
105
|
+
} | {
|
|
106
|
+
name: string;
|
|
107
|
+
type: import("../types").PartialType;
|
|
108
|
+
config: {
|
|
109
|
+
cluster_nodes: import("../types").ClusterNode[];
|
|
110
|
+
cluster_max_redirections: unknown;
|
|
111
|
+
username: string | null;
|
|
112
|
+
password: string | null;
|
|
113
|
+
ssl: boolean;
|
|
114
|
+
ssl_verify: boolean;
|
|
115
|
+
server_name: string | null;
|
|
116
|
+
connect_timeout: unknown;
|
|
117
|
+
database: unknown;
|
|
118
|
+
send_timeout: unknown;
|
|
119
|
+
read_timeout: unknown;
|
|
120
|
+
keepalive_pool_size: unknown;
|
|
121
|
+
keepalive_backlog: unknown;
|
|
122
|
+
connection_is_proxied: null;
|
|
123
|
+
sentinel_master: null;
|
|
124
|
+
sentinel_role: null;
|
|
125
|
+
sentinel_nodes: null;
|
|
126
|
+
sentinel_username: null;
|
|
127
|
+
sentinel_password: null;
|
|
128
|
+
host: null;
|
|
129
|
+
port: null;
|
|
130
|
+
timeout?: undefined;
|
|
131
|
+
};
|
|
132
|
+
} | {
|
|
133
|
+
name: string;
|
|
134
|
+
type: import("../types").PartialType;
|
|
135
|
+
config: {
|
|
136
|
+
sentinel_master: string | null;
|
|
137
|
+
sentinel_nodes: import("../types").SentinelNode[];
|
|
138
|
+
sentinel_role: string | null;
|
|
139
|
+
sentinel_username: string | null;
|
|
140
|
+
sentinel_password: string | null;
|
|
141
|
+
username: string | null;
|
|
142
|
+
password: string | null;
|
|
143
|
+
ssl: boolean;
|
|
144
|
+
ssl_verify: boolean;
|
|
145
|
+
server_name: string | null;
|
|
146
|
+
database: unknown;
|
|
147
|
+
connect_timeout: unknown;
|
|
148
|
+
send_timeout: unknown;
|
|
149
|
+
read_timeout: unknown;
|
|
150
|
+
keepalive_pool_size: unknown;
|
|
151
|
+
keepalive_backlog: unknown;
|
|
152
|
+
connection_is_proxied: null;
|
|
153
|
+
cluster_nodes: null;
|
|
154
|
+
cluster_max_redirections: null;
|
|
155
|
+
host: null;
|
|
156
|
+
port: null;
|
|
157
|
+
timeout?: undefined;
|
|
158
|
+
};
|
|
159
|
+
}>;
|
|
160
|
+
isEdit: boolean;
|
|
161
|
+
redisType: import("vue").Ref<RedisType, RedisType>;
|
|
162
|
+
redisTypeIsEnterprise: import("vue").ComputedRef<boolean>;
|
|
163
|
+
formType: import("vue").ComputedRef<EntityBaseFormType>;
|
|
164
|
+
fetchUrl: import("vue").ComputedRef<string>;
|
|
165
|
+
submit: () => Promise<import("axios").AxiosResponse<RedisConfigurationResponse, any>>;
|
|
166
|
+
setInitialFormValues: (data: RedisConfigurationResponse) => void;
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=useRedisConfigurationForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRedisConfigurationForm.d.ts","sourceRoot":"","sources":["../../../src/composables/useRedisConfigurationForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAuB,MAAM,iCAAiC,CAAA;AAIzF,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAIpC,OAAO,KAAK,EAAE,uCAAuC,EAAE,mCAAmC,EAAyD,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAE/L,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,MAAM,EAAE,mCAAmC,GAAG,uCAAuC,CAAA;CACtF,CAAA;AAED,eAAO,MAAM,yBAAyB,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA4MpB,0BAA0B;CA2B/D,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RedisType } from './types';
|
|
2
|
+
import type { ClusterNode, RedisConfigurationFormState, SentinelNode } from './types';
|
|
3
|
+
export declare const DEFAULT_CLUSTER_NODE: Readonly<ClusterNode>;
|
|
4
|
+
export declare const DEFAULT_SENTINEL_NODE: Readonly<SentinelNode>;
|
|
5
|
+
export declare const DEFAULT_REDIS_TYPE = RedisType.HOST_PORT_CE;
|
|
6
|
+
export declare const DEFAULT_FIELDS: Readonly<RedisConfigurationFormState['fields']['config']>;
|
|
7
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,2BAA2B,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAErF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAGtD,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,YAAY,CAGxD,CAAA;AAED,eAAO,MAAM,kBAAkB,yBAAyB,CAAA;AAExD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAsBpF,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PartialType, type ClusterNode, type Identifiable, type RedisConfigurationDTO, type RedisConfigurationFields, type SentinelNode } from './types';
|
|
2
|
+
import { RedisType } from './types';
|
|
3
|
+
export declare const shallowCopyWithId: <T extends Record<any, any>>(node: T) => Identifiable<T>;
|
|
4
|
+
export declare const shallowCopyWithoutId: <T extends {
|
|
5
|
+
id: string;
|
|
6
|
+
}>(node: T) => Omit<T, "id">;
|
|
7
|
+
export declare const genDefaultSentinelNode: () => Identifiable<Readonly<SentinelNode>>;
|
|
8
|
+
export declare const genDefaultClusterNode: () => Identifiable<Readonly<ClusterNode>>;
|
|
9
|
+
export declare const getRedisType: (fields: RedisConfigurationFields | RedisConfigurationDTO) => RedisType;
|
|
10
|
+
export declare const mapRedisTypeToPartialType: (type: RedisType) => PartialType;
|
|
11
|
+
export declare const standardize: {
|
|
12
|
+
int<T>(value: string | number | undefined | null, defaultValue?: T): number | T;
|
|
13
|
+
str<T>(value: string | number | undefined | null, defaultValue?: T): string | T;
|
|
14
|
+
removeIdClusterNodes(nodes: Identifiable<ClusterNode>[]): ClusterNode[];
|
|
15
|
+
removeIdFromSentinelNodes(nodes: Identifiable<SentinelNode>[]): SentinelNode[];
|
|
16
|
+
addIdToClusterNodes(nodes: ClusterNode[]): Identifiable<ClusterNode>[];
|
|
17
|
+
addIdToSentinelNodes(nodes: SentinelNode[]): Identifiable<SentinelNode>[];
|
|
18
|
+
removeNullValues(obj: Record<string, any>): Record<string, any>;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,qBAAqB,EAAE,KAAK,wBAAwB,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AACxJ,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,QAAQ,CAAC,KAAG,YAAY,CAAC,CAAC,CAErF,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,QAAQ,CAAC,KAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAGpF,CAAA;AAED,eAAO,MAAM,sBAAsB,4CAAiD,CAAA;AAEpF,eAAO,MAAM,qBAAqB,2CAAgD,CAAA;AAElF,eAAO,MAAM,YAAY,WAAY,wBAAwB,GAAG,qBAAqB,KAAG,SAcvF,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,SAAS,KAAG,WAE3D,CAAA;AAED,eAAO,MAAM,WAAW;QAClB,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,iBAAiB,CAAC,GAAG,MAAM,GAAG,CAAC;QAO3E,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,iBAAiB,CAAC,GAAG,MAAM,GAAG,CAAC;gCAOnD,YAAY,CAAC,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE;qCAOtC,YAAY,CAAC,YAAY,CAAC,EAAE,GAAG,YAAY,EAAE;+BAOnD,WAAW,EAAE,GAAG,YAAY,CAAC,WAAW,CAAC,EAAE;gCAI1C,YAAY,EAAE,GAAG,YAAY,CAAC,YAAY,CAAC,EAAE;0BAInD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAShE,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import RedisConfigurationForm from './components/RedisConfigurationForm.vue';
|
|
2
|
+
import RedisConfigurationList from './components/RedisConfigurationList.vue';
|
|
3
|
+
import RedisConfigurationConfigCard from './components/RedisConfigurationConfigCard.vue';
|
|
4
|
+
import LinkedPlugins from './components/LinkedPluginList.vue';
|
|
5
|
+
import DeleteWarningModal from './components/DeleteWarningModal.vue';
|
|
6
|
+
export { RedisConfigurationForm, RedisConfigurationList, RedisConfigurationConfigCard, LinkedPlugins, DeleteWarningModal, };
|
|
7
|
+
export * from './types';
|
|
8
|
+
import * as helpers from './helpers';
|
|
9
|
+
export { helpers };
|
|
10
|
+
import * as constants from './constants';
|
|
11
|
+
export { constants };
|
|
12
|
+
export declare const composables: {
|
|
13
|
+
useLinkedPlugins: (param: {
|
|
14
|
+
partialId: string;
|
|
15
|
+
config: import("@kong-ui-public/entities-shared").KonnectConfig | import("@kong-ui-public/entities-shared").KongManagerConfig;
|
|
16
|
+
requestParams?: {
|
|
17
|
+
partialId: string;
|
|
18
|
+
size?: number;
|
|
19
|
+
offset?: string | null;
|
|
20
|
+
query?: string;
|
|
21
|
+
};
|
|
22
|
+
}) => import("vue").Ref<{
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
instance_name?: string | undefined;
|
|
26
|
+
}[], import("./types").RedisConfigurationLinkedPlugin[] | {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
instance_name?: string | undefined;
|
|
30
|
+
}[]>;
|
|
31
|
+
useLinkedPluginsFetcher: (config: import("@kong-ui-public/entities-shared").KonnectConfig | import("@kong-ui-public/entities-shared").KongManagerConfig) => {
|
|
32
|
+
fetcher: (params: {
|
|
33
|
+
partialId: string;
|
|
34
|
+
size?: number;
|
|
35
|
+
offset?: string | null;
|
|
36
|
+
query?: string;
|
|
37
|
+
}) => Promise<import("./types").RedisConfigurationLinkedPluginsResponse>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,yCAAyC,CAAA;AAC5E,OAAO,sBAAsB,MAAM,yCAAyC,CAAA;AAC5E,OAAO,4BAA4B,MAAM,+CAA+C,CAAA;AACxF,OAAO,aAAa,MAAM,mCAAmC,CAAA;AAC7D,OAAO,kBAAkB,MAAM,qCAAqC,CAAA;AAEpE,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,4BAA4B,EAC5B,aAAa,EACb,kBAAkB,GACnB,CAAA;AAED,cAAc,SAAS,CAAA;AAEvB,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAEpC,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,CAAA;AAOpB,eAAO,MAAM,WAAW;;;;qBAI+rB,CAAC;;;;;;;;;;;;;;;;;;;;;;;CADvtB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
list: {
|
|
3
|
+
konnect: string;
|
|
4
|
+
kongManager: string;
|
|
5
|
+
};
|
|
6
|
+
form: {
|
|
7
|
+
konnect: {
|
|
8
|
+
create: string;
|
|
9
|
+
edit: string;
|
|
10
|
+
};
|
|
11
|
+
kongManager: {
|
|
12
|
+
create: string;
|
|
13
|
+
edit: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
links: {
|
|
17
|
+
konnect: string;
|
|
18
|
+
kongManager: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=partials-endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partials-endpoints.d.ts","sourceRoot":"","sources":["../../src/partials-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wBAmBC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './redis-configuration';
|
|
2
|
+
export * from './redis-configuration-form';
|
|
3
|
+
export * from './redis-configuration-list';
|
|
4
|
+
export * from './redis-configuration-config';
|
|
5
|
+
export * from './redis-configuration-linked-plugins';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sCAAsC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { KonnectBaseEntityConfig, KongManagerBaseEntityConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
+
/** Konnect redis configuration entity config */
|
|
3
|
+
export interface KonnectRedisConfigurationEntityConfig extends KonnectBaseEntityConfig {
|
|
4
|
+
}
|
|
5
|
+
/** Kong Manager redis configuration entity config */
|
|
6
|
+
export interface KongManagerRedisConfigurationEntityConfig extends KongManagerBaseEntityConfig {
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=redis-configuration-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis-configuration-config.d.ts","sourceRoot":"","sources":["../../../src/types/redis-configuration-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAExC,gDAAgD;AAChD,MAAM,WAAW,qCAAsC,SAAQ,uBAAuB;CAAI;AAE1F,qDAAqD;AACrD,MAAM,WAAW,yCAA0C,SAAQ,2BAA2B;CAAI"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { KonnectBaseFormConfig, KongManagerBaseFormConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
+
import type { ClusterNode, Identifiable, PartialType, SentinelNode } from './redis-configuration';
|
|
3
|
+
export interface KonnectRedisConfigurationFormConfig extends KonnectBaseFormConfig {
|
|
4
|
+
}
|
|
5
|
+
export interface KongManagerRedisConfigurationFormConfig extends KongManagerBaseFormConfig {
|
|
6
|
+
}
|
|
7
|
+
export interface RedisConfigurationFields {
|
|
8
|
+
name: string;
|
|
9
|
+
type: PartialType;
|
|
10
|
+
config: {
|
|
11
|
+
cluster_max_redirections: number;
|
|
12
|
+
cluster_nodes: Identifiable<ClusterNode>[];
|
|
13
|
+
connect_timeout: number;
|
|
14
|
+
connection_is_proxied: boolean;
|
|
15
|
+
database: number;
|
|
16
|
+
host?: string;
|
|
17
|
+
keepalive_backlog: number;
|
|
18
|
+
keepalive_pool_size: number;
|
|
19
|
+
password: string;
|
|
20
|
+
port?: number;
|
|
21
|
+
read_timeout: number;
|
|
22
|
+
send_timeout: number;
|
|
23
|
+
sentinel_master?: string;
|
|
24
|
+
sentinel_nodes: Identifiable<SentinelNode>[];
|
|
25
|
+
sentinel_password: string;
|
|
26
|
+
sentinel_role?: 'master' | 'slave' | 'any';
|
|
27
|
+
sentinel_username: string;
|
|
28
|
+
server_name?: string;
|
|
29
|
+
ssl_verify: boolean;
|
|
30
|
+
ssl: boolean;
|
|
31
|
+
timeout?: number;
|
|
32
|
+
username: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface RedisConfigurationFormState {
|
|
36
|
+
fields: RedisConfigurationFields;
|
|
37
|
+
readonly: boolean;
|
|
38
|
+
errorMessage: string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=redis-configuration-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis-configuration-form.d.ts","sourceRoot":"","sources":["../../../src/types/redis-configuration-form.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AACvG,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEjG,MAAM,WAAW,mCAAoC,SAAQ,qBAAqB;CAAI;AACtF,MAAM,WAAW,uCAAwC,SAAQ,yBAAyB;CAAI;AAG9F,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE;QACN,wBAAwB,EAAE,MAAM,CAAA;QAChC,aAAa,EAAE,YAAY,CAAC,WAAW,CAAC,EAAE,CAAA;QAC1C,eAAe,EAAE,MAAM,CAAA;QACvB,qBAAqB,EAAE,OAAO,CAAA;QAC9B,QAAQ,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,iBAAiB,EAAE,MAAM,CAAA;QACzB,mBAAmB,EAAE,MAAM,CAAA;QAC3B,QAAQ,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,YAAY,EAAE,MAAM,CAAA;QACpB,YAAY,EAAE,MAAM,CAAA;QACpB,eAAe,CAAC,EAAE,MAAM,CAAA;QACxB,cAAc,EAAE,YAAY,CAAC,YAAY,CAAC,EAAE,CAAA;QAC5C,iBAAiB,EAAE,MAAM,CAAA;QACzB,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;QAC1C,iBAAiB,EAAE,MAAM,CAAA;QACzB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,EAAE,OAAO,CAAA;QACnB,GAAG,EAAE,OAAO,CAAA;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,wBAAwB,CAAA;IAChC,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB"}
|