@devkong/cli-nx 0.0.38 → 0.0.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devkong/cli-nx",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
@@ -11,7 +11,7 @@ COPY --chown=quarkus:quarkus .editorconfig /code/
11
11
  USER quarkus
12
12
  WORKDIR /code
13
13
  COPY src /code/src
14
- RUN ./gradlew build -Dquarkus.package.main-class=io.kong.sdkkotlin.QuarkusApp -Dquarkus.native.enabled=true -Dquarkus.profile=prod -Dquarkus.package.jar.enabled=false
14
+ RUN ./gradlew build -Dquarkus.package.main-class=io.kong.sdkkotlin.JsonSchemaGeneratingQuarkusApp -Dquarkus.native.enabled=true -Dquarkus.profile=prod -Dquarkus.package.jar.enabled=false
15
15
 
16
16
  ## Stage 2 : create the docker final image
17
17
  FROM quay.io/quarkus/quarkus-micro-image:2.0
@@ -20,8 +20,8 @@ repositories {
20
20
  }
21
21
 
22
22
  dependencies {
23
- implementation("io.kong:kong-common:0.0.7-SNAPSHOT")
24
- implementation("io.kong:kong-sdk-kotlin:0.0.31-SNAPSHOT")
23
+ implementation("io.kong:kong-common:0.0.2-SNAPSHOT")
24
+ implementation("io.kong:kong-sdk-kotlin:0.0.24-SNAPSHOT")
25
25
 
26
26
  implementation(enforcedPlatform("io.quarkus.platform:quarkus-bom:$quarkusVersion"))
27
27
  implementation("io.quarkus:quarkus-arc")
@@ -4,26 +4,16 @@ kotlin.code.style=official
4
4
  javaVersion=21
5
5
 
6
6
  # https://mvnrepository.com/artifact/org.jlleitschuh.gradle/ktlint-gradle
7
- jlleitschuhGradlePluginVersion=12.1.1
8
- # Gradle properties
9
- org.gradle.jvmargs=-Xms4g -Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
10
- kotlin.code.style=official
11
- javaVersion=21
12
-
13
- # https://mvnrepository.com/artifact/org.jlleitschuh.gradle/ktlint-gradle
14
- jlleitschuhGradlePluginVersion=12.1.1
15
-
16
- # https://mvnrepository.com/artifact/io.github.khalilou88.jnxplus/jnxplus-gradle-plugin
17
- jnxplusGradlePluginVersion=0.4.0
7
+ jlleitschuhGradlePluginVersion=12.3.0
18
8
 
19
9
  #https://mvnrepository.com/artifact/com.networknt/json-schema-validator
20
- jsonSchemaValidatorVersion=1.5.6
10
+ jsonSchemaValidatorVersion=1.5.8
21
11
 
22
12
  # https://mvnrepository.com/artifact/io.github.khalilou88.jnxplus/jnxplus-gradle-plugin
23
13
  jnxplusGradlePluginVersion=0.4.0
24
14
 
25
15
  #https://mvnrepository.com/artifact/com.networknt/json-schema-validator
26
- jsonSchemaValidatorVersion=1.5.6
16
+ jsonSchemaValidatorVersion=1.5.8
27
17
 
28
18
  # https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
29
19
  kotlinVersion=2.1.10
@@ -2,5 +2,6 @@
2
2
  "id": "<%=id%>",
3
3
  "name": "<%=name%>",
4
4
  "sdk": "<%=platform%>",
5
+ "category": "unknown",
5
6
  "alias": {}
6
- }
7
+ }
@@ -4,8 +4,6 @@ quarkus.log.console.format=%d{yyyy-MM-dd'T'HH:mm:ss,SSS} | %-5p | %s thread=%t m
4
4
  quarkus.otel.enabled=true
5
5
  quarkus.otel.exporter.otlp.enabled=false
6
6
 
7
- kong.sdk.binding.http.enabled=true
8
- kong.sdk.binding.queue.enabled=true
9
7
 
10
8
  # non-prod profiles
11
9
 
@@ -6,11 +6,12 @@
6
6
  "type": "debugpy",
7
7
  "request": "launch",
8
8
  "module": "pytest",
9
+ "cwd": "${workspaceFolder}/src",
9
10
  "windows": {
10
- "python": ".venv\\Scripts\\python.exe"
11
+ "python": "${workspaceFolder}\\.venv\\Scripts\\python.exe"
11
12
  },
12
13
  "linux": {
13
- "python": ".venv/bin/python"
14
+ "python": "${workspaceFolder}/.venv/bin/python"
14
15
  },
15
16
  "justMyCode": true
16
17
  }
@@ -5,8 +5,7 @@ FROM --platform=linux/amd64 python:3.13.1-slim-bullseye
5
5
  ENV APP_DIR=/deployments/app
6
6
 
7
7
  COPY ./requirements.txt $APP_DIR/requirements.txt
8
- COPY ./requirements-lock.txt $APP_DIR/requirements-lock.txt
9
- RUN pip install -r $APP_DIR/requirements-lock.txt -r $APP_DIR/requirements.txt
8
+ RUN pip install -r $APP_DIR/requirements.txt
10
9
 
11
10
  COPY ./src $APP_DIR/src
12
11
  WORKDIR $APP_DIR
@@ -2,5 +2,6 @@
2
2
  "id": "<%=id%>",
3
3
  "name": "<%=name%>",
4
4
  "sdk": "<%=platform%>",
5
+ "category": "unknown",
5
6
  "alias": {}
6
- }
7
+ }
@@ -1,3 +1,3 @@
1
1
  --extra-index-url https://nexus.shared.app-dts.net/repository/python-hosted/simple
2
2
  pydantic==2.11.9
3
- kong-sdk==0.0.38
3
+ kong-sdk==0.0.37
@@ -1,5 +1,6 @@
1
1
  from kong.sdk.conftest import ExtensionFixture
2
- from src.main import InputData, Main
2
+
3
+ from main import InputData, Main
3
4
 
4
5
 
5
6
  # The test function to validate the behavior of the extension
@@ -1,76 +0,0 @@
1
- ### Healthcheck
2
- GET http://localhost:8241/q/health
3
-
4
- ### Schema
5
- GET http://localhost:8241/v1/schema
6
-
7
- ### HTTP call template (please keep it up to date)
8
- POST http://localhost:8241/v1/handle
9
- Content-Type: application/cloudevents+json
10
-
11
- {
12
- "id": "6056346e-af43-49aa-b794-977aa716ddc7",
13
- "time": "2024-04-25T11:30:50.517Z",
14
- "type": "KongTaskCallEvent",
15
- "source": "/idea/http",
16
- "specversion": "1.0",
17
- "datacontenttype": "application/json",
18
- "sessionagent": "JOB",
19
- "sessionid": "1",
20
- "sessionrootid": null,
21
- "sessionparentid": null,
22
- "sessiontenant": "sanb",
23
- "sessionrootcreated": "2024-01-01T12:00:00Z",
24
- "sessioncreated": "2024-01-01T12:00:00Z",
25
- "sessionbusinesskey": "ABC123",
26
- "sessionsource": "/idea/http",
27
- "sessiontopic": "/sandbox/test-events",
28
- "sessionpriority": "MAIN",
29
- "sessionexecutionmode": "SYNC",
30
- "sessiondeadline": "2024-12-31T23:59:59Z",
31
- "data": {
32
- "input": {
33
- "name": "Person",
34
- "age": 10,
35
- "gender": "MALE",
36
- "hobbies": ["football"],
37
- "address": {
38
- "street": "testStreet",
39
- "city": "testCity",
40
- "postalCode": "testCode"
41
- }
42
- },
43
- "output": {
44
- "type": "kong-process-events",
45
- "filter": ".output",
46
- "returns": []
47
- },
48
- "invoke": {
49
- "prefix": "34370f477a4a48a8",
50
- "retry": {
51
- "maxAttempts": 1,
52
- "attemptDelay": "PT5S",
53
- "attemptTimeout": "PT30S"
54
- },
55
- "circuitBreaker": {
56
- "enabled": true,
57
- "delay": "PT5S",
58
- "requestVolumeThreshold": 20,
59
- "failureRatio": 0.5,
60
- "successThreshold": 1
61
- },
62
- "cache": {
63
- "enabled": false,
64
- "key": ".",
65
- "ttl": "P7D",
66
- "onFailure": "SKIP"
67
- },
68
- "rateLimiter": {
69
- "enabled": true,
70
- "value": 100,
71
- "window": "PT1S",
72
- "minSpacing": "PT0S"
73
- }
74
- }
75
- }
76
- }