@devkong/cli 0.0.34 → 0.0.35
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 +1 -3
- package/assets/python-install.sh +1 -3
- package/index.js +10200 -6006
- package/package.json +1 -1
- package/packages/kong-spec/src/index.d.ts +2 -2
- package/packages/kong-spec/src/lib/kongSpec.d.ts +24 -5
- package/packages/kong-spec/src/lib/kongSpecBuild.d.ts +4 -1
- package/packages/kong-spec/src/lib/kongSpecDoc.d.ts +1 -0
- package/packages/kong-spec/src/lib/kongSpecLayout.d.ts +2 -2
- package/packages/kong-spec/src/lib/kongSpecMigrate.d.ts +1 -1
- package/packages/kong-spec/src/lib/kongSpecRef.d.ts +2 -1
- package/packages/kong-spec/src/lib/kongSpecToServerless.d.ts +4 -5
- package/packages/kong-spec/src/lib/kongSpecUtils.d.ts +5 -2
- package/packages/kong-ts/src/index.d.ts +2 -2
- package/packages/kong-ts/src/lib/keyGenerator.d.ts +0 -1
- package/packages/kong-ts/src/lib/list.d.ts +1 -0
- package/packages/kong-ts/src/lib/utils.d.ts +1 -0
- package/packages/kong-ts-contract/src/index.d.ts +5 -3
- package/packages/kong-ts-contract/src/lib/appAlias.d.ts +5 -3
- package/packages/kong-ts-contract/src/lib/appBroadcastData.d.ts +7 -0
- package/packages/kong-ts-contract/src/lib/appDocumentPublish.d.ts +7 -0
- package/packages/kong-ts-contract/src/lib/appExtensionSnapshotDetails.d.ts +1 -3
- package/packages/kong-ts-contract/src/lib/appProcessAliasDetails.d.ts +0 -3
- package/packages/kong-ts-contract/src/lib/appSnapshotDetails.d.ts +1 -0
- package/packages/kong-ts-contract/src/lib/{appProcessStartRequest.d.ts → appTaskStartRequest.d.ts} +1 -1
- package/packages/kong-ts-contract/src/lib/types.d.ts +2 -0
- package/packages/kong-ts-contract/src/lib/appDevRequest.d.ts +0 -8
- package/packages/kong-ts-contract/src/lib/appDocumentBuild.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, KongSpecStateDelay, KongSpecStateExit, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateRule, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent, KongSpecSupportsActions, KongSpecSupportsErrors, KongSpecSupportsTransition, } from "./lib/kongSpec";
|
|
4
|
+
export type { KongSpecAction, KongSpecActionCallFunction, KongSpecActionCallProcess, KongSpecActionSendEvent, KongSpecAnnotation, 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";
|
|
@@ -13,6 +13,6 @@ export { normalizeName } from "./lib/kongSpecNormalize";
|
|
|
13
13
|
export { KongSpecRef } from "./lib/kongSpecRef";
|
|
14
14
|
export type { KongSpecActionPath, KongSpecStatePath } from "./lib/kongSpecRef";
|
|
15
15
|
export { convertSpecToServerless } from "./lib/kongSpecToServerless";
|
|
16
|
-
export { findSourceState, getActions, outputAggregator, traverseFlowUp } from "./lib/kongSpecUtils";
|
|
16
|
+
export { findSourceState, getActions, outputAggregator, parallelStateOutputAggregator, traverseFlowUp, } from "./lib/kongSpecUtils";
|
|
17
17
|
export { validate } from "./lib/kongSpecValidate";
|
|
18
18
|
export type { KongSpecValidationIssue, KongSpecValidators } from "./lib/kongSpecValidate";
|
|
@@ -8,7 +8,7 @@ export interface KongSpecFunctionRef {
|
|
|
8
8
|
}
|
|
9
9
|
export interface KongSpecProcessRef {
|
|
10
10
|
tenant: SessionTenant;
|
|
11
|
-
basedOn:
|
|
11
|
+
basedOn: KongSpecFlow["id"];
|
|
12
12
|
aliasName: Distinct<string, "KongSpecProcessRefAliasName">;
|
|
13
13
|
}
|
|
14
14
|
interface KongSpecStateBase {
|
|
@@ -72,6 +72,9 @@ export interface KongSpecHowToOutput {
|
|
|
72
72
|
filter: JqFilter;
|
|
73
73
|
destinations: string[];
|
|
74
74
|
}
|
|
75
|
+
export interface KongSpecSupportsInputFilter {
|
|
76
|
+
inputFilter: JqFilter;
|
|
77
|
+
}
|
|
75
78
|
export interface KongSpecSupportsOutputFilter {
|
|
76
79
|
outputFilter: JqFilter;
|
|
77
80
|
}
|
|
@@ -178,7 +181,7 @@ export interface KongSpecStateCallFunction extends KongSpecStateBase, KongSpecSu
|
|
|
178
181
|
}
|
|
179
182
|
export interface KongSpecActionBase {
|
|
180
183
|
id: Distinct<string, "KongSpecActionId">;
|
|
181
|
-
type: "callFunction" | "sendEvent" | "callProcess";
|
|
184
|
+
type: "callFunction" | "sendEvent" | "callProcess" | "inject";
|
|
182
185
|
name: string;
|
|
183
186
|
}
|
|
184
187
|
export interface KongSpecActionCallFunction extends KongSpecActionBase, KongSpecCallModel {
|
|
@@ -187,13 +190,17 @@ export interface KongSpecActionCallFunction extends KongSpecActionBase, KongSpec
|
|
|
187
190
|
}
|
|
188
191
|
export interface KongSpecActionCallProcess extends KongSpecActionBase, KongSpecCallModel {
|
|
189
192
|
type: "callProcess";
|
|
193
|
+
ref: KongSpecProcessRef;
|
|
190
194
|
}
|
|
191
195
|
export interface KongSpecActionSendEvent extends KongSpecActionBase {
|
|
192
196
|
type: "sendEvent";
|
|
193
197
|
connection: KongSpecEventConnection;
|
|
194
198
|
record: KongSpecRecord;
|
|
195
199
|
}
|
|
196
|
-
export
|
|
200
|
+
export interface KongSpecActionInject extends KongSpecActionBase, KongSpecSupportsOutputFilter, KongSpecSupportsOutputAppend {
|
|
201
|
+
type: "inject";
|
|
202
|
+
}
|
|
203
|
+
export type KongSpecAction = KongSpecActionCallFunction | KongSpecActionCallProcess | KongSpecActionSendEvent | KongSpecActionInject;
|
|
197
204
|
export interface KongSpecSupportsActions {
|
|
198
205
|
actions: KongSpecAction[];
|
|
199
206
|
}
|
|
@@ -208,16 +215,28 @@ export interface KongSpecStateForeach extends KongSpecStateBase, KongSpecSupport
|
|
|
208
215
|
outputCollection: JqFilter;
|
|
209
216
|
actions: KongSpecAction[];
|
|
210
217
|
}
|
|
211
|
-
export interface KongSpecStateParallel extends KongSpecStateBase, KongSpecSupportsTransition, KongSpecCanBeUsedForCompensation, KongSpecFeatureCompensation, KongSpecSupportsCompensatedBy, KongSpecSupportsErrors {
|
|
218
|
+
export interface KongSpecStateParallel extends KongSpecStateBase, KongSpecSupportsTransition, KongSpecCanBeUsedForCompensation, KongSpecFeatureCompensation, KongSpecSupportsCompensatedBy, KongSpecSupportsInputFilter, KongSpecSupportsOutputFilter, KongSpecSupportsOutputAppend, KongSpecSupportsErrors, KongSpecSupportsInput {
|
|
212
219
|
type: "parallel";
|
|
213
220
|
branches: KongSpecBranch[];
|
|
214
221
|
completionType: "allOf" | "atLeast";
|
|
215
222
|
}
|
|
216
223
|
export type KongSpecState = KongSpecStateCallFunction | KongSpecStateCallProcess | KongSpecStateCompensate | KongSpecStateDelay | KongSpecStateFail | KongSpecStateForeach | KongSpecStateInject | KongSpecStateParallel | KongSpecStateRule | KongSpecStateSendEvent | KongSpecStateStart | KongSpecStateSucceed | KongSpecStateSwitch | KongSpecStateWaitEvent;
|
|
217
224
|
export type KongSpecStateExit = KongSpecStateFail | KongSpecStateSucceed;
|
|
225
|
+
interface KongSpecAnnotationBase {
|
|
226
|
+
id: Distinct<string, "KongSpecAnnotationId">;
|
|
227
|
+
}
|
|
228
|
+
export interface KongSpecNoteAnnotation extends KongSpecAnnotationBase {
|
|
229
|
+
type: "note";
|
|
230
|
+
content: string;
|
|
231
|
+
size: [number, number];
|
|
232
|
+
fill: string;
|
|
233
|
+
stroke: string;
|
|
234
|
+
}
|
|
235
|
+
export type KongSpecAnnotation = KongSpecNoteAnnotation;
|
|
218
236
|
export interface KongSpecFlow {
|
|
219
237
|
id: Distinct<ShortUUID, "KongSpecFlowId">;
|
|
220
|
-
version: "1
|
|
238
|
+
version: "1";
|
|
221
239
|
states: KongSpecState[];
|
|
240
|
+
annotations: KongSpecAnnotation[];
|
|
222
241
|
}
|
|
223
242
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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";
|
|
2
|
+
import { KongSpecActionCallFunction, KongSpecActionCallProcess, KongSpecActionInject, KongSpecActionSendEvent, KongSpecAnnotation, 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";
|
|
3
3
|
export declare class KongSpecBuild {
|
|
4
4
|
flow(id: KongSpecFlow["id"]): KongSpecFlow;
|
|
5
5
|
startState(overrides?: Partial<KongSpecStateStart>): KongSpecStateStart;
|
|
@@ -8,10 +8,12 @@ export declare class KongSpecBuild {
|
|
|
8
8
|
callFunctionState(ref: KongSpecFunctionRef, overrides?: Partial<KongSpecStateCallFunction>): KongSpecStateCallFunction;
|
|
9
9
|
callFunctionAction(ref: KongSpecFunctionRef, overrides?: Partial<KongSpecActionCallFunction>): KongSpecActionCallFunction;
|
|
10
10
|
callProcessState(ref: KongSpecProcessRef, overrides?: Partial<KongSpecStateCallProcess>): KongSpecStateCallProcess;
|
|
11
|
+
callProcessAction(ref: KongSpecProcessRef, overrides?: Partial<KongSpecActionCallProcess>): KongSpecActionCallProcess;
|
|
11
12
|
delayState(overrides?: Partial<KongSpecStateDelay>): KongSpecStateDelay;
|
|
12
13
|
compensateState(overrides?: Partial<KongSpecStateCompensate>): KongSpecStateCompensate;
|
|
13
14
|
failState(overrides?: Partial<KongSpecStateFail>): KongSpecStateFail;
|
|
14
15
|
injectState(overrides?: Partial<KongSpecStateInject>): KongSpecStateInject;
|
|
16
|
+
injectAction(overrides?: Partial<KongSpecActionInject>): KongSpecActionInject;
|
|
15
17
|
succeedState(afterState: Optional<KongSpecState["name"]>, overrides?: Partial<KongSpecStateSucceed>): KongSpecStateSucceed;
|
|
16
18
|
sendEventState(overrides?: Partial<KongSpecStateSendEvent>): KongSpecStateSendEvent;
|
|
17
19
|
sendEventAction(overrides?: Partial<KongSpecActionSendEvent>): KongSpecActionSendEvent;
|
|
@@ -30,4 +32,5 @@ export declare class KongSpecBuild {
|
|
|
30
32
|
circuitBreaker(overrides?: Partial<KongSpecHowToInvoke["circuitBreaker"]>): KongSpecHowToInvoke["circuitBreaker"];
|
|
31
33
|
cache(overrides?: Partial<KongSpecHowToInvoke["cache"]>): KongSpecHowToInvoke["cache"];
|
|
32
34
|
callModel(payload: JqObject): KongSpecCallModel;
|
|
35
|
+
note(overrides?: Partial<KongSpecAnnotation>): KongSpecAnnotation;
|
|
33
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KongSpecAction, KongSpecState } from "./kongSpec";
|
|
2
|
-
export type KongSpecLayoutPositionKey = KongSpecState["id"] | KongSpecAction["id"];
|
|
1
|
+
import { KongSpecAction, KongSpecAnnotation, KongSpecState } from "./kongSpec";
|
|
2
|
+
export type KongSpecLayoutPositionKey = KongSpecState["id"] | KongSpecAction["id"] | KongSpecAnnotation["id"];
|
|
3
3
|
export type KongSpecLayoutPosition = [number, number];
|
|
4
4
|
export type KongSpecLayout = Record<KongSpecLayoutPositionKey, KongSpecLayoutPosition>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KongSpecFile } from "./kongSpecFile";
|
|
2
|
-
export declare function migrate(file: KongSpecFile):
|
|
2
|
+
export declare function migrate(file: KongSpecFile): KongSpecFile;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Optional, SessionTenant } from "@kong/ts";
|
|
2
|
-
import { KongSpecAction, KongSpecBranch, KongSpecCondition, KongSpecError, KongSpecFunctionRef, KongSpecProcessRef, KongSpecRule, KongSpecState } from "./kongSpec";
|
|
2
|
+
import { KongSpecAction, KongSpecAnnotation, KongSpecBranch, KongSpecCondition, KongSpecError, KongSpecFunctionRef, KongSpecProcessRef, KongSpecRule, KongSpecState } from "./kongSpec";
|
|
3
3
|
export declare class KongSpecRef {
|
|
4
4
|
static newStateId(): KongSpecState["id"];
|
|
5
5
|
static newConditionId(): KongSpecCondition["id"];
|
|
@@ -7,6 +7,7 @@ export declare class KongSpecRef {
|
|
|
7
7
|
static newBranchId(): KongSpecBranch["id"];
|
|
8
8
|
static newErrorId(): KongSpecError["id"];
|
|
9
9
|
static newActionId(): KongSpecAction["id"];
|
|
10
|
+
static newAnnotationId(): KongSpecAnnotation["id"];
|
|
10
11
|
static functionRef(tenant: SessionTenant, basedOn: string, aliasName: string): KongSpecFunctionRef;
|
|
11
12
|
static processRef(tenant: SessionTenant, basedOn: string, aliasName: string): KongSpecProcessRef;
|
|
12
13
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { SessionTenant } from "@kong/ts";
|
|
1
|
+
import { Optional, SessionTenant } from "@kong/ts";
|
|
2
2
|
import { Specification } from "@severlessworkflow/sdk-typescript";
|
|
3
3
|
import { JSONSchema7 } from "json-schema";
|
|
4
|
-
import { KongSpecFlow
|
|
5
|
-
import { KongSpecEnv } from "./kongSpecEnv";
|
|
4
|
+
import { KongSpecFlow } from "./kongSpec";
|
|
6
5
|
interface ConvertSpecToServerlessResult {
|
|
7
6
|
workflow: Specification.Workflow;
|
|
8
|
-
inputSchema: JSONSchema7
|
|
7
|
+
inputSchema: Optional<JSONSchema7>;
|
|
9
8
|
}
|
|
10
|
-
export declare function convertSpecToServerless(
|
|
9
|
+
export declare function convertSpecToServerless(tenant: SessionTenant, specFlow: KongSpecFlow, processName: string, parentProcessName?: string): ConvertSpecToServerlessResult[];
|
|
11
10
|
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { JqFilter, JsonText } from "@kong/ts";
|
|
2
|
-
import { KongSpecAction, KongSpecFlow, KongSpecState } from "./kongSpec";
|
|
2
|
+
import { KongSpecAction, KongSpecFlow, KongSpecState, KongSpecStateParallel, KongSpecSupportsTransition } from "./kongSpec";
|
|
3
|
+
import { KongSpecActionPath, KongSpecStatePath } from "./kongSpecRef";
|
|
3
4
|
interface FloweyTraverseStateTestItem {
|
|
4
5
|
id: KongSpecState["id"] | KongSpecAction["id"];
|
|
5
6
|
source: "initial" | "errors" | "transition" | "noMatchedRule" | "conditions" | "compensateBy" | "actions" | "branches";
|
|
6
7
|
}
|
|
7
8
|
export declare function traverseFlowUp(id: KongSpecState["id"] | KongSpecAction["id"], states: KongSpecFlow["states"], test: (current: FloweyTraverseStateTestItem) => boolean): boolean;
|
|
8
|
-
export declare function outputAggregator(jq: (sample: string, filter: JqFilter) => Promise<string>): (flow: KongSpecFlow,
|
|
9
|
+
export declare function outputAggregator(jq: (sample: string, filter: JqFilter) => Promise<string>): (flow: KongSpecFlow, path: KongSpecStatePath | KongSpecActionPath, includeTarget?: boolean) => Promise<JsonText>;
|
|
9
10
|
export declare function getActions(state: KongSpecState): KongSpecAction[];
|
|
10
11
|
export declare function findSourceState(states: KongSpecState[], targetRef: KongSpecState["id"]): import("@kong/ts").Distinct<string, "KongSpecStateId">;
|
|
12
|
+
export declare function convertActionToState(action: KongSpecAction): KongSpecState & KongSpecSupportsTransition;
|
|
13
|
+
export declare function parallelStateOutputAggregator(jq: (sample: string, filter: JqFilter) => Promise<string>): (state: KongSpecStateParallel, flow: KongSpecFlow) => Promise<JsonText>;
|
|
11
14
|
export {};
|
|
@@ -19,7 +19,7 @@ export type { JqArray, JqFilter, JqObject, JqSerializer, JqText, RefactorReplace
|
|
|
19
19
|
export { generateFakeJsonObject, jsonToHumanReadable, prettyJson, safeJsonParse } from "./lib/json";
|
|
20
20
|
export type { JsonArray, JsonObject, JsonSchemaUrl, JsonText } from "./lib/json";
|
|
21
21
|
export { KeyGenerator } from "./lib/keyGenerator";
|
|
22
|
-
export { insertItem, moveItem, unique } from "./lib/list";
|
|
22
|
+
export { findLastIndex, insertItem, moveItem, unique } from "./lib/list";
|
|
23
23
|
export { deepMerge, deepMergeAll } from "./lib/merge";
|
|
24
24
|
export { deepDeleteKeys } from "./lib/normalize";
|
|
25
25
|
export { retry } from "./lib/retry";
|
|
@@ -38,4 +38,4 @@ export type { UrlText } from "./lib/url";
|
|
|
38
38
|
export type { User } from "./lib/user";
|
|
39
39
|
export { dateToUtc, utcNow, utcToZonedDate, utcToZonedText } from "./lib/utc";
|
|
40
40
|
export type { UtcDateTime } from "./lib/utc";
|
|
41
|
-
export { assignDefined, clone, coalesce, getFirstObjectValue, isEmpty, isFunction, isNumber, isString, jitter, no, noop, reinterpret, safeCall, yes, } from "./lib/utils";
|
|
41
|
+
export { assignDefined, clone, coalesce, getFirstObjectValue, isEmpty, isFunction, isNumber, isString, jitter, no, noop, reinterpret, safeCall, toAlphabetic, yes, } from "./lib/utils";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function insertItem<T>(list: ReadonlyArray<T>, item: T, index: number): T[];
|
|
2
2
|
export declare function moveItem<T>(list: ReadonlyArray<T>, from: number, to: number): T[];
|
|
3
3
|
export declare function unique<T>(list: T[]): T[];
|
|
4
|
+
export declare function findLastIndex<T>(list: ReadonlyArray<T>, predicate: (value: T, index: number, array: ReadonlyArray<T>) => boolean): number;
|
|
@@ -13,3 +13,4 @@ export declare function coalesce<T>(...values: (T | undefined | null)[]): T;
|
|
|
13
13
|
export declare function safeCall(action: Action): Optional<Error>;
|
|
14
14
|
export declare function getFirstObjectValue<T extends JsonObject>(instance: T): Optional<T[keyof T]>;
|
|
15
15
|
export declare function jitter(bottom: number, up: number): number;
|
|
16
|
+
export declare function toAlphabetic(index: number): string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export type { AppAlias } from "./lib/appAlias";
|
|
1
2
|
export type { AppAliasDetails } from "./lib/appAliasDetails";
|
|
2
3
|
export type { AppAliasUse } from "./lib/appAliasUse";
|
|
3
4
|
export type { AppAliasUseDetails } from "./lib/appAliasUseDetails";
|
|
5
|
+
export type { AppBroadcastData } from "./lib/appBroadcastData";
|
|
4
6
|
export type { AppCheckpoint } from "./lib/appCheckpoint";
|
|
5
|
-
export type { AppDevRequest } from "./lib/appDevRequest";
|
|
6
7
|
export type { AppDocument } from "./lib/appDocument";
|
|
7
|
-
export type {
|
|
8
|
+
export type { AppDocumentPublish } from "./lib/appDocumentPublish";
|
|
8
9
|
export type { AppDocumentSnapshot } from "./lib/appDocumentSnapshot";
|
|
9
10
|
export type { AppExtension } from "./lib/appExtension";
|
|
10
11
|
export type { AppExtensionAlias } from "./lib/appExtensionAlias";
|
|
@@ -19,9 +20,9 @@ export type { AppProcessAliasDetails } from "./lib/appProcessAliasDetails";
|
|
|
19
20
|
export type { AppProcessAliasUse } from "./lib/appProcessAliasUse";
|
|
20
21
|
export type { AppProcessAliasUseDetails } from "./lib/appProcessAliasUseDetails";
|
|
21
22
|
export type { AppProcessInstanceId } from "./lib/appProcessInstanceId";
|
|
22
|
-
export type { AppProcessStartRequest } from "./lib/appProcessStartRequest";
|
|
23
23
|
export type { AppProject } from "./lib/appProject";
|
|
24
24
|
export type { AppSnapshotDetails } from "./lib/appSnapshotDetails";
|
|
25
|
+
export type { AppTaskStartRequest } from "./lib/appTaskStartRequest";
|
|
25
26
|
export type { AppTestCase } from "./lib/appTestCase";
|
|
26
27
|
export type { AppTestCaseDetails } from "./lib/appTestCaseDetails";
|
|
27
28
|
export type { AppTestCaseMatchFeature } from "./lib/appTestCaseMatchFeature";
|
|
@@ -30,3 +31,4 @@ export type { AppWorkspace } from "./lib/appWorkspace";
|
|
|
30
31
|
export type { SdkAlias, SdkAliasInput, SdkAliasOutput } from "./lib/sdkAlias";
|
|
31
32
|
export type { SdkExtensionAlias } from "./lib/sdkExtensionAlias";
|
|
32
33
|
export type { SdkConcurrencyQuota, SdkQuotaName, SdkRateLimiterQuota } from "./lib/sdkQuota";
|
|
34
|
+
export type { FQIN } from "./lib/types";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { KongSpecFunctionRef, KongSpecProcessRef } from "@kong/spec";
|
|
2
|
-
import { Entity,
|
|
2
|
+
import { Entity, User, UtcDateTime } from "@kong/ts";
|
|
3
|
+
import { AppDocument } from "./appDocument";
|
|
4
|
+
import { AppExtension } from "./appExtension";
|
|
3
5
|
export interface AppAlias<T> extends Entity {
|
|
4
6
|
name: KongSpecProcessRef["aliasName"] | KongSpecFunctionRef["aliasName"];
|
|
5
|
-
basedOnId:
|
|
6
|
-
basedOnName:
|
|
7
|
+
basedOnId: AppDocument["id"] | AppExtension["id"];
|
|
8
|
+
basedOnName: AppDocument["title"] | AppExtension["name"];
|
|
7
9
|
use: T[];
|
|
8
10
|
created: UtcDateTime;
|
|
9
11
|
updated: UtcDateTime;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { KongSpecProcessRef } from "@kong/spec";
|
|
2
|
-
import { Optional } from "@kong/ts";
|
|
3
2
|
import { AppAliasDetails } from "./appAliasDetails";
|
|
4
|
-
import { AppDocument } from "./appDocument";
|
|
5
3
|
import { AppProcessAliasUseDetails } from "./appProcessAliasUseDetails";
|
|
6
4
|
export interface AppProcessAliasDetails extends AppAliasDetails<AppProcessAliasUseDetails> {
|
|
7
|
-
appDocument: Optional<AppDocument>;
|
|
8
5
|
name: KongSpecProcessRef["aliasName"];
|
|
9
6
|
basedOnName: KongSpecProcessRef["basedOn"];
|
|
10
7
|
}
|
|
@@ -2,6 +2,7 @@ import { JsonObject } from "@kong/ts";
|
|
|
2
2
|
import { JSONSchema7 } from "json-schema";
|
|
3
3
|
import { AppSnapshot } from "./appSnapshot";
|
|
4
4
|
export interface AppSnapshotDetails extends AppSnapshot {
|
|
5
|
+
sdk: string;
|
|
5
6
|
inputSchema: JSONSchema7;
|
|
6
7
|
outputSchema: JSONSchema7;
|
|
7
8
|
metadata: JsonObject;
|
package/packages/kong-ts-contract/src/lib/{appProcessStartRequest.d.ts → appTaskStartRequest.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KongSpecJobSession } from "@kong/spec";
|
|
2
2
|
import { JsonObject } from "@kong/ts";
|
|
3
|
-
export interface
|
|
3
|
+
export interface AppTaskStartRequest {
|
|
4
4
|
session: {
|
|
5
5
|
businessKey: KongSpecJobSession["businessKey"];
|
|
6
6
|
priority: KongSpecJobSession["priority"];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UrlText, UtcDateTime } from "@kong/ts";
|
|
2
|
-
import { AppExtensionAlias } from "./appExtensionAlias";
|
|
3
|
-
import { AppDocument } from "./appDocument";
|
|
4
|
-
export interface AppDocumentBuild {
|
|
5
|
-
document: AppDocument;
|
|
6
|
-
aliasName: AppExtensionAlias["name"];
|
|
7
|
-
bundleUrl: UrlText;
|
|
8
|
-
deadline: UtcDateTime;
|
|
9
|
-
runAfterBuild: boolean;
|
|
10
|
-
}
|