From e9101143a77c62f783d06d443693dbcbb54cf34b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 30 Sep 2023 03:23:32 +0000 Subject: [PATCH 1/2] chore(deps): update actions/setup-go action to v4 --- .github/workflows/release-enigma-go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-enigma-go.yml b/.github/workflows/release-enigma-go.yml index a051dd71..d1d5a085 100644 --- a/.github/workflows/release-enigma-go.yml +++ b/.github/workflows/release-enigma-go.yml @@ -12,7 +12,7 @@ jobs: fail-fast: true steps: - name: Setup Go environment - uses: actions/setup-go@v2.1.3 + uses: actions/setup-go@v4.1.0 with: go-version: '^1.17' - name: Checkout enigma-go repo From 2e4a2172e545231fb89473ff0018a9be1e0311d2 Mon Sep 17 00:00:00 2001 From: github-actions-bot Date: Sat, 30 Sep 2023 03:23:55 +0000 Subject: [PATCH 2/2] chore: Generating enigma-go based on OPEN-RPC API for Qlik Associative Engine version 12.1831.0 --- api-spec.json | 8 ++++---- qix_generated.go | 24 +++++++++++++++--------- schema/engine-rpc.json | 38 +++++++++++++++++++++++++++++--------- 3 files changed, 48 insertions(+), 22 deletions(-) diff --git a/api-spec.json b/api-spec.json index ae05d45a..edcb8d2d 100644 --- a/api-spec.json +++ b/api-spec.json @@ -6013,7 +6013,7 @@ "type": "string" }, "Usage": { - "description": "One of:\n\n• ANALYTICS or ANALYTICS_USAGE\n\n• DATA_PREPARATION or DATA_PREPARATION_USAGE", + "description": "One of:\n\n• ANALYTICS\n\n• DATA_PREPARATION", "type": "string" } } @@ -11361,7 +11361,7 @@ ] }, "CreateSessionAppFromApp": { - "description": "Creates a session app from a source app.\nThe following applies:\n\n• The objects in the source app are copied into the session app but contain no data.\n\n• The script of the session app can be edited and reloaded.\n\n• The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.\n\n• A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections.\n\nParameters:\n\n◾ srcAppId - App identifier of the source app.\nIt corresponds to qAppId returned by the CreateApp method when creating the source app.", + "description": "Creates a session app from a source app.\nThe following applies:\n\n• The objects in the source app are copied into the session app.\n\n• There is no data in the session app, unless it is reloaded.\n\n• The script of the session app can be edited and reloaded.\n\n• The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.\n\n• A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections.\n\nParameters:\n\n◾ srcAppId - App identifier of the source app.\nIt corresponds to qAppId returned by the CreateApp method when creating the source app.", "x-qlik-stability": "locked", "type": "method", "params": [ @@ -13539,7 +13539,7 @@ } }, "Usage": { - "description": "One of:\n\n• ANALYTICS or ANALYTICS_USAGE\n\n• DATA_PREPARATION or DATA_PREPARATION_USAGE", + "description": "One of:\n\n• ANALYTICS\n\n• DATA_PREPARATION", "type": "string" } } @@ -13573,7 +13573,7 @@ "type": "string" }, "Usage": { - "description": "Indicates whether the app is used for Analytics or DataPreparation\n\nOne of:\n\n• ANALYTICS or ANALYTICS_USAGE\n\n• DATA_PREPARATION or DATA_PREPARATION_USAGE", + "description": "Indicates whether the app is used for Analytics or DataPreparation\n\nOne of:\n\n• ANALYTICS\n\n• DATA_PREPARATION", "type": "string" } } diff --git a/qix_generated.go b/qix_generated.go index 27ca814a..35c7a8dc 100644 --- a/qix_generated.go +++ b/qix_generated.go @@ -1,4 +1,4 @@ -// Code generated by QIX generator (./schema/generate.go) for Qlik Associative Engine version 12.1777.0 . DO NOT EDIT. +// Code generated by QIX generator (./schema/generate.go) for Qlik Associative Engine version 12.1831.0 . DO NOT EDIT. package enigma @@ -8,7 +8,7 @@ import ( ) // Version of the schema used to generate the enigma.go QIX API -const QIX_SCHEMA_VERSION = "12.1777.0" +const QIX_SCHEMA_VERSION = "12.1831.0" // Deprecated: This will be removed in a future version type AlfaNumString struct { @@ -713,9 +713,9 @@ type DocListEntry struct { IsDirectQueryMode bool `json:"qIsDirectQueryMode,omitempty"` // One of: // - // • ANALYTICS or ANALYTICS_USAGE + // • ANALYTICS // - // • DATA_PREPARATION or DATA_PREPARATION_USAGE + // • DATA_PREPARATION Usage string `json:"qUsage,omitempty"` } @@ -2304,9 +2304,9 @@ type NxAppLayout struct { UnsupportedFeatures []string `json:"qUnsupportedFeatures,omitempty"` // One of: // - // • ANALYTICS or ANALYTICS_USAGE + // • ANALYTICS // - // • DATA_PREPARATION or DATA_PREPARATION_USAGE + // • DATA_PREPARATION Usage string `json:"qUsage,omitempty"` } @@ -2351,9 +2351,9 @@ type NxAppProperties struct { // // One of: // - // • ANALYTICS or ANALYTICS_USAGE + // • ANALYTICS // - // • DATA_PREPARATION or DATA_PREPARATION_USAGE + // • DATA_PREPARATION Usage string `json:"qUsage,omitempty"` } @@ -3385,6 +3385,8 @@ func ErrorCodeLookup(c int) string { return "LOCERR_APP_SIZE_EXCEEDED" case 1016: return "LOCERR_APP_DIRECT_QUERY_WORKLOAD_NOT_SUPPORTED" + case 1017: + return "LOCERR_APP_NOT_OPEN" case 2000: return "LOCERR_CONNECTION_ALREADY_EXISTS" case 2001: @@ -3507,6 +3509,8 @@ func ErrorCodeLookup(c int) string { return "LOCERR_PERSISTENCE_MOVE_FAILED" case 9011: return "LOCERR_PERSISTENCE_OBJECT_LOCKED" + case 9012: + return "LOCERR_PERSISTENCE_ENCRYPTION_KEY_MIGRATION_ONGOING" case 9510: return "LOCERR_PERSISTENCE_SYNC_SET_CHUNK_INVALID_PARAMETERS" case 9511: @@ -13652,7 +13656,9 @@ func (obj *Global) CreateSessionApp(ctx context.Context) (*Doc, error) { // Creates a session app from a source app. // The following applies: // -// • The objects in the source app are copied into the session app but contain no data. +// • The objects in the source app are copied into the session app. +// +// • There is no data in the session app, unless it is reloaded. // // • The script of the session app can be edited and reloaded. // diff --git a/schema/engine-rpc.json b/schema/engine-rpc.json index 143309a4..6ecb31dc 100644 --- a/schema/engine-rpc.json +++ b/schema/engine-rpc.json @@ -2,7 +2,7 @@ "openrpc": "1.0.0", "info": { "title": "QIX", - "version": "12.1777.0", + "version": "12.1831.0", "description": "The JSON-RPC API over websocket that enables you to interact with the Qlik Associative Engine." }, "methods": [ @@ -10551,7 +10551,7 @@ }, { "name": "Global.CreateSessionAppFromApp", - "description": "Creates a session app from a source app.\nThe following applies:\n* The objects in the source app are copied into the session app but contain no data.\n* The script of the session app can be edited and reloaded.\n* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.\n* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections.", + "description": "Creates a session app from a source app.\nThe following applies:\n* The objects in the source app are copied into the session app.\n* There is no data in the session app, unless it is reloaded.\n* The script of the session app can be edited and reloaded.\n* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.\n* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections.", "params": [ { "name": "qSrcAppId", @@ -11587,6 +11587,10 @@ "x-qlik-const": 1016, "title": "LOCERR_APP_DIRECT_QUERY_WORKLOAD_NOT_SUPPORTED" }, + { + "x-qlik-const": 1017, + "title": "LOCERR_APP_NOT_OPEN" + }, { "x-qlik-const": 2000, "title": "LOCERR_CONNECTION_ALREADY_EXISTS" @@ -11831,6 +11835,10 @@ "x-qlik-const": 9011, "title": "LOCERR_PERSISTENCE_OBJECT_LOCKED" }, + { + "x-qlik-const": 9012, + "title": "LOCERR_PERSISTENCE_ENCRYPTION_KEY_MIGRATION_ONGOING" + }, { "x-qlik-const": 9510, "title": "LOCERR_PERSISTENCE_SYNC_SET_CHUNK_INVALID_PARAMETERS" @@ -19375,7 +19383,7 @@ }, "qUsage": { "type": "string", - "description": "\nOne of:\n* ANALYTICS or ANALYTICS_USAGE\n* DATA_PREPARATION or DATA_PREPARATION_USAGE", + "description": "\nOne of:\n* ANALYTICS\n* DATA_PREPARATION", "$ref": "#/components/schemas/UsageEnum" } } @@ -19490,13 +19498,11 @@ "oneOf": [ { "x-qlik-const": 0, - "title": "ANALYTICS", - "description": "ANALYTICS_USAGE" + "title": "ANALYTICS" }, { "x-qlik-const": 1, - "title": "DATA_PREPARATION", - "description": "DATA_PREPARATION_USAGE" + "title": "DATA_PREPARATION" } ] }, @@ -19531,7 +19537,7 @@ }, "qUsage": { "type": "string", - "description": "Indicates whether the app is used for Analytics or DataPreparation\n\nOne of:\n* ANALYTICS or ANALYTICS_USAGE\n* DATA_PREPARATION or DATA_PREPARATION_USAGE", + "description": "Indicates whether the app is used for Analytics or DataPreparation\n\nOne of:\n* ANALYTICS\n* DATA_PREPARATION", "$ref": "#/components/schemas/UsageEnum" } } @@ -21513,7 +21519,7 @@ }, "qUsage": { "type": "string", - "description": "\nOne of:\n* ANALYTICS or ANALYTICS_USAGE\n* DATA_PREPARATION or DATA_PREPARATION_USAGE", + "description": "\nOne of:\n* ANALYTICS\n* DATA_PREPARATION", "$ref": "#/components/schemas/UsageEnum" } } @@ -22071,6 +22077,9 @@ { "$ref": "#/components/errors/LOCERR_APP_DIRECT_QUERY_WORKLOAD_NOT_SUPPORTED" }, + { + "$ref": "#/components/errors/LOCERR_APP_NOT_OPEN" + }, { "$ref": "#/components/errors/LOCERR_CONNECTION_ALREADY_EXISTS" }, @@ -22254,6 +22263,9 @@ { "$ref": "#/components/errors/LOCERR_PERSISTENCE_OBJECT_LOCKED" }, + { + "$ref": "#/components/errors/LOCERR_PERSISTENCE_ENCRYPTION_KEY_MIGRATION_ONGOING" + }, { "$ref": "#/components/errors/LOCERR_PERSISTENCE_SYNC_SET_CHUNK_INVALID_PARAMETERS" }, @@ -23108,6 +23120,10 @@ "code": 1016, "message": "Direct Query mode not supported" }, + "LOCERR_APP_NOT_OPEN": { + "code": 1017, + "message": "Unknown error" + }, "LOCERR_CONNECTION_ALREADY_EXISTS": { "code": 2000, "message": "Connection already exists" @@ -23352,6 +23368,10 @@ "code": 9011, "message": "Object locked" }, + "LOCERR_PERSISTENCE_ENCRYPTION_KEY_MIGRATION_ONGOING": { + "code": 9012, + "message": "Encryption key migration ongoing" + }, "LOCERR_PERSISTENCE_SYNC_SET_CHUNK_INVALID_PARAMETERS": { "code": 9510, "message": "Invalid parameters to SetChunk"