@devkong/cli 0.0.33 → 0.0.34
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/assets/python-install.bat +3 -1
- package/assets/python-install.sh +3 -1
- package/index.js +3508 -3779
- package/package.json +1 -1
- package/packages/kong-cli/src/common/extensionContract.d.ts +7 -1
- package/packages/kong-cli/src/common/profile.d.ts +6 -5
- package/packages/kong-cli/src/common/utils.d.ts +2 -2
- package/packages/kong-spec/src/index.d.ts +2 -1
- package/packages/kong-spec/src/lib/kongServerless.d.ts +2 -1
- package/packages/kong-spec/src/lib/kongSession.d.ts +2 -1
- package/packages/kong-spec/src/lib/kongSpec.d.ts +14 -12
- package/packages/kong-spec/src/lib/kongSpecBuild.d.ts +4 -5
- package/packages/kong-spec/src/lib/kongSpecMigrate.d.ts +2 -0
- package/packages/kong-spec/src/lib/kongSpecToServerless.d.ts +1 -1
- package/packages/kong-spec/src/lib/kongSpecUtils.d.ts +2 -2
- package/packages/kong-ts/src/index.d.ts +2 -0
- package/packages/kong-ts/src/lib/dataGuard.d.ts +11 -0
- package/packages/kong-ts/src/lib/jq.d.ts +1 -1
- package/packages/kong-ts-contract/src/index.d.ts +0 -1
- package/packages/kong-ts-contract/src/lib/appAliasDetails.d.ts +0 -2
- package/packages/kong-ts-contract/src/lib/appDocument.d.ts +2 -0
- package/packages/kong-ts-contract/src/lib/appDocumentBuild.d.ts +3 -0
- package/packages/kong-ts-contract/src/lib/appProcessAliasDetails.d.ts +3 -0
- package/packages/kong-ts-contract/src/lib/sdkQuota.d.ts +1 -0
- package/packages/kong-ts-contract/src/lib/appAliasEditorMode.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSONSchema7 } from "json-schema";
|
|
2
|
+
interface ExtensionContract {
|
|
3
|
+
input: JSONSchema7;
|
|
4
|
+
output: JSONSchema7;
|
|
5
|
+
}
|
|
6
|
+
export declare function getExtensionContract(filePath: string): ExtensionContract;
|
|
7
|
+
export {};
|
|
@@ -4,8 +4,9 @@ export interface Profile {
|
|
|
4
4
|
userName: string;
|
|
5
5
|
}
|
|
6
6
|
export type ProfileName = "default" | string;
|
|
7
|
-
export type
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
7
|
+
export type ProfileMap = Record<ProfileName, Profile>;
|
|
8
|
+
export declare function createEmptyProfile(): Profile;
|
|
9
|
+
export declare function loadProfiles(): ProfileMap;
|
|
10
|
+
export declare function saveProfiles(profiles: ProfileMap): void;
|
|
11
|
+
export declare function getProfile(name: ProfileName): Profile;
|
|
12
|
+
export declare function printProfile(name: ProfileName): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ShortUUID } from "@kong/ts";
|
|
1
|
+
import { Optional, ShortUUID } from "@kong/ts";
|
|
2
2
|
export interface ILogger {
|
|
3
3
|
info(message: string): any;
|
|
4
4
|
debug(message: string): any;
|
|
@@ -6,7 +6,7 @@ export interface ILogger {
|
|
|
6
6
|
warn(message: string): any;
|
|
7
7
|
}
|
|
8
8
|
export declare function env(key: string): string;
|
|
9
|
-
export declare function optionalEnv(key: string): string
|
|
9
|
+
export declare function optionalEnv(key: string): Optional<string>;
|
|
10
10
|
export declare function loadJsonFile<T>(filePath: string): T;
|
|
11
11
|
export declare function resolveProjectPath(fileName: string): string;
|
|
12
12
|
export declare function generateShortId(): ShortUUID;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export { makeServerlessJavaAppProps, serverlessFlowBuilder, stringifyServerlessFlow, } from "./lib/kongServerless";
|
|
2
2
|
export type { FloweyServerlessBuilder } from "./lib/kongServerless";
|
|
3
3
|
export type { KongSpecJobSession } from "./lib/kongSession";
|
|
4
|
-
export type { KongSpecAction, KongSpecActionCallFunction, KongSpecActionCallProcess, KongSpecActionSendEvent, KongSpecAppend, KongSpecBranch, KongSpecCache, KongSpecCallModel, KongSpecCircuitBreaker, KongSpecCondition, KongSpecEffect, KongSpecEffectStatus, KongSpecError, KongSpecEventBroker, KongSpecEventConnection, KongSpecFeatureCompensation, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecord, KongSpecRecordHeader, KongSpecRetry, KongSpecRule, KongSpecState, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateExit, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateRule, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent, KongSpecSupportsActions, KongSpecSupportsErrors, KongSpecSupportsTransition, } from "./lib/kongSpec";
|
|
4
|
+
export type { KongSpecAction, KongSpecActionCallFunction, KongSpecActionCallProcess, KongSpecActionSendEvent, KongSpecAppend, KongSpecBranch, KongSpecCache, KongSpecCallModel, KongSpecCircuitBreaker, KongSpecCondition, KongSpecEffect, KongSpecEffectStatus, KongSpecError, KongSpecEventBroker, KongSpecEventConnection, KongSpecFeatureCompensation, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecord, KongSpecRecordHeader, KongSpecRetry, KongSpecRule, KongSpecState, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateDelay, KongSpecStateExit, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateRule, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent, KongSpecSupportsActions, KongSpecSupportsErrors, KongSpecSupportsTransition, } from "./lib/kongSpec";
|
|
5
5
|
export { KongSpecBuild } from "./lib/kongSpecBuild";
|
|
6
6
|
export { KongSpecDoc } from "./lib/kongSpecDoc";
|
|
7
7
|
export { KongSpecEnv } from "./lib/kongSpecEnv";
|
|
8
8
|
export type { KongSpecFile } from "./lib/kongSpecFile";
|
|
9
9
|
export type { KongSpecLayout, KongSpecLayoutPosition, KongSpecLayoutPositionKey, } from "./lib/kongSpecLayout";
|
|
10
|
+
export { migrate } from "./lib/kongSpecMigrate";
|
|
10
11
|
export { nameGenerator } from "./lib/kongSpecName";
|
|
11
12
|
export { normalizeName } from "./lib/kongSpecNormalize";
|
|
12
13
|
export { KongSpecRef } from "./lib/kongSpecRef";
|
|
@@ -6,8 +6,9 @@ export declare const copyServerlessFlow: (workflow: Specification.Workflow) => S
|
|
|
6
6
|
export declare function stringifyServerlessFlow(workflow: Specification.Workflow): string;
|
|
7
7
|
interface ServerlessJavaAppPropsGenerator {
|
|
8
8
|
tenant: SessionTenant;
|
|
9
|
+
processTitle: string;
|
|
9
10
|
processName: string;
|
|
10
11
|
events: Specification.Eventdef[];
|
|
11
12
|
}
|
|
12
|
-
export declare function makeServerlessJavaAppProps({ tenant, processName, events, }: ServerlessJavaAppPropsGenerator): string;
|
|
13
|
+
export declare function makeServerlessJavaAppProps({ tenant, processTitle, processName, events, }: ServerlessJavaAppPropsGenerator): string;
|
|
13
14
|
export {};
|
|
@@ -5,7 +5,9 @@ export declare enum KongSpecSessionAgent {
|
|
|
5
5
|
interface KongSpecSession {
|
|
6
6
|
agent: KongSpecSessionAgent;
|
|
7
7
|
id: TraceParent;
|
|
8
|
+
rootId: Optional<KongSpecSession["id"]>;
|
|
8
9
|
parentId: Optional<KongSpecSession["id"]>;
|
|
10
|
+
rootCreated: UtcDateTime;
|
|
9
11
|
created: UtcDateTime;
|
|
10
12
|
}
|
|
11
13
|
export declare enum KongSpecJobSessionExecutionMode {
|
|
@@ -23,7 +25,6 @@ export interface KongSpecJobSession extends KongSpecSession {
|
|
|
23
25
|
businessKey: BusinessKey;
|
|
24
26
|
source: string;
|
|
25
27
|
tenant: SessionTenant;
|
|
26
|
-
partition: number;
|
|
27
28
|
topic: string;
|
|
28
29
|
metadata: JsonObject;
|
|
29
30
|
priority: KongSpecJobSessionPriority;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Distinct, Duration8601, JqFilter, JqObject, JqText,
|
|
1
|
+
import { DataGuard, Distinct, Duration8601, JqFilter, JqObject, JqText, JsonObject, JsonText, Optional, SessionTenant, ShortUUID } from "@kong/ts";
|
|
2
2
|
import { JSONSchema7 } from "json-schema";
|
|
3
3
|
export type KongSpecAppend = "list" | "last";
|
|
4
4
|
export interface KongSpecFunctionRef {
|
|
@@ -14,7 +14,7 @@ export interface KongSpecProcessRef {
|
|
|
14
14
|
interface KongSpecStateBase {
|
|
15
15
|
id: Distinct<string, "KongSpecStateId">;
|
|
16
16
|
name: string;
|
|
17
|
-
type: "start" | "succeed" | "fail" | "inject" | "compensate" | "foreach" | "callFunction" | "parallel" | "rule" | "switch" | "sendEvent" | "waitEvent" | "callProcess";
|
|
17
|
+
type: "start" | "succeed" | "fail" | "inject" | "compensate" | "foreach" | "callFunction" | "delay" | "parallel" | "rule" | "switch" | "sendEvent" | "waitEvent" | "callProcess";
|
|
18
18
|
}
|
|
19
19
|
export interface KongSpecSupportsTransition {
|
|
20
20
|
next: KongSpecStateBase["id"] | null;
|
|
@@ -27,6 +27,7 @@ export interface KongSpecError extends KongSpecSupportsTransition {
|
|
|
27
27
|
export interface KongSpecCache {
|
|
28
28
|
enabled: boolean;
|
|
29
29
|
key: JqFilter;
|
|
30
|
+
failOnMiss: JqFilter;
|
|
30
31
|
ttl: Duration8601;
|
|
31
32
|
onFailure: "RETRY" | "SKIP";
|
|
32
33
|
}
|
|
@@ -58,22 +59,16 @@ export interface KongSpecEffectProducer {
|
|
|
58
59
|
id: string;
|
|
59
60
|
type: string;
|
|
60
61
|
}
|
|
61
|
-
export interface KongSpecEffectAck {
|
|
62
|
-
producer: KongSpecEffectProducer;
|
|
63
|
-
seqNum: number;
|
|
64
|
-
}
|
|
65
62
|
export declare enum KongSpecEffectStatus {
|
|
66
63
|
FAILED = "FAILED",
|
|
67
64
|
SUCCEEDED = "SUCCEEDED"
|
|
68
65
|
}
|
|
69
66
|
export interface KongSpecEffect {
|
|
70
67
|
status: KongSpecEffectStatus;
|
|
71
|
-
ack: KongSpecEffectAck;
|
|
72
68
|
usage: Record<string, unknown>;
|
|
73
69
|
data: JsonObject | null;
|
|
74
70
|
}
|
|
75
71
|
export interface KongSpecHowToOutput {
|
|
76
|
-
ack: KongSpecEffectAck;
|
|
77
72
|
filter: JqFilter;
|
|
78
73
|
destinations: string[];
|
|
79
74
|
}
|
|
@@ -83,10 +78,13 @@ export interface KongSpecSupportsOutputFilter {
|
|
|
83
78
|
export interface KongSpecSupportsOutputAppend {
|
|
84
79
|
outputAppend: Array<KongSpecAppend>;
|
|
85
80
|
}
|
|
81
|
+
export interface KongSpecSupportsDataGuards {
|
|
82
|
+
guards: DataGuard[];
|
|
83
|
+
}
|
|
86
84
|
export interface KongSpecSupportsOutputSample {
|
|
87
|
-
outputSample: Optional<
|
|
85
|
+
outputSample: Optional<JsonText>;
|
|
88
86
|
}
|
|
89
|
-
export interface KongSpecCallModel extends KongSpecSupportsInput, KongSpecSupportsOutputFilter, KongSpecSupportsOutputAppend, KongSpecSupportsOutputSample, KongSpecSupportsInvoke {
|
|
87
|
+
export interface KongSpecCallModel extends KongSpecSupportsInput, KongSpecSupportsOutputFilter, KongSpecSupportsOutputAppend, KongSpecSupportsOutputSample, KongSpecSupportsDataGuards, KongSpecSupportsInvoke {
|
|
90
88
|
}
|
|
91
89
|
export interface KongSpecSupportsErrors {
|
|
92
90
|
errors: KongSpecError[];
|
|
@@ -106,7 +104,7 @@ export interface KongSpecCanBeUsedForCompensation {
|
|
|
106
104
|
export interface KongSpecStateStart extends KongSpecStateBase, KongSpecSupportsTransition, KongSpecSupportsTimeout {
|
|
107
105
|
type: "start";
|
|
108
106
|
inputSchema: JSONSchema7;
|
|
109
|
-
inputSample:
|
|
107
|
+
inputSample: JsonText;
|
|
110
108
|
}
|
|
111
109
|
export interface KongSpecStateSucceed extends KongSpecStateBase, KongSpecSupportsOutputFilter {
|
|
112
110
|
type: "succeed";
|
|
@@ -170,6 +168,10 @@ export interface KongSpecStateCallProcess extends KongSpecStateBase, KongSpecSup
|
|
|
170
168
|
type: "callProcess";
|
|
171
169
|
ref: KongSpecProcessRef;
|
|
172
170
|
}
|
|
171
|
+
export interface KongSpecStateDelay extends KongSpecStateBase, KongSpecSupportsTransition {
|
|
172
|
+
type: "delay";
|
|
173
|
+
value: Duration8601;
|
|
174
|
+
}
|
|
173
175
|
export interface KongSpecStateCallFunction extends KongSpecStateBase, KongSpecSupportsTransition, KongSpecSupportsErrors, KongSpecFeatureCompensation, KongSpecCanBeUsedForCompensation, KongSpecSupportsCompensatedBy, KongSpecCallModel {
|
|
174
176
|
type: "callFunction";
|
|
175
177
|
ref: KongSpecFunctionRef;
|
|
@@ -211,7 +213,7 @@ export interface KongSpecStateParallel extends KongSpecStateBase, KongSpecSuppor
|
|
|
211
213
|
branches: KongSpecBranch[];
|
|
212
214
|
completionType: "allOf" | "atLeast";
|
|
213
215
|
}
|
|
214
|
-
export type KongSpecState =
|
|
216
|
+
export type KongSpecState = KongSpecStateCallFunction | KongSpecStateCallProcess | KongSpecStateCompensate | KongSpecStateDelay | KongSpecStateFail | KongSpecStateForeach | KongSpecStateInject | KongSpecStateParallel | KongSpecStateRule | KongSpecStateSendEvent | KongSpecStateStart | KongSpecStateSucceed | KongSpecStateSwitch | KongSpecStateWaitEvent;
|
|
215
217
|
export type KongSpecStateExit = KongSpecStateFail | KongSpecStateSucceed;
|
|
216
218
|
export interface KongSpecFlow {
|
|
217
219
|
id: Distinct<ShortUUID, "KongSpecFlowId">;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { JqObject,
|
|
2
|
-
import {
|
|
3
|
-
import { KongSpecActionCallFunction, KongSpecActionSendEvent, KongSpecBranch, KongSpecCallModel, KongSpecCondition, KongSpecError, KongSpecEventBroker, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecordHeader, KongSpecRule, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateRule, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent } from "./kongSpec";
|
|
1
|
+
import { JqObject, Optional } from "@kong/ts";
|
|
2
|
+
import { KongSpecActionCallFunction, KongSpecActionSendEvent, KongSpecBranch, KongSpecCallModel, KongSpecCondition, KongSpecError, KongSpecEventBroker, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecordHeader, KongSpecRule, KongSpecState, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateDelay, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateRule, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent } from "./kongSpec";
|
|
4
3
|
export declare class KongSpecBuild {
|
|
5
4
|
flow(id: KongSpecFlow["id"]): KongSpecFlow;
|
|
6
5
|
startState(overrides?: Partial<KongSpecStateStart>): KongSpecStateStart;
|
|
@@ -9,10 +8,11 @@ export declare class KongSpecBuild {
|
|
|
9
8
|
callFunctionState(ref: KongSpecFunctionRef, overrides?: Partial<KongSpecStateCallFunction>): KongSpecStateCallFunction;
|
|
10
9
|
callFunctionAction(ref: KongSpecFunctionRef, overrides?: Partial<KongSpecActionCallFunction>): KongSpecActionCallFunction;
|
|
11
10
|
callProcessState(ref: KongSpecProcessRef, overrides?: Partial<KongSpecStateCallProcess>): KongSpecStateCallProcess;
|
|
11
|
+
delayState(overrides?: Partial<KongSpecStateDelay>): KongSpecStateDelay;
|
|
12
12
|
compensateState(overrides?: Partial<KongSpecStateCompensate>): KongSpecStateCompensate;
|
|
13
13
|
failState(overrides?: Partial<KongSpecStateFail>): KongSpecStateFail;
|
|
14
14
|
injectState(overrides?: Partial<KongSpecStateInject>): KongSpecStateInject;
|
|
15
|
-
succeedState(overrides?: Partial<KongSpecStateSucceed>): KongSpecStateSucceed;
|
|
15
|
+
succeedState(afterState: Optional<KongSpecState["name"]>, overrides?: Partial<KongSpecStateSucceed>): KongSpecStateSucceed;
|
|
16
16
|
sendEventState(overrides?: Partial<KongSpecStateSendEvent>): KongSpecStateSendEvent;
|
|
17
17
|
sendEventAction(overrides?: Partial<KongSpecActionSendEvent>): KongSpecActionSendEvent;
|
|
18
18
|
waitEventState(overrides?: Partial<KongSpecStateWaitEvent>): KongSpecStateWaitEvent;
|
|
@@ -30,5 +30,4 @@ export declare class KongSpecBuild {
|
|
|
30
30
|
circuitBreaker(overrides?: Partial<KongSpecHowToInvoke["circuitBreaker"]>): KongSpecHowToInvoke["circuitBreaker"];
|
|
31
31
|
cache(overrides?: Partial<KongSpecHowToInvoke["cache"]>): KongSpecHowToInvoke["cache"];
|
|
32
32
|
callModel(payload: JqObject): KongSpecCallModel;
|
|
33
|
-
session(tenant: SessionTenant, timezone: Timezone, overrides?: Partial<KongSpecJobSession>): KongSpecJobSession;
|
|
34
33
|
}
|
|
@@ -7,5 +7,5 @@ interface ConvertSpecToServerlessResult {
|
|
|
7
7
|
workflow: Specification.Workflow;
|
|
8
8
|
inputSchema: JSONSchema7;
|
|
9
9
|
}
|
|
10
|
-
export declare function convertSpecToServerless(type: "
|
|
10
|
+
export declare function convertSpecToServerless(type: "v1", tenant: SessionTenant, specFlow: KongSpecFlow, aliasName: KongSpecProcessRef["aliasName"], env: KongSpecEnv): ConvertSpecToServerlessResult;
|
|
11
11
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { JqFilter,
|
|
1
|
+
import { JqFilter, JsonText } from "@kong/ts";
|
|
2
2
|
import { KongSpecAction, KongSpecFlow, KongSpecState } from "./kongSpec";
|
|
3
3
|
interface FloweyTraverseStateTestItem {
|
|
4
4
|
id: KongSpecState["id"] | KongSpecAction["id"];
|
|
5
5
|
source: "initial" | "errors" | "transition" | "noMatchedRule" | "conditions" | "compensateBy" | "actions" | "branches";
|
|
6
6
|
}
|
|
7
7
|
export declare function traverseFlowUp(id: KongSpecState["id"] | KongSpecAction["id"], states: KongSpecFlow["states"], test: (current: FloweyTraverseStateTestItem) => boolean): boolean;
|
|
8
|
-
export declare function outputAggregator(jq: (sample:
|
|
8
|
+
export declare function outputAggregator(jq: (sample: string, filter: JqFilter) => Promise<string>): (flow: KongSpecFlow, targetRef: KongSpecState["id"] | KongSpecAction["id"], includeTarget?: boolean) => Promise<JsonText>;
|
|
9
9
|
export declare function getActions(state: KongSpecState): KongSpecAction[];
|
|
10
10
|
export declare function findSourceState(states: KongSpecState[], targetRef: KongSpecState["id"]): import("@kong/ts").Distinct<string, "KongSpecStateId">;
|
|
11
11
|
export {};
|
|
@@ -4,6 +4,8 @@ export type { BusinessKey } from "./lib/businessKey";
|
|
|
4
4
|
export { CloudEvent } from "./lib/cloudEvent";
|
|
5
5
|
export { textToColor } from "./lib/color";
|
|
6
6
|
export { deepEquals, prepareTextForComparison, sameText, shadowEquals } from "./lib/compare";
|
|
7
|
+
export { DataGuardType } from "./lib/dataGuard";
|
|
8
|
+
export type { DataGuard } from "./lib/dataGuard";
|
|
7
9
|
export { isDuration } from "./lib/duration";
|
|
8
10
|
export type { Duration8601 } from "./lib/duration";
|
|
9
11
|
export type { Entity } from "./lib/entity";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum DataGuardType {
|
|
2
|
+
NULL = "NULL",
|
|
3
|
+
EMPTY_TEXT = "EMPTY_TEXT",
|
|
4
|
+
WHITESPACES = "WHITESPACES",
|
|
5
|
+
EMPTY_OBJECT = "EMPTY_OBJECT",
|
|
6
|
+
EMPTY_ARRAY = "EMPTY_ARRAY"
|
|
7
|
+
}
|
|
8
|
+
export interface DataGuard {
|
|
9
|
+
type: DataGuardType;
|
|
10
|
+
arguments: Array<unknown>;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Distinct, Primitive } from "./types";
|
|
2
|
-
export type JqFilter = Distinct<Primitive, "
|
|
2
|
+
export type JqFilter = Distinct<Primitive, "JqFilter">;
|
|
3
3
|
export type JqText = Distinct<string, "JqText">;
|
|
4
4
|
export interface JqObject {
|
|
5
5
|
[key: string]: Primitive | JqText | JqObject | Array<JqObject> | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export type { AppAliasDetails } from "./lib/appAliasDetails";
|
|
2
|
-
export type { AppAliasEditorMode } from "./lib/appAliasEditorMode";
|
|
3
2
|
export type { AppAliasUse } from "./lib/appAliasUse";
|
|
4
3
|
export type { AppAliasUseDetails } from "./lib/appAliasUseDetails";
|
|
5
4
|
export type { AppCheckpoint } from "./lib/appCheckpoint";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { KongSpecHowToInvoke } from "@kong/spec";
|
|
2
1
|
import { AppAlias } from "./appAlias";
|
|
3
2
|
import { SdkAlias } from "./sdkAlias";
|
|
4
3
|
export interface AppAliasDetails<T> extends AppAlias<T> {
|
|
5
4
|
inputSchema?: NonNullable<SdkAlias["input"]>["schema"];
|
|
6
5
|
outputSchema?: NonNullable<SdkAlias["input"]>["schema"];
|
|
7
|
-
invoke?: Partial<KongSpecHowToInvoke>;
|
|
8
6
|
}
|
|
@@ -2,8 +2,10 @@ import { KongSpecFlow } from "@kong/spec";
|
|
|
2
2
|
import { Entity, Optional, User, UtcDateTime } from "@kong/ts";
|
|
3
3
|
import { AppCheckpoint } from "./appCheckpoint";
|
|
4
4
|
import { AppProject } from "./appProject";
|
|
5
|
+
import { AppWorkspace } from "./appWorkspace";
|
|
5
6
|
export interface AppDocument extends Entity {
|
|
6
7
|
id: KongSpecFlow["id"];
|
|
8
|
+
workspaceId: AppWorkspace["id"];
|
|
7
9
|
projectId: AppProject["id"];
|
|
8
10
|
title: string;
|
|
9
11
|
checkpoint: Optional<AppCheckpoint["id"]>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { UrlText, UtcDateTime } from "@kong/ts";
|
|
2
2
|
import { AppExtensionAlias } from "./appExtensionAlias";
|
|
3
|
+
import { AppDocument } from "./appDocument";
|
|
3
4
|
export interface AppDocumentBuild {
|
|
5
|
+
document: AppDocument;
|
|
4
6
|
aliasName: AppExtensionAlias["name"];
|
|
5
7
|
bundleUrl: UrlText;
|
|
6
8
|
deadline: UtcDateTime;
|
|
9
|
+
runAfterBuild: boolean;
|
|
7
10
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { KongSpecProcessRef } from "@kong/spec";
|
|
2
|
+
import { Optional } from "@kong/ts";
|
|
2
3
|
import { AppAliasDetails } from "./appAliasDetails";
|
|
4
|
+
import { AppDocument } from "./appDocument";
|
|
3
5
|
import { AppProcessAliasUseDetails } from "./appProcessAliasUseDetails";
|
|
4
6
|
export interface AppProcessAliasDetails extends AppAliasDetails<AppProcessAliasUseDetails> {
|
|
7
|
+
appDocument: Optional<AppDocument>;
|
|
5
8
|
name: KongSpecProcessRef["aliasName"];
|
|
6
9
|
basedOnName: KongSpecProcessRef["basedOn"];
|
|
7
10
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AppAliasEditorMode = "add" | "edit";
|