@kong-ui-public/entities-gateway-services 3.11.30-pr.1994.98921f12a.0 → 3.11.30-pr.2196.4ae50c01a.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/entities-gateway-services.es.js +2386 -0
- package/dist/entities-gateway-services.umd.js +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/GatewayServiceConfigCard.vue.d.ts +62 -0
- package/dist/types/components/GatewayServiceConfigCard.vue.d.ts.map +1 -0
- package/dist/types/components/GatewayServiceForm.vue.d.ts +101 -0
- package/dist/types/components/GatewayServiceForm.vue.d.ts.map +1 -0
- package/dist/types/components/GatewayServiceList.vue.d.ts +136 -0
- package/dist/types/components/GatewayServiceList.vue.d.ts.map +1 -0
- package/dist/types/components/LegacyGatewayServiceForm.vue.d.ts +86 -0
- package/dist/types/components/LegacyGatewayServiceForm.vue.d.ts.map +1 -0
- package/dist/types/composables/getPortFromProtocol.d.ts +4 -0
- package/dist/types/composables/getPortFromProtocol.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +10 -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/useUrlValidators.d.ts +8 -0
- package/dist/types/composables/useUrlValidators.d.ts.map +1 -0
- package/dist/types/constants.d.ts +15 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/gateway-services-endpoints.d.ts +24 -0
- package/dist/types/gateway-services-endpoints.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/gateway-service-config-card.d.ts +28 -0
- package/dist/types/types/gateway-service-config-card.d.ts.map +1 -0
- package/dist/types/types/gateway-service-form.d.ts +75 -0
- package/dist/types/types/gateway-service-form.d.ts.map +1 -0
- package/dist/types/types/gateway-service-list.d.ts +36 -0
- package/dist/types/types/gateway-service-list.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +4 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/urlValidator.d.ts +4 -0
- package/dist/types/utils/urlValidator.d.ts.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { AxiosResponse } from 'axios';
|
|
3
|
+
import type { KonnectGatewayServiceFormConfig, KongManagerGatewayServiceFormConfig } from '../types';
|
|
4
|
+
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
slots: {
|
|
7
|
+
"form-actions"?(_: {
|
|
8
|
+
canSubmit: boolean;
|
|
9
|
+
cancel: () => void;
|
|
10
|
+
submit: () => Promise<AxiosResponse | undefined>;
|
|
11
|
+
}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
19
|
+
config: {
|
|
20
|
+
type: PropType<KonnectGatewayServiceFormConfig | KongManagerGatewayServiceFormConfig>;
|
|
21
|
+
required: true;
|
|
22
|
+
validator: (config: KonnectGatewayServiceFormConfig | KongManagerGatewayServiceFormConfig) => boolean;
|
|
23
|
+
};
|
|
24
|
+
/** If a valid Gateway Service ID is provided, it will put the form in Edit mode instead of Create */
|
|
25
|
+
gatewayServiceId: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
/** Whether show or hide EntityFormSection info column */
|
|
31
|
+
hideSectionsInfo: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>, {
|
|
37
|
+
validateUrl: () => void;
|
|
38
|
+
getPayload: import("vue").ComputedRef<Record<string, any>>;
|
|
39
|
+
saveFormData: () => Promise<AxiosResponse | undefined>;
|
|
40
|
+
canSubmit: import("vue").ComputedRef<boolean>;
|
|
41
|
+
initForm: (data: Record<string, any>) => void;
|
|
42
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
43
|
+
error: (error: any) => any;
|
|
44
|
+
update: (data: Record<string, any>) => any;
|
|
45
|
+
"url-valid:success": () => any;
|
|
46
|
+
"url-valid:error": (error: string) => any;
|
|
47
|
+
loading: (isLoading: boolean) => any;
|
|
48
|
+
"model-updated": (val: Record<string, any>) => any;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
51
|
+
config: {
|
|
52
|
+
type: PropType<KonnectGatewayServiceFormConfig | KongManagerGatewayServiceFormConfig>;
|
|
53
|
+
required: true;
|
|
54
|
+
validator: (config: KonnectGatewayServiceFormConfig | KongManagerGatewayServiceFormConfig) => boolean;
|
|
55
|
+
};
|
|
56
|
+
/** If a valid Gateway Service ID is provided, it will put the form in Edit mode instead of Create */
|
|
57
|
+
gatewayServiceId: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
/** Whether show or hide EntityFormSection info column */
|
|
63
|
+
hideSectionsInfo: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
required: false;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{
|
|
69
|
+
onError?: ((error: any) => any) | undefined;
|
|
70
|
+
onUpdate?: ((data: Record<string, any>) => any) | undefined;
|
|
71
|
+
"onUrl-valid:success"?: (() => any) | undefined;
|
|
72
|
+
"onUrl-valid:error"?: ((error: string) => any) | undefined;
|
|
73
|
+
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
74
|
+
"onModel-updated"?: ((val: Record<string, any>) => any) | undefined;
|
|
75
|
+
}>, {
|
|
76
|
+
gatewayServiceId: string;
|
|
77
|
+
hideSectionsInfo: boolean;
|
|
78
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
79
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
80
|
+
export default _default;
|
|
81
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
82
|
+
new (): {
|
|
83
|
+
$slots: S;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=LegacyGatewayServiceForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegacyGatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/LegacyGatewayServiceForm.vue"],"names":[],"mappings":"AAu4BA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAGpC,MAAM,UAAU,CAAA;AAajB,OAAO,gDAAgD,CAAA;AAkgBvD,iBAAS,cAAc;;;;0BA/NO,IAAI;0BAmGH,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;YA2rB3B,GAAG;;;WAS3B,OAAO,IAA6B;EAEjD;AAoED,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAenB,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;;uBA9+BnC,IAAI;;wBAkMG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;;qBAtHzC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,IAAI;;;;;;;;;IAg5BhD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;;;;;;;;;;;4EAOzD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPortFromProtocol.d.ts","sourceRoot":"","sources":["../../../src/composables/getPortFromProtocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,mBAAmB;oCACF,MAAM,SAAS,MAAM,KAAG,MAAM;EA0BtE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import useI18n from './useI18n';
|
|
2
|
+
import usePortFromProtocol from './getPortFromProtocol';
|
|
3
|
+
import useUrlValidators from './useUrlValidators';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
useI18n: typeof useI18n;
|
|
6
|
+
usePortFromProtocol: typeof usePortFromProtocol;
|
|
7
|
+
useUrlValidators: typeof useUrlValidators;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,mBAAmB,MAAM,uBAAuB,CAAA;AACvD,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;;;;;;AAGjD,wBAIC"}
|
|
@@ -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,8 @@
|
|
|
1
|
+
import type { SelectItem } from '@kong/kongponents';
|
|
2
|
+
export default function useUrlValidators(): {
|
|
3
|
+
validateHost: (host: string) => string;
|
|
4
|
+
validateProtocol: (protocol: string, ProtocolItems: SelectItem[]) => string;
|
|
5
|
+
validatePath: (path: string | null | undefined) => string;
|
|
6
|
+
validatePort: (port: number | string | null | undefined) => string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useUrlValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUrlValidators.d.ts","sourceRoot":"","sources":["../../../src/composables/useUrlValidators.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,CAAC,OAAO,UAAU,gBAAgB;yBAGV,MAAM,KAAG,MAAM;iCA0DP,MAAM,iBAAiB,UAAU,EAAE,KAAI,MAAM;yBAtBrD,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM;yBAvBlC,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM;EAmExE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const KongAirService: {
|
|
2
|
+
name: string;
|
|
3
|
+
tags: never[];
|
|
4
|
+
protocol: string;
|
|
5
|
+
path: string;
|
|
6
|
+
read_timeout: number;
|
|
7
|
+
retries: number;
|
|
8
|
+
host: string;
|
|
9
|
+
connect_timeout: number;
|
|
10
|
+
ca_certificates: null;
|
|
11
|
+
client_certificate: null;
|
|
12
|
+
write_timeout: number;
|
|
13
|
+
port: number;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAa1B,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
list: {
|
|
3
|
+
konnect: {
|
|
4
|
+
all: string;
|
|
5
|
+
};
|
|
6
|
+
kongManager: {
|
|
7
|
+
all: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
form: {
|
|
11
|
+
konnect: {
|
|
12
|
+
create: string;
|
|
13
|
+
validate: string;
|
|
14
|
+
edit: string;
|
|
15
|
+
};
|
|
16
|
+
kongManager: {
|
|
17
|
+
create: string;
|
|
18
|
+
validate: string;
|
|
19
|
+
edit: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=gateway-services-endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-services-endpoints.d.ts","sourceRoot":"","sources":["../../src/gateway-services-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,wBAqBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import GatewayServiceList from './components/GatewayServiceList.vue';
|
|
2
|
+
import LegacyGatewayServiceForm from './components/LegacyGatewayServiceForm.vue';
|
|
3
|
+
import GatewayServiceConfigCard from './components/GatewayServiceConfigCard.vue';
|
|
4
|
+
import GatewayServiceForm from './components/GatewayServiceForm.vue';
|
|
5
|
+
export { GatewayServiceList, GatewayServiceForm, GatewayServiceConfigCard, LegacyGatewayServiceForm };
|
|
6
|
+
export * from './utils';
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,qCAAqC,CAAA;AACpE,OAAO,wBAAwB,MAAM,2CAA2C,CAAA;AAChF,OAAO,wBAAwB,MAAM,2CAA2C,CAAA;AAChF,OAAO,kBAAkB,MAAM,qCAAqC,CAAA;AAGpE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,CAAA;AAGrG,cAAc,SAAS,CAAA;AAGvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { KonnectBaseEntityConfig, KongManagerBaseEntityConfig, ConfigurationSchemaItem } from '@kong-ui-public/entities-shared';
|
|
2
|
+
/** Konnect GatewayService entity config */
|
|
3
|
+
export interface KonnectGatewayServiceEntityConfig extends KonnectBaseEntityConfig {
|
|
4
|
+
}
|
|
5
|
+
/** Kong Manager GatewayService entity config */
|
|
6
|
+
export interface KongManagerGatewayServiceEntityConfig extends KongManagerBaseEntityConfig {
|
|
7
|
+
}
|
|
8
|
+
export interface GatewayServiceConfigurationSchema {
|
|
9
|
+
id: ConfigurationSchemaItem;
|
|
10
|
+
name: ConfigurationSchemaItem;
|
|
11
|
+
enabled: ConfigurationSchemaItem;
|
|
12
|
+
updated_at: ConfigurationSchemaItem;
|
|
13
|
+
created_at: ConfigurationSchemaItem;
|
|
14
|
+
protocol: ConfigurationSchemaItem;
|
|
15
|
+
host: ConfigurationSchemaItem;
|
|
16
|
+
path: ConfigurationSchemaItem;
|
|
17
|
+
port: ConfigurationSchemaItem;
|
|
18
|
+
tags: ConfigurationSchemaItem;
|
|
19
|
+
retries: ConfigurationSchemaItem;
|
|
20
|
+
connect_timeout: ConfigurationSchemaItem;
|
|
21
|
+
write_timeout: ConfigurationSchemaItem;
|
|
22
|
+
read_timeout: ConfigurationSchemaItem;
|
|
23
|
+
client_certificate: ConfigurationSchemaItem;
|
|
24
|
+
ca_certificates: ConfigurationSchemaItem;
|
|
25
|
+
tls_verify: ConfigurationSchemaItem;
|
|
26
|
+
tls_verify_depth: ConfigurationSchemaItem;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=gateway-service-config-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-service-config-card.d.ts","sourceRoot":"","sources":["../../../src/types/gateway-service-config-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEpI,2CAA2C;AAC3C,MAAM,WAAW,iCAAkC,SAAQ,uBAAuB;CAAG;AAErF,gDAAgD;AAChD,MAAM,WAAW,qCAAsC,SAAQ,2BAA2B;CAAG;AAE7F,MAAM,WAAW,iCAAiC;IAEhD,EAAE,EAAE,uBAAuB,CAAA;IAC3B,IAAI,EAAE,uBAAuB,CAAA;IAC7B,OAAO,EAAE,uBAAuB,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,UAAU,EAAE,uBAAuB,CAAA;IACnC,QAAQ,EAAE,uBAAuB,CAAA;IACjC,IAAI,EAAE,uBAAuB,CAAA;IAC7B,IAAI,EAAE,uBAAuB,CAAA;IAC7B,IAAI,EAAE,uBAAuB,CAAA;IAC7B,IAAI,EAAE,uBAAuB,CAAA;IAE7B,OAAO,EAAE,uBAAuB,CAAA;IAChC,eAAe,EAAE,uBAAuB,CAAA;IACxC,aAAa,EAAE,uBAAuB,CAAA;IACtC,YAAY,EAAE,uBAAuB,CAAA;IACrC,kBAAkB,EAAE,uBAAuB,CAAA;IAC3C,eAAe,EAAE,uBAAuB,CAAA;IACxC,UAAU,EAAE,uBAAuB,CAAA;IACnC,gBAAgB,EAAE,uBAAuB,CAAA;CAC1C"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
import type { KonnectBaseFormConfig, KongManagerBaseFormConfig } from '@kong-ui-public/entities-shared';
|
|
3
|
+
/** Konnect GatewayService form config */
|
|
4
|
+
export interface KonnectGatewayServiceFormConfig extends KonnectBaseFormConfig {
|
|
5
|
+
/** Route to return to if canceling create/edit a GatewayService */
|
|
6
|
+
cancelRoute: RouteLocationRaw;
|
|
7
|
+
}
|
|
8
|
+
/** Kong Manager GatewayService form config */
|
|
9
|
+
export interface KongManagerGatewayServiceFormConfig extends KongManagerBaseFormConfig {
|
|
10
|
+
/** Route to return to if canceling create/edit a GatewayService */
|
|
11
|
+
cancelRoute: RouteLocationRaw;
|
|
12
|
+
}
|
|
13
|
+
export interface GatewayServiceFormFields {
|
|
14
|
+
name: string;
|
|
15
|
+
protocol: string;
|
|
16
|
+
host: string;
|
|
17
|
+
path: string;
|
|
18
|
+
port: number;
|
|
19
|
+
url: string;
|
|
20
|
+
retries: number;
|
|
21
|
+
connect_timeout: number;
|
|
22
|
+
write_timeout: number;
|
|
23
|
+
read_timeout: number;
|
|
24
|
+
client_certificate: string;
|
|
25
|
+
ca_certificates: string;
|
|
26
|
+
tls_verify_enabled: boolean;
|
|
27
|
+
tls_verify_value: boolean;
|
|
28
|
+
tags: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FormFieldErrors {
|
|
31
|
+
host: string;
|
|
32
|
+
port: string;
|
|
33
|
+
path: string;
|
|
34
|
+
url: string;
|
|
35
|
+
tags: string;
|
|
36
|
+
retries: string;
|
|
37
|
+
connect_timeout: string;
|
|
38
|
+
write_timeout: string;
|
|
39
|
+
read_timeout: string;
|
|
40
|
+
client_certificate: string;
|
|
41
|
+
ca_certificates: string;
|
|
42
|
+
tls_verify_enabled: string;
|
|
43
|
+
tls_verify_value: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
46
|
+
export interface LegacyGatewayServiceFormState {
|
|
47
|
+
/** Form fields */
|
|
48
|
+
fields: GatewayServiceFormFields;
|
|
49
|
+
/** Form readonly state (only used when saving entity details) */
|
|
50
|
+
isReadonly: boolean;
|
|
51
|
+
/** The Array of error messages to show */
|
|
52
|
+
errorMessage: string;
|
|
53
|
+
}
|
|
54
|
+
export interface GatewayServiceFormState {
|
|
55
|
+
/** Form fields */
|
|
56
|
+
fields: GatewayServiceFormFields;
|
|
57
|
+
/** Form readonly state (only used when saving entity details) */
|
|
58
|
+
isReadonly: boolean;
|
|
59
|
+
/** The Array of error messages to show */
|
|
60
|
+
errorMessages: string[];
|
|
61
|
+
/** The error Object is to show error on each form field */
|
|
62
|
+
formFieldErrors: FormFieldErrors;
|
|
63
|
+
}
|
|
64
|
+
export interface SelectItem {
|
|
65
|
+
label: string;
|
|
66
|
+
value: string | number;
|
|
67
|
+
selected?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface useUrlValidators {
|
|
70
|
+
validateHost: (host: string) => string;
|
|
71
|
+
validatePort: (port: number) => string;
|
|
72
|
+
validateProtocol: (protocol: string) => string;
|
|
73
|
+
validatePath: (path: string) => string;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=gateway-service-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-service-form.d.ts","sourceRoot":"","sources":["../../../src/types/gateway-service-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAEvG,yCAAyC;AACzC,MAAM,WAAW,+BAAgC,SAAQ,qBAAqB;IAC5E,mEAAmE;IACnE,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,8CAA8C;AAC9C,MAAM,WAAW,mCAAoC,SAAQ,yBAAyB;IACpF,mEAAmE;IACnE,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;CACb;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;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ectBaseTableConfig } from '@kong-ui-public/entities-shared';
|
|
3
|
+
export interface BaseGatewayServiceListConfig {
|
|
4
|
+
/** Whether to show the belonged control plane column */
|
|
5
|
+
showControlPlaneColumn?: boolean;
|
|
6
|
+
/** route for creating a Gateway Service */
|
|
7
|
+
createRoute: RouteLocationRaw;
|
|
8
|
+
/** A function that returns the route for viewing a Gateway Service */
|
|
9
|
+
getViewRoute: (id: string) => RouteLocationRaw;
|
|
10
|
+
/** A function that returns the route for editing a Gateway Service */
|
|
11
|
+
getEditRoute: (id: string) => RouteLocationRaw;
|
|
12
|
+
/** A function that returns the route for the belonged control plane */
|
|
13
|
+
getControlPlaneRoute?: (id: string) => RouteLocationRaw;
|
|
14
|
+
}
|
|
15
|
+
/** Konnect GatewayService list config */
|
|
16
|
+
export interface KonnectGatewayServiceListConfig extends KonnectBaseTableConfig, BaseGatewayServiceListConfig {
|
|
17
|
+
}
|
|
18
|
+
/** Kong Manager GatewayService list config */
|
|
19
|
+
export interface KongManagerGatewayServiceListConfig extends KongManagerBaseTableConfig, BaseGatewayServiceListConfig {
|
|
20
|
+
/** FilterSchema for fuzzy match */
|
|
21
|
+
filterSchema?: FilterSchema;
|
|
22
|
+
}
|
|
23
|
+
export interface EntityRow extends Record<string, any> {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
/** Copy field event payload */
|
|
28
|
+
export interface CopyEventPayload {
|
|
29
|
+
/** The entity row */
|
|
30
|
+
entity: EntityRow;
|
|
31
|
+
/** The field being copied. If omitted, the entity JSON is being copied. */
|
|
32
|
+
field?: string;
|
|
33
|
+
/** The toaster message */
|
|
34
|
+
message: string;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=gateway-service-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-service-list.d.ts","sourceRoot":"","sources":["../../../src/types/gateway-service-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlValidator.d.ts","sourceRoot":"","sources":["../../../src/utils/urlValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAOjD,QAAA,MAAM,eAAe,QAAM,gBAKzB,CAAA;AAEF,OAAO,EACL,eAAe,GAChB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-gateway-services",
|
|
3
|
-
"version": "3.11.30-pr.
|
|
3
|
+
"version": "3.11.30-pr.2196.4ae50c01a.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-gateway-services.umd.js",
|
|
6
6
|
"module": "./dist/entities-gateway-services.es.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"axios": "^1.7.7",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.4.5",
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.25.2-pr.
|
|
30
|
-
"@kong-ui-public/i18n": "^2.3.1-pr.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.25.2-pr.2196.4ae50c01a.0",
|
|
30
|
+
"@kong-ui-public/i18n": "^2.3.1-pr.2196.4ae50c01a.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@kong/design-tokens": "1.17.4",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.5.13",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/entities-shared": "^3.25.2-pr.
|
|
40
|
-
"@kong-ui-public/i18n": "^2.3.1-pr.
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.25.2-pr.2196.4ae50c01a.0",
|
|
40
|
+
"@kong-ui-public/i18n": "^2.3.1-pr.2196.4ae50c01a.0"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|