From ced8a15259cb887038646cdb42632ca7dc10442d Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 20 Aug 2024 10:10:00 +0200 Subject: [PATCH 01/16] Test --- fern/config.json | 4 + fern/fern.config.json | 4 + fern/generators.yml | 9 + fern/openapi/openapi.json | 21967 ++++++++++++++++++++++++++++++++++++ 4 files changed, 21984 insertions(+) create mode 100644 fern/config.json create mode 100644 fern/fern.config.json create mode 100644 fern/generators.yml create mode 100644 fern/openapi/openapi.json diff --git a/fern/config.json b/fern/config.json new file mode 100644 index 0000000..f9196e3 --- /dev/null +++ b/fern/config.json @@ -0,0 +1,4 @@ +{ + "organization": "sebastian-stehle", + "version": "0.39.10" +} \ No newline at end of file diff --git a/fern/fern.config.json b/fern/fern.config.json new file mode 100644 index 0000000..b0b388f --- /dev/null +++ b/fern/fern.config.json @@ -0,0 +1,4 @@ +{ + "organization": "squidex", + "version": "0.39.10" +} \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml new file mode 100644 index 0000000..c8ae78d --- /dev/null +++ b/fern/generators.yml @@ -0,0 +1,9 @@ +default-group: local +groups: + local: + generators: + - name: fernapi/fern-typescript-node-sdk + version: 0.9.5 + output: + location: local-file-system + path: ../sdks/typescript diff --git a/fern/openapi/openapi.json b/fern/openapi/openapi.json new file mode 100644 index 0000000..6ee2f8e --- /dev/null +++ b/fern/openapi/openapi.json @@ -0,0 +1,21967 @@ +{ + "x-generator": "NSwag v14.0.8.0 (NJsonSchema v11.0.1.0 (Newtonsoft.Json v13.0.0.0))", + "openapi": "3.0.0", + "info": { + "title": "Squidex API", + "version": "1.0.0.0", + "x-logo": { + "url": "https://cloud.squidex.io/images/logo-white.png", + "backgroundStyle": "", + "backgroundColor": "#3f83df" + } + }, + "servers": [ + { + "url": "https://cloud.squidex.io" + } + ], + "paths": { + "/api/user-management": { + "get": { + "tags": [ + "UserManagement" + ], + "summary": "Get users by query.", + "operationId": "UserManagement_GetUsers", + "parameters": [ + { + "name": "query", + "in": "query", + "description": "Optional query to search by email address or username.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 1 + }, + { + "name": "skip", + "in": "query", + "description": "The number of users to skip.", + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "x-position": 2 + }, + { + "name": "take", + "in": "query", + "description": "The number of users to return.", + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Users returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.users.read" + ] + } + ], + "x-fern-sdk-group-name": "userManagement", + "x-fern-sdk-method-name": "getUsers" + }, + "post": { + "tags": [ + "UserManagement" + ], + "summary": "Create a new user.", + "operationId": "UserManagement_PostUser", + "requestBody": { + "x-name": "request", + "description": "The user object that needs to be added.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateUserDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "201": { + "description": "User created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "400": { + "description": "User request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.users.create" + ] + } + ], + "x-fern-sdk-group-name": "userManagement", + "x-fern-sdk-method-name": "postUser" + } + }, + "/api/user-management/{id}": { + "get": { + "tags": [ + "UserManagement" + ], + "summary": "Get a user by ID.", + "operationId": "UserManagement_GetUser", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the user.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "User returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "404": { + "description": "User not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.users.read" + ] + } + ], + "x-fern-sdk-group-name": "userManagement", + "x-fern-sdk-method-name": "getUser" + }, + "put": { + "tags": [ + "UserManagement" + ], + "summary": "Update a user.", + "operationId": "UserManagement_PutUser", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the user.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "requestBody": { + "x-name": "request", + "description": "The user object that needs to be updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "User created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "400": { + "description": "User request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "User not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.users.update" + ] + } + ], + "x-fern-sdk-group-name": "userManagement", + "x-fern-sdk-method-name": "putUser" + }, + "delete": { + "tags": [ + "UserManagement" + ], + "summary": "Delete a User.", + "operationId": "UserManagement_DeleteUser", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the user to delete.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "204": { + "description": "User deleted." + }, + "403": { + "description": "User is the current user.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "User not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.users.unlock" + ] + } + ], + "x-fern-sdk-group-name": "userManagement", + "x-fern-sdk-method-name": "deleteUser" + } + }, + "/api/user-management/{id}/lock": { + "put": { + "tags": [ + "UserManagement" + ], + "summary": "Lock a user.", + "operationId": "UserManagement_LockUser", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the user to lock.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "User locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "403": { + "description": "User is the current user.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "User not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.users.lock" + ] + } + ], + "x-fern-sdk-group-name": "userManagement", + "x-fern-sdk-method-name": "lockUser" + } + }, + "/api/user-management/{id}/unlock": { + "put": { + "tags": [ + "UserManagement" + ], + "summary": "Unlock a user.", + "operationId": "UserManagement_UnlockUser", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the user to unlock.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "User unlocked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "403": { + "description": "User is the current user.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "User not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.users.unlock" + ] + } + ], + "x-fern-sdk-group-name": "userManagement", + "x-fern-sdk-method-name": "unlockUser" + } + }, + "/api": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get the user resources.", + "operationId": "Users_GetUserResources", + "responses": { + "200": { + "description": "User resources returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourcesDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "users", + "x-fern-sdk-method-name": "getUserResources" + } + }, + "/api/user": { + "post": { + "tags": [ + "Users" + ], + "summary": "Update the user profile.", + "operationId": "Users_PostUser", + "requestBody": { + "x-name": "request", + "description": "The values to update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateProfileDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "204": { + "description": "User updated." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "users", + "x-fern-sdk-method-name": "postUser" + } + }, + "/api/users": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get users by query.", + "description": "Search the user by query that contains the email address or the part of the email address.", + "operationId": "Users_GetUsers", + "parameters": [ + { + "name": "query", + "in": "query", + "description": "The query to search the user by email address. Case invariant.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Users returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "users", + "x-fern-sdk-method-name": "getUsers" + } + }, + "/api/users/{id}": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get user by id.", + "operationId": "Users_GetUser", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the user (GUID).", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "User found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "404": { + "description": "User not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "users", + "x-fern-sdk-method-name": "getUser" + } + }, + "/api/users/{id}/picture": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get user picture by id.", + "operationId": "Users_GetUserPicture", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the user (GUID).", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "User found and image or fallback returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "User not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "users", + "x-fern-sdk-method-name": "getUserPicture" + } + }, + "/api/apps/{app}/translations": { + "post": { + "tags": [ + "Translations" + ], + "summary": "Translate a text.", + "operationId": "Translations_PostTranslation", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The translation request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TranslateDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Text translated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TranslationDto" + } + } + } + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.translate" + ] + } + ], + "x-fern-sdk-group-name": "translations", + "x-fern-sdk-method-name": "postTranslation" + } + }, + "/api/templates": { + "get": { + "tags": [ + "Templates" + ], + "summary": "Get all templates.", + "operationId": "Templates_GetTemplates", + "responses": { + "200": { + "description": "Templates returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplatesDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "templates", + "x-fern-sdk-method-name": "getTemplates" + } + }, + "/api/templates/{name}": { + "get": { + "tags": [ + "Templates" + ], + "summary": "Get template details.", + "operationId": "Templates_GetTemplate", + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "description": "The name of the template.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Template returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplateDetailsDto" + } + } + } + }, + "404": { + "description": "Template not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "templates", + "x-fern-sdk-method-name": "getTemplate" + } + }, + "/api/teams/{team}/contributors": { + "get": { + "tags": [ + "Teams" + ], + "summary": "Get team contributors.", + "operationId": "TeamContributors_GetContributors", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Contributors returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.contributors.read" + ] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "getContributors" + }, + "post": { + "tags": [ + "Teams" + ], + "summary": "Assign contributor to team.", + "operationId": "TeamContributors_PostContributor", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "requestBody": { + "x-name": "request", + "description": "Contributor object that needs to be added to the team.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignContributorDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Contributor assigned to team.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "400": { + "description": "Contributor request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.contributors.assign" + ] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "postContributor" + } + }, + "/api/teams/{team}/contributors/me": { + "delete": { + "tags": [ + "Teams" + ], + "summary": "Remove yourself.", + "operationId": "TeamContributors_DeleteMyself", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Contributor removed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "404": { + "description": "Contributor or team not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "deleteMyself" + } + }, + "/api/teams/{team}/contributors/{id}": { + "delete": { + "tags": [ + "Teams" + ], + "summary": "Remove contributor.", + "operationId": "TeamContributors_DeleteContributor", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the contributor.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Contributor removed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "404": { + "description": "Contributor or team not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.contributors.revoke" + ] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "deleteContributor" + } + }, + "/api/teams": { + "get": { + "tags": [ + "Teams" + ], + "summary": "Get your teams.", + "description": "You can only retrieve the list of teams when you are authenticated as a user (OpenID implicit flow).\nYou will retrieve all teams, where you are assigned as a contributor.", + "operationId": "Teams_GetTeams", + "responses": { + "200": { + "description": "Teams returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamDto" + } + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "getTeams" + }, + "post": { + "tags": [ + "Teams" + ], + "summary": "Create a new team.", + "description": "You can only create an team when you are authenticated as a user (OpenID implicit flow).\nYou will be assigned as owner of the new team automatically.", + "operationId": "Teams_PostTeam", + "requestBody": { + "x-name": "request", + "description": "The team object that needs to be added to Squidex.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTeamDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "201": { + "description": "Team created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamDto" + } + } + } + }, + "400": { + "description": "Team request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "postTeam" + } + }, + "/api/teams/{team}": { + "get": { + "tags": [ + "Teams" + ], + "summary": "Get an team by ID.", + "operationId": "Teams_GetTeam", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Teams returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "getTeam" + }, + "put": { + "tags": [ + "Teams" + ], + "summary": "Update the team.", + "operationId": "Teams_PutTeam", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team to update.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "requestBody": { + "x-name": "request", + "description": "The values to update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTeamDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Team updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamDto" + } + } + } + }, + "400": { + "description": "Team request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.update" + ] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "putTeam" + }, + "delete": { + "tags": [ + "Teams" + ], + "summary": "Delete the team.", + "operationId": "Teams_DeleteTeam", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team to delete.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "204": { + "description": "Team deleted." + }, + "404": { + "description": "Team not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.delete" + ] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "deleteTeam" + } + }, + "/api/teams/{team}/auth": { + "get": { + "tags": [ + "Teams" + ], + "summary": "Get the team auth settings.", + "operationId": "Teams_GetTeamAuth", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Teams returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthSchemeResponseDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.auth.read" + ] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "getTeamAuth" + }, + "put": { + "tags": [ + "Teams" + ], + "summary": "Update the team auth.", + "operationId": "Teams_PutTeamAuth", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team to update.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "requestBody": { + "x-name": "request", + "description": "The values to update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthSchemeValueDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Team updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthSchemeResponseDto" + } + } + } + }, + "400": { + "description": "Team request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.auth.change" + ] + } + ], + "x-fern-sdk-group-name": "teams", + "x-fern-sdk-method-name": "putTeamAuth" + } + }, + "/api/apps/{app}/usages/log": { + "get": { + "tags": [ + "Statistics" + ], + "summary": "Get api calls as log file.", + "operationId": "Usages_GetLog", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Usage tracking results returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LogDownloadDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.usage" + ] + } + ], + "x-fern-sdk-group-name": "statistics", + "x-fern-sdk-method-name": "getLog" + } + }, + "/api/apps/{app}/usages/calls/{fromDate}/{toDate}": { + "get": { + "tags": [ + "Statistics" + ], + "summary": "Get api calls in date range for app.", + "operationId": "Usages_GetUsages", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "fromDate", + "in": "path", + "required": true, + "description": "The from date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 2 + }, + { + "name": "toDate", + "in": "path", + "required": true, + "description": "The to date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "API call returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CallsUsageDtoDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.usage" + ] + } + ], + "x-fern-sdk-group-name": "statistics", + "x-fern-sdk-method-name": "getUsages" + } + }, + "/api/teams/{team}/usages/calls/{fromDate}/{toDate}": { + "get": { + "tags": [ + "Statistics" + ], + "summary": "Get api calls in date range for team.", + "operationId": "Usages_GetUsagesForTeam", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The name of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "fromDate", + "in": "path", + "required": true, + "description": "The from date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 2 + }, + { + "name": "toDate", + "in": "path", + "required": true, + "description": "The to date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "API call returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CallsUsageDtoDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.usage" + ] + } + ], + "x-fern-sdk-group-name": "statistics", + "x-fern-sdk-method-name": "getUsagesForTeam" + } + }, + "/api/apps/{app}/usages/storage/today": { + "get": { + "tags": [ + "Statistics" + ], + "summary": "Get total asset size for app.", + "operationId": "Usages_GetCurrentStorageSize", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Storage usage returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CurrentStorageDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.usage" + ] + } + ], + "x-fern-sdk-group-name": "statistics", + "x-fern-sdk-method-name": "getCurrentStorageSize" + } + }, + "/api/teams/{team}/usages/storage/today": { + "get": { + "tags": [ + "Statistics" + ], + "summary": "Get total asset size for team.", + "operationId": "Usages_GetTeamCurrentStorageSizeForTeam", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Storage usage returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CurrentStorageDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.usage" + ] + } + ], + "x-fern-sdk-group-name": "statistics", + "x-fern-sdk-method-name": "getTeamCurrentStorageSizeForTeam" + } + }, + "/api/apps/{app}/usages/storage/{fromDate}/{toDate}": { + "get": { + "tags": [ + "Statistics" + ], + "summary": "Get asset usage by date for app.", + "operationId": "Usages_GetStorageSizes", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "fromDate", + "in": "path", + "required": true, + "description": "The from date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 2 + }, + { + "name": "toDate", + "in": "path", + "required": true, + "description": "The to date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Storage usage returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StorageUsagePerDateDto" + } + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.usage" + ] + } + ], + "x-fern-sdk-group-name": "statistics", + "x-fern-sdk-method-name": "getStorageSizes" + } + }, + "/api/teams/{team}/usages/storage/{fromDate}/{toDate}": { + "get": { + "tags": [ + "Statistics" + ], + "summary": "Get asset usage by date for team.", + "operationId": "Usages_GetStorageSizesForTeam", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "fromDate", + "in": "path", + "required": true, + "description": "The from date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 2 + }, + { + "name": "toDate", + "in": "path", + "required": true, + "description": "The to date.", + "schema": { + "type": "string", + "format": "date" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Storage usage returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StorageUsagePerDateDto" + } + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.usage" + ] + } + ], + "x-fern-sdk-group-name": "statistics", + "x-fern-sdk-method-name": "getStorageSizesForTeam" + } + }, + "/api/apps/{app}/search": { + "get": { + "tags": [ + "Search" + ], + "summary": "Get search results.", + "operationId": "Search_GetSearchResults", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "query", + "in": "query", + "description": "The search query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Search results returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SearchResultDto" + } + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.search" + ] + } + ], + "x-fern-sdk-group-name": "search", + "x-fern-sdk-method-name": "getSearchResults" + } + }, + "/api/apps/{app}/schemas/{schema}/fields": { + "post": { + "tags": [ + "Schemas" + ], + "summary": "Add a schema field.", + "operationId": "SchemaFields_PostField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The field object that needs to be added to the schema.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddFieldDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "201": { + "description": "Schema field created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "409": { + "description": "Schema field name already in use.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "postField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested": { + "post": { + "tags": [ + "Schemas" + ], + "summary": "Add a nested field.", + "operationId": "SchemaFields_PostNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "requestBody": { + "x-name": "request", + "description": "The field object that needs to be added to the schema.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddFieldDto" + } + } + }, + "required": true, + "x-position": 4 + }, + "responses": { + "201": { + "description": "Schema field created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "409": { + "description": "Schema field name already in use.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "postNestedField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/ui": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Configure UI fields.", + "operationId": "SchemaFields_PutSchemaUIFields", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The request that contains the field names.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConfigureUIFieldsDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema UI fields defined.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putSchemaUIFields" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/ordering": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Reorder all fields.", + "operationId": "SchemaFields_PutSchemaFieldOrdering", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The request that contains the field ids.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReorderFieldsDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema fields reordered.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putSchemaFieldOrdering" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/ordering": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Reorder all nested fields.", + "operationId": "SchemaFields_PutNestedFieldOrdering", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "requestBody": { + "x-name": "request", + "description": "The request that contains the field ids.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReorderFieldsDto" + } + } + }, + "required": true, + "x-position": 4 + }, + "responses": { + "200": { + "description": "Schema fields reordered.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putNestedFieldOrdering" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{id}": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Update a schema field.", + "operationId": "SchemaFields_PutField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to update.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "requestBody": { + "x-name": "request", + "description": "The field object that needs to be added to the schema.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateFieldDto" + } + } + }, + "required": true, + "x-position": 4 + }, + "responses": { + "200": { + "description": "Schema field updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putField" + }, + "delete": { + "tags": [ + "Schemas" + ], + "summary": "Delete a schema field.", + "operationId": "SchemaFields_DeleteField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to disable.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Schema field deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "deleteField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Update a nested field.", + "operationId": "SchemaFields_PutNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to update.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + } + ], + "requestBody": { + "x-name": "request", + "description": "The field object that needs to be added to the schema.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateFieldDto" + } + } + }, + "required": true, + "x-position": 5 + }, + "responses": { + "200": { + "description": "Schema field updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putNestedField" + }, + "delete": { + "tags": [ + "Schemas" + ], + "summary": "Delete a nested field.", + "operationId": "SchemaFields_DeleteNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to disable.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Schema field deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "deleteNestedField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{id}/lock": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Lock a schema field.", + "description": "A locked field cannot be updated or deleted.", + "operationId": "SchemaFields_LockField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to lock.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Schema field shown.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "lockField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/lock": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Lock a nested field.", + "description": "A locked field cannot be edited or deleted.", + "operationId": "SchemaFields_LockNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to lock.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Schema field hidden.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Field, schema, or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "lockNestedField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{id}/hide": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Hide a schema field.", + "description": "A hidden field is not part of the API response, but can still be edited in the portal.", + "operationId": "SchemaFields_HideField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to hide.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Schema field hidden.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "hideField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/hide": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Hide a nested field.", + "description": "A hidden field is not part of the API response, but can still be edited in the portal.", + "operationId": "SchemaFields_HideNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to hide.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Schema field hidden.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Field, schema, or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "hideNestedField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{id}/show": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Show a schema field.", + "description": "A hidden field is not part of the API response, but can still be edited in the portal.", + "operationId": "SchemaFields_ShowField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to show.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Schema field shown.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "showField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/show": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Show a nested field.", + "description": "A hidden field is not part of the API response, but can still be edited in the portal.", + "operationId": "SchemaFields_ShowNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to show.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Schema field shown.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "showNestedField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{id}/enable": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Enable a schema field.", + "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", + "operationId": "SchemaFields_EnableField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to enable.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Schema field enabled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "enableField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/enable": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Enable a nested field.", + "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", + "operationId": "SchemaFields_EnableNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to enable.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Schema field enabled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "enableNestedField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{id}/disable": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Disable a schema field.", + "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", + "operationId": "SchemaFields_DisableField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to disable.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Schema field disabled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "disableField" + } + }, + "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/disable": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Disable a nested field.", + "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", + "operationId": "SchemaFields_DisableNestedField", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "path", + "required": true, + "description": "The parent field id.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the field to disable.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Schema field disabled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema field request not valid or field locked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema, field or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "disableNestedField" + } + }, + "/api/apps/{app}/schemas": { + "get": { + "tags": [ + "Schemas" + ], + "summary": "Get schemas.", + "operationId": "Schemas_GetSchemas", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Schemas returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemasDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.read" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "getSchemas" + }, + "post": { + "tags": [ + "Schemas" + ], + "summary": "Create a new schema.", + "operationId": "Schemas_PostSchema", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The schema object that needs to be added to the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateSchemaDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Schema created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "409": { + "description": "Schema name already in use.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.create" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "postSchema" + } + }, + "/api/apps/{app}/schemas/{schema}": { + "get": { + "tags": [ + "Schemas" + ], + "summary": "Get a schema by name.", + "operationId": "Schemas_GetSchema", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema to retrieve.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Schema found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.read" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "getSchema" + }, + "put": { + "tags": [ + "Schemas" + ], + "summary": "Update a schema.", + "operationId": "Schemas_PutSchema", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The schema object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateSchemaDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putSchema" + }, + "delete": { + "tags": [ + "Schemas" + ], + "summary": "Delete a schema.", + "operationId": "Schemas_DeleteSchema", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema to delete.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Schema deleted." + }, + "404": { + "description": "Schema or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.delete" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "deleteSchema" + } + }, + "/api/apps/{app}/schemas/{schema}/sync": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Synchronize a schema.", + "operationId": "Schemas_PutSchemaSync", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The schema object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SynchronizeSchemaDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putSchemaSync" + } + }, + "/api/apps/{app}/schemas/{schema}/category": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Update a schema category.", + "operationId": "Schemas_PutCategory", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The schema object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangeCategoryDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putCategory" + } + }, + "/api/apps/{app}/schemas/{schema}/preview-urls": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Update the preview urls.", + "operationId": "Schemas_PutPreviewUrls", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The preview urls for the schema.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConfigurePreviewUrlsDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putPreviewUrls" + } + }, + "/api/apps/{app}/schemas/{schema}/scripts": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Update the scripts.", + "operationId": "Schemas_PutScripts", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The schema scripts object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaScriptsDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.scripts" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putScripts" + } + }, + "/api/apps/{app}/schemas/{schema}/rules": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Update the rules.", + "operationId": "Schemas_PutRules", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The schema rules object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConfigureFieldRulesDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Schema updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "400": { + "description": "Schema request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.update" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "putRules" + } + }, + "/api/apps/{app}/schemas/{schema}/publish": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Publish a schema.", + "operationId": "Schemas_PublishSchema", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema to publish.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Schema published.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.publish" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "publishSchema" + } + }, + "/api/apps/{app}/schemas/{schema}/unpublish": { + "put": { + "tags": [ + "Schemas" + ], + "summary": "Unpublish a schema.", + "operationId": "Schemas_UnpublishSchema", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema to unpublish.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Schema unpublished.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.schemas.{schema}.publish" + ] + } + ], + "x-fern-sdk-group-name": "schemas", + "x-fern-sdk-method-name": "unpublishSchema" + } + }, + "/api/rules/actions": { + "get": { + "tags": [ + "Rules" + ], + "summary": "Get supported rule actions.", + "operationId": "Rules_GetActions", + "responses": { + "200": { + "description": "Rule actions returned.", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/RuleElementDto" + } + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "getActions" + } + }, + "/api/apps/{app}/rules": { + "get": { + "tags": [ + "Rules" + ], + "summary": "Get rules.", + "operationId": "Rules_GetRules", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Rules returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RulesDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.read" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "getRules" + }, + "post": { + "tags": [ + "Rules" + ], + "summary": "Create a new rule.", + "operationId": "Rules_PostRule", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The rule object that needs to be added to the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateRuleDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Rule created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RuleDto" + } + } + } + }, + "400": { + "description": "Rule request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.create" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "postRule" + } + }, + "/api/apps/{app}/rules/run": { + "delete": { + "tags": [ + "Rules" + ], + "summary": "Cancel the current run.", + "operationId": "Rules_DeleteRuleRun", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "204": { + "description": "Rule run cancelled." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.update" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "deleteRuleRun" + } + }, + "/api/apps/{app}/rules/{id}": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Update a rule.", + "operationId": "Rules_PutRule", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to update.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The rule object that needs to be added to the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateRuleDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Rule updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RuleDto" + } + } + } + }, + "400": { + "description": "Rule request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Rule or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.update" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "putRule" + }, + "delete": { + "tags": [ + "Rules" + ], + "summary": "Delete a rule.", + "operationId": "Rules_DeleteRule", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to delete.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Rule deleted." + }, + "404": { + "description": "Rule or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.delete" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "deleteRule" + } + }, + "/api/apps/{app}/rules/{id}/enable": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Enable a rule.", + "operationId": "Rules_EnableRule", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to enable.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Rule enabled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RuleDto" + } + } + } + }, + "404": { + "description": "Rule or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.disable" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "enableRule" + } + }, + "/api/apps/{app}/rules/{id}/disable": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Disable a rule.", + "operationId": "Rules_DisableRule", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to disable.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Rule disabled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RuleDto" + } + } + } + }, + "404": { + "description": "Rule or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.disable" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "disableRule" + } + }, + "/api/apps/{app}/rules/{id}/trigger": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Trigger a rule.", + "operationId": "Rules_TriggerRule", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to disable.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Rule triggered." + }, + "404": { + "description": "Rule or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.run" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "triggerRule" + } + }, + "/api/apps/{app}/rules/{id}/run": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Run a rule.", + "operationId": "Rules_PutRuleRun", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to run.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "fromSnapshots", + "in": "query", + "description": "Runs the rule from snapeshots if possible.", + "schema": { + "type": "boolean", + "default": false + }, + "x-position": 3 + } + ], + "responses": { + "204": { + "description": "Rule started." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.run" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "putRuleRun" + } + }, + "/api/apps/{app}/rules/{id}/events": { + "delete": { + "tags": [ + "Rules" + ], + "summary": "Cancels all rule events.", + "operationId": "Rules_DeleteRuleEvents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to cancel.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Rule events cancelled." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.delete" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "deleteRuleEvents" + } + }, + "/api/apps/{app}/rules/simulate": { + "post": { + "tags": [ + "Rules" + ], + "summary": "Simulate a rule.", + "operationId": "Rules_SimulatePOST", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The rule to simulate.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateRuleDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Rule simulated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SimulatedRuleEventsDto" + } + } + } + }, + "404": { + "description": "Rule or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.read" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "simulatePOST" + } + }, + "/api/apps/{app}/rules/{id}/simulate": { + "get": { + "tags": [ + "Rules" + ], + "summary": "Simulate a rule.", + "operationId": "Rules_SimulateGET", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the rule to simulate.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Rule simulated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SimulatedRuleEventsDto" + } + } + } + }, + "404": { + "description": "Rule or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.read" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "simulateGET" + } + }, + "/api/apps/{app}/rules/events": { + "get": { + "tags": [ + "Rules" + ], + "summary": "Get rule events.", + "operationId": "Rules_GetEvents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "ruleId", + "in": "query", + "description": "The optional rule id to filter to events.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 + }, + { + "name": "skip", + "in": "query", + "description": "The number of events to skip.", + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "x-position": 3 + }, + { + "name": "take", + "in": "query", + "description": "The number of events to take.", + "schema": { + "type": "integer", + "format": "int32", + "default": 20 + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Rule events returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RuleEventsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.read" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "getEvents" + }, + "delete": { + "tags": [ + "Rules" + ], + "summary": "Cancels all events.", + "operationId": "Rules_DeleteEvents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "204": { + "description": "Events cancelled." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.delete" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "deleteEvents" + } + }, + "/api/apps/{app}/rules/events/{id}": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Retry the event immediately.", + "operationId": "Rules_PutEvent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The event to enqueue.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Rule enqueued." + }, + "404": { + "description": "App or rule event not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.update" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "putEvent" + }, + "delete": { + "tags": [ + "Rules" + ], + "summary": "Cancels an event.", + "operationId": "Rules_DeleteEvent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The event to cancel.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Rule event cancelled." + }, + "404": { + "description": "App or rule event not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.rules.events.delete" + ] + } + ], + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "deleteEvent" + } + }, + "/api/rules/eventtypes": { + "get": { + "tags": [ + "Rules" + ], + "summary": "Provide a list of all event types that are used in rules.", + "operationId": "Rules_GetEventTypes", + "responses": { + "200": { + "description": "Rule events returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "getEventTypes" + } + }, + "/api/rules/eventtypes/{type}": { + "get": { + "tags": [ + "Rules" + ], + "summary": "Provide the json schema for the event with the specified name.", + "operationId": "Rules_GetEventSchema", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "description": "The type name of the event.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Rule event type found.", + "content": { + "application/json": { + "schema": {} + } + } + }, + "404": { + "description": "Rule event not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "rules", + "x-fern-sdk-method-name": "getEventSchema" + } + }, + "/api/apps/{app}/plans": { + "get": { + "tags": [ + "Plans" + ], + "summary": "Get app plan information.", + "operationId": "AppPlans_GetPlans", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "App plan information returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlansDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.plans.read" + ] + } + ], + "x-fern-sdk-group-name": "plans", + "x-fern-sdk-method-name": "getPlans" + } + }, + "/api/apps/{app}/plan": { + "put": { + "tags": [ + "Plans" + ], + "summary": "Change the app plan.", + "operationId": "AppPlans_PutPlan", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "Plan object that needs to be changed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangePlanDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Plan changed or redirect url returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlanChangedDto" + } + } + } + }, + "400": { + "description": "Plan not owned by user.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.plans.change" + ] + } + ], + "x-fern-sdk-group-name": "plans", + "x-fern-sdk-method-name": "putPlan" + } + }, + "/api/teams/{team}/plans": { + "get": { + "tags": [ + "Plans" + ], + "summary": "Get team plan information.", + "operationId": "TeamPlans_GetTeamPlans", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The name of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Team plan information returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlansDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.plans.read" + ] + } + ], + "x-fern-sdk-group-name": "plans", + "x-fern-sdk-method-name": "getTeamPlans" + } + }, + "/api/teams/{team}/plan": { + "put": { + "tags": [ + "Plans" + ], + "summary": "Change the team plan.", + "operationId": "TeamPlans_PutTeamPlan", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The name of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "requestBody": { + "x-name": "request", + "description": "Plan object that needs to be changed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangePlanDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Plan changed or redirect url returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlanChangedDto" + } + } + } + }, + "404": { + "description": "Team not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.plans.change" + ] + } + ], + "x-fern-sdk-group-name": "plans", + "x-fern-sdk-method-name": "putTeamPlan" + } + }, + "/api/info": { + "get": { + "tags": [ + "Ping" + ], + "summary": "Get API information.", + "operationId": "Ping_GetInfo", + "responses": { + "200": { + "description": "Infos returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExposedValues" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "ping", + "x-fern-sdk-method-name": "getInfo" + } + }, + "/api/ping": { + "get": { + "tags": [ + "Ping" + ], + "summary": "Get ping status of the API.", + "description": "Can be used to test, if the Squidex API is alive and responding.", + "operationId": "Ping_GetPing", + "responses": { + "204": { + "description": "Service ping successful." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "ping", + "x-fern-sdk-method-name": "getPing" + } + }, + "/api/ping/{app}": { + "get": { + "tags": [ + "Ping" + ], + "summary": "Get ping status.", + "description": "Can be used to test, if the Squidex API is alive and responding.", + "operationId": "Ping_GetAppPing", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "204": { + "description": "Service ping successful." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.ping" + ] + } + ], + "x-fern-sdk-group-name": "ping", + "x-fern-sdk-method-name": "getAppPing" + } + }, + "/api/news/features": { + "get": { + "tags": [ + "News" + ], + "summary": "Get features since version.", + "operationId": "News_GetNews", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "The latest received version.", + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Latest features returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FeaturesDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "news", + "x-fern-sdk-method-name": "getNews" + } + }, + "/api/languages": { + "get": { + "tags": [ + "Languages" + ], + "summary": "Get supported languages.", + "description": "Provide a list of supported language codes, following the ISO2Code standard.", + "operationId": "Languages_GetLanguages", + "responses": { + "200": { + "description": "Supported language codes returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LanguageDto" + } + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "languages", + "x-fern-sdk-method-name": "getLanguages" + } + }, + "/api/apps/jobs/{id}": { + "get": { + "tags": [ + "Jobs" + ], + "summary": "Get the job content.", + "operationId": "JobsContent_GetJobContent", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the job.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "appId", + "in": "query", + "description": "The ID of the app.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Job found and content returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Job or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "jobs", + "x-fern-sdk-method-name": "getJobContent" + } + }, + "/api/apps/{app}/jobs": { + "get": { + "tags": [ + "Jobs" + ], + "summary": "Get all jobs.", + "operationId": "Jobs_GetJobs", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Jobs returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/JobsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.jobs.read" + ] + } + ], + "x-fern-sdk-group-name": "jobs", + "x-fern-sdk-method-name": "getJobs" + } + }, + "/api/apps/{app}/jobs/{id}": { + "delete": { + "tags": [ + "Jobs" + ], + "summary": "Delete a job.", + "operationId": "Jobs_DeleteJob", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the jobs to delete.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Job deleted." + }, + "404": { + "description": "Job or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.jobs.delete" + ] + } + ], + "x-fern-sdk-group-name": "jobs", + "x-fern-sdk-method-name": "deleteJob" + } + }, + "/api/apps/{app}/history": { + "get": { + "tags": [ + "History" + ], + "summary": "Get the app history.", + "operationId": "History_GetAppHistory", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "channel", + "in": "query", + "description": "The name of the channel.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Events returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HistoryEventDto" + } + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.history" + ] + } + ], + "x-fern-sdk-group-name": "history", + "x-fern-sdk-method-name": "getAppHistory" + } + }, + "/api/teams/{team}/history": { + "get": { + "tags": [ + "History" + ], + "summary": "Get the team history.", + "operationId": "History_GetTeamHistory", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "channel", + "in": "query", + "description": "The name of the channel.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Events returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HistoryEventDto" + } + } + } + } + }, + "404": { + "description": "Team not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.teams.{team}.history" + ] + } + ], + "x-fern-sdk-group-name": "history", + "x-fern-sdk-method-name": "getTeamHistory" + } + }, + "/api/event-consumers": { + "get": { + "tags": [ + "EventConsumers" + ], + "summary": "Get event consumers.", + "operationId": "EventConsumers_GetEventConsumers", + "responses": { + "200": { + "description": "Event consumers returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventConsumersDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.events.read" + ] + } + ], + "x-fern-sdk-group-name": "eventConsumers", + "x-fern-sdk-method-name": "getEventConsumers" + } + }, + "/api/event-consumers/{consumerName}/start": { + "put": { + "tags": [ + "EventConsumers" + ], + "summary": "Start an event consumer.", + "operationId": "EventConsumers_StartEventConsumer", + "parameters": [ + { + "name": "consumerName", + "in": "path", + "required": true, + "description": "The name of the event consumer.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Event consumer started asynchronously.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventConsumerDto" + } + } + } + }, + "404": { + "description": "Event consumer not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.events.manage" + ] + } + ], + "x-fern-sdk-group-name": "eventConsumers", + "x-fern-sdk-method-name": "startEventConsumer" + } + }, + "/api/event-consumers/{consumerName}/stop": { + "put": { + "tags": [ + "EventConsumers" + ], + "summary": "Stop an event consumer.", + "operationId": "EventConsumers_StopEventConsumer", + "parameters": [ + { + "name": "consumerName", + "in": "path", + "required": true, + "description": "The name of the event consumer.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Event consumer stopped asynchronously.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventConsumerDto" + } + } + } + }, + "404": { + "description": "Event consumer not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.events.manage" + ] + } + ], + "x-fern-sdk-group-name": "eventConsumers", + "x-fern-sdk-method-name": "stopEventConsumer" + } + }, + "/api/event-consumers/{consumerName}/reset": { + "put": { + "tags": [ + "EventConsumers" + ], + "summary": "Reset an event consumer.", + "operationId": "EventConsumers_ResetEventConsumer", + "parameters": [ + { + "name": "consumerName", + "in": "path", + "required": true, + "description": "The name of the event consumer.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Event consumer resetted asynchronously.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventConsumerDto" + } + } + } + }, + "404": { + "description": "Event consumer not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.events.manage" + ] + } + ], + "x-fern-sdk-group-name": "eventConsumers", + "x-fern-sdk-method-name": "resetEventConsumer" + } + }, + "/api/diagnostics/dump": { + "get": { + "tags": [ + "Diagnostics" + ], + "summary": "Creates a dump and writes it into storage..", + "operationId": "Diagnostics_GetDump", + "responses": { + "204": { + "description": "Dump created successful." + }, + "501": { + "description": "Not configured.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.*" + ] + } + ], + "x-fern-sdk-group-name": "diagnostics", + "x-fern-sdk-method-name": "getDump" + } + }, + "/api/diagnostics/gcdump": { + "get": { + "tags": [ + "Diagnostics" + ], + "summary": "Creates a gc dump and writes it into storage.", + "operationId": "Diagnostics_GetGCDump", + "responses": { + "204": { + "description": "Dump created successful." + }, + "501": { + "description": "Not configured.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.*" + ] + } + ], + "x-fern-sdk-group-name": "diagnostics", + "x-fern-sdk-method-name": "getGCDump" + } + }, + "/api/content/{app}/{schema}": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Queries contents.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetContents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "ids", + "in": "query", + "description": "The optional ids of the content to fetch.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 + }, + { + "name": "q", + "in": "query", + "description": "The optional json query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "$search", + "in": "query", + "description": "Optional number of items to skip.", + "schema": { + "type": "string" + }, + "x-position": 4 + }, + { + "name": "$top", + "in": "query", + "description": "Optional number of items to take.", + "schema": { + "type": "number" + }, + "x-position": 5 + }, + { + "name": "$skip", + "in": "query", + "description": "Optional number of items to skip.", + "schema": { + "type": "number" + }, + "x-position": 6 + }, + { + "name": "$orderby", + "in": "query", + "description": "Optional OData order definition.", + "schema": { + "type": "string" + }, + "x-position": 7 + }, + { + "name": "$filter", + "in": "query", + "description": "Optional OData filter.", + "schema": { + "type": "string" + }, + "x-position": 8 + }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 9 + }, + { + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" + }, + "x-position": 10 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 11 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 12 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 13 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 14 + } + ], + "responses": { + "200": { + "description": "Contents returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentsDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getContents" + }, + "post": { + "tags": [ + "Contents" + ], + "summary": "Create a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_PostContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "status", + "in": "query", + "description": "The initial status.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "id", + "in": "query", + "description": "The optional custom content id.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 4 + }, + { + "name": "publish", + "in": "query", + "description": "True to automatically publish the content.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 6 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 7 + } + ], + "requestBody": { + "x-name": "Data", + "description": "The full data for the content item.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentData" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Content created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "400": { + "description": "Content request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.create" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "postContent" + } + }, + "/api/content/{app}/{schema}/query": { + "post": { + "tags": [ + "Contents" + ], + "summary": "Queries contents.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetContentsPost", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 3 + }, + { + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 5 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 6 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 7 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 8 + } + ], + "requestBody": { + "x-name": "query", + "description": "The required query object.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Contents returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentsDto" + } + } + } + }, + "404": { + "description": "Schema or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getContentsPost" + } + }, + "/api/content/{app}/{schema}/{id}": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Get a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content to fetch.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "version", + "in": "query", + "description": "The optional version.", + "schema": { + "type": "integer", + "format": "int64", + "default": -2 + }, + "x-position": 3 + }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, + { + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 6 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 7 + } + ], + "responses": { + "200": { + "description": "Content returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getContent" + }, + "post": { + "tags": [ + "Contents" + ], + "summary": "Upsert a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_PostUpsertContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to update.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "status", + "in": "query", + "description": "The initial status.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 4 + }, + { + "name": "patch", + "in": "query", + "description": "Makes the update as patch.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "enrichDefaults", + "in": "query", + "description": "Enrich the content with defaults.", + "schema": { + "type": "boolean" + }, + "x-position": 6 + }, + { + "name": "publish", + "in": "query", + "description": "True to automatically publish the content.", + "schema": { + "type": "boolean" + }, + "x-position": 7 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 8 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 9 + } + ], + "requestBody": { + "x-name": "Data", + "description": "The full data for the content item.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentData" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Content created or updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "400": { + "description": "Content request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content references, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.upsert" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "postUpsertContent" + }, + "put": { + "tags": [ + "Contents" + ], + "summary": "Update a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_PutContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to update.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "enrichDefaults", + "in": "query", + "description": "Enrich the content with defaults.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 6 + } + ], + "requestBody": { + "x-name": "Data", + "description": "The full data for the content item.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentData" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Content updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "400": { + "description": "Content request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content references, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.update.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "putContent" + }, + "patch": { + "tags": [ + "Contents" + ], + "summary": "Patchs a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_PatchContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to patch.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 5 + } + ], + "requestBody": { + "x-name": "request", + "description": "The patch for the content item.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentData" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Content patched.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "400": { + "description": "Content request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.update.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "patchContent" + }, + "delete": { + "tags": [ + "Contents" + ], + "summary": "Delete a content item.", + "description": "You can create an generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_DeleteContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to delete.", + "schema": { + "type": "string" + }, + "x-position": 3 + }, + { + "name": "checkReferrers", + "in": "query", + "description": "True to check referrers of this content.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + }, + { + "name": "permanent", + "in": "query", + "description": "True to delete the content permanently.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + } + ], + "responses": { + "204": { + "description": "Content deleted." + }, + "400": { + "description": "Content cannot be deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.delete.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "deleteContent" + } + }, + "/api/content/{app}/{schema}/{id}/validity": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Get a content item validity.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetContentValidity", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content to fetch.", + "schema": { + "type": "string" + }, + "x-position": 3 + } + ], + "responses": { + "204": { + "description": "Content is valid." + }, + "400": { + "description": "Content not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getContentValidity" + } + }, + "/api/content/{app}/{schema}/{id}/references": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Get all references of a content.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetReferences", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content to fetch.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "q", + "in": "query", + "description": "The optional json query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, + { + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 6 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 7 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 8 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 9 + } + ], + "responses": { + "200": { + "description": "Contents returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentsDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getReferences" + } + }, + "/api/content/{app}/{schema}/{id}/referencing": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Get a referencing contents of a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetReferencing", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content to fetch.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "q", + "in": "query", + "description": "The optional json query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, + { + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 6 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 7 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 8 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 9 + } + ], + "responses": { + "200": { + "description": "Content returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentsDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getReferencing" + } + }, + "/api/content/{app}/{schema}/{id}/{version}": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Get a content by version.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetContentVersion", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content to fetch.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The version fo the content to fetch.", + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 3 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 5 + } + ], + "responses": { + "200": { + "description": "Content version returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "deprecated": true, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.read.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getContentVersion" + } + }, + "/api/content/{app}/{schema}/import": { + "post": { + "tags": [ + "Contents" + ], + "summary": "Import content items.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_PostContents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The import request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImportContentsDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Contents created.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkResultDto" + } + } + } + } + }, + "400": { + "description": "Content request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content references, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "deprecated": true, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.create" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "postContents" + } + }, + "/api/content/{app}/{schema}/bulk": { + "post": { + "tags": [ + "Contents" + ], + "summary": "Bulk update content items.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_BulkUpdateContents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The bulk update request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkUpdateContentsDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkResultDto" + } + } + } + } + }, + "400": { + "description": "Contents request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Contents references, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.read.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "bulkUpdateContents" + } + }, + "/api/content/{app}/{schema}/{id}/defaults": { + "put": { + "tags": [ + "Contents" + ], + "summary": "Enrich a content item with defaults.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_PutContentDefaults", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to update.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "enrichRequiredFields", + "in": "query", + "description": "True, to also enrich required fields. Default: false.\n ", + "schema": { + "type": "boolean" + }, + "x-position": 3 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 5 + } + ], + "responses": { + "200": { + "description": "Content updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "404": { + "description": "Content references, schema or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.update.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "putContentDefaults" + } + }, + "/api/content/{app}/{schema}/{id}/status": { + "put": { + "tags": [ + "Contents" + ], + "summary": "Change status of a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_PutContentStatus", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to change.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 5 + } + ], + "requestBody": { + "x-name": "request", + "description": "The status request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangeStatusDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Content status changed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "400": { + "description": "Content request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.changestatus.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "putContentStatus" + }, + "delete": { + "tags": [ + "Contents" + ], + "summary": "Cancel status change of a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_DeleteContentStatus", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to cancel.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 3 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Content status change cancelled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "400": { + "description": "Content request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.changestatus.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "deleteContentStatus" + } + }, + "/api/content/{app}/{schema}/{id}/draft": { + "post": { + "tags": [ + "Contents" + ], + "summary": "Create a new draft version.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_CreateDraft", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to create the draft for.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 3 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Content draft created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.version.create.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "createDraft" + }, + "delete": { + "tags": [ + "Contents" + ], + "summary": "Delete the draft version.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_DeleteVersion", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "path", + "required": true, + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the content item to delete the draft from.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 3 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Content draft deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentDto" + } + } + } + }, + "404": { + "description": "Content, schema or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.version.delete.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "deleteVersion" + } + }, + "/api/content/{app}/graphql": { + "get": { + "tags": [ + "Contents" + ], + "summary": "GraphQL endpoint.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetGraphQL", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "The query string", + "in": "query", + "description": "The optional version of the asset.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "variables", + "in": "query", + "description": "The optional operation variables.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 + }, + { + "name": "operationName", + "in": "query", + "description": "The optional operation name.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Contents returned or mutated.", + "content": { + "application/json": { + "schema": {} + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getGraphQL" + }, + "post": { + "tags": [ + "Contents" + ], + "summary": "GraphQL endpoint.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_PostGraphQL", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The graphql request.", + "content": { + "application/json": { + "schema": {} + } + }, + "x-position": 1 + }, + "responses": { + "200": { + "description": "Contents returned or mutated.", + "content": { + "application/json": { + "schema": {} + } + } + }, + "404": { + "description": "App not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "postGraphQL" + } + }, + "/api/content/{app}/graphql/batch": { + "get": { + "tags": [ + "Contents" + ], + "summary": "GraphQL batch endpoint.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetGraphQLBatch", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "The query string", + "in": "query", + "description": "The optional version of the asset.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "variables", + "in": "query", + "description": "The optional operation variables.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 + }, + { + "name": "operationName", + "in": "query", + "description": "The optional operation name.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + } + ], + "responses": { + "200": { + "description": "Contents returned or mutated.", + "content": { + "application/json": { + "schema": {} + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getGraphQLBatch" + }, + "post": { + "tags": [ + "Contents" + ], + "summary": "GraphQL batch endpoint.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_PostGraphQLBatch", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The graphql request.", + "content": { + "application/json": { + "schema": {} + } + }, + "x-position": 1 + }, + "responses": { + "200": { + "description": "Contents returned or mutated.", + "content": { + "application/json": { + "schema": {} + } + } + }, + "404": { + "description": "App not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "postGraphQLBatch" + } + }, + "/api/content/{app}": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Queries contents.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetAllContents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "ids", + "in": "query", + "description": "The list of ids to query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 1 + }, + { + "name": "scheduleFrom", + "in": "query", + "description": "The start of the schedule.", + "schema": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "x-position": 2 + }, + { + "name": "scheduleTo", + "in": "query", + "description": "The end of the schedule.", + "schema": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "referencing", + "in": "query", + "description": "The ID of the referencing content item.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 4 + }, + { + "name": "references", + "in": "query", + "description": "The ID of the reference content item.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 5 + }, + { + "name": "q", + "in": "query", + "description": "The optional json query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 6 + }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 7 + }, + { + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" + }, + "x-position": 8 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 9 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 10 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 11 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 12 + } + ], + "responses": { + "200": { + "description": "Contents returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getAllContents" + }, + "post": { + "tags": [ + "Contents" + ], + "summary": "Queries contents.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetAllContentsPost", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" + }, + "x-position": 3 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 6 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 7 + } + ], + "requestBody": { + "x-name": "query", + "description": "The required query object.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AllContentsByPostDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "200": { + "description": "Contents returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getAllContentsPost" + } + }, + "/api/content/{app}/bulk": { + "post": { + "tags": [ + "Contents" + ], + "summary": "Bulk update content items.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_BulkUpdateAllContents", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "schema", + "in": "query", + "description": "The name of the schema.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The bulk update request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkUpdateContentsDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkResultDto" + } + } + } + } + }, + "400": { + "description": "Contents request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Contents references, schema or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.read.own" + ] + } + ], + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "bulkUpdateAllContents" + } + }, + "/api/apps/{app}/backups/{id}": { + "get": { + "tags": [ + "Backups" + ], + "summary": "Get the backup content.", + "operationId": "BackupContent_GetBackupContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the backup.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Backup found and content returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Backup or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "deprecated": true, + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getBackupContent" + }, + "delete": { + "tags": [ + "Backups" + ], + "summary": "Delete a backup.", + "operationId": "Backups_DeleteBackup", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the backup to delete.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Backup deleted." + }, + "404": { + "description": "Backup or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "deprecated": true, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.jobs.delete" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "deleteBackup" + } + }, + "/api/apps/backups/{id}": { + "get": { + "tags": [ + "Backups" + ], + "summary": "Get the backup content.", + "operationId": "BackupContent_GetBackupContentV2", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the backup.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "appId", + "in": "query", + "description": "The ID of the app.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "app", + "in": "query", + "description": "The name of the app.", + "schema": { + "type": "string", + "default": "" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Backup found and content returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Backup or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "deprecated": true, + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getBackupContentV2" + } + }, + "/api/apps/{app}/backups": { + "get": { + "tags": [ + "Backups" + ], + "summary": "Get all backup jobs.", + "operationId": "Backups_GetBackups", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Backups returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackupJobsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "deprecated": true, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.jobs.read" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getBackups" + }, + "post": { + "tags": [ + "Backups" + ], + "summary": "Start a new backup.", + "operationId": "Backups_PostBackup", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "204": { + "description": "Backup started." + }, + "400": { + "description": "Backup contingent reached.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.jobs.create" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "postBackup" + } + }, + "/api/apps/restore": { + "get": { + "tags": [ + "Backups" + ], + "summary": "Get current restore status.", + "operationId": "Restore_GetRestoreJob", + "responses": { + "200": { + "description": "Status returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RestoreJobDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.restore" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getRestoreJob" + }, + "post": { + "tags": [ + "Backups" + ], + "summary": "Restore a backup.", + "operationId": "Restore_PostRestoreJob", + "requestBody": { + "x-name": "request", + "description": "The backup to restore.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RestoreRequestDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "204": { + "description": "Restore operation started." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.restore" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "postRestoreJob" + } + }, + "/api/assets/{app}/{idOrSlug}/{more}": { + "get": { + "tags": [ + "Assets" + ], + "summary": "Get the asset content.", + "operationId": "AssetContent_GetAssetContentBySlug", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "idOrSlug", + "in": "path", + "required": true, + "description": "The id or slug of the asset.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "version", + "in": "query", + "description": "The optional version of the asset.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "cache", + "in": "query", + "description": "The cache duration in seconds.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + }, + { + "name": "download", + "in": "query", + "description": "Set it to 0 to prevent download.", + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 5 + }, + { + "name": "width", + "in": "query", + "description": "The target width of the asset, if it is an image.", + "schema": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "x-position": 6 + }, + { + "name": "height", + "in": "query", + "description": "The target height of the asset, if it is an image.", + "schema": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "x-position": 7 + }, + { + "name": "quality", + "in": "query", + "description": "Optional image quality, it is is an jpeg image.", + "schema": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "x-position": 8 + }, + { + "name": "mode", + "in": "query", + "description": "The resize mode when the width and height is defined.", + "schema": { + "nullable": true, + "$ref": "#/components/schemas/ResizeMode" + }, + "x-position": 9 + }, + { + "name": "bg", + "in": "query", + "description": "Optional background color.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 10 + }, + { + "name": "focusX", + "in": "query", + "description": "Override the y focus point.", + "schema": { + "type": "number", + "format": "float", + "nullable": true + }, + "x-position": 11 + }, + { + "name": "focusY", + "in": "query", + "description": "Override the x focus point.", + "schema": { + "type": "number", + "format": "float", + "nullable": true + }, + "x-position": 12 + }, + { + "name": "nofocus", + "in": "query", + "description": "True to ignore the asset focus point if any.", + "schema": { + "type": "boolean" + }, + "x-position": 13 + }, + { + "name": "auto", + "in": "query", + "description": "True to use auto format.", + "schema": { + "type": "boolean" + }, + "x-position": 14 + }, + { + "name": "force", + "in": "query", + "description": "True to force a new resize even if it already stored.", + "schema": { + "type": "boolean" + }, + "x-position": 15 + }, + { + "name": "deleted", + "in": "query", + "description": "Also return deleted content items.", + "schema": { + "type": "boolean" + }, + "x-position": 16 + }, + { + "name": "format", + "in": "query", + "description": "True to force a new resize even if it already stored.", + "schema": { + "nullable": true, + "$ref": "#/components/schemas/ImageFormat" + }, + "x-position": 17 + }, + { + "name": "more", + "in": "path", + "required": true, + "description": "Optional suffix that can be used to seo-optimize the link to the image Has not effect.", + "schema": { + "type": "string" + }, + "x-position": 18 + } + ], + "responses": { + "200": { + "description": "Asset found and content or (resized) image returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Asset or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "getAssetContentBySlug" + } + }, + "/api/assets/{id}": { + "get": { + "tags": [ + "Assets" + ], + "summary": "Get the asset content.", + "operationId": "AssetContent_GetAssetContent", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "version", + "in": "query", + "description": "The optional version of the asset.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 2 + }, + { + "name": "cache", + "in": "query", + "description": "The cache duration in seconds.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "download", + "in": "query", + "description": "Set it to 0 to prevent download.", + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 4 + }, + { + "name": "width", + "in": "query", + "description": "The target width of the asset, if it is an image.", + "schema": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "x-position": 5 + }, + { + "name": "height", + "in": "query", + "description": "The target height of the asset, if it is an image.", + "schema": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "x-position": 6 + }, + { + "name": "quality", + "in": "query", + "description": "Optional image quality, it is is an jpeg image.", + "schema": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "x-position": 7 + }, + { + "name": "mode", + "in": "query", + "description": "The resize mode when the width and height is defined.", + "schema": { + "nullable": true, + "$ref": "#/components/schemas/ResizeMode" + }, + "x-position": 8 + }, + { + "name": "bg", + "in": "query", + "description": "Optional background color.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 9 + }, + { + "name": "focusX", + "in": "query", + "description": "Override the y focus point.", + "schema": { + "type": "number", + "format": "float", + "nullable": true + }, + "x-position": 10 + }, + { + "name": "focusY", + "in": "query", + "description": "Override the x focus point.", + "schema": { + "type": "number", + "format": "float", + "nullable": true + }, + "x-position": 11 + }, + { + "name": "nofocus", + "in": "query", + "description": "True to ignore the asset focus point if any.", + "schema": { + "type": "boolean" + }, + "x-position": 12 + }, + { + "name": "auto", + "in": "query", + "description": "True to use auto format.", + "schema": { + "type": "boolean" + }, + "x-position": 13 + }, + { + "name": "force", + "in": "query", + "description": "True to force a new resize even if it already stored.", + "schema": { + "type": "boolean" + }, + "x-position": 14 + }, + { + "name": "deleted", + "in": "query", + "description": "Also return deleted content items.", + "schema": { + "type": "boolean" + }, + "x-position": 15 + }, + { + "name": "format", + "in": "query", + "description": "True to force a new resize even if it already stored.", + "schema": { + "nullable": true, + "$ref": "#/components/schemas/ImageFormat" + }, + "x-position": 16 + } + ], + "responses": { + "200": { + "description": "Asset found and content or (resized) image returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Asset or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "deprecated": true, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "getAssetContent" + } + }, + "/api/apps/{app}/assets/folders": { + "get": { + "tags": [ + "Assets" + ], + "summary": "Get asset folders.", + "description": "Get all asset folders for the app.", + "operationId": "AssetFolders_GetAssetFolders", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "parentId", + "in": "query", + "description": "The optional parent folder id.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 + }, + { + "name": "scope", + "in": "query", + "description": "The scope of the query.", + "schema": { + "default": "PathAndItems", + "$ref": "#/components/schemas/AssetFolderScope" + }, + "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Asset folders returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetFoldersDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.read" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "getAssetFolders" + }, + "post": { + "tags": [ + "Assets" + ], + "summary": "Create an asset folder.", + "operationId": "AssetFolders_PostAssetFolder", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The asset folder object that needs to be added to the App.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAssetFolderDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Asset folder created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetFolderDto" + } + } + } + }, + "400": { + "description": "Asset folder request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.folders.create" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "postAssetFolder" + } + }, + "/api/apps/{app}/assets/folders/{id}": { + "put": { + "tags": [ + "Assets" + ], + "summary": "Update an asset folder.", + "operationId": "AssetFolders_PutAssetFolder", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset folder.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The asset folder object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RenameAssetFolderDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Asset folder updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetFolderDto" + } + } + } + }, + "400": { + "description": "Asset folder request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Asset folder or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.folders.update" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "putAssetFolder" + }, + "delete": { + "tags": [ + "Assets" + ], + "summary": "Delete an asset folder.", + "operationId": "AssetFolders_DeleteAssetFolder", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset folder to delete.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "204": { + "description": "Asset folder deleted." + }, + "404": { + "description": "Asset folder or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.folders.delete" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "deleteAssetFolder" + } + }, + "/api/apps/{app}/assets/folders/{id}/parent": { + "put": { + "tags": [ + "Assets" + ], + "summary": "Move an asset folder.", + "operationId": "AssetFolders_PutAssetFolderParent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset folder.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The asset folder object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MoveAssetFolderDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Asset folder moved.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetFolderDto" + } + } + } + }, + "400": { + "description": "Asset folder request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Asset folder or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.folders.update" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "putAssetFolderParent" + } + }, + "/api/apps/{app}/assets/tags": { + "get": { + "tags": [ + "Assets" + ], + "summary": "Get assets tags.", + "description": "Get all tags for assets.", + "operationId": "Assets_GetTags", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Assets tags returned.", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int32" + } + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.read" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "getTags" + } + }, + "/api/apps/{app}/assets/tags/{name}": { + "put": { + "tags": [ + "Assets" + ], + "summary": "Rename an asset tag.", + "operationId": "Assets_PutTag", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "name", + "in": "path", + "required": true, + "description": "The tag to return.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The required request object.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RenameTagDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Asset tag renamed and new tags returned.", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int32" + } + } + } + } + }, + "404": { + "description": "App not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.update" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "putTag" + } + }, + "/api/apps/{app}/assets": { + "get": { + "tags": [ + "Assets" + ], + "summary": "Get assets.", + "description": "Get all assets for the app.", + "operationId": "Assets_GetAssets", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "parentId", + "in": "query", + "description": "The optional parent folder id.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 1 + }, + { + "name": "ids", + "in": "query", + "description": "The optional asset ids.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 + }, + { + "name": "q", + "in": "query", + "description": "The optional json query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "$top", + "in": "query", + "description": "Optional number of items to take.", + "schema": { + "type": "number" + }, + "x-position": 4 + }, + { + "name": "$skip", + "in": "query", + "description": "Optional number of items to skip.", + "schema": { + "type": "number" + }, + "x-position": 5 + }, + { + "name": "$orderby", + "in": "query", + "description": "Optional OData order definition.", + "schema": { + "type": "string" + }, + "x-position": 6 + }, + { + "name": "$filter", + "in": "query", + "description": "Optional OData filter.", + "schema": { + "type": "string" + }, + "x-position": 7 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 8 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 9 + } + ], + "responses": { + "200": { + "description": "Assets returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.read" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "getAssets" + }, + "post": { + "tags": [ + "Assets" + ], + "summary": "Upload a new asset.", + "description": "You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly.", + "operationId": "Assets_PostAsset", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "ParentId", + "in": "query", + "description": "The optional parent folder id.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "id", + "in": "query", + "description": "The optional custom asset id.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 3 + }, + { + "name": "duplicate", + "in": "query", + "description": "True to duplicate the asset, event if the file has been uploaded.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + }, + "fileUrl": { + "type": "string" + }, + "fileName": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Asset created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetDto" + } + } + } + }, + "400": { + "description": "Asset request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "413": { + "description": "Asset exceeds the maximum upload size.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.create" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "postAsset" + } + }, + "/api/apps/{app}/assets/query": { + "post": { + "tags": [ + "Assets" + ], + "summary": "Get assets.", + "description": "Get all assets for the app.", + "operationId": "Assets_GetAssetsPost", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 0, + "x-fern-sdk-variable": "appName" + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 2 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 3 + } + ], + "requestBody": { + "x-name": "query", + "description": "The required query object.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "200": { + "description": "Assets returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.read" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "getAssetsPost" + } + }, + "/api/apps/{app}/assets/{id}": { + "get": { + "tags": [ + "Assets" + ], + "summary": "Get an asset by id.", + "operationId": "Assets_GetAsset", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset to retrieve.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Asset found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetDto" + } + } + } + }, + "404": { + "description": "Asset or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.read" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "getAsset" + }, + "post": { + "tags": [ + "Assets" + ], + "summary": "Upsert an asset.", + "description": "You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly.", + "operationId": "Assets_PostUpsertAsset", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The optional custom asset id.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "parentId", + "in": "query", + "description": "The optional parent folder id.", + "schema": { + "type": "string" + }, + "x-position": 3 + }, + { + "name": "duplicate", + "in": "query", + "description": "True to duplicate the asset, event if the file has been uploaded.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + }, + "fileUrl": { + "type": "string" + }, + "fileName": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Asset created or updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetDto" + } + } + } + }, + "400": { + "description": "Asset request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "413": { + "description": "Asset exceeds the maximum upload size.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.create" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "postUpsertAsset" + }, + "put": { + "tags": [ + "Assets" + ], + "summary": "Update an asset.", + "operationId": "Assets_PutAsset", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The asset object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnnotateAssetDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Asset updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetDto" + } + } + } + }, + "400": { + "description": "Asset request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Asset or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.update" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "putAsset" + }, + "delete": { + "tags": [ + "Assets" + ], + "summary": "Delete an asset.", + "operationId": "Assets_DeleteAsset", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset to delete.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "checkReferrers", + "in": "query", + "description": "True to check referrers of this asset.", + "schema": { + "type": "boolean" + }, + "x-position": 3 + }, + { + "name": "permanent", + "in": "query", + "description": "True to delete the asset permanently.", + "schema": { + "type": "boolean" + }, + "x-position": 4 + } + ], + "responses": { + "204": { + "description": "Asset deleted." + }, + "404": { + "description": "Asset or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.delete" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "deleteAsset" + } + }, + "/api/apps/{app}/assets/bulk": { + "post": { + "tags": [ + "Assets" + ], + "summary": "Bulk update assets.", + "operationId": "Assets_BulkUpdateAssets", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The bulk update request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkUpdateAssetsDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Assets created, update or delete.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkResultDto" + } + } + } + } + }, + "400": { + "description": "Assets request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.read" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "bulkUpdateAssets" + } + }, + "/api/apps/{app}/assets/{id}/content": { + "put": { + "tags": [ + "Assets" + ], + "summary": "Replace asset content.", + "description": "Use multipart request to upload an asset.", + "operationId": "Assets_PutAssetContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + }, + "fileUrl": { + "type": "string" + }, + "fileName": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Asset updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetDto" + } + } + } + }, + "400": { + "description": "Asset request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "413": { + "description": "Asset exceeds the maximum upload size.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Asset or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.upload" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "putAssetContent" + } + }, + "/api/apps/{app}/assets/{id}/parent": { + "put": { + "tags": [ + "Assets" + ], + "summary": "Moves the asset.", + "operationId": "Assets_PutAssetParent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the asset.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The asset object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MoveAssetDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Asset moved.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetDto" + } + } + } + }, + "400": { + "description": "Asset request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Asset or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.assets.update" + ] + } + ], + "x-fern-sdk-group-name": "assets", + "x-fern-sdk-method-name": "putAssetParent" + } + }, + "/api/apps/{app}/assets/scripts": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get the app asset scripts.", + "operationId": "AppAssets_GetAssetScripts", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to get the asset scripts for.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Asset scripts returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetScriptsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.asset-scripts.read" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getAssetScripts" + }, + "put": { + "tags": [ + "Apps" + ], + "summary": "Update the asset scripts.", + "operationId": "AppAssets_PutAssetScripts", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to update.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The values to update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAssetScriptsDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Asset scripts updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssetScriptsDto" + } + } + } + }, + "400": { + "description": "Asset request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.asset-scripts.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putAssetScripts" + } + }, + "/api/apps/{app}/clients": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get app clients.", + "description": "Gets all configured clients for the app with the specified name.", + "operationId": "AppClients_GetClients", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Clients returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.clients.read" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getClients" + }, + "post": { + "tags": [ + "Apps" + ], + "summary": "Create a new app client.", + "description": "Create a new client for the app with the specified name.\nThe client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days.", + "operationId": "AppClients_PostClient", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "Client object that needs to be added to the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateClientDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Client created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientsDto" + } + } + } + }, + "400": { + "description": "Client request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.clients.create" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "postClient" + } + }, + "/api/apps/{app}/clients/{id}": { + "put": { + "tags": [ + "Apps" + ], + "summary": "Updates an app client.", + "description": "Only the display name can be changed, create a new client if necessary.", + "operationId": "AppClients_PutClient", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the client that must be updated.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "Client object that needs to be updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateClientDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Client updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientsDto" + } + } + } + }, + "400": { + "description": "Client request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Client or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.clients.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putClient" + }, + "delete": { + "tags": [ + "Apps" + ], + "summary": "Revoke an app client.", + "description": "The application that uses this client credentials cannot access the API after it has been revoked.", + "operationId": "AppClients_DeleteClient", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the client that must be deleted.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Client deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientsDto" + } + } + } + }, + "404": { + "description": "Client or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.clients.delete" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteClient" + } + }, + "/api/apps/{app}/contributors": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get app contributors.", + "operationId": "AppContributors_GetContributors", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Contributors returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contributors.read" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getContributors" + }, + "post": { + "tags": [ + "Apps" + ], + "summary": "Assign contributor to app.", + "operationId": "AppContributors_PostContributor", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "Contributor object that needs to be added to the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignContributorDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Contributor assigned to app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "400": { + "description": "Contributor request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contributors.assign" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "postContributor" + } + }, + "/api/apps/{app}/contributors/me": { + "delete": { + "tags": [ + "Apps" + ], + "summary": "Remove yourself.", + "operationId": "AppContributors_DeleteMyself", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Contributor removed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "404": { + "description": "Contributor or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteMyself" + } + }, + "/api/apps/{app}/contributors/{id}": { + "delete": { + "tags": [ + "Apps" + ], + "summary": "Remove contributor.", + "operationId": "AppContributors_DeleteContributor", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the contributor.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Contributor removed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContributorsDto" + } + } + } + }, + "404": { + "description": "Contributor or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.contributors.revoke" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteContributor" + } + }, + "/api/apps/{app}/image": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get the app image.", + "operationId": "AppImage_GetImage", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "App image found and content or (resized) image returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getImage" + }, + "post": { + "tags": [ + "Apps" + ], + "summary": "Upload the app image.", + "operationId": "Apps_UploadImage", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to update.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + }, + "fileUrl": { + "type": "string" + }, + "fileName": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "App image uploaded.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppDto" + } + } + } + }, + "400": { + "description": "App request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.image" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "uploadImage" + }, + "delete": { + "tags": [ + "Apps" + ], + "summary": "Remove the app image.", + "operationId": "Apps_DeleteImage", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to update.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "App image removed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.image" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteImage" + } + }, + "/api/apps/{app}/languages": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get app languages.", + "operationId": "AppLanguages_GetLanguages", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Languages returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppLanguagesDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.languages.read" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getLanguages" + }, + "post": { + "tags": [ + "Apps" + ], + "summary": "Add an app language.", + "operationId": "AppLanguages_PostLanguage", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The language to add to the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddLanguageDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Language created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppLanguagesDto" + } + } + } + }, + "400": { + "description": "Language request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.languages.create" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "postLanguage" + } + }, + "/api/apps/{app}/languages/{language}": { + "put": { + "tags": [ + "Apps" + ], + "summary": "Updates an app language.", + "operationId": "AppLanguages_PutLanguage", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "language", + "in": "path", + "required": true, + "description": "The language to update.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The language object.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateLanguageDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Language updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppLanguagesDto" + } + } + } + }, + "400": { + "description": "Language request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Language or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.languages.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putLanguage" + }, + "delete": { + "tags": [ + "Apps" + ], + "summary": "Deletes an app language.", + "operationId": "AppLanguages_DeleteLanguage", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "language", + "in": "path", + "required": true, + "description": "The language to delete from the app.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Language deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppLanguagesDto" + } + } + } + }, + "400": { + "description": "Language is master language.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Language or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.languages.delete" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteLanguage" + } + }, + "/api/apps/{app}/roles": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get app roles.", + "operationId": "AppRoles_GetRoles", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Roles returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RolesDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.roles.read" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getRoles" + }, + "post": { + "tags": [ + "Apps" + ], + "summary": "Add role to app.", + "operationId": "AppRoles_PostRole", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "Role object that needs to be added to the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddRoleDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "201": { + "description": "Role created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RolesDto" + } + } + } + }, + "400": { + "description": "Role request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.roles.create" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "postRole" + } + }, + "/api/apps/{app}/roles/permissions": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get app permissions.", + "operationId": "AppRoles_GetPermissions", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "App permissions returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.roles.read" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getPermissions" + } + }, + "/api/apps/{app}/roles/{roleName}": { + "put": { + "tags": [ + "Apps" + ], + "summary": "Update an app role.", + "operationId": "AppRoles_PutRole", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "roleName", + "in": "path", + "required": true, + "description": "The name of the role to be updated.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "Role to be updated for the app.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateRoleDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Role updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RolesDto" + } + } + } + }, + "400": { + "description": "Role request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Role or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.roles.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putRole" + }, + "delete": { + "tags": [ + "Apps" + ], + "summary": "Remove role from app.", + "operationId": "AppRoles_DeleteRole", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "roleName", + "in": "path", + "required": true, + "description": "The name of the role.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Role deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RolesDto" + } + } + } + }, + "400": { + "description": "Role is in use by contributor or client or a default role.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Role or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.roles.delete" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteRole" + } + }, + "/api/apps": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get your apps.", + "description": "You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow).\nYou will retrieve all apps, where you are assigned as a contributor.", + "operationId": "Apps_GetApps", + "responses": { + "200": { + "description": "Apps returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppDto" + } + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getApps" + }, + "post": { + "tags": [ + "Apps" + ], + "summary": "Create a new app.", + "description": "You can only create an app when you are authenticated as a user (OpenID implicit flow).\nYou will be assigned as owner of the new app automatically.", + "operationId": "Apps_PostApp", + "requestBody": { + "x-name": "request", + "description": "The app object that needs to be added to Squidex.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAppDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "201": { + "description": "App created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppDto" + } + } + } + }, + "400": { + "description": "App request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "409": { + "description": "App name is already in use.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "postApp" + } + }, + "/api/teams/{team}/apps": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get team apps.", + "description": "You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow).\nYou will retrieve all apps, where you are assigned as a contributor.", + "operationId": "Apps_GetTeamApps", + "parameters": [ + { + "name": "team", + "in": "path", + "required": true, + "description": "The ID of the team.", + "schema": { + "type": "string" + }, + "x-position": 1 + } + ], + "responses": { + "200": { + "description": "Apps returned.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppDto" + } + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getTeamApps" + } + }, + "/api/apps/{app}": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get an app by name.", + "operationId": "Apps_GetApp", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Apps returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getApp" + }, + "put": { + "tags": [ + "Apps" + ], + "summary": "Update the app.", + "operationId": "Apps_PutApp", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to update.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The values to update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAppDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "App updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppDto" + } + } + } + }, + "400": { + "description": "App request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putApp" + }, + "delete": { + "tags": [ + "Apps" + ], + "summary": "Delete the app.", + "operationId": "Apps_DeleteApp", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to delete.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "204": { + "description": "App deleted." + }, + "404": { + "description": "App not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.delete" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteApp" + } + }, + "/api/apps/{app}/team": { + "put": { + "tags": [ + "Apps" + ], + "summary": "Transfer the app.", + "operationId": "Apps_PutAppTeam", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to update.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The team information.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TransferToTeamDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "App transferred.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppDto" + } + } + } + }, + "400": { + "description": "App request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.transfer" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putAppTeam" + } + }, + "/api/apps/{app}/settings": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get the app settings.", + "operationId": "AppSettings_GetSettings", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to get the settings for.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "App settings returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppSettingsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getSettings" + }, + "put": { + "tags": [ + "Apps" + ], + "summary": "Update the settings.", + "operationId": "AppSettings_PutSettings", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app to update.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The values to update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAppSettingsDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "App updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppSettingsDto" + } + } + } + }, + "400": { + "description": "App request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.settings" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putSettings" + } + }, + "/api/apps/{app}/workflows": { + "get": { + "tags": [ + "Apps" + ], + "summary": "Get app workflow.", + "operationId": "AppWorkflows_GetWorkflows", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Workflows returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowsDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.workflows.read" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "getWorkflows" + }, + "post": { + "tags": [ + "Apps" + ], + "summary": "Create a workflow.", + "operationId": "AppWorkflows_PostWorkflow", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The new workflow.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddWorkflowDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Workflow created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowsDto" + } + } + } + }, + "400": { + "description": "Workflow request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Workflow or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.workflows.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "postWorkflow" + } + }, + "/api/apps/{app}/workflows/{id}": { + "put": { + "tags": [ + "Apps" + ], + "summary": "Update a workflow.", + "operationId": "AppWorkflows_PutWorkflow", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the workflow to update.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "requestBody": { + "x-name": "request", + "description": "The new workflow.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateWorkflowDto" + } + } + }, + "required": true, + "x-position": 3 + }, + "responses": { + "200": { + "description": "Workflow updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowsDto" + } + } + } + }, + "400": { + "description": "Workflow request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "Workflow or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.workflows.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "putWorkflow" + }, + "delete": { + "tags": [ + "Apps" + ], + "summary": "Delete a workflow.", + "operationId": "AppWorkflows_DeleteWorkflow", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the workflow to update.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Workflow deleted.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowsDto" + } + } + } + }, + "404": { + "description": "Workflow or app not found." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.workflows.update" + ] + } + ], + "x-fern-sdk-group-name": "apps", + "x-fern-sdk-method-name": "deleteWorkflow" + } + } + }, + "components": { + "schemas": { + "ErrorDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "message", + "statusCode" + ], + "properties": { + "message": { + "type": "string", + "description": "Error message.", + "minLength": 1 + }, + "errorCode": { + "type": "string", + "description": "The error code.", + "nullable": true + }, + "traceId": { + "type": "string", + "description": "The optional trace id.", + "nullable": true + }, + "type": { + "type": "string", + "description": "Link to the error details.", + "nullable": true + }, + "details": { + "type": "array", + "description": "Detailed error messages.", + "nullable": true, + "items": { + "type": "string" + } + }, + "statusCode": { + "type": "integer", + "description": "Status code of the http response.", + "format": "int32" + } + } + }, + "UserProperty": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "value": { + "type": "string", + "minLength": 1 + } + } + }, + "UpdateSettingDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "value" + ], + "properties": { + "value": { + "description": "The value for the setting." + } + } + }, + "UsersDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "total", + "items" + ], + "properties": { + "total": { + "type": "integer", + "description": "The total number of users.", + "format": "int64" + }, + "items": { + "type": "array", + "description": "The users.", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + } + ] + }, + "UserDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "email", + "displayName", + "isLocked", + "permissions" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the user." + }, + "email": { + "type": "string", + "description": "The email of the user. Unique value." + }, + "displayName": { + "type": "string", + "description": "The display name (usually first name and last name) of the user." + }, + "isLocked": { + "type": "boolean", + "description": "Determines if the user is locked." + }, + "permissions": { + "type": "array", + "description": "Additional permissions for the user.", + "items": { + "type": "string" + } + } + } + } + ] + }, + "Resource": { + "type": "object", + "x-abstract": true, + "additionalProperties": false, + "required": [ + "_links" + ], + "properties": { + "_links": { + "type": "object", + "description": "The links.", + "additionalProperties": { + "$ref": "#/components/schemas/ResourceLink" + } + } + } + }, + "ResourceLink": { + "type": "object", + "additionalProperties": false, + "required": [ + "href", + "method" + ], + "properties": { + "href": { + "type": "string", + "description": "The link url.", + "minLength": 1 + }, + "method": { + "type": "string", + "description": "The link method.", + "minLength": 1 + }, + "metadata": { + "type": "string", + "description": "Additional data about the link.", + "nullable": true + } + } + }, + "CreateUserDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "email", + "displayName", + "password", + "permissions" + ], + "properties": { + "email": { + "type": "string", + "description": "The email of the user. Unique value.", + "minLength": 1 + }, + "displayName": { + "type": "string", + "description": "The display name (usually first name and last name) of the user.", + "minLength": 1 + }, + "password": { + "type": "string", + "description": "The password of the user.", + "minLength": 1 + }, + "permissions": { + "type": "array", + "description": "Additional permissions for the user.", + "items": { + "type": "string" + } + } + } + }, + "UpdateUserDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "email", + "displayName", + "permissions" + ], + "properties": { + "email": { + "type": "string", + "description": "The email of the user. Unique value.", + "minLength": 1 + }, + "displayName": { + "type": "string", + "description": "The display name (usually first name and last name) of the user.", + "minLength": 1 + }, + "password": { + "type": "string", + "description": "The password of the user.", + "nullable": true + }, + "permissions": { + "type": "array", + "description": "Additional permissions for the user.", + "items": { + "type": "string" + } + } + } + }, + "ResourcesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false + } + ] + }, + "UpdateProfileDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "answers": { + "type": "object", + "description": "The answers from a questionaire.", + "nullable": true, + "additionalProperties": { + "type": "string", + "nullable": true + } + } + } + }, + "TranslationDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "status", + "result" + ], + "properties": { + "status": { + "description": "The result of the translation.", + "$ref": "#/components/schemas/TranslationStatus" + }, + "result": { + "description": "The result of the translation.", + "deprecated": true, + "x-deprecatedMessage": "Use Status property now.", + "$ref": "#/components/schemas/TranslationStatus" + }, + "text": { + "type": "string", + "description": "The translated text.", + "nullable": true + } + } + }, + "TranslationStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "Translated", + "LanguageNotSupported", + "NotTranslated", + "NotConfigured", + "Unauthorized", + "Failed" + ], + "enum": [ + "Translated", + "LanguageNotSupported", + "NotTranslated", + "NotConfigured", + "Unauthorized", + "Failed" + ] + }, + "TranslateDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "text", + "targetLanguage" + ], + "properties": { + "text": { + "type": "string", + "description": "The text to translate.", + "minLength": 1 + }, + "targetLanguage": { + "type": "string", + "description": "The target language." + }, + "sourceLanguage": { + "type": "string", + "description": "The optional source language." + } + } + }, + "TemplatesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The event consumers.", + "items": { + "$ref": "#/components/schemas/TemplateDto" + } + } + } + } + ] + }, + "TemplateDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "title", + "description", + "isStarter" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the template." + }, + "title": { + "type": "string", + "description": "The title of the template." + }, + "description": { + "type": "string", + "description": "The description of the template." + }, + "isStarter": { + "type": "boolean", + "description": "True, if the template is a starter." + } + } + } + ] + }, + "TemplateDetailsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "details" + ], + "properties": { + "details": { + "type": "string", + "description": "The details of the template." + } + } + } + ] + }, + "ContributorsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items", + "maxContributors" + ], + "properties": { + "items": { + "type": "array", + "description": "The contributors.", + "items": { + "$ref": "#/components/schemas/ContributorDto" + } + }, + "maxContributors": { + "type": "integer", + "description": "The maximum number of allowed contributors.", + "format": "int64" + }, + "_meta": { + "description": "The metadata to provide information about this request.", + "nullable": true, + "$ref": "#/components/schemas/ContributorsMetadata" + } + } + } + ] + }, + "ContributorDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "contributorId", + "contributorName", + "contributorEmail" + ], + "properties": { + "contributorId": { + "type": "string", + "description": "The ID of the user that contributes to the app." + }, + "contributorName": { + "type": "string", + "description": "The display name." + }, + "contributorEmail": { + "type": "string", + "description": "The email address." + }, + "role": { + "type": "string", + "description": "The role of the contributor.", + "nullable": true + } + } + } + ] + }, + "ContributorsMetadata": { + "type": "object", + "additionalProperties": false, + "required": [ + "isInvited" + ], + "properties": { + "isInvited": { + "type": "string", + "description": "Indicates whether the user has been invited." + } + } + }, + "AssignContributorDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "contributorId" + ], + "properties": { + "contributorId": { + "type": "string", + "description": "The id or email of the user to add to the app.", + "minLength": 1 + }, + "role": { + "type": "string", + "description": "The role of the contributor.", + "nullable": true + }, + "invite": { + "type": "boolean", + "description": "Set to true to invite the user if he does not exist." + } + } + }, + "TeamDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "name", + "version", + "created", + "lastModified" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the team." + }, + "name": { + "type": "string", + "description": "The name of the team." + }, + "version": { + "type": "integer", + "description": "The version of the team.", + "format": "int64" + }, + "created": { + "type": "string", + "description": "The timestamp when the team has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The timestamp when the team has been modified last.", + "format": "date-time" + }, + "roleName": { + "type": "string", + "description": "The role name of the user.", + "nullable": true + } + } + } + ] + }, + "CreateTeamDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the team.", + "minLength": 1 + } + } + }, + "UpdateTeamDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the team.", + "minLength": 1 + } + } + }, + "AuthSchemeResponseDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "scheme": { + "description": "The auth scheme if configured.", + "nullable": true, + "$ref": "#/components/schemas/AuthSchemeDto" + } + } + } + ] + }, + "AuthSchemeDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "domain", + "displayName", + "clientId", + "clientSecret", + "authority" + ], + "properties": { + "domain": { + "type": "string", + "description": "The domain name of your user accounts.", + "minLength": 1 + }, + "displayName": { + "type": "string", + "description": "The display name for buttons.", + "minLength": 1 + }, + "clientId": { + "type": "string", + "description": "The client ID.", + "minLength": 1 + }, + "clientSecret": { + "type": "string", + "description": "The client secret.", + "minLength": 1 + }, + "authority": { + "type": "string", + "description": "The authority URL.", + "minLength": 1 + }, + "signoutRedirectUrl": { + "type": "string", + "description": "The URL to redirect after a signout.", + "nullable": true + } + } + }, + "AuthSchemeValueDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "scheme": { + "description": "The auth scheme if configured.", + "nullable": true, + "$ref": "#/components/schemas/AuthSchemeDto" + } + } + }, + "LogDownloadDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "downloadUrl": { + "type": "string", + "description": "The url to download the log.", + "nullable": true + } + } + }, + "CallsUsageDtoDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "totalCalls", + "totalBytes", + "monthCalls", + "monthBytes", + "blockingApiCalls", + "allowedBytes", + "allowedCalls", + "averageElapsedMs", + "details" + ], + "properties": { + "totalCalls": { + "type": "integer", + "description": "The total number of API calls.", + "format": "int64" + }, + "totalBytes": { + "type": "integer", + "description": "The total number of bytes transferred.", + "format": "int64" + }, + "monthCalls": { + "type": "integer", + "description": "The total number of API calls this month.", + "format": "int64" + }, + "monthBytes": { + "type": "integer", + "description": "The total number of bytes transferred this month.", + "format": "int64" + }, + "blockingApiCalls": { + "type": "integer", + "description": "The amount of calls that will block the app.", + "format": "int64" + }, + "allowedBytes": { + "type": "integer", + "description": "The included API traffic.", + "format": "int64" + }, + "allowedCalls": { + "type": "integer", + "description": "The included API calls.", + "format": "int64" + }, + "averageElapsedMs": { + "type": "number", + "description": "The average duration in milliseconds.", + "format": "double" + }, + "details": { + "type": "object", + "description": "The statistics by date and group.", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CallsUsagePerDateDto" + } + } + } + } + }, + "CallsUsagePerDateDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "date", + "totalCalls", + "totalBytes", + "averageElapsedMs" + ], + "properties": { + "date": { + "type": "string", + "description": "The date when the usage was tracked.", + "format": "date" + }, + "totalCalls": { + "type": "integer", + "description": "The total number of API calls.", + "format": "int64" + }, + "totalBytes": { + "type": "integer", + "description": "The total number of bytes transferred.", + "format": "int64" + }, + "averageElapsedMs": { + "type": "number", + "description": "The average duration in milliseconds.", + "format": "double" + } + } + }, + "CurrentStorageDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "size", + "maxAllowed" + ], + "properties": { + "size": { + "type": "integer", + "description": "The size in bytes.", + "format": "int64" + }, + "maxAllowed": { + "type": "integer", + "description": "The maximum allowed asset size.", + "format": "int64" + } + } + }, + "StorageUsagePerDateDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "date", + "totalCount", + "totalSize" + ], + "properties": { + "date": { + "type": "string", + "description": "The date when the usage was tracked.", + "format": "date" + }, + "totalCount": { + "type": "integer", + "description": "The number of assets.", + "format": "int64" + }, + "totalSize": { + "type": "integer", + "description": "The size in bytes.", + "format": "int64" + } + } + }, + "SearchResultDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the search result." + }, + "type": { + "description": "The type of the search result.", + "$ref": "#/components/schemas/SearchResultType" + }, + "label": { + "type": "string", + "description": "An optional label.", + "nullable": true + } + } + } + ] + }, + "SearchResultType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Asset", + "Content", + "Dashboard", + "Setting", + "Rule", + "Schema" + ], + "enum": [ + "Asset", + "Content", + "Dashboard", + "Setting", + "Rule", + "Schema" + ] + }, + "SchemaDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "createdBy", + "lastModifiedBy", + "name", + "properties", + "scripts", + "previewUrls", + "fieldsInLists", + "fieldsInReferences", + "fields", + "id", + "type", + "isSingleton", + "isPublished", + "created", + "lastModified", + "version", + "fieldRules" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the schema." + }, + "createdBy": { + "type": "string", + "description": "The user that has created the schema." + }, + "lastModifiedBy": { + "type": "string", + "description": "The user that has updated the schema." + }, + "name": { + "type": "string", + "description": "The name of the schema. Unique within the app.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + }, + "type": { + "description": "The type of the schema.", + "$ref": "#/components/schemas/SchemaType" + }, + "category": { + "type": "string", + "description": "The name of the category.", + "nullable": true + }, + "properties": { + "description": "The schema properties.", + "$ref": "#/components/schemas/SchemaPropertiesDto" + }, + "isSingleton": { + "type": "boolean", + "description": "Indicates if the schema is a singleton.", + "deprecated": true, + "x-deprecatedMessage": "Use 'type' field now." + }, + "isPublished": { + "type": "boolean", + "description": "Indicates if the schema is published." + }, + "created": { + "type": "string", + "description": "The date and time when the schema has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The date and time when the schema has been modified last.", + "format": "date-time" + }, + "version": { + "type": "integer", + "description": "The version of the schema.", + "format": "int64" + }, + "scripts": { + "description": "The scripts.", + "$ref": "#/components/schemas/SchemaScriptsDto" + }, + "previewUrls": { + "type": "object", + "description": "The preview Urls.", + "additionalProperties": { + "type": "string" + } + }, + "fieldsInLists": { + "type": "array", + "description": "The name of fields that are used in content lists.", + "items": { + "type": "string" + } + }, + "fieldsInReferences": { + "type": "array", + "description": "The name of fields that are used in content references.", + "items": { + "type": "string" + } + }, + "fieldRules": { + "type": "array", + "description": "The field rules.", + "items": { + "$ref": "#/components/schemas/FieldRuleDto" + } + }, + "fields": { + "type": "array", + "description": "The list of fields.", + "items": { + "$ref": "#/components/schemas/FieldDto" + } + } + } + } + ] + }, + "SchemaType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Default", + "Singleton", + "Component" + ], + "enum": [ + "Default", + "Singleton", + "Component" + ] + }, + "SchemaPropertiesDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "validateOnPublish" + ], + "properties": { + "label": { + "type": "string", + "description": "Optional label for the editor.", + "maxLength": 100, + "minLength": 0, + "nullable": true + }, + "hints": { + "type": "string", + "description": "Hints to describe the schema.", + "maxLength": 1000, + "minLength": 0, + "nullable": true + }, + "contentsSidebarUrl": { + "type": "string", + "description": "The url to a the sidebar plugin for content lists.", + "nullable": true + }, + "contentSidebarUrl": { + "type": "string", + "description": "The url to a the sidebar plugin for content items.", + "nullable": true + }, + "contentEditorUrl": { + "type": "string", + "description": "The url to the editor plugin.", + "nullable": true + }, + "contentsEditorUrl": { + "type": "string", + "description": "The url to the editor plugin.", + "nullable": true + }, + "contentsListUrl": { + "type": "string", + "description": "The url to the content list plugin.", + "nullable": true + }, + "validateOnPublish": { + "type": "boolean", + "description": "True to validate the content items on publish." + }, + "tags": { + "type": "array", + "description": "Tags for automation processes.", + "nullable": true, + "items": { + "type": "string" + } + } + } + }, + "SchemaScriptsDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "query": { + "type": "string", + "description": "The script that is executed for each content when querying contents.", + "nullable": true + }, + "queryPre": { + "type": "string", + "description": "The script that is executed for all contents when querying contents.", + "nullable": true + }, + "create": { + "type": "string", + "description": "The script that is executed when creating a content.", + "nullable": true + }, + "update": { + "type": "string", + "description": "The script that is executed when updating a content.", + "nullable": true + }, + "delete": { + "type": "string", + "description": "The script that is executed when deleting a content.", + "nullable": true + }, + "change": { + "type": "string", + "description": "The script that is executed when change a content status.", + "nullable": true + } + } + }, + "FieldRuleDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "action", + "field" + ], + "properties": { + "action": { + "description": "The action to perform when the condition is met.", + "$ref": "#/components/schemas/FieldRuleAction" + }, + "field": { + "type": "string", + "description": "The field to update.", + "minLength": 1 + }, + "condition": { + "type": "string", + "description": "The condition.", + "nullable": true + } + } + }, + "FieldRuleAction": { + "type": "string", + "description": "", + "x-enumNames": [ + "Disable", + "Hide", + "Require" + ], + "enum": [ + "Disable", + "Hide", + "Require" + ] + }, + "FieldDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "partitioning", + "properties", + "fieldId", + "isHidden", + "isLocked", + "isDisabled" + ], + "properties": { + "fieldId": { + "type": "integer", + "description": "The ID of the field.", + "format": "int64" + }, + "name": { + "type": "string", + "description": "The name of the field. Must be unique within the schema.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + }, + "isHidden": { + "type": "boolean", + "description": "Defines if the field is hidden." + }, + "isLocked": { + "type": "boolean", + "description": "Defines if the field is locked." + }, + "isDisabled": { + "type": "boolean", + "description": "Defines if the field is disabled." + }, + "partitioning": { + "type": "string", + "description": "Defines the partitioning of the field.", + "minLength": 1 + }, + "properties": { + "description": "The field properties.", + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + "nested": { + "type": "array", + "description": "The nested fields.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/NestedFieldDto" + } + } + } + } + ] + }, + "FieldPropertiesDto": { + "type": "object", + "discriminator": { + "propertyName": "fieldType", + "mapping": { + "Array": "#/components/schemas/ArrayFieldPropertiesDto", + "Assets": "#/components/schemas/AssetsFieldPropertiesDto", + "Boolean": "#/components/schemas/BooleanFieldPropertiesDto", + "Component": "#/components/schemas/ComponentFieldPropertiesDto", + "Components": "#/components/schemas/ComponentsFieldPropertiesDto", + "DateTime": "#/components/schemas/DateTimeFieldPropertiesDto", + "Geolocation": "#/components/schemas/GeolocationFieldPropertiesDto", + "Json": "#/components/schemas/JsonFieldPropertiesDto", + "Number": "#/components/schemas/NumberFieldPropertiesDto", + "References": "#/components/schemas/ReferencesFieldPropertiesDto", + "RichText": "#/components/schemas/RichTextFieldPropertiesDto", + "String": "#/components/schemas/StringFieldPropertiesDto", + "Tags": "#/components/schemas/TagsFieldPropertiesDto", + "UI": "#/components/schemas/UIFieldPropertiesDto" + } + }, + "x-abstract": true, + "additionalProperties": false, + "required": [ + "fieldType" + ], + "properties": { + "label": { + "type": "string", + "description": "Optional label for the editor.", + "maxLength": 100, + "minLength": 0, + "nullable": true + }, + "hints": { + "type": "string", + "description": "Hints to describe the field.", + "maxLength": 1000, + "minLength": 0, + "nullable": true + }, + "placeholder": { + "type": "string", + "description": "Placeholder to show when no value has been entered.", + "maxLength": 100, + "minLength": 0, + "nullable": true + }, + "isRequired": { + "type": "boolean", + "description": "Indicates if the field is required." + }, + "isRequiredOnPublish": { + "type": "boolean", + "description": "Indicates if the field is required when publishing." + }, + "isHalfWidth": { + "type": "boolean", + "description": "Indicates if the field should be rendered with half width only." + }, + "editorUrl": { + "type": "string", + "description": "Optional url to the editor.", + "nullable": true + }, + "tags": { + "type": "array", + "description": "Tags for automation processes.", + "nullable": true, + "items": { + "type": "string" + } + }, + "fieldType": { + "type": "string" + } + } + }, + "ArrayFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "calculatedDefaultValue": { + "description": "The calculated default value for the field value.", + "$ref": "#/components/schemas/ArrayCalculatedDefaultValue" + }, + "uniqueFields": { + "type": "array", + "description": "The fields that must be unique.", + "nullable": true, + "items": { + "type": "string" + } + } + } + } + ] + }, + "ArrayCalculatedDefaultValue": { + "type": "string", + "description": "", + "x-enumNames": [ + "EmptyArray", + "Null" + ], + "enum": [ + "EmptyArray", + "Null" + ] + }, + "AssetsFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "previewMode": { + "description": "The preview mode for the asset.", + "$ref": "#/components/schemas/AssetPreviewMode" + }, + "defaultValues": { + "description": "The language specific default value as a list of asset ids.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" + }, + "defaultValue": { + "type": "array", + "description": "The default value as a list of asset ids.", + "nullable": true, + "items": { + "type": "string" + } + }, + "folderId": { + "type": "string", + "description": "The initial id to the folder.", + "nullable": true + }, + "previewFormat": { + "type": "string", + "description": "The preview format.", + "nullable": true + }, + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "minSize": { + "type": "integer", + "description": "The minimum file size in bytes.", + "format": "int32", + "nullable": true + }, + "maxSize": { + "type": "integer", + "description": "The maximum file size in bytes.", + "format": "int32", + "nullable": true + }, + "minWidth": { + "type": "integer", + "description": "The minimum image width in pixels.", + "format": "int32", + "nullable": true + }, + "maxWidth": { + "type": "integer", + "description": "The maximum image width in pixels.", + "format": "int32", + "nullable": true + }, + "minHeight": { + "type": "integer", + "description": "The minimum image height in pixels.", + "format": "int32", + "nullable": true + }, + "maxHeight": { + "type": "integer", + "description": "The maximum image height in pixels.", + "format": "int32", + "nullable": true + }, + "aspectWidth": { + "type": "integer", + "description": "The image aspect width in pixels.", + "format": "int32", + "nullable": true + }, + "aspectHeight": { + "type": "integer", + "description": "The image aspect height in pixels.", + "format": "int32", + "nullable": true + }, + "expectedType": { + "description": "The expected type.", + "nullable": true, + "$ref": "#/components/schemas/AssetType" + }, + "resolveFirst": { + "type": "boolean", + "description": "True to resolve first asset in the content list." + }, + "mustBeImage": { + "type": "boolean", + "description": "True to resolve first image in the content list.", + "deprecated": true, + "x-deprecatedMessage": "Use 'expectedType' field now" + }, + "resolveImage": { + "type": "boolean", + "description": "True to resolve first image in the content list.", + "deprecated": true, + "x-deprecatedMessage": "Use 'resolveFirst' field now" + }, + "allowedExtensions": { + "type": "array", + "description": "The allowed file extensions.", + "nullable": true, + "items": { + "type": "string" + } + }, + "allowDuplicates": { + "type": "boolean", + "description": "True, if duplicate values are allowed." + } + } + } + ] + }, + "AssetPreviewMode": { + "type": "string", + "description": "", + "x-enumNames": [ + "ImageAndFileName", + "Image", + "FileName" + ], + "enum": [ + "ImageAndFileName", + "Image", + "FileName" + ] + }, + "LocalizedValueOfReadonlyListOfString": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "AssetType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Unknown", + "Image", + "Audio", + "Video" + ], + "enum": [ + "Unknown", + "Image", + "Audio", + "Video" + ] + }, + "BooleanFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfNullableBoolean" + }, + "defaultValue": { + "type": "boolean", + "description": "The default value for the field value.", + "nullable": true + }, + "inlineEditable": { + "type": "boolean", + "description": "Indicates that the inline editor is enabled for this field." + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/BooleanFieldEditor" + } + } + } + ] + }, + "LocalizedValueOfNullableBoolean": { + "type": "object", + "additionalProperties": { + "type": "boolean", + "nullable": true + } + }, + "BooleanFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Checkbox", + "Toggle" + ], + "enum": [ + "Checkbox", + "Toggle" + ] + }, + "ComponentFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "schemaIds": { + "type": "array", + "description": "The ID of the embedded schemas.", + "nullable": true, + "items": { + "type": "string" + } + } + } + } + ] + }, + "ComponentsFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "calculatedDefaultValue": { + "description": "The calculated default value for the field value.", + "$ref": "#/components/schemas/ArrayCalculatedDefaultValue" + }, + "schemaIds": { + "type": "array", + "description": "The ID of the embedded schemas.", + "nullable": true, + "items": { + "type": "string" + } + }, + "uniqueFields": { + "type": "array", + "description": "The fields that must be unique.", + "nullable": true, + "items": { + "type": "string" + } + } + } + } + ] + }, + "DateTimeFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfNullableInstant" + }, + "defaultValue": { + "type": "string", + "description": "The default value for the field value.", + "format": "date-time", + "nullable": true + }, + "maxValue": { + "type": "string", + "description": "The maximum allowed value for the field value.", + "format": "date-time", + "nullable": true + }, + "minValue": { + "type": "string", + "description": "The minimum allowed value for the field value.", + "format": "date-time", + "nullable": true + }, + "format": { + "type": "string", + "description": "The format pattern when displayed in the UI.", + "nullable": true + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/DateTimeFieldEditor" + }, + "calculatedDefaultValue": { + "description": "The calculated default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/DateTimeCalculatedDefaultValue" + } + } + } + ] + }, + "LocalizedValueOfNullableInstant": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "date-time", + "nullable": true + } + }, + "DateTimeFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Date", + "DateTime" + ], + "enum": [ + "Date", + "DateTime" + ] + }, + "DateTimeCalculatedDefaultValue": { + "type": "string", + "description": "", + "x-enumNames": [ + "Now", + "Today" + ], + "enum": [ + "Now", + "Today" + ] + }, + "GeolocationFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/GeolocationFieldEditor" + } + } + } + ] + }, + "GeolocationFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Map" + ], + "enum": [ + "Map" + ] + }, + "JsonFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "graphQLSchema": { + "type": "string", + "description": "The GraphQL schema.", + "nullable": true + } + } + } + ] + }, + "NumberFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfNullableDouble" + }, + "defaultValue": { + "type": "number", + "description": "The default value for the field value.", + "format": "double", + "nullable": true + }, + "maxValue": { + "type": "number", + "description": "The maximum allowed value for the field value.", + "format": "double", + "nullable": true + }, + "minValue": { + "type": "number", + "description": "The minimum allowed value for the field value.", + "format": "double", + "nullable": true + }, + "allowedValues": { + "type": "array", + "description": "The allowed values for the field value.", + "nullable": true, + "items": { + "type": "number", + "format": "double" + } + }, + "isUnique": { + "type": "boolean", + "description": "Indicates if the field value must be unique. Ignored for nested fields and localized fields." + }, + "inlineEditable": { + "type": "boolean", + "description": "Indicates that the inline editor is enabled for this field." + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/NumberFieldEditor" + } + } + } + ] + }, + "LocalizedValueOfNullableDouble": { + "type": "object", + "additionalProperties": { + "type": "number", + "format": "double", + "nullable": true + } + }, + "NumberFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Input", + "Radio", + "Dropdown", + "Stars" + ], + "enum": [ + "Input", + "Radio", + "Dropdown", + "Stars" + ] + }, + "ReferencesFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value as a list of content ids.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" + }, + "defaultValue": { + "type": "array", + "description": "The default value as a list of content ids.", + "nullable": true, + "items": { + "type": "string" + } + }, + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "allowDuplicates": { + "type": "boolean", + "description": "True, if duplicate values are allowed." + }, + "resolveReference": { + "type": "boolean", + "description": "True to resolve references in the content list." + }, + "mustBePublished": { + "type": "boolean", + "description": "True when all references must be published." + }, + "query": { + "type": "string", + "description": "The initial query that is applied in the UI.", + "nullable": true + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/ReferencesFieldEditor" + }, + "schemaIds": { + "type": "array", + "description": "The ID of the referenced schemas.", + "nullable": true, + "items": { + "type": "string" + } + } + } + } + ] + }, + "ReferencesFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "List", + "Dropdown", + "Tags", + "Checkboxes", + "Input", + "Radio" + ], + "enum": [ + "List", + "Dropdown", + "Tags", + "Checkboxes", + "Input", + "Radio" + ] + }, + "RichTextFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "folderId": { + "type": "string", + "description": "The initial id to the folder when the control supports file uploads.", + "nullable": true + }, + "minLength": { + "type": "integer", + "description": "The minimum allowed length for the field value.", + "format": "int32", + "nullable": true + }, + "maxLength": { + "type": "integer", + "description": "The maximum allowed length for the field value.", + "format": "int32", + "nullable": true + }, + "minCharacters": { + "type": "integer", + "description": "The minimum allowed of normal characters for the field value.", + "format": "int32", + "nullable": true + }, + "maxCharacters": { + "type": "integer", + "description": "The maximum allowed of normal characters for the field value.", + "format": "int32", + "nullable": true + }, + "minWords": { + "type": "integer", + "description": "The minimum allowed number of words for the field value.", + "format": "int32", + "nullable": true + }, + "maxWords": { + "type": "integer", + "description": "The maximum allowed number of words for the field value.", + "format": "int32", + "nullable": true + }, + "classNames": { + "type": "array", + "description": "The class names for the editor.", + "nullable": true, + "items": { + "type": "string" + } + }, + "schemaIds": { + "type": "array", + "description": "The allowed schema ids that can be embedded.", + "nullable": true, + "items": { + "type": "string" + } + } + } + } + ] + }, + "StringFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfString" + }, + "defaultValue": { + "type": "string", + "description": "The default value for the field value.", + "nullable": true + }, + "pattern": { + "type": "string", + "description": "The pattern to enforce a specific format for the field value.", + "nullable": true + }, + "patternMessage": { + "type": "string", + "description": "The validation message for the pattern.", + "nullable": true + }, + "folderId": { + "type": "string", + "description": "The initial id to the folder when the control supports file uploads.", + "nullable": true + }, + "minLength": { + "type": "integer", + "description": "The minimum allowed length for the field value.", + "format": "int32", + "nullable": true + }, + "maxLength": { + "type": "integer", + "description": "The maximum allowed length for the field value.", + "format": "int32", + "nullable": true + }, + "minCharacters": { + "type": "integer", + "description": "The minimum allowed of normal characters for the field value.", + "format": "int32", + "nullable": true + }, + "maxCharacters": { + "type": "integer", + "description": "The maximum allowed of normal characters for the field value.", + "format": "int32", + "nullable": true + }, + "minWords": { + "type": "integer", + "description": "The minimum allowed number of words for the field value.", + "format": "int32", + "nullable": true + }, + "maxWords": { + "type": "integer", + "description": "The maximum allowed number of words for the field value.", + "format": "int32", + "nullable": true + }, + "classNames": { + "type": "array", + "description": "The class names for the editor.", + "nullable": true, + "items": { + "type": "string" + } + }, + "allowedValues": { + "type": "array", + "description": "The allowed values for the field value.", + "nullable": true, + "items": { + "type": "string" + } + }, + "schemaIds": { + "type": "array", + "description": "The allowed schema ids that can be embedded.", + "nullable": true, + "items": { + "type": "string" + } + }, + "isUnique": { + "type": "boolean", + "description": "Indicates if the field value must be unique. Ignored for nested fields and localized fields." + }, + "isEmbeddable": { + "type": "boolean", + "description": "Indicates that other content items or references are embedded." + }, + "inlineEditable": { + "type": "boolean", + "description": "Indicates that the inline editor is enabled for this field." + }, + "createEnum": { + "type": "boolean", + "description": "Indicates whether GraphQL Enum should be created." + }, + "contentType": { + "description": "How the string content should be interpreted.", + "$ref": "#/components/schemas/StringContentType" + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/StringFieldEditor" + } + } + } + ] + }, + "LocalizedValueOfString": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "StringContentType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Unspecified", + "Html", + "Markdown" + ], + "enum": [ + "Unspecified", + "Html", + "Markdown" + ] + }, + "StringFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Input", + "Color", + "Markdown", + "Dropdown", + "Html", + "Radio", + "RichText", + "Slug", + "StockPhoto", + "TextArea" + ], + "enum": [ + "Input", + "Color", + "Markdown", + "Dropdown", + "Html", + "Radio", + "RichText", + "Slug", + "StockPhoto", + "TextArea" + ] + }, + "TagsFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" + }, + "defaultValue": { + "type": "array", + "description": "The default value.", + "nullable": true, + "items": { + "type": "string" + } + }, + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "allowedValues": { + "type": "array", + "description": "The allowed values for the field value.", + "nullable": true, + "items": { + "type": "string" + } + }, + "createEnum": { + "type": "boolean", + "description": "Indicates whether GraphQL Enum should be created." + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/TagsFieldEditor" + } + } + } + ] + }, + "TagsFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Tags", + "Checkboxes", + "Dropdown" + ], + "enum": [ + "Tags", + "Checkboxes", + "Dropdown" + ] + }, + "UIFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/UIFieldEditor" + } + } + } + ] + }, + "UIFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Separator" + ], + "enum": [ + "Separator" + ] + }, + "NestedFieldDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "properties", + "fieldId", + "isHidden", + "isLocked", + "isDisabled" + ], + "properties": { + "fieldId": { + "type": "integer", + "description": "The ID of the field.", + "format": "int64" + }, + "name": { + "type": "string", + "description": "The name of the field. Must be unique within the schema.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + }, + "isHidden": { + "type": "boolean", + "description": "Defines if the field is hidden." + }, + "isLocked": { + "type": "boolean", + "description": "Defines if the field is locked." + }, + "isDisabled": { + "type": "boolean", + "description": "Defines if the field is disabled." + }, + "properties": { + "description": "The field properties.", + "$ref": "#/components/schemas/FieldPropertiesDto" + } + } + } + ] + }, + "AddFieldDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "properties" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the field. Must be unique within the schema.", + "minLength": 1, + "pattern": "^[a-zA-Z0-9]+(\\-[a-zA-Z0-9]+)*$" + }, + "partitioning": { + "type": "string", + "description": "Determines the optional partitioning of the field.", + "nullable": true + }, + "properties": { + "description": "The field properties.", + "$ref": "#/components/schemas/FieldPropertiesDto" + } + } + }, + "ConfigureUIFieldsDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "fieldsInLists": { + "type": "array", + "description": "The name of fields that are used in content lists.", + "nullable": true, + "items": { + "type": "string" + } + }, + "fieldsInReferences": { + "type": "array", + "description": "The name of fields that are used in content references.", + "nullable": true, + "items": { + "type": "string" + } + } + } + }, + "ReorderFieldsDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "fieldIds" + ], + "properties": { + "fieldIds": { + "type": "array", + "description": "The field ids in the target order.", + "items": { + "type": "integer", + "format": "int64" + } + } + } + }, + "UpdateFieldDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "properties" + ], + "properties": { + "properties": { + "description": "The field properties.", + "$ref": "#/components/schemas/FieldPropertiesDto" + } + } + }, + "SchemasDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The schemas.", + "items": { + "$ref": "#/components/schemas/SchemaDto" + } + } + } + } + ] + }, + "CreateSchemaDto": { + "allOf": [ + { + "$ref": "#/components/schemas/UpsertSchemaDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the schema.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + }, + "type": { + "description": "The type of the schema.", + "$ref": "#/components/schemas/SchemaType" + }, + "isSingleton": { + "type": "boolean", + "description": "Set to true to allow a single content item only.", + "deprecated": true, + "x-deprecatedMessage": "Use 'type' field now." + } + } + } + ] + }, + "UpsertSchemaDto": { + "type": "object", + "x-abstract": true, + "additionalProperties": false, + "properties": { + "properties": { + "description": "The optional properties.", + "nullable": true, + "$ref": "#/components/schemas/SchemaPropertiesDto" + }, + "scripts": { + "description": "The optional scripts.", + "nullable": true, + "$ref": "#/components/schemas/SchemaScriptsDto" + }, + "fieldsInReferences": { + "type": "array", + "description": "The names of the fields that should be used in references.", + "nullable": true, + "items": { + "type": "string" + } + }, + "fieldsInLists": { + "type": "array", + "description": "The names of the fields that should be shown in lists, including meta fields.", + "nullable": true, + "items": { + "type": "string" + } + }, + "fields": { + "type": "array", + "description": "Optional fields.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/UpsertSchemaFieldDto" + } + }, + "previewUrls": { + "type": "object", + "description": "The optional preview urls.", + "nullable": true, + "additionalProperties": { + "type": "string" + } + }, + "fieldRules": { + "type": "array", + "description": "The optional field Rules.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FieldRuleDto" + } + }, + "category": { + "type": "string", + "description": "The category.", + "nullable": true + }, + "isPublished": { + "type": "boolean", + "description": "Set it to true to autopublish the schema." + } + } + }, + "UpsertSchemaFieldDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "properties" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the field. Must be unique within the schema.", + "minLength": 1, + "pattern": "^[a-zA-Z0-9]+(\\-[a-zA-Z0-9]+)*$" + }, + "isHidden": { + "type": "boolean", + "description": "Defines if the field is hidden." + }, + "isLocked": { + "type": "boolean", + "description": "Defines if the field is locked." + }, + "isDisabled": { + "type": "boolean", + "description": "Defines if the field is disabled." + }, + "partitioning": { + "type": "string", + "description": "Determines the optional partitioning of the field.", + "nullable": true + }, + "properties": { + "description": "The field properties.", + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + "nested": { + "type": "array", + "description": "The nested fields.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/UpsertSchemaNestedFieldDto" + } + } + } + }, + "UpsertSchemaNestedFieldDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "properties" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the field. Must be unique within the schema.", + "minLength": 1, + "pattern": "^[a-zA-Z0-9]+(\\-[a-zA-Z0-9]+)*$" + }, + "isHidden": { + "type": "boolean", + "description": "Defines if the field is hidden." + }, + "isLocked": { + "type": "boolean", + "description": "Defines if the field is locked." + }, + "isDisabled": { + "type": "boolean", + "description": "Defines if the field is disabled." + }, + "properties": { + "description": "The field properties.", + "$ref": "#/components/schemas/FieldPropertiesDto" + } + } + }, + "UpdateSchemaDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "label": { + "type": "string", + "description": "Optional label for the editor.", + "maxLength": 100, + "minLength": 0, + "nullable": true + }, + "hints": { + "type": "string", + "description": "Hints to describe the schema.", + "maxLength": 1000, + "minLength": 0, + "nullable": true + }, + "contentsSidebarUrl": { + "type": "string", + "description": "The url to a the sidebar plugin for content lists.", + "nullable": true + }, + "contentSidebarUrl": { + "type": "string", + "description": "The url to a the sidebar plugin for content items.", + "nullable": true + }, + "contentsListUrl": { + "type": "string", + "description": "The url to the content list plugin.", + "nullable": true + }, + "validateOnPublish": { + "type": "boolean", + "description": "True to validate the content items on publish." + }, + "tags": { + "type": "array", + "description": "Tags for automation processes.", + "nullable": true, + "items": { + "type": "string" + } + } + } + }, + "SynchronizeSchemaDto": { + "allOf": [ + { + "$ref": "#/components/schemas/UpsertSchemaDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "noFieldDeletion": { + "type": "boolean", + "description": "True, when fields should not be deleted." + }, + "noFieldRecreation": { + "type": "boolean", + "description": "True, when fields with different types should not be recreated." + } + } + } + ] + }, + "ChangeCategoryDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "description": "The name of the category.", + "nullable": true + } + } + }, + "ConfigurePreviewUrlsDto": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "ConfigureFieldRulesDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "fieldRules": { + "type": "array", + "description": "The field rules to configure.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FieldRuleDto" + } + } + } + }, + "RuleElementDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "description", + "display", + "properties" + ], + "properties": { + "description": { + "type": "string", + "description": "Describes the action or trigger type." + }, + "display": { + "type": "string", + "description": "The label for the action or trigger type." + }, + "title": { + "type": "string", + "description": "Optional title.", + "nullable": true + }, + "iconColor": { + "type": "string", + "description": "The color for the icon.", + "nullable": true + }, + "iconImage": { + "type": "string", + "description": "The image for the icon.", + "nullable": true + }, + "readMore": { + "type": "string", + "description": "The optional link to the product that is integrated.", + "nullable": true + }, + "properties": { + "type": "array", + "description": "The properties.", + "items": { + "$ref": "#/components/schemas/RuleElementPropertyDto" + } + } + } + }, + "RuleElementPropertyDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "editor", + "name", + "display", + "isFormattable", + "isRequired" + ], + "properties": { + "editor": { + "description": "The html editor.", + "$ref": "#/components/schemas/RuleFieldEditor" + }, + "name": { + "type": "string", + "description": "The name of the editor." + }, + "display": { + "type": "string", + "description": "The label to use." + }, + "options": { + "type": "array", + "description": "The options, if the editor is a dropdown.", + "nullable": true, + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "description": "The optional description.", + "nullable": true + }, + "isFormattable": { + "type": "boolean", + "description": "Indicates if the property is formattable." + }, + "isRequired": { + "type": "boolean", + "description": "Indicates if the property is required." + } + } + }, + "RuleFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Checkbox", + "Dropdown", + "Email", + "Javascript", + "Number", + "Password", + "Text", + "TextArea", + "Url" + ], + "enum": [ + "Checkbox", + "Dropdown", + "Email", + "Javascript", + "Number", + "Password", + "Text", + "TextArea", + "Url" + ] + }, + "RulesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The rules.", + "items": { + "$ref": "#/components/schemas/RuleDto" + } + }, + "runningRuleId": { + "type": "string", + "description": "The ID of the rule that is currently rerunning.", + "nullable": true + } + } + } + ] + }, + "RuleDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "createdBy", + "lastModifiedBy", + "created", + "lastModified", + "version", + "isEnabled", + "trigger", + "action", + "numSucceeded", + "numFailed" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the rule." + }, + "createdBy": { + "type": "string", + "description": "The user that has created the rule." + }, + "lastModifiedBy": { + "type": "string", + "description": "The user that has updated the rule." + }, + "created": { + "type": "string", + "description": "The date and time when the rule has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The date and time when the rule has been modified last.", + "format": "date-time" + }, + "version": { + "type": "integer", + "description": "The version of the rule.", + "format": "int64" + }, + "isEnabled": { + "type": "boolean", + "description": "Determines if the rule is enabled." + }, + "name": { + "type": "string", + "description": "Optional rule name.", + "nullable": true + }, + "trigger": { + "description": "The trigger properties.", + "$ref": "#/components/schemas/RuleTriggerDto" + }, + "action": { + "description": "The action properties.", + "$ref": "#/components/schemas/RuleActionDto" + }, + "numSucceeded": { + "type": "integer", + "description": "The number of completed executions.", + "format": "int64" + }, + "numFailed": { + "type": "integer", + "description": "The number of failed executions.", + "format": "int64" + }, + "lastExecuted": { + "type": "string", + "description": "The date and time when the rule was executed the last time.", + "format": "date-time", + "deprecated": true, + "x-deprecatedMessage": "Removed when migrated to new rule statistics.", + "nullable": true + } + } + } + ] + }, + "RuleTriggerDto": { + "type": "object", + "discriminator": { + "propertyName": "triggerType", + "mapping": { + "AssetChanged": "#/components/schemas/AssetChangedRuleTriggerDto", + "Comment": "#/components/schemas/CommentRuleTriggerDto", + "ContentChanged": "#/components/schemas/ContentChangedRuleTriggerDto", + "Manual": "#/components/schemas/ManualRuleTriggerDto", + "SchemaChanged": "#/components/schemas/SchemaChangedRuleTriggerDto", + "Usage": "#/components/schemas/UsageRuleTriggerDto" + } + }, + "x-abstract": true, + "additionalProperties": false, + "required": [ + "triggerType" + ], + "properties": { + "triggerType": { + "type": "string" + } + } + }, + "AssetChangedRuleTriggerDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleTriggerDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "condition": { + "type": "string", + "description": "Javascript condition when to trigger.", + "nullable": true + } + } + } + ] + }, + "CommentRuleTriggerDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleTriggerDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "condition": { + "type": "string", + "description": "Javascript condition when to trigger.", + "nullable": true + } + } + } + ] + }, + "ContentChangedRuleTriggerDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleTriggerDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "handleAll" + ], + "properties": { + "schemas": { + "type": "array", + "description": "The schema settings.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/SchemaCondition" + } + }, + "referencedSchemas": { + "type": "array", + "description": "The schema references.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/SchemaCondition" + } + }, + "handleAll": { + "type": "boolean", + "description": "Determines whether the trigger should handle all content changes events." + } + } + } + ] + }, + "SchemaCondition": { + "type": "object", + "additionalProperties": false, + "required": [ + "schemaId" + ], + "properties": { + "schemaId": { + "type": "string" + }, + "condition": { + "type": "string", + "nullable": true + } + } + }, + "ManualRuleTriggerDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleTriggerDto" + }, + { + "type": "object", + "additionalProperties": false + } + ] + }, + "SchemaChangedRuleTriggerDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleTriggerDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "condition": { + "type": "string", + "description": "Javascript condition when to trigger.", + "nullable": true + } + } + } + ] + }, + "UsageRuleTriggerDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleTriggerDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "limit" + ], + "properties": { + "limit": { + "type": "integer", + "description": "The number of monthly api calls.", + "format": "int32" + }, + "numDays": { + "type": "integer", + "description": "The number of days to check or null for the current month.", + "format": "int32", + "maximum": 30.0, + "minimum": 1.0, + "nullable": true + } + } + } + ] + }, + "RuleActionDto": { + "type": "object", + "discriminator": { + "propertyName": "actionType", + "mapping": { + "Algolia": "#/components/schemas/AlgoliaRuleActionDto", + "AzureQueue": "#/components/schemas/AzureQueueRuleActionDto", + "Comment": "#/components/schemas/CommentRuleActionDto", + "CreateContent": "#/components/schemas/CreateContentRuleActionDto", + "Discourse": "#/components/schemas/DiscourseRuleActionDto", + "ElasticSearch": "#/components/schemas/ElasticSearchRuleActionDto", + "Email": "#/components/schemas/EmailRuleActionDto", + "Fastly": "#/components/schemas/FastlyRuleActionDto", + "Medium": "#/components/schemas/MediumRuleActionDto", + "Notification": "#/components/schemas/NotificationRuleActionDto", + "OpenSearch": "#/components/schemas/OpenSearchRuleActionDto", + "Prerender": "#/components/schemas/PrerenderRuleActionDto", + "Script": "#/components/schemas/ScriptRuleActionDto", + "SignalR": "#/components/schemas/SignalRRuleActionDto", + "Slack": "#/components/schemas/SlackRuleActionDto", + "Tweet": "#/components/schemas/TweetRuleActionDto", + "Typesense": "#/components/schemas/TypesenseRuleActionDto", + "Webhook": "#/components/schemas/WebhookRuleActionDto" + } + }, + "x-abstract": true, + "additionalProperties": false, + "required": [ + "actionType" + ], + "properties": { + "actionType": { + "type": "string" + } + } + }, + "AlgoliaRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "appId", + "apiKey", + "indexName" + ], + "properties": { + "appId": { + "title": "Application Id", + "type": "string", + "description": "The application ID.", + "minLength": 1 + }, + "apiKey": { + "title": "Api Key", + "type": "string", + "description": "The API key to grant access to Squidex.", + "minLength": 1 + }, + "indexName": { + "title": "Index Name", + "type": "string", + "description": "The name of the index.", + "minLength": 1 + }, + "document": { + "title": "Document", + "type": "string", + "description": "The optional custom document.", + "nullable": true + }, + "delete": { + "title": "Deletion", + "type": "string", + "description": "The condition when to delete the entry.", + "nullable": true + } + } + } + ] + }, + "AzureQueueRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "connectionString", + "queue" + ], + "properties": { + "connectionString": { + "title": "Connection", + "type": "string", + "description": "The connection string to the storage account.", + "minLength": 1 + }, + "queue": { + "title": "Queue", + "type": "string", + "description": "The name of the queue.", + "minLength": 1 + }, + "payload": { + "title": "Payload (Optional)", + "type": "string", + "description": "Leave it empty to use the full event as body.", + "nullable": true + } + } + } + ] + }, + "CommentRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "text" + ], + "properties": { + "text": { + "title": "Text", + "type": "string", + "description": "The comment text.", + "minLength": 1 + }, + "client": { + "title": "Client", + "type": "string", + "description": "An optional client name.", + "nullable": true + } + } + } + ] + }, + "CreateContentRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "data", + "schema", + "client", + "publish" + ], + "properties": { + "data": { + "title": "Data", + "type": "string", + "description": "The content data.", + "minLength": 1 + }, + "schema": { + "title": "Schema", + "type": "string", + "description": "The name of the schema.", + "minLength": 1 + }, + "client": { + "title": "Client", + "type": "string", + "description": "An optional client name." + }, + "publish": { + "title": "Publish", + "type": "boolean", + "description": "Publish the content." + } + } + } + ] + }, + "DiscourseRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "url", + "apiKey", + "apiUsername", + "text" + ], + "properties": { + "url": { + "title": "Server Url", + "type": "string", + "description": "The url to the discourse server.", + "format": "uri", + "minLength": 1 + }, + "apiKey": { + "title": "Api Key", + "type": "string", + "description": "The api key to authenticate to your discourse server.", + "minLength": 1 + }, + "apiUsername": { + "title": "Api User", + "type": "string", + "description": "The api username to authenticate to your discourse server.", + "minLength": 1 + }, + "text": { + "title": "Text", + "type": "string", + "description": "The text as markdown.", + "minLength": 1 + }, + "title": { + "title": "Title", + "type": "string", + "description": "The optional title when creating new topics.", + "nullable": true + }, + "topic": { + "title": "Topic", + "type": "integer", + "description": "The optional topic id.", + "format": "int32", + "nullable": true + }, + "category": { + "title": "Category", + "type": "integer", + "description": "The optional category id.", + "format": "int32", + "nullable": true + } + } + } + ] + }, + "ElasticSearchRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "host", + "indexName" + ], + "properties": { + "host": { + "title": "Server Url", + "type": "string", + "description": "The url to the instance or cluster.", + "format": "uri", + "minLength": 1 + }, + "indexName": { + "title": "Index Name", + "type": "string", + "description": "The name of the index.", + "minLength": 1 + }, + "username": { + "title": "Username", + "type": "string", + "description": "The optional username.", + "nullable": true + }, + "password": { + "title": "Password", + "type": "string", + "description": "The optional password.", + "nullable": true + }, + "document": { + "title": "Document", + "type": "string", + "description": "The optional custom document.", + "nullable": true + }, + "delete": { + "title": "Deletion", + "type": "string", + "description": "The condition when to delete the document.", + "nullable": true + } + } + } + ] + }, + "EmailRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "serverHost", + "serverPort", + "messageFrom", + "messageTo", + "messageSubject", + "messageBody", + "serverUsername", + "serverPassword" + ], + "properties": { + "serverHost": { + "title": "Server Host", + "type": "string", + "description": "The IP address or host to the SMTP server.", + "minLength": 1 + }, + "serverPort": { + "title": "Server Port", + "type": "integer", + "description": "The port to the SMTP server.", + "format": "int32" + }, + "serverUsername": { + "title": "Username", + "type": "string", + "description": "The username for the SMTP server." + }, + "serverPassword": { + "title": "Password", + "type": "string", + "description": "The password for the SMTP server." + }, + "messageFrom": { + "title": "From Address", + "type": "string", + "description": "The email sending address.", + "minLength": 1 + }, + "messageTo": { + "title": "To Address", + "type": "string", + "description": "The email message will be sent to.", + "minLength": 1 + }, + "messageSubject": { + "title": "Subject", + "type": "string", + "description": "The subject line for this email message.", + "minLength": 1 + }, + "messageBody": { + "title": "Body", + "type": "string", + "description": "The message body.", + "minLength": 1 + } + } + } + ] + }, + "FastlyRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "apiKey", + "serviceId" + ], + "properties": { + "apiKey": { + "title": "Api Key", + "type": "string", + "description": "The API key to grant access to Squidex.", + "minLength": 1 + }, + "serviceId": { + "title": "Service Id", + "type": "string", + "description": "The ID of the fastly service.", + "minLength": 1 + } + } + } + ] + }, + "MediumRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "accessToken", + "title", + "content", + "isHtml" + ], + "properties": { + "accessToken": { + "title": "Access Token", + "type": "string", + "description": "The self issued access token.", + "minLength": 1 + }, + "title": { + "title": "Title", + "type": "string", + "description": "The title, used for the url.", + "minLength": 1 + }, + "content": { + "title": "Content", + "type": "string", + "description": "The content, either html or markdown.", + "minLength": 1 + }, + "canonicalUrl": { + "title": "Canonical Url", + "type": "string", + "description": "The original home of this content, if it was originally published elsewhere.", + "nullable": true + }, + "tags": { + "title": "Tags", + "type": "string", + "description": "The optional comma separated list of tags.", + "nullable": true + }, + "publicationId": { + "title": "Publication Id", + "type": "string", + "description": "Optional publication id.", + "nullable": true + }, + "isHtml": { + "title": "Is Html", + "type": "boolean", + "description": "Indicates whether the content is markdown or html." + } + } + } + ] + }, + "NotificationRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "user", + "text" + ], + "properties": { + "user": { + "title": "User", + "type": "string", + "description": "The user id or email.", + "minLength": 1 + }, + "text": { + "title": "Title", + "type": "string", + "description": "The text to send.", + "minLength": 1 + }, + "url": { + "title": "Url", + "type": "string", + "description": "The optional url to attach to the notification.", + "nullable": true + }, + "client": { + "title": "Client", + "type": "string", + "description": "An optional client name.", + "nullable": true + } + } + } + ] + }, + "OpenSearchRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "host", + "indexName" + ], + "properties": { + "host": { + "title": "Server Url", + "type": "string", + "description": "The url to the instance or cluster.", + "format": "uri", + "minLength": 1 + }, + "indexName": { + "title": "Index Name", + "type": "string", + "description": "The name of the index.", + "minLength": 1 + }, + "username": { + "title": "Username", + "type": "string", + "description": "The optional username.", + "nullable": true + }, + "password": { + "title": "Password", + "type": "string", + "description": "The optional password.", + "nullable": true + }, + "document": { + "title": "Document", + "type": "string", + "description": "The optional custom document.", + "nullable": true + }, + "delete": { + "title": "Deletion", + "type": "string", + "description": "The condition when to delete the document.", + "nullable": true + } + } + } + ] + }, + "PrerenderRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "token", + "url" + ], + "properties": { + "token": { + "title": "Token", + "type": "string", + "description": "The prerender token from your account.", + "minLength": 1 + }, + "url": { + "title": "Url", + "type": "string", + "description": "The url to recache.", + "minLength": 1 + } + } + } + ] + }, + "ScriptRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "script" + ], + "properties": { + "script": { + "title": "Script", + "type": "string", + "description": "The script to render.", + "minLength": 1 + } + } + } + ] + }, + "SignalRRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "connectionString", + "hubName", + "action" + ], + "properties": { + "connectionString": { + "title": "Connection", + "type": "string", + "description": "The connection string to the Azure SignalR.", + "minLength": 1 + }, + "hubName": { + "title": "Hub Name", + "type": "string", + "description": "The name of the hub.", + "minLength": 1 + }, + "action": { + "title": "Action", + "description": "* Broadcast = send to all users.\n * User = send to all target users(s).\n * Group = send to all target group(s).", + "$ref": "#/components/schemas/ActionTypeEnum" + }, + "methodName": { + "title": "Methode Name", + "type": "string", + "description": "Set the Name of the hub method received by the customer.", + "nullable": true + }, + "target": { + "title": "Target (Optional)", + "type": "string", + "description": "Define target users or groups by id or name. One item per line. Not needed for Broadcast action.", + "nullable": true + }, + "payload": { + "title": "Payload (Optional)", + "type": "string", + "description": "Leave it empty to use the full event as body.", + "nullable": true + } + } + } + ] + }, + "ActionTypeEnum": { + "type": "string", + "description": "", + "x-enumNames": [ + "Broadcast", + "User", + "Group" + ], + "enum": [ + "Broadcast", + "User", + "Group" + ] + }, + "SlackRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "webhookUrl", + "text" + ], + "properties": { + "webhookUrl": { + "title": "Webhook Url", + "type": "string", + "description": "The slack webhook url.", + "format": "uri", + "minLength": 1 + }, + "text": { + "title": "Text", + "type": "string", + "description": "The text that is sent as message to slack.", + "minLength": 1 + } + } + } + ] + }, + "TweetRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "accessToken", + "accessSecret", + "text" + ], + "properties": { + "accessToken": { + "title": "Access Token", + "type": "string", + "description": " The generated access token.", + "minLength": 1 + }, + "accessSecret": { + "title": "Access Secret", + "type": "string", + "description": " The generated access secret.", + "minLength": 1 + }, + "text": { + "title": "Text", + "type": "string", + "description": "The text that is sent as tweet to twitter.", + "minLength": 1 + } + } + } + ] + }, + "TypesenseRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "host", + "indexName", + "apiKey" + ], + "properties": { + "host": { + "title": "Server Url", + "type": "string", + "description": "The url to the instance or cluster.", + "format": "uri", + "minLength": 1 + }, + "indexName": { + "title": "Index Name", + "type": "string", + "description": "The name of the index.", + "minLength": 1 + }, + "apiKey": { + "title": "Api Key", + "type": "string", + "description": "The api key.", + "minLength": 1 + }, + "document": { + "title": "Document", + "type": "string", + "description": "The optional custom document.", + "nullable": true + }, + "delete": { + "title": "Deletion", + "type": "string", + "description": "The condition when to delete the document.", + "nullable": true + } + } + } + ] + }, + "WebhookRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "url", + "method" + ], + "properties": { + "url": { + "title": "Url", + "type": "string", + "description": "The url to the webhook.", + "format": "uri", + "minLength": 1 + }, + "method": { + "title": "Method", + "description": "The type of the request.", + "$ref": "#/components/schemas/WebhookMethod" + }, + "payload": { + "title": "Payload (Optional)", + "type": "string", + "description": "Leave it empty to use the full event as body.", + "nullable": true + }, + "payloadType": { + "title": "Payload Type", + "type": "string", + "description": "The mime type of the payload.", + "nullable": true + }, + "headers": { + "title": "Headers (Optional)", + "type": "string", + "description": "The message headers in the format '[Key]=[Value]', one entry per line.", + "nullable": true + }, + "sharedSecret": { + "title": "Shared Secret", + "type": "string", + "description": "The shared secret that is used to calculate the payload signature.", + "nullable": true + } + } + } + ] + }, + "WebhookMethod": { + "type": "string", + "description": "", + "x-enumNames": [ + "POST", + "PUT", + "GET", + "DELETE", + "PATCH" + ], + "enum": [ + "POST", + "PUT", + "GET", + "DELETE", + "PATCH" + ] + }, + "CreateRuleDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "trigger", + "action" + ], + "properties": { + "trigger": { + "description": "The trigger properties.", + "$ref": "#/components/schemas/RuleTriggerDto" + }, + "action": { + "description": "The action properties.", + "$ref": "#/components/schemas/RuleActionDto" + } + } + }, + "UpdateRuleDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "description": "Optional rule name.", + "nullable": true + }, + "trigger": { + "description": "The trigger properties.", + "nullable": true, + "$ref": "#/components/schemas/RuleTriggerDto" + }, + "action": { + "description": "The action properties.", + "nullable": true, + "$ref": "#/components/schemas/RuleActionDto" + }, + "isEnabled": { + "type": "boolean", + "description": "Enable or disable the rule.", + "nullable": true + } + } + }, + "SimulatedRuleEventsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "total", + "items" + ], + "properties": { + "total": { + "type": "integer", + "description": "The total number of simulated rule events.", + "format": "int64" + }, + "items": { + "type": "array", + "description": "The simulated rule events.", + "items": { + "$ref": "#/components/schemas/SimulatedRuleEventDto" + } + } + } + } + ] + }, + "SimulatedRuleEventDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "eventId", + "uniqueId", + "eventName", + "event", + "skipReasons" + ], + "properties": { + "eventId": { + "type": "string", + "description": "The unique event id.", + "format": "guid", + "minLength": 1 + }, + "uniqueId": { + "type": "string", + "description": "The the unique id of the simulated event.", + "minLength": 1 + }, + "eventName": { + "type": "string", + "description": "The name of the event.", + "minLength": 1 + }, + "event": { + "description": "The source event." + }, + "enrichedEvent": { + "description": "The enriched event.", + "nullable": true + }, + "actionName": { + "type": "string", + "description": "The data for the action.", + "nullable": true + }, + "actionData": { + "type": "string", + "description": "The name of the action.", + "nullable": true + }, + "error": { + "type": "string", + "description": "The name of the event.", + "nullable": true + }, + "skipReasons": { + "type": "array", + "description": "The reason why the event has been skipped.", + "items": { + "$ref": "#/components/schemas/SkipReason" + } + } + } + }, + "SkipReason": { + "type": "string", + "description": "", + "x-enumFlags": true, + "x-enumNames": [ + "None", + "ConditionDoesNotMatch", + "ConditionPrecheckDoesNotMatch", + "Disabled", + "Failed", + "FromRule", + "NoAction", + "NoTrigger", + "TooOld", + "WrongEvent", + "WrongEventForTrigger" + ], + "enum": [ + "None", + "ConditionDoesNotMatch", + "ConditionPrecheckDoesNotMatch", + "Disabled", + "Failed", + "FromRule", + "NoAction", + "NoTrigger", + "TooOld", + "WrongEvent", + "WrongEventForTrigger" + ] + }, + "RuleEventsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "total", + "items" + ], + "properties": { + "total": { + "type": "integer", + "description": "The total number of rule events.", + "format": "int64" + }, + "items": { + "type": "array", + "description": "The rule events.", + "items": { + "$ref": "#/components/schemas/RuleEventDto" + } + } + } + } + ] + }, + "RuleEventDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "created", + "description", + "eventName", + "numCalls", + "result", + "jobResult" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the event." + }, + "created": { + "type": "string", + "description": "The time when the event has been created.", + "format": "date-time" + }, + "description": { + "type": "string", + "description": "The description." + }, + "eventName": { + "type": "string", + "description": "The name of the event." + }, + "lastDump": { + "type": "string", + "description": "The last dump.", + "nullable": true + }, + "numCalls": { + "type": "integer", + "description": "The number of calls.", + "format": "int32" + }, + "nextAttempt": { + "type": "string", + "description": "The next attempt.", + "format": "date-time", + "nullable": true + }, + "result": { + "description": "The result of the event.", + "$ref": "#/components/schemas/RuleResult" + }, + "jobResult": { + "description": "The result of the job.", + "$ref": "#/components/schemas/RuleJobResult" + } + } + } + ] + }, + "RuleResult": { + "type": "string", + "description": "", + "x-enumNames": [ + "Pending", + "Success", + "Failed", + "Timeout" + ], + "enum": [ + "Pending", + "Success", + "Failed", + "Timeout" + ] + }, + "RuleJobResult": { + "type": "string", + "description": "", + "x-enumNames": [ + "Pending", + "Success", + "Retry", + "Failed", + "Cancelled" + ], + "enum": [ + "Pending", + "Success", + "Retry", + "Failed", + "Cancelled" + ] + }, + "PlansDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "plans", + "locked" + ], + "properties": { + "plans": { + "type": "array", + "description": "The available plans.", + "items": { + "$ref": "#/components/schemas/PlanDto" + } + }, + "currentPlanId": { + "type": "string", + "description": "The current plan id.", + "nullable": true + }, + "planOwner": { + "type": "string", + "description": "The plan owner.", + "nullable": true + }, + "portalLink": { + "type": "string", + "description": "The link to the management portal.", + "format": "uri", + "nullable": true + }, + "referral": { + "description": "The referral management.", + "nullable": true, + "$ref": "#/components/schemas/ReferralInfo" + }, + "locked": { + "description": "The reason why the plan cannot be changed.", + "$ref": "#/components/schemas/PlansLockedReason" + } + } + }, + "PlanDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "name", + "costs", + "maxApiBytes", + "maxApiCalls", + "maxAssetSize", + "maxContributors" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the plan." + }, + "name": { + "type": "string", + "description": "The name of the plan." + }, + "costs": { + "type": "string", + "description": "The monthly costs of the plan." + }, + "confirmText": { + "type": "string", + "description": "An optional confirm text for the monthly subscription.", + "nullable": true + }, + "yearlyConfirmText": { + "type": "string", + "description": "An optional confirm text for the yearly subscription.", + "nullable": true + }, + "yearlyCosts": { + "type": "string", + "description": "The yearly costs of the plan.", + "nullable": true + }, + "yearlyId": { + "type": "string", + "description": "The yearly ID of the plan.", + "nullable": true + }, + "maxApiBytes": { + "type": "integer", + "description": "The maximum number of API traffic.", + "format": "int64" + }, + "maxApiCalls": { + "type": "integer", + "description": "The maximum number of API calls.", + "format": "int64" + }, + "maxAssetSize": { + "type": "integer", + "description": "The maximum allowed asset size.", + "format": "int64" + }, + "maxContributors": { + "type": "integer", + "description": "The maximum number of contributors.", + "format": "int32" + } + } + }, + "ReferralInfo": { + "type": "object", + "additionalProperties": false, + "required": [ + "code", + "earned", + "condition" + ], + "properties": { + "code": { + "type": "string" + }, + "earned": { + "type": "string" + }, + "condition": { + "type": "string" + } + } + }, + "PlansLockedReason": { + "type": "string", + "description": "", + "x-enumNames": [ + "None", + "NotOwner", + "NoPermission", + "ManagedByTeam" + ], + "enum": [ + "None", + "NotOwner", + "NoPermission", + "ManagedByTeam" + ] + }, + "PlanChangedDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "redirectUri": { + "type": "string", + "description": "Optional redirect uri.", + "nullable": true + } + } + }, + "ChangePlanDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "planId" + ], + "properties": { + "planId": { + "type": "string", + "description": "The new plan id.", + "minLength": 1 + } + } + }, + "ExposedValues": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "FeaturesDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "features", + "version" + ], + "properties": { + "features": { + "type": "array", + "description": "The latest features.", + "items": { + "$ref": "#/components/schemas/FeatureDto" + } + }, + "version": { + "type": "integer", + "description": "The recent version.", + "format": "int32" + } + } + }, + "FeatureDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "text" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the feature." + }, + "text": { + "type": "string", + "description": "The description text." + } + } + }, + "LanguageDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "iso2Code", + "englishName", + "nativeName" + ], + "properties": { + "iso2Code": { + "type": "string", + "description": "The iso code of the language." + }, + "englishName": { + "type": "string", + "description": "The english name of the language." + }, + "nativeName": { + "type": "string", + "description": "The native name of the language." + } + } + }, + "JobsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The jobs.", + "items": { + "$ref": "#/components/schemas/JobDto" + } + } + } + } + ] + }, + "JobDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "started", + "status", + "taskName", + "description", + "taskArguments", + "log", + "canDownload" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the job." + }, + "started": { + "type": "string", + "description": "The time when the job has been started.", + "format": "date-time" + }, + "stopped": { + "type": "string", + "description": "The time when the job has been stopped.", + "format": "date-time", + "nullable": true + }, + "status": { + "description": "The status of the operation.", + "$ref": "#/components/schemas/JobStatus" + }, + "taskName": { + "type": "string", + "description": "The name of the task." + }, + "description": { + "type": "string", + "description": "The description of the job." + }, + "taskArguments": { + "type": "object", + "description": "The arguments for the job.", + "additionalProperties": { + "type": "string" + } + }, + "log": { + "type": "array", + "description": "The list of log items.", + "items": { + "$ref": "#/components/schemas/JobLogMessageDto" + } + }, + "canDownload": { + "type": "boolean", + "description": "Indicates whether the job can be downloaded." + } + } + } + ] + }, + "JobStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "Created", + "Started", + "Completed", + "Cancelled", + "Failed" + ], + "enum": [ + "Created", + "Started", + "Completed", + "Cancelled", + "Failed" + ] + }, + "JobLogMessageDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "timestamp", + "message" + ], + "properties": { + "timestamp": { + "type": "string", + "description": "The timestamp.", + "format": "date-time" + }, + "message": { + "type": "string", + "description": "The log message." + } + } + }, + "HistoryEventDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "message", + "eventType", + "actor", + "eventId", + "created", + "version" + ], + "properties": { + "message": { + "type": "string", + "description": "The message for the event." + }, + "eventType": { + "type": "string", + "description": "The type of the original event." + }, + "actor": { + "type": "string", + "description": "The user who called the action." + }, + "eventId": { + "type": "string", + "description": "Gets a unique id for the event." + }, + "created": { + "type": "string", + "description": "The time when the event happened.", + "format": "date-time" + }, + "version": { + "type": "integer", + "description": "The version identifier.", + "format": "int64" + } + } + }, + "EventConsumersDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The event consumers.", + "items": { + "$ref": "#/components/schemas/EventConsumerDto" + } + } + } + } + ] + }, + "EventConsumerDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "isStopped", + "isResetting", + "count" + ], + "properties": { + "isStopped": { + "type": "boolean", + "description": "Indicates if the event consumer has been started." + }, + "isResetting": { + "type": "boolean", + "description": "Indicates if the event consumer is resetting at the moment." + }, + "count": { + "type": "integer", + "description": "The number of handled events.", + "format": "int32" + }, + "name": { + "type": "string", + "description": "The name of the event consumer.", + "minLength": 1 + }, + "error": { + "type": "string", + "description": "The error details if the event consumer has been stopped after a failure.", + "nullable": true + }, + "position": { + "type": "string", + "description": "The position within the vent stream.", + "nullable": true + } + } + } + ] + }, + "ContentsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "total", + "items", + "statuses" + ], + "properties": { + "total": { + "type": "integer", + "description": "The total number of content items.", + "format": "int64" + }, + "items": { + "type": "array", + "description": "The content items.", + "items": { + "$ref": "#/components/schemas/ContentDto" + } + }, + "statuses": { + "type": "array", + "description": "The possible statuses.", + "items": { + "$ref": "#/components/schemas/StatusInfoDto" + } + } + } + } + ] + }, + "ContentDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "createdBy", + "lastModifiedBy", + "data", + "created", + "lastModified", + "status", + "statusColor", + "schemaId", + "isDeleted", + "version" + ], + "properties": { + "id": { + "type": "string", + "description": "The if of the content item." + }, + "createdBy": { + "type": "string", + "description": "The user that has created the content item." + }, + "lastModifiedBy": { + "type": "string", + "description": "The user that has updated the content item." + }, + "data": { + "description": "The data of the content item." + }, + "referenceData": { + "description": "The reference data for the frontend UI.", + "nullable": true, + "$ref": "#/components/schemas/ContentData" + }, + "created": { + "type": "string", + "description": "The date and time when the content item has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The date and time when the content item has been modified last.", + "format": "date-time" + }, + "status": { + "type": "string", + "description": "The status of the content." + }, + "newStatus": { + "type": "string", + "description": "The new status of the content.", + "nullable": true + }, + "statusColor": { + "type": "string", + "description": "The color of the status." + }, + "newStatusColor": { + "type": "string", + "description": "The color of the new status.", + "nullable": true + }, + "editToken": { + "type": "string", + "description": "The UI token.", + "nullable": true + }, + "scheduleJob": { + "description": "The scheduled status.", + "nullable": true, + "$ref": "#/components/schemas/ScheduleJobDto" + }, + "schemaId": { + "type": "string", + "description": "The ID of the schema." + }, + "schemaName": { + "type": "string", + "description": "The name of the schema.", + "nullable": true + }, + "schemaDisplayName": { + "type": "string", + "description": "The display name of the schema.", + "nullable": true + }, + "referenceFields": { + "type": "array", + "description": "The reference fields.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FieldDto" + } + }, + "isDeleted": { + "type": "boolean", + "description": "Indicates whether the content is deleted." + }, + "version": { + "type": "integer", + "description": "The version of the content.", + "format": "int64" + } + } + } + ] + }, + "ContentData": { + "type": "object", + "additionalProperties": { + "nullable": true, + "$ref": "#/components/schemas/ContentFieldData" + } + }, + "ContentFieldData": { + "type": "object", + "additionalProperties": {} + }, + "ScheduleJobDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "status", + "dueTime", + "color", + "scheduledBy" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the schedule job." + }, + "status": { + "type": "string", + "description": "The new status." + }, + "dueTime": { + "type": "string", + "description": "The target date and time when the content should be scheduled.", + "format": "date-time" + }, + "color": { + "type": "string", + "description": "The color of the scheduled status." + }, + "scheduledBy": { + "type": "string", + "description": "The user who schedule the content." + } + } + }, + "StatusInfoDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "status", + "color" + ], + "properties": { + "status": { + "type": "string", + "description": "The name of the status." + }, + "color": { + "type": "string", + "description": "The color of the status." + } + } + }, + "QueryDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "ids": { + "type": "array", + "description": "The optional list of ids to query.", + "nullable": true, + "items": { + "type": "string" + } + }, + "oData": { + "type": "string", + "description": "The optional odata query.", + "nullable": true + }, + "q": { + "description": "The optional json query.", + "nullable": true + }, + "parentId": { + "type": "string", + "description": "The parent id (for assets).", + "nullable": true + } + } + }, + "BulkResultDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "jobIndex" + ], + "properties": { + "error": { + "description": "The error when the bulk job failed.", + "nullable": true, + "$ref": "#/components/schemas/ErrorDto" + }, + "jobIndex": { + "type": "integer", + "description": "The index of the bulk job where the result belongs to. The order can change.", + "format": "int32" + }, + "id": { + "type": "string", + "description": "The ID of the entity that has been handled successfully or not.", + "nullable": true + }, + "contentId": { + "type": "string", + "description": "The ID of the entity that has been handled successfully or not.", + "deprecated": true, + "x-deprecatedMessage": "Use 'id' field now.", + "nullable": true + } + } + }, + "ImportContentsDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "datas" + ], + "properties": { + "datas": { + "type": "array", + "description": "The data to import.", + "items": { + "$ref": "#/components/schemas/ContentData" + } + }, + "publish": { + "type": "boolean", + "description": "True to automatically publish the content.", + "deprecated": true, + "x-deprecatedMessage": "Use bulk endpoint now." + }, + "doNotScript": { + "type": "boolean", + "description": "True to turn off scripting for faster inserts. Default: true." + }, + "optimizeValidation": { + "type": "boolean", + "description": "True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true." + } + } + }, + "BulkUpdateContentsDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "jobs" + ], + "properties": { + "jobs": { + "type": "array", + "description": "The contents to update or insert.", + "items": { + "$ref": "#/components/schemas/BulkUpdateContentsJobDto" + } + }, + "publish": { + "type": "boolean", + "description": "True to automatically publish the content.", + "deprecated": true, + "x-deprecatedMessage": "Use 'jobs.status' fields now." + }, + "doNotScript": { + "type": "boolean", + "description": "True to turn off scripting for faster inserts. Default: true." + }, + "enrichRequiredFields": { + "type": "boolean", + "description": "True, to also enrich required fields. Default: false.\n " + }, + "doNotValidate": { + "type": "boolean", + "description": "True to turn off validation for faster inserts. Default: false." + }, + "doNotValidateWorkflow": { + "type": "boolean", + "description": "True to turn off validation of workflow rules. Default: false." + }, + "checkReferrers": { + "type": "boolean", + "description": "True to check referrers of deleted contents." + }, + "optimizeValidation": { + "type": "boolean", + "description": "True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true." + } + } + }, + "BulkUpdateContentsJobDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "query": { + "description": "An optional query to identify the content to update.", + "nullable": true, + "$ref": "#/components/schemas/QueryJsonDto" + }, + "id": { + "type": "string", + "description": "An optional ID of the content to update.", + "nullable": true + }, + "data": { + "description": "The data of the content when type is set to 'Upsert', 'Create', 'Update' or 'Patch.", + "nullable": true, + "$ref": "#/components/schemas/ContentData" + }, + "status": { + "type": "string", + "description": "The new status when the type is set to 'ChangeStatus' or 'Upsert'.", + "nullable": true + }, + "dueTime": { + "type": "string", + "description": "The due time.", + "format": "date-time", + "nullable": true + }, + "type": { + "description": "The update type.", + "$ref": "#/components/schemas/BulkUpdateContentType" + }, + "schema": { + "type": "string", + "description": "The optional schema id or name.", + "nullable": true + }, + "patch": { + "type": "boolean", + "description": "Makes the update as patch." + }, + "permanent": { + "type": "boolean", + "description": "True to delete the content permanently." + }, + "enrichDefaults": { + "type": "boolean", + "description": "Enrich the data with the default values when updating a content item." + }, + "expectedCount": { + "type": "integer", + "description": "The number of expected items. Set it to a higher number to update multiple items when a query is defined.", + "format": "int64" + }, + "expectedVersion": { + "type": "integer", + "description": "The expected version.", + "format": "int64" + } + } + }, + "QueryJsonDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "skip", + "take", + "random", + "top" + ], + "properties": { + "filter": { + "nullable": true + }, + "fullText": { + "type": "string", + "nullable": true + }, + "skip": { + "type": "integer", + "format": "int64" + }, + "take": { + "type": "integer", + "format": "int64" + }, + "random": { + "type": "integer", + "format": "int64" + }, + "top": { + "type": "integer", + "format": "int64" + }, + "sort": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/SortNode" + } + } + } + }, + "SortNode": { + "type": "object", + "additionalProperties": false, + "required": [ + "path", + "order" + ], + "properties": { + "path": { + "type": "string" + }, + "order": { + "$ref": "#/components/schemas/SortOrder" + } + } + }, + "SortOrder": { + "type": "string", + "description": "", + "x-enumNames": [ + "Ascending", + "Descending" + ], + "enum": [ + "Ascending", + "Descending" + ] + }, + "BulkUpdateContentType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Upsert", + "ChangeStatus", + "Create", + "Delete", + "Patch", + "Update", + "Validate", + "EnrichDefaults" + ], + "enum": [ + "Upsert", + "ChangeStatus", + "Create", + "Delete", + "Patch", + "Update", + "Validate", + "EnrichDefaults" + ] + }, + "ChangeStatusDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "description": "The new status." + }, + "dueTime": { + "type": "string", + "description": "The due time.", + "format": "date-time", + "nullable": true + }, + "checkReferrers": { + "type": "boolean", + "description": "True to check referrers of this content." + } + } + }, + "AllContentsByPostDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "ids": { + "type": "array", + "description": "The list of ids to query.", + "nullable": true, + "items": { + "type": "string" + } + }, + "scheduledFrom": { + "type": "string", + "description": "The start of the schedule.", + "format": "date-time", + "nullable": true + }, + "scheduledTo": { + "type": "string", + "description": "The end of the schedule.", + "format": "date-time", + "nullable": true + }, + "referencing": { + "type": "string", + "description": "The ID of the referencing content item.", + "nullable": true + }, + "references": { + "type": "string", + "description": "The ID of the reference content item.", + "nullable": true + }, + "oData": { + "type": "string", + "description": "The optional odata query.", + "nullable": true + }, + "q": { + "description": "The optional json query.", + "nullable": true + } + } + }, + "BackupJobsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "deprecated": true, + "x-deprecatedMessage": "Use Jobs endpoint.", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The backups.", + "items": { + "$ref": "#/components/schemas/BackupJobDto" + } + } + } + } + ] + }, + "BackupJobDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "deprecated": true, + "x-deprecatedMessage": "Use Jobs endpoint.", + "additionalProperties": false, + "required": [ + "id", + "started", + "handledEvents", + "handledAssets", + "status" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the backup job." + }, + "started": { + "type": "string", + "description": "The time when the job has been started.", + "format": "date-time" + }, + "stopped": { + "type": "string", + "description": "The time when the job has been stopped.", + "format": "date-time", + "nullable": true + }, + "handledEvents": { + "type": "integer", + "description": "The number of handled events.", + "format": "int32" + }, + "handledAssets": { + "type": "integer", + "description": "The number of handled assets.", + "format": "int32" + }, + "status": { + "description": "The status of the operation.", + "$ref": "#/components/schemas/JobStatus" + } + } + } + ] + }, + "RestoreJobDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "url", + "log", + "started", + "status" + ], + "properties": { + "url": { + "type": "string", + "description": "The uri to load from.", + "format": "uri" + }, + "log": { + "type": "array", + "description": "The status log.", + "items": { + "type": "string" + } + }, + "started": { + "type": "string", + "description": "The time when the job has been started.", + "format": "date-time" + }, + "stopped": { + "type": "string", + "description": "The time when the job has been stopped.", + "format": "date-time", + "nullable": true + }, + "status": { + "description": "The status of the operation.", + "$ref": "#/components/schemas/JobStatus" + } + } + }, + "RestoreRequestDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "url" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the app.", + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$", + "nullable": true + }, + "url": { + "type": "string", + "description": "The url to the restore file.", + "format": "uri", + "minLength": 1 + } + } + }, + "ResizeMode": { + "type": "string", + "description": "", + "x-enumNames": [ + "Crop", + "CropUpsize", + "Pad", + "BoxPad", + "Max", + "Min", + "Stretch" + ], + "enum": [ + "Crop", + "CropUpsize", + "Pad", + "BoxPad", + "Max", + "Min", + "Stretch" + ] + }, + "ImageFormat": { + "type": "string", + "description": "", + "x-enumNames": [ + "AVIF", + "BMP", + "GIF", + "JPEG", + "PNG", + "TGA", + "TIFF", + "WEBP" + ], + "enum": [ + "AVIF", + "BMP", + "GIF", + "JPEG", + "PNG", + "TGA", + "TIFF", + "WEBP" + ] + }, + "AssetFoldersDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "total", + "items", + "path" + ], + "properties": { + "total": { + "type": "integer", + "description": "The total number of assets.", + "format": "int64" + }, + "items": { + "type": "array", + "description": "The assets folders.", + "items": { + "$ref": "#/components/schemas/AssetFolderDto" + } + }, + "path": { + "type": "array", + "description": "The path to the current folder.", + "items": { + "$ref": "#/components/schemas/AssetFolderDto" + } + } + } + } + ] + }, + "AssetFolderDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "parentId", + "folderName", + "version" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the asset." + }, + "parentId": { + "type": "string", + "description": "The ID of the parent folder. Empty for files without parent." + }, + "folderName": { + "type": "string", + "description": "The folder name." + }, + "version": { + "type": "integer", + "description": "The version of the asset folder.", + "format": "int64" + } + } + } + ] + }, + "AssetFolderScope": { + "type": "string", + "description": "", + "x-enumNames": [ + "PathAndItems", + "Path", + "Items" + ], + "enum": [ + "PathAndItems", + "Path", + "Items" + ] + }, + "CreateAssetFolderDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "folderName" + ], + "properties": { + "folderName": { + "type": "string", + "description": "The name of the folder.", + "minLength": 1 + }, + "parentId": { + "type": "string", + "description": "The ID of the parent folder." + } + } + }, + "RenameAssetFolderDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "folderName" + ], + "properties": { + "folderName": { + "type": "string", + "description": "The name of the folder.", + "minLength": 1 + } + } + }, + "MoveAssetFolderDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "parentId": { + "type": "string", + "description": "The parent folder id." + } + } + }, + "RenameTagDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "tagName" + ], + "properties": { + "tagName": { + "type": "string", + "description": "The new name for the tag.", + "minLength": 1 + } + } + }, + "AssetsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "total", + "items" + ], + "properties": { + "total": { + "type": "integer", + "description": "The total number of assets.", + "format": "int64" + }, + "items": { + "type": "array", + "description": "The assets.", + "items": { + "$ref": "#/components/schemas/AssetDto" + } + } + } + } + ] + }, + "AssetDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "parentId", + "fileName", + "isProtected", + "slug", + "mimeType", + "fileType", + "metadataText", + "metadata", + "fileSize", + "fileVersion", + "type", + "createdBy", + "lastModifiedBy", + "created", + "lastModified", + "version", + "isImage" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the asset." + }, + "parentId": { + "type": "string", + "description": "The ID of the parent folder. Empty for files without parent." + }, + "fileName": { + "type": "string", + "description": "The file name." + }, + "fileHash": { + "type": "string", + "description": "The file hash.", + "nullable": true + }, + "isProtected": { + "type": "boolean", + "description": "True, when the asset is not public." + }, + "slug": { + "type": "string", + "description": "The slug." + }, + "mimeType": { + "type": "string", + "description": "The mime type." + }, + "fileType": { + "type": "string", + "description": "The file type." + }, + "metadataText": { + "type": "string", + "description": "The formatted text representation of the metadata." + }, + "editToken": { + "type": "string", + "description": "The UI token.", + "nullable": true + }, + "metadata": { + "type": "object", + "description": "The asset metadata.", + "additionalProperties": { + "description": "Any" + } + }, + "tags": { + "type": "array", + "description": "The asset tags.", + "nullable": true, + "items": { + "type": "string" + } + }, + "fileSize": { + "type": "integer", + "description": "The size of the file in bytes.", + "format": "int64" + }, + "fileVersion": { + "type": "integer", + "description": "The version of the file.", + "format": "int64" + }, + "type": { + "description": "The type of the asset.", + "$ref": "#/components/schemas/AssetType" + }, + "createdBy": { + "type": "string", + "description": "The user that has created the schema." + }, + "lastModifiedBy": { + "type": "string", + "description": "The user that has updated the asset." + }, + "created": { + "type": "string", + "description": "The date and time when the asset has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The date and time when the asset has been modified last.", + "format": "date-time" + }, + "version": { + "type": "integer", + "description": "The version of the asset.", + "format": "int64" + }, + "_meta": { + "description": "The metadata.", + "nullable": true, + "$ref": "#/components/schemas/AssetMeta" + }, + "isImage": { + "type": "boolean", + "description": "Determines of the created file is an image.", + "deprecated": true, + "x-deprecatedMessage": "Use 'type' field now." + }, + "pixelWidth": { + "type": "integer", + "description": "The width of the image in pixels if the asset is an image.", + "format": "int32", + "deprecated": true, + "x-deprecatedMessage": "Use 'metadata' field now.", + "nullable": true + }, + "pixelHeight": { + "type": "integer", + "description": "The height of the image in pixels if the asset is an image.", + "format": "int32", + "deprecated": true, + "x-deprecatedMessage": "Use 'metadata' field now.", + "nullable": true + } + } + } + ] + }, + "AssetMeta": { + "type": "object", + "additionalProperties": false, + "required": [ + "isDuplicate" + ], + "properties": { + "isDuplicate": { + "type": "string", + "description": "Indicates whether the asset is a duplicate." + } + } + }, + "BulkUpdateAssetsDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "jobs": { + "type": "array", + "description": "The contents to update or insert.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/BulkUpdateAssetsJobDto" + } + }, + "checkReferrers": { + "type": "boolean", + "description": "True to check referrers of deleted assets." + }, + "optimizeValidation": { + "type": "boolean", + "description": "True to turn off costly validation: Folder checks. Default: true." + }, + "doNotScript": { + "type": "boolean", + "description": "True to turn off scripting for faster inserts. Default: true." + } + } + }, + "BulkUpdateAssetsJobDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "string", + "description": "An optional ID of the asset to update." + }, + "type": { + "description": "The update type.", + "$ref": "#/components/schemas/BulkUpdateAssetType" + }, + "parentId": { + "type": "string", + "description": "The parent folder id." + }, + "fileName": { + "type": "string", + "description": "The new name of the asset.", + "nullable": true + }, + "slug": { + "type": "string", + "description": "The new slug of the asset.", + "nullable": true + }, + "isProtected": { + "type": "boolean", + "description": "True, when the asset is not public.", + "nullable": true + }, + "tags": { + "type": "array", + "description": "The new asset tags.", + "nullable": true, + "items": { + "type": "string" + } + }, + "metadata": { + "type": "object", + "description": "The asset metadata.", + "nullable": true, + "additionalProperties": { + "description": "Any" + } + }, + "permanent": { + "type": "boolean", + "description": "True to delete the asset permanently." + }, + "expectedVersion": { + "type": "integer", + "description": "The expected version.", + "format": "int64" + } + } + }, + "BulkUpdateAssetType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Annotate", + "Move", + "Delete" + ], + "enum": [ + "Annotate", + "Move", + "Delete" + ] + }, + "AnnotateAssetDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "fileName": { + "type": "string", + "description": "The new name of the asset.", + "nullable": true + }, + "slug": { + "type": "string", + "description": "The new slug of the asset.", + "nullable": true + }, + "isProtected": { + "type": "boolean", + "description": "True, when the asset is not public.", + "nullable": true + }, + "tags": { + "type": "array", + "description": "The new asset tags.", + "nullable": true, + "items": { + "type": "string" + } + }, + "metadata": { + "type": "object", + "description": "The asset metadata.", + "nullable": true, + "additionalProperties": { + "description": "Any" + } + } + } + }, + "MoveAssetDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "parentId": { + "type": "string", + "description": "The parent folder id." + } + } + }, + "AssetScriptsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "version" + ], + "properties": { + "query": { + "type": "string", + "description": "The script that is executed for each asset when querying assets.", + "nullable": true + }, + "queryPre": { + "type": "string", + "description": "The script that is executed for all assets when querying assets.", + "nullable": true + }, + "create": { + "type": "string", + "description": "The script that is executed when creating an asset.", + "nullable": true + }, + "update": { + "type": "string", + "description": "The script that is executed when updating a content.", + "nullable": true + }, + "annotate": { + "type": "string", + "description": "The script that is executed when annotating a content.", + "nullable": true + }, + "move": { + "type": "string", + "description": "The script that is executed when moving a content.", + "nullable": true + }, + "delete": { + "type": "string", + "description": "The script that is executed when deleting a content.", + "nullable": true + }, + "version": { + "type": "integer", + "description": "The version of the app.", + "format": "int64" + } + } + } + ] + }, + "UpdateAssetScriptsDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "query": { + "type": "string", + "description": "The script that is executed for each asset when querying assets.", + "nullable": true + }, + "queryPre": { + "type": "string", + "description": "The script that is executed for all assets when querying assets.", + "nullable": true + }, + "create": { + "type": "string", + "description": "The script that is executed when creating an asset.", + "nullable": true + }, + "update": { + "type": "string", + "description": "The script that is executed when updating a content.", + "nullable": true + }, + "annotate": { + "type": "string", + "description": "The script that is executed when annotating a content.", + "nullable": true + }, + "move": { + "type": "string", + "description": "The script that is executed when moving a content.", + "nullable": true + }, + "delete": { + "type": "string", + "description": "The script that is executed when deleting a content.", + "nullable": true + } + } + }, + "ClientsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The clients.", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + } + ] + }, + "ClientDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "secret", + "name", + "apiCallsLimit", + "apiTrafficLimit", + "allowAnonymous" + ], + "properties": { + "id": { + "type": "string", + "description": "The client id." + }, + "secret": { + "type": "string", + "description": "The client secret." + }, + "name": { + "type": "string", + "description": "The client name." + }, + "role": { + "type": "string", + "description": "The role of the client.", + "nullable": true + }, + "apiCallsLimit": { + "type": "integer", + "description": "The number of allowed api calls per month for this client.", + "format": "int64" + }, + "apiTrafficLimit": { + "type": "integer", + "description": "The number of allowed api traffic bytes per month for this client.", + "format": "int64" + }, + "allowAnonymous": { + "type": "boolean", + "description": "True to allow anonymous access without an access token for this client." + } + } + } + ] + }, + "CreateClientDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the client.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + } + } + }, + "UpdateClientDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "description": "The new display name of the client.", + "maxLength": 20, + "minLength": 0, + "nullable": true + }, + "role": { + "type": "string", + "description": "The role of the client.", + "nullable": true + }, + "allowAnonymous": { + "type": "boolean", + "description": "True to allow anonymous access without an access token for this client.", + "nullable": true + }, + "apiCallsLimit": { + "type": "integer", + "description": "The number of allowed api calls per month for this client.", + "format": "int64", + "nullable": true + }, + "apiTrafficLimit": { + "type": "integer", + "description": "The number of allowed api traffic bytes per month for this client.", + "format": "int64", + "nullable": true + } + } + }, + "AppLanguagesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The languages.", + "items": { + "$ref": "#/components/schemas/AppLanguageDto" + } + } + } + } + ] + }, + "AppLanguageDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "iso2Code", + "englishName", + "fallback", + "isMaster", + "isOptional" + ], + "properties": { + "iso2Code": { + "type": "string", + "description": "The iso code of the language." + }, + "englishName": { + "type": "string", + "description": "The english name of the language." + }, + "fallback": { + "type": "array", + "description": "The fallback languages.", + "items": { + "type": "string" + } + }, + "isMaster": { + "type": "boolean", + "description": "Indicates if the language is the master language." + }, + "isOptional": { + "type": "boolean", + "description": "Indicates if the language is optional." + } + } + } + ] + }, + "AddLanguageDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "language" + ], + "properties": { + "language": { + "type": "string", + "description": "The language to add." + } + } + }, + "UpdateLanguageDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "isMaster": { + "type": "boolean", + "description": "Set the value to true to make the language the master.", + "nullable": true + }, + "isOptional": { + "type": "boolean", + "description": "Set the value to true to make the language optional." + }, + "fallback": { + "type": "array", + "description": "Optional fallback languages.", + "nullable": true, + "items": { + "type": "string" + } + } + } + }, + "RolesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "description": "The roles.", + "items": { + "$ref": "#/components/schemas/RoleDto" + } + } + } + } + ] + }, + "RoleDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "numClients", + "numContributors", + "isDefaultRole", + "permissions", + "properties" + ], + "properties": { + "name": { + "type": "string", + "description": "The role name." + }, + "numClients": { + "type": "integer", + "description": "The number of clients with this role.", + "format": "int32" + }, + "numContributors": { + "type": "integer", + "description": "The number of contributors with this role.", + "format": "int32" + }, + "isDefaultRole": { + "type": "boolean", + "description": "Indicates if the role is an builtin default role." + }, + "permissions": { + "type": "array", + "description": "Associated list of permissions.", + "items": { + "type": "string" + } + }, + "properties": { + "type": "object", + "description": "Associated list of UI properties.", + "additionalProperties": { + "description": "Any" + } + } + } + } + ] + }, + "AddRoleDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The role name.", + "minLength": 1 + } + } + }, + "UpdateRoleDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "permissions" + ], + "properties": { + "permissions": { + "type": "array", + "description": "Associated list of permissions.", + "items": { + "type": "string" + } + }, + "properties": { + "type": "object", + "description": "Associated list of UI properties.", + "additionalProperties": { + "description": "Any" + } + } + } + }, + "AppDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "name", + "version", + "created", + "lastModified", + "permissions", + "canAccessApi", + "canAccessContent", + "roleProperties" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the app." + }, + "name": { + "type": "string", + "description": "The name of the app.", + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + }, + "label": { + "type": "string", + "description": "The optional label of the app.", + "nullable": true + }, + "description": { + "type": "string", + "description": "The optional description of the app.", + "nullable": true + }, + "version": { + "type": "integer", + "description": "The version of the app.", + "format": "int64" + }, + "created": { + "type": "string", + "description": "The timestamp when the app has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The timestamp when the app has been modified last.", + "format": "date-time" + }, + "teamId": { + "type": "string", + "description": "The ID of the team.", + "nullable": true + }, + "permissions": { + "type": "array", + "description": "The permission level of the user.", + "items": { + "type": "string" + } + }, + "canAccessApi": { + "type": "boolean", + "description": "Indicates if the user can access the api.", + "deprecated": true, + "x-deprecatedMessage": "Use 'roleProperties' field now." + }, + "canAccessContent": { + "type": "boolean", + "description": "Indicates if the user can access at least one content." + }, + "roleName": { + "type": "string", + "description": "The role name of the user.", + "nullable": true + }, + "roleProperties": { + "type": "object", + "description": "The properties from the role.", + "additionalProperties": { + "description": "Any" + } + } + } + } + ] + }, + "CreateAppDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the app.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + }, + "template": { + "type": "string", + "description": "Initialize the app with the inbuilt template.", + "nullable": true + } + } + }, + "UpdateAppDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "label": { + "type": "string", + "description": "The optional label of your app.", + "nullable": true + }, + "description": { + "type": "string", + "description": "The optional description of your app.", + "nullable": true + } + } + }, + "TransferToTeamDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "teamId": { + "type": "string", + "description": "The ID of the team.", + "nullable": true + } + } + }, + "AppSettingsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "patterns", + "editors", + "hideScheduler", + "hideDateTimeModeButton", + "version" + ], + "properties": { + "patterns": { + "type": "array", + "description": "The configured app patterns.", + "items": { + "$ref": "#/components/schemas/PatternDto" + } + }, + "editors": { + "type": "array", + "description": "The configured UI editors.", + "items": { + "$ref": "#/components/schemas/EditorDto" + } + }, + "hideScheduler": { + "type": "boolean", + "description": "Hide the scheduler for content items." + }, + "hideDateTimeModeButton": { + "type": "boolean", + "description": "Hide the datetime mode button." + }, + "version": { + "type": "integer", + "description": "The version of the app.", + "format": "int64" + } + } + } + ] + }, + "PatternDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "regex" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the suggestion." + }, + "regex": { + "type": "string", + "description": "The regex pattern." + }, + "message": { + "type": "string", + "description": "The regex message.", + "nullable": true + } + } + }, + "EditorDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "url" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the editor." + }, + "url": { + "type": "string", + "description": "The url to the editor." + } + } + }, + "UpdateAppSettingsDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "patterns", + "editors" + ], + "properties": { + "patterns": { + "type": "array", + "description": "The configured app patterns.", + "items": { + "$ref": "#/components/schemas/PatternDto" + } + }, + "editors": { + "type": "array", + "description": "The configured UI editors.", + "items": { + "$ref": "#/components/schemas/EditorDto" + } + }, + "hideScheduler": { + "type": "boolean", + "description": "Hide the scheduler for content items." + }, + "hideDateTimeModeButton": { + "type": "boolean", + "description": "Hide the datetime mode button." + } + } + }, + "WorkflowsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "items", + "errors" + ], + "properties": { + "items": { + "type": "array", + "description": "The workflow.", + "items": { + "$ref": "#/components/schemas/WorkflowDto" + } + }, + "errors": { + "type": "array", + "description": "The errros that should be fixed.", + "items": { + "type": "string" + } + } + } + } + ] + }, + "WorkflowDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "steps", + "initial" + ], + "properties": { + "id": { + "type": "string", + "description": "The workflow id." + }, + "name": { + "type": "string", + "description": "The name of the workflow.", + "nullable": true + }, + "steps": { + "type": "object", + "description": "The workflow steps.", + "additionalProperties": { + "$ref": "#/components/schemas/WorkflowStepDto" + } + }, + "schemaIds": { + "type": "array", + "description": "The schema ids.", + "nullable": true, + "items": { + "type": "string" + } + }, + "initial": { + "type": "string", + "description": "The initial step." + } + } + } + ] + }, + "WorkflowStepDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "transitions": { + "type": "object", + "description": "The transitions.", + "additionalProperties": { + "$ref": "#/components/schemas/WorkflowTransitionDto" + } + }, + "color": { + "type": "string", + "description": "The optional color.", + "nullable": true + }, + "validate": { + "type": "boolean", + "description": "True if the content should be validated when moving to this step." + }, + "noUpdate": { + "type": "boolean", + "description": "Indicates if updates should not be allowed." + }, + "noUpdateExpression": { + "type": "string", + "description": "Optional expression that must evaluate to true when you want to prevent updates.", + "nullable": true + }, + "noUpdateRoles": { + "type": "array", + "description": "Optional list of roles to restrict the updates for users with these roles.", + "nullable": true, + "items": { + "type": "string" + } + } + } + }, + "WorkflowTransitionDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "expression": { + "type": "string", + "description": "The optional expression.", + "nullable": true + }, + "roles": { + "type": "array", + "description": "The optional restricted role.", + "nullable": true, + "items": { + "type": "string" + } + } + } + }, + "AddWorkflowDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the workflow.", + "minLength": 1 + } + } + }, + "UpdateWorkflowDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "steps", + "initial" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the workflow.", + "nullable": true + }, + "steps": { + "type": "object", + "description": "The workflow steps.", + "additionalProperties": { + "$ref": "#/components/schemas/WorkflowStepDto" + } + }, + "schemaIds": { + "type": "array", + "description": "The schema ids.", + "nullable": true, + "items": { + "type": "string" + } + }, + "initial": { + "type": "string", + "description": "The initial step." + } + } + } + }, + "securitySchemes": { + "squidex-oauth-auth": { + "type": "openIdConnect", + "description": "Squidex uses OpenId Connect (OIDC) with the Client Credentials Flow (defined in OAuth 2.0 RFC 6749, section 4.4).\r\n\r\nThe OpenId Connect Client Credentials flow can be used for machine to machine authentication. In this grant a specific user is not authorized but rather the credentials are verified and a generic `access_token` is returned.\r\n\r\nThe `access_token` is a signed JSON Web Token (JWT) which contains expiry information. \r\n\r\nTo retrieve an access token you must pass the Client ID and Client Secret to the token endpoint to authenticate yourself and get a token:\r\n\r\n $ curl\r\n -X POST 'https://cloud.squidex.io/identity-server/connect/token' \r\n -H 'Content-Type: application/x-www-form-urlencoded' \r\n -d 'grant_type=client_credentials&\r\n client_id=[CLIENT_ID]&\r\n client_secret=[CLIENT_SECRET]&\r\n\t\t\tscope=squidex-api'\r\n\r\nPass this token to all consecutiv requests to the API via the `Authorization` header:\r\n\r\n Authorization: Bearer ", + "openIdConnectUrl": "https://cloud.squidex.io/identity-server/.well-known/openid-configuration" + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex-api" + ] + } + ], + "externalDocs": { + "url": "https://docs.squidex.io" + }, + "x-fern-sdk-variables": { + "appName": { + "type": "string" + } + } +} \ No newline at end of file From 09fd63ac54c12ec096e57efdd3e204b827ed342c Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 17:36:01 +0200 Subject: [PATCH 02/16] OpenAPI based SDK. --- .fernignore | 18 - fern/config.json | 4 - fern/fern.config.json | 4 - fern/generators.yml | 9 - generate.ps1 | 2 + openapi-config.yml | 9 + fern/openapi/openapi.json => openapi.json | 417 +- package-lock.json | 6545 +++++++++++++++++ package.json | 21 +- src/Client.ts | 178 - src/api/errors/BadRequestError.ts | 16 - src/api/errors/ConflictError.ts | 16 - src/api/errors/ContentTooLargeError.ts | 16 - src/api/errors/ForbiddenError.ts | 16 - src/api/errors/InternalServerError.ts | 16 - src/api/errors/NotFoundError.ts | 15 - src/api/errors/NotImplementedError.ts | 16 - src/api/errors/index.ts | 7 - src/api/index.ts | 3 - src/api/resources/apps/client/Client.ts | 2581 ------- src/api/resources/apps/client/index.ts | 1 - .../apps/client/requests/AddLanguageDto.ts | 8 - .../apps/client/requests/AddRoleDto.ts | 8 - .../apps/client/requests/AddWorkflowDto.ts | 8 - .../client/requests/AppsUploadImageRequest.ts | 5 - .../apps/client/requests/CreateAppDto.ts | 10 - .../apps/client/requests/CreateClientDto.ts | 8 - .../apps/client/requests/TransferToTeamDto.ts | 8 - .../apps/client/requests/UpdateAppDto.ts | 10 - .../client/requests/UpdateAppSettingsDto.ts | 16 - .../client/requests/UpdateAssetScriptsDto.ts | 20 - .../apps/client/requests/UpdateClientDto.ts | 16 - .../apps/client/requests/UpdateLanguageDto.ts | 12 - .../apps/client/requests/UpdateRoleDto.ts | 10 - .../apps/client/requests/UpdateWorkflowDto.ts | 16 - .../resources/apps/client/requests/index.ts | 14 - src/api/resources/apps/index.ts | 1 - src/api/resources/assets/client/Client.ts | 1657 ----- src/api/resources/assets/client/index.ts | 1 - .../client/requests/AnnotateAssetDto.ts | 16 - .../requests/AssetsDeleteAssetRequest.ts | 14 - .../AssetsGetAssetContentBySlugRequest.ts | 68 - .../requests/AssetsGetAssetContentRequest.ts | 68 - .../requests/AssetsGetAssetFoldersRequest.ts | 16 - .../requests/AssetsGetAssetsPostRequest.ts | 17 - .../client/requests/AssetsGetAssetsRequest.ts | 42 - .../client/requests/AssetsPostAssetRequest.ts | 18 - .../requests/AssetsPostUpsertAssetRequest.ts | 14 - .../requests/AssetsPutAssetContentRequest.ts | 5 - .../client/requests/BulkUpdateAssetsDto.ts | 16 - .../client/requests/CreateAssetFolderDto.ts | 10 - .../assets/client/requests/MoveAssetDto.ts | 8 - .../client/requests/MoveAssetFolderDto.ts | 8 - .../client/requests/RenameAssetFolderDto.ts | 8 - .../assets/client/requests/RenameTagDto.ts | 8 - .../resources/assets/client/requests/index.ts | 16 - src/api/resources/assets/index.ts | 1 - src/api/resources/backups/client/Client.ts | 454 -- src/api/resources/backups/client/index.ts | 1 - .../BackupsGetBackupContentV2Request.ts | 14 - .../client/requests/RestoreRequestDto.ts | 10 - .../backups/client/requests/index.ts | 2 - src/api/resources/backups/index.ts | 1 - src/api/resources/comments/client/Client.ts | 405 - src/api/resources/comments/client/index.ts | 1 - .../requests/CommentsGetCommentsRequest.ts | 10 - .../comments/client/requests/index.ts | 1 - src/api/resources/comments/index.ts | 1 - src/api/resources/contents/client/Client.ts | 2174 ------ src/api/resources/contents/client/index.ts | 1 - .../client/requests/AllContentsByPostDto.ts | 43 - .../client/requests/ChangeStatusDto.ts | 20 - .../ContentsBulkUpdateAllContentsRequest.ts | 13 - .../requests/ContentsCreateDraftRequest.ts | 14 - .../requests/ContentsDeleteContentRequest.ts | 14 - .../ContentsDeleteContentStatusRequest.ts | 14 - .../requests/ContentsDeleteVersionRequest.ts | 14 - .../requests/ContentsGetAllContentsRequest.ts | 54 - .../requests/ContentsGetContentRequest.ts | 26 - .../ContentsGetContentVersionRequest.ts | 14 - .../ContentsGetContentsPostRequest.ts | 33 - .../requests/ContentsGetContentsRequest.ts | 58 - .../ContentsGetGraphQlBatchRequest.ts | 22 - .../requests/ContentsGetGraphQlRequest.ts | 22 - .../requests/ContentsGetReferencesRequest.ts | 34 - .../requests/ContentsGetReferencingRequest.ts | 34 - .../requests/ContentsPatchContentRequest.ts | 17 - .../requests/ContentsPostContentRequest.ts | 29 - .../ContentsPostGraphQlBatchRequest.ts | 11 - .../requests/ContentsPostGraphQlRequest.ts | 11 - .../ContentsPostUpsertContentRequest.ts | 29 - .../requests/ContentsPutContentRequest.ts | 17 - .../client/requests/ImportContentsDto.ts | 16 - .../contents/client/requests/index.ts | 23 - src/api/resources/contents/index.ts | 1 - .../resources/diagnostics/client/Client.ts | 166 - src/api/resources/diagnostics/client/index.ts | 1 - src/api/resources/diagnostics/index.ts | 1 - .../resources/eventConsumers/client/Client.ts | 328 - .../resources/eventConsumers/client/index.ts | 1 - src/api/resources/eventConsumers/index.ts | 1 - src/api/resources/history/client/Client.ts | 184 - src/api/resources/history/client/index.ts | 1 - .../requests/HistoryGetAppHistoryRequest.ts | 10 - .../requests/HistoryGetTeamHistoryRequest.ts | 10 - .../history/client/requests/index.ts | 2 - src/api/resources/history/index.ts | 1 - src/api/resources/index.ts | 37 - src/api/resources/languages/client/Client.ts | 95 - src/api/resources/languages/client/index.ts | 1 - src/api/resources/languages/index.ts | 1 - src/api/resources/news/client/Client.ts | 105 - src/api/resources/news/client/index.ts | 1 - .../client/requests/NewsGetNewsRequest.ts | 10 - .../resources/news/client/requests/index.ts | 1 - src/api/resources/news/index.ts | 1 - .../resources/notifications/client/Client.ts | 181 - .../resources/notifications/client/index.ts | 1 - .../NotificationsGetNotificationsRequest.ts | 10 - .../notifications/client/requests/index.ts | 1 - src/api/resources/notifications/index.ts | 1 - src/api/resources/ping/client/Client.ts | 210 - src/api/resources/ping/client/index.ts | 1 - src/api/resources/ping/index.ts | 1 - src/api/resources/plans/client/Client.ts | 321 - src/api/resources/plans/client/index.ts | 1 - src/api/resources/plans/index.ts | 1 - src/api/resources/rules/client/Client.ts | 1380 ---- src/api/resources/rules/client/index.ts | 1 - .../client/requests/RulesGetEventsRequest.ts | 18 - .../client/requests/RulesPutRuleRunRequest.ts | 10 - .../rules/client/requests/UpdateRuleDto.ts | 16 - .../resources/rules/client/requests/index.ts | 3 - src/api/resources/rules/index.ts | 1 - src/api/resources/schemas/client/Client.ts | 2499 ------- src/api/resources/schemas/client/index.ts | 1 - .../client/requests/ChangeCategoryDto.ts | 8 - .../client/requests/ConfigureFieldRulesDto.ts | 10 - .../client/requests/ConfigureUiFieldsDto.ts | 10 - .../client/requests/CreateSchemaDto.ts | 14 - .../client/requests/SynchronizeSchemaDto.ts | 12 - .../client/requests/UpdateSchemaDto.ts | 20 - .../schemas/client/requests/index.ts | 6 - src/api/resources/schemas/index.ts | 1 - src/api/resources/search/client/Client.ts | 108 - src/api/resources/search/client/index.ts | 1 - .../requests/SearchGetSearchResultsRequest.ts | 10 - .../resources/search/client/requests/index.ts | 1 - src/api/resources/search/index.ts | 1 - src/api/resources/statistics/client/Client.ts | 508 -- src/api/resources/statistics/client/index.ts | 1 - src/api/resources/statistics/index.ts | 1 - src/api/resources/teams/client/Client.ts | 631 -- src/api/resources/teams/client/index.ts | 1 - .../teams/client/requests/CreateTeamDto.ts | 8 - .../teams/client/requests/UpdateTeamDto.ts | 8 - .../resources/teams/client/requests/index.ts | 2 - src/api/resources/teams/index.ts | 1 - src/api/resources/templates/client/Client.ts | 162 - src/api/resources/templates/client/index.ts | 1 - src/api/resources/templates/index.ts | 1 - .../resources/translations/client/Client.ts | 184 - .../resources/translations/client/index.ts | 1 - .../translations/client/requests/AskDto.ts | 8 - .../client/requests/TranslateDto.ts | 12 - .../translations/client/requests/index.ts | 2 - src/api/resources/translations/index.ts | 1 - .../resources/userManagement/client/Client.ts | 584 -- .../resources/userManagement/client/index.ts | 1 - .../client/requests/CreateUserDto.ts | 14 - .../client/requests/UpdateUserDto.ts | 14 - .../requests/UserManagementGetUsersRequest.ts | 18 - .../userManagement/client/requests/index.ts | 3 - src/api/resources/userManagement/index.ts | 1 - src/api/resources/users/client/Client.ts | 340 - src/api/resources/users/client/index.ts | 1 - .../users/client/requests/UpdateProfileDto.ts | 8 - .../client/requests/UsersGetUsersRequest.ts | 10 - .../resources/users/client/requests/index.ts | 2 - src/api/resources/users/index.ts | 1 - src/api/types/ActionTypeEnum.ts | 14 - src/api/types/AddFieldDto.ts | 14 - src/api/types/AlgoliaRuleActionDto.ts | 16 - src/api/types/AppDto.ts | 34 - src/api/types/AppLanguageDto.ts | 18 - src/api/types/AppLanguagesDto.ts | 10 - src/api/types/AppSettingsDto.ts | 18 - src/api/types/ArrayCalculatedDefaultValue.ts | 13 - src/api/types/ArrayFieldPropertiesDto.ts | 16 - src/api/types/AssetChangedRuleTriggerDto.ts | 8 - src/api/types/AssetDto.ts | 56 - src/api/types/AssetFolderDto.ts | 16 - src/api/types/AssetFolderScope.ts | 14 - src/api/types/AssetFoldersDto.ts | 14 - src/api/types/AssetMeta.ts | 8 - src/api/types/AssetPreviewMode.ts | 14 - src/api/types/AssetScriptsDto.ts | 24 - src/api/types/AssetType.ts | 15 - src/api/types/AssetsDto.ts | 12 - src/api/types/AssetsFieldPropertiesDto.ts | 50 - src/api/types/AssignContributorDto.ts | 12 - src/api/types/AzureQueueRuleActionDto.ts | 12 - src/api/types/BackupJobDto.ts | 20 - src/api/types/BackupJobsDto.ts | 10 - src/api/types/BooleanFieldEditor.ts | 13 - src/api/types/BooleanFieldPropertiesDto.ts | 16 - src/api/types/BulkResultDto.ts | 16 - src/api/types/BulkUpdateAssetType.ts | 14 - src/api/types/BulkUpdateAssetsJobDto.ts | 28 - src/api/types/BulkUpdateContentType.ts | 18 - src/api/types/BulkUpdateContentsDto.ts | 22 - src/api/types/BulkUpdateContentsJobDto.ts | 30 - src/api/types/CallsUsageDtoDto.ts | 26 - src/api/types/CallsUsagePerDateDto.ts | 14 - src/api/types/ChangePlanDto.ts | 8 - src/api/types/ClientDto.ts | 22 - src/api/types/ClientsDto.ts | 10 - src/api/types/CommentDto.ts | 16 - src/api/types/CommentRuleActionDto.ts | 10 - src/api/types/CommentRuleTriggerDto.ts | 8 - src/api/types/CommentsDto.ts | 16 - src/api/types/ComponentFieldPropertiesDto.ts | 8 - src/api/types/ComponentsFieldPropertiesDto.ts | 18 - src/api/types/ConfigurePreviewUrlsDto.ts | 5 - src/api/types/ContentChangedRuleTriggerDto.ts | 14 - src/api/types/ContentData.ts | 7 - src/api/types/ContentDto.ts | 45 - src/api/types/ContentFieldData.ts | 5 - src/api/types/ContentsDto.ts | 14 - src/api/types/ContributorDto.ts | 16 - src/api/types/ContributorsDto.ts | 14 - src/api/types/ContributorsMetadata.ts | 8 - src/api/types/CreateContentRuleActionDto.ts | 14 - src/api/types/CreateRuleDto.ts | 12 - src/api/types/CurrentStorageDto.ts | 10 - .../types/DateTimeCalculatedDefaultValue.ts | 13 - src/api/types/DateTimeFieldEditor.ts | 13 - src/api/types/DateTimeFieldPropertiesDto.ts | 22 - src/api/types/DeepDetectRuleActionDto.ts | 10 - src/api/types/DiscourseRuleActionDto.ts | 20 - src/api/types/EditorDto.ts | 10 - src/api/types/ElasticSearchRuleActionDto.ts | 18 - src/api/types/EmailRuleActionDto.ts | 22 - src/api/types/ErrorDto.ts | 18 - src/api/types/EventConsumerDto.ts | 20 - src/api/types/EventConsumersDto.ts | 10 - src/api/types/ExposedValues.ts | 5 - src/api/types/FastlyRuleActionDto.ts | 10 - src/api/types/FeatureDto.ts | 10 - src/api/types/FeaturesDto.ts | 12 - src/api/types/FieldDto.ts | 24 - src/api/types/FieldPropertiesDto.ts | 93 - src/api/types/FieldRuleAction.ts | 14 - src/api/types/FieldRuleDto.ts | 14 - src/api/types/GeolocationFieldEditor.ts | 5 - .../types/GeolocationFieldPropertiesDto.ts | 10 - src/api/types/HistoryEventDto.ts | 18 - src/api/types/ImageFormat.ts | 19 - src/api/types/JobStatus.ts | 15 - src/api/types/JsonFieldPropertiesDto.ts | 8 - src/api/types/LanguageDto.ts | 12 - .../types/LocalizedValueOfNullableBoolean.ts | 5 - .../types/LocalizedValueOfNullableDouble.ts | 5 - .../types/LocalizedValueOfNullableInstant.ts | 5 - .../LocalizedValueOfReadonlyListOfString.ts | 5 - src/api/types/LocalizedValueOfString.ts | 5 - src/api/types/LogDownloadDto.ts | 8 - src/api/types/ManualRuleTriggerDto.ts | 5 - src/api/types/MediumRuleActionDto.ts | 20 - src/api/types/NestedFieldDto.ts | 20 - src/api/types/NotificationRuleActionDto.ts | 14 - src/api/types/NumberFieldEditor.ts | 15 - src/api/types/NumberFieldPropertiesDto.ts | 24 - src/api/types/OpenSearchRuleActionDto.ts | 18 - src/api/types/PatternDto.ts | 12 - src/api/types/PlanChangedDto.ts | 8 - src/api/types/PlanDto.ts | 28 - src/api/types/PlansDto.ts | 20 - src/api/types/PlansLockedReason.ts | 15 - src/api/types/PrerenderRuleActionDto.ts | 10 - src/api/types/PropertyPath.ts | 5 - src/api/types/QueryDto.ts | 13 - src/api/types/QueryJsonDto.ts | 15 - src/api/types/ReferencesFieldEditor.ts | 16 - src/api/types/ReferencesFieldPropertiesDto.ts | 28 - src/api/types/ReferralInfo.ts | 9 - src/api/types/ReorderFieldsDto.ts | 8 - src/api/types/ResizeMode.ts | 18 - src/api/types/Resource.ts | 10 - src/api/types/ResourceLink.ts | 12 - src/api/types/ResourcesDto.ts | 7 - src/api/types/RestoreJobDto.ts | 18 - src/api/types/RoleDto.ts | 20 - src/api/types/RolesDto.ts | 10 - src/api/types/RuleActionDto.ts | 104 - src/api/types/RuleDto.ts | 34 - src/api/types/RuleElementDto.ts | 22 - src/api/types/RuleElementPropertyDto.ts | 22 - src/api/types/RuleEventDto.ts | 26 - src/api/types/RuleEventsDto.ts | 12 - src/api/types/RuleFieldEditor.ts | 29 - src/api/types/RuleJobResult.ts | 16 - src/api/types/RuleResult.ts | 15 - src/api/types/RuleTriggerDto.ts | 39 - src/api/types/RulesDto.ts | 12 - src/api/types/ScheduleJobDto.ts | 16 - src/api/types/SchemaChangedRuleTriggerDto.ts | 8 - src/api/types/SchemaCondition.ts | 8 - src/api/types/SchemaDto.ts | 44 - src/api/types/SchemaPropertiesDto.ts | 20 - src/api/types/SchemaScriptsDto.ts | 18 - src/api/types/SchemaType.ts | 14 - src/api/types/SchemasDto.ts | 10 - src/api/types/ScriptRuleActionDto.ts | 8 - src/api/types/SearchResultDto.ts | 14 - src/api/types/SearchResultType.ts | 17 - src/api/types/SignalRRuleActionDto.ts | 24 - src/api/types/SimulatedRuleEventDto.ts | 24 - src/api/types/SimulatedRuleEventsDto.ts | 12 - src/api/types/SkipReason.ts | 33 - src/api/types/SlackRuleActionDto.ts | 10 - src/api/types/SortNode.ts | 10 - src/api/types/SortOrder.ts | 13 - src/api/types/StatusInfoDto.ts | 10 - src/api/types/StorageUsagePerDateDto.ts | 12 - src/api/types/StringContentType.ts | 14 - src/api/types/StringFieldEditor.ts | 31 - src/api/types/StringFieldPropertiesDto.ts | 46 - src/api/types/TagsFieldEditor.ts | 14 - src/api/types/TagsFieldPropertiesDto.ts | 22 - src/api/types/TeamDto.ts | 20 - src/api/types/TemplateDetailsDto.ts | 10 - src/api/types/TemplateDto.ts | 16 - src/api/types/TemplatesDto.ts | 10 - src/api/types/TranslationDto.ts | 14 - src/api/types/TranslationStatus.ts | 23 - src/api/types/TweetRuleActionDto.ts | 12 - src/api/types/TypesenseRuleActionDto.ts | 16 - src/api/types/UiFieldEditor.ts | 5 - src/api/types/UiFieldPropertiesDto.ts | 10 - src/api/types/UpdateFieldDto.ts | 10 - src/api/types/UpdateSettingDto.ts | 7 - src/api/types/UpsertCommentDto.ts | 10 - src/api/types/UpsertSchemaDto.ts | 26 - src/api/types/UpsertSchemaFieldDto.ts | 22 - src/api/types/UpsertSchemaNestedFieldDto.ts | 18 - src/api/types/UsageRuleTriggerDto.ts | 10 - src/api/types/UserDto.ts | 18 - src/api/types/UserProperty.ts | 10 - src/api/types/UsersDto.ts | 12 - src/api/types/WebhookMethod.ts | 16 - src/api/types/WebhookRuleActionDto.ts | 20 - src/api/types/WorkflowDto.ts | 18 - src/api/types/WorkflowStepDto.ts | 20 - src/api/types/WorkflowTransitionDto.ts | 10 - src/api/types/WorkflowsDto.ts | 12 - src/api/types/index.ts | 176 - src/core/auth/BasicAuth.ts | 31 - src/core/auth/BearerToken.ts | 15 - src/core/auth/index.ts | 2 - src/core/fetcher/APIResponse.ts | 11 - src/core/fetcher/Fetcher.ts | 134 - src/core/fetcher/Supplier.ts | 11 - src/core/fetcher/index.ts | 4 - .../getFormDataContentLength.ts | 13 - src/core/form-data-utils/index.ts | 1 - src/core/index.ts | 5 - src/core/schemas/Schema.ts | 93 - src/core/schemas/builders/date/date.ts | 65 - src/core/schemas/builders/date/index.ts | 1 - src/core/schemas/builders/enum/enum.ts | 43 - src/core/schemas/builders/enum/index.ts | 1 - src/core/schemas/builders/index.ts | 13 - src/core/schemas/builders/lazy/index.ts | 3 - src/core/schemas/builders/lazy/lazy.ts | 34 - src/core/schemas/builders/lazy/lazyObject.ts | 20 - src/core/schemas/builders/list/index.ts | 1 - src/core/schemas/builders/list/list.ts | 74 - src/core/schemas/builders/literals/index.ts | 1 - .../builders/literals/stringLiteral.ts | 29 - .../object-like/getObjectLikeUtils.ts | 79 - .../schemas/builders/object-like/index.ts | 2 - .../schemas/builders/object-like/types.ts | 11 - src/core/schemas/builders/object/index.ts | 17 - src/core/schemas/builders/object/object.ts | 333 - src/core/schemas/builders/object/property.ts | 23 - src/core/schemas/builders/object/types.ts | 72 - src/core/schemas/builders/primitives/any.ts | 4 - .../schemas/builders/primitives/boolean.ts | 25 - src/core/schemas/builders/primitives/index.ts | 5 - .../schemas/builders/primitives/number.ts | 25 - .../schemas/builders/primitives/string.ts | 25 - .../schemas/builders/primitives/unknown.ts | 4 - src/core/schemas/builders/record/index.ts | 2 - src/core/schemas/builders/record/record.ts | 131 - src/core/schemas/builders/record/types.ts | 17 - .../builders/schema-utils/JsonError.ts | 9 - .../builders/schema-utils/ParseError.ts | 9 - .../builders/schema-utils/getSchemaUtils.ts | 99 - .../schemas/builders/schema-utils/index.ts | 4 - .../schema-utils/stringifyValidationErrors.ts | 8 - src/core/schemas/builders/set/index.ts | 1 - src/core/schemas/builders/set/set.ts | 43 - .../builders/undiscriminated-union/index.ts | 6 - .../builders/undiscriminated-union/types.ts | 10 - .../undiscriminatedUnion.ts | 61 - .../schemas/builders/union/discriminant.ts | 14 - src/core/schemas/builders/union/index.ts | 10 - src/core/schemas/builders/union/types.ts | 26 - src/core/schemas/builders/union/union.ts | 173 - src/core/schemas/index.ts | 2 - src/core/schemas/utils/MaybePromise.ts | 1 - .../addQuestionMarksToNullableProperties.ts | 15 - .../utils/createIdentitySchemaCreator.ts | 21 - src/core/schemas/utils/entries.ts | 3 - src/core/schemas/utils/filterObject.ts | 10 - .../utils/getErrorMessageForIncorrectType.ts | 21 - src/core/schemas/utils/isPlainObject.ts | 17 - src/core/schemas/utils/keys.ts | 3 - src/core/schemas/utils/maybeSkipValidation.ts | 39 - src/core/schemas/utils/partition.ts | 12 - .../streaming-fetcher/StreamingFetcher.ts | 97 - src/core/streaming-fetcher/getHeader.ts | 10 - src/core/streaming-fetcher/index.ts | 3 - src/errors/SquidexError.ts | 45 - src/errors/SquidexTimeoutError.ts | 10 - src/errors/index.ts | 2 - src/generated/.openapi-generator-ignore | 23 + src/generated/.openapi-generator/FILES | 231 + src/generated/.openapi-generator/VERSION | 1 + src/generated/apis/AppsApi.ts | 1954 +++++ src/generated/apis/AssetsApi.ts | 1564 ++++ src/generated/apis/BackupsApi.ts | 416 ++ src/generated/apis/ContentsApi.ts | 2331 ++++++ src/generated/apis/DiagnosticsApi.ts | 117 + src/generated/apis/EventConsumersApi.ts | 244 + src/generated/apis/HistoryApi.ts | 151 + src/generated/apis/JobsApi.ts | 197 + src/generated/apis/LanguagesApi.ts | 85 + src/generated/apis/NewsApi.ts | 92 + src/generated/apis/PingApi.ts | 167 + src/generated/apis/PlansApi.ts | 266 + src/generated/apis/RulesApi.ts | 1043 +++ src/generated/apis/SchemasApi.ts | 2104 ++++++ src/generated/apis/SearchApi.ts | 92 + src/generated/apis/StatisticsApi.ts | 458 ++ src/generated/apis/TeamsApi.ts | 683 ++ src/generated/apis/TemplatesApi.ts | 138 + src/generated/apis/TranslationsApi.ts | 101 + src/generated/apis/UserManagementApi.ts | 445 ++ src/generated/apis/UsersApi.ts | 302 + src/generated/apis/index.ts | 23 + src/generated/index.ts | 5 + src/generated/models/ActionTypeEnum.ts | 50 + src/generated/models/AddFieldDto.ts | 84 + src/generated/models/AddLanguageDto.ts | 60 + src/generated/models/AddRoleDto.ts | 60 + src/generated/models/AddWorkflowDto.ts | 60 + src/generated/models/AlgoliaRuleActionDto.ts | 101 + src/generated/models/AllContentsByPostDto.ts | 107 + src/generated/models/AnnotateAssetDto.ts | 91 + src/generated/models/AppDto.ts | 181 + src/generated/models/AppLanguageDto.ts | 112 + src/generated/models/AppLanguagesDto.ts | 82 + src/generated/models/AppSettingsDto.ts | 124 + .../models/ArrayCalculatedDefaultValue.ts | 49 + .../models/ArrayFieldPropertiesDto.ts | 98 + .../models/AssetChangedRuleTriggerDto.ts | 66 + src/generated/models/AssetDto.ts | 294 + src/generated/models/AssetFolderDto.ts | 103 + src/generated/models/AssetFolderScope.ts | 50 + src/generated/models/AssetFoldersDto.ts | 100 + src/generated/models/AssetMeta.ts | 60 + src/generated/models/AssetPreviewMode.ts | 50 + src/generated/models/AssetScriptsDto.ts | 132 + src/generated/models/AssetType.ts | 51 + src/generated/models/AssetsDto.ts | 91 + .../models/AssetsFieldPropertiesDto.ts | 242 + src/generated/models/AssignContributorDto.ts | 76 + src/generated/models/AuthSchemeDto.ts | 104 + src/generated/models/AuthSchemeResponseDto.ts | 81 + src/generated/models/AuthSchemeValueDto.ts | 66 + .../models/AzureQueueRuleActionDto.ts | 84 + src/generated/models/BackupJobDto.ts | 128 + src/generated/models/BackupJobsDto.ts | 82 + src/generated/models/BooleanFieldEditor.ts | 49 + .../models/BooleanFieldPropertiesDto.ts | 98 + src/generated/models/BulkResultDto.ts | 92 + src/generated/models/BulkUpdateAssetType.ts | 50 + src/generated/models/BulkUpdateAssetsDto.ts | 90 + .../models/BulkUpdateAssetsJobDto.ts | 140 + src/generated/models/BulkUpdateContentType.ts | 55 + src/generated/models/BulkUpdateContentsDto.ts | 125 + .../models/BulkUpdateContentsJobDto.ts | 162 + src/generated/models/CallsUsageDtoDto.ts | 139 + src/generated/models/CallsUsagePerDateDto.ts | 87 + src/generated/models/ChangeCategoryDto.ts | 59 + src/generated/models/ChangePlanDto.ts | 60 + src/generated/models/ChangeStatusDto.ts | 76 + src/generated/models/ClientDto.ts | 129 + src/generated/models/ClientsDto.ts | 82 + src/generated/models/CommentRuleActionDto.ts | 75 + src/generated/models/CommentRuleTriggerDto.ts | 66 + .../models/ComponentFieldPropertiesDto.ts | 66 + .../models/ComponentsFieldPropertiesDto.ts | 106 + .../models/ConfigureFieldRulesDto.ts | 66 + src/generated/models/ConfigureUIFieldsDto.ts | 67 + .../models/ContentChangedRuleTriggerDto.ts | 89 + src/generated/models/ContentDto.ts | 242 + src/generated/models/ContentsDto.ts | 106 + src/generated/models/ContributorDto.ts | 102 + src/generated/models/ContributorsDto.ts | 105 + src/generated/models/ContributorsMetadata.ts | 60 + src/generated/models/CreateAppDto.ts | 68 + src/generated/models/CreateAssetFolderDto.ts | 68 + src/generated/models/CreateClientDto.ts | 60 + .../models/CreateContentRuleActionDto.ts | 94 + src/generated/models/CreateRuleDto.ts | 82 + src/generated/models/CreateSchemaDto.ts | 182 + src/generated/models/CreateTeamDto.ts | 60 + src/generated/models/CreateUserDto.ts | 87 + src/generated/models/CurrentStorageDto.ts | 69 + .../models/DateTimeCalculatedDefaultValue.ts | 49 + src/generated/models/DateTimeFieldEditor.ts | 49 + .../models/DateTimeFieldPropertiesDto.ts | 128 + .../models/DiscourseRuleActionDto.ts | 118 + src/generated/models/EditorDto.ts | 69 + .../models/ElasticSearchRuleActionDto.ts | 108 + src/generated/models/EmailRuleActionDto.ts | 130 + src/generated/models/ErrorDto.ts | 101 + src/generated/models/EventConsumerDto.ts | 119 + src/generated/models/EventConsumersDto.ts | 82 + src/generated/models/FastlyRuleActionDto.ts | 76 + src/generated/models/FeatureDto.ts | 69 + src/generated/models/FeaturesDto.ts | 76 + src/generated/models/FieldDto.ts | 150 + src/generated/models/FieldPropertiesDto.ts | 226 + src/generated/models/FieldRuleAction.ts | 50 + src/generated/models/FieldRuleDto.ts | 86 + .../models/GeolocationFieldEditor.ts | 48 + .../models/GeolocationFieldPropertiesDto.ts | 74 + src/generated/models/HistoryEventDto.ts | 105 + src/generated/models/ImageFormat.ts | 55 + src/generated/models/ImportContentsDto.ts | 85 + src/generated/models/JobDto.ts | 161 + src/generated/models/JobLogMessageDto.ts | 69 + src/generated/models/JobStatus.ts | 52 + src/generated/models/JobsDto.ts | 82 + .../models/JsonFieldPropertiesDto.ts | 66 + src/generated/models/LanguageDto.ts | 78 + src/generated/models/LogDownloadDto.ts | 59 + src/generated/models/ManualRuleTriggerDto.ts | 48 + src/generated/models/MediumRuleActionDto.ts | 118 + src/generated/models/MoveAssetDto.ts | 59 + src/generated/models/MoveAssetFolderDto.ts | 59 + src/generated/models/NestedFieldDto.ts | 127 + .../models/NotificationRuleActionDto.ts | 92 + src/generated/models/NumberFieldEditor.ts | 51 + .../models/NumberFieldPropertiesDto.ts | 130 + .../models/OpenSearchRuleActionDto.ts | 108 + src/generated/models/PatternDto.ts | 77 + src/generated/models/PlanChangedDto.ts | 59 + src/generated/models/PlanDto.ts | 146 + src/generated/models/PlansDto.ts | 122 + src/generated/models/PlansLockedReason.ts | 51 + .../models/PrerenderRuleActionDto.ts | 76 + src/generated/models/QueryDto.ts | 83 + src/generated/models/QueryJsonDto.ts | 118 + src/generated/models/ReferencesFieldEditor.ts | 53 + .../models/ReferencesFieldPropertiesDto.ts | 146 + src/generated/models/ReferralInfo.ts | 78 + src/generated/models/RenameAssetFolderDto.ts | 60 + src/generated/models/RenameTagDto.ts | 60 + src/generated/models/ReorderFieldsDto.ts | 60 + src/generated/models/ResizeMode.ts | 54 + src/generated/models/Resource.ts | 67 + src/generated/models/ResourceLink.ts | 77 + src/generated/models/ResourcesDto.ts | 67 + src/generated/models/RestoreJobDto.ts | 104 + src/generated/models/RestoreRequestDto.ts | 68 + .../models/RichTextFieldPropertiesDto.ts | 130 + src/generated/models/RoleDto.ts | 121 + src/generated/models/RolesDto.ts | 82 + src/generated/models/RuleActionDto.ts | 190 + src/generated/models/RuleDto.ts | 195 + src/generated/models/RuleElementDto.ts | 117 + .../models/RuleElementPropertyDto.ts | 121 + src/generated/models/RuleEventDto.ts | 160 + src/generated/models/RuleEventsDto.ts | 91 + src/generated/models/RuleFieldEditor.ts | 56 + src/generated/models/RuleJobResult.ts | 52 + src/generated/models/RuleResult.ts | 51 + src/generated/models/RuleTriggerDto.ts | 106 + src/generated/models/RulesDto.ts | 90 + src/generated/models/ScheduleJobDto.ts | 96 + .../models/SchemaChangedRuleTriggerDto.ts | 66 + src/generated/models/SchemaCondition.ts | 68 + src/generated/models/SchemaDto.ts | 261 + src/generated/models/SchemaPropertiesDto.ts | 124 + src/generated/models/SchemaScriptsDto.ts | 99 + src/generated/models/SchemaType.ts | 50 + src/generated/models/SchemasDto.ts | 82 + src/generated/models/ScriptRuleActionDto.ts | 67 + src/generated/models/SearchResultDto.ts | 101 + src/generated/models/SearchResultType.ts | 53 + src/generated/models/SignalRRuleActionDto.ts | 117 + src/generated/models/SimulatedRuleEventDto.ts | 135 + .../models/SimulatedRuleEventsDto.ts | 91 + src/generated/models/SkipReason.ts | 58 + src/generated/models/SlackRuleActionDto.ts | 76 + src/generated/models/SortNode.ts | 78 + src/generated/models/SortOrder.ts | 49 + src/generated/models/StatusInfoDto.ts | 69 + .../models/StorageUsagePerDateDto.ts | 78 + src/generated/models/StringContentType.ts | 50 + src/generated/models/StringFieldEditor.ts | 57 + .../models/StringFieldPropertiesDto.ts | 232 + src/generated/models/SynchronizeSchemaDto.ts | 164 + src/generated/models/TagsFieldEditor.ts | 50 + .../models/TagsFieldPropertiesDto.ts | 122 + src/generated/models/TeamDto.ts | 120 + src/generated/models/TemplateDetailsDto.ts | 76 + src/generated/models/TemplateDto.ts | 103 + src/generated/models/TemplatesDto.ts | 82 + src/generated/models/TransferToTeamDto.ts | 59 + src/generated/models/TranslateDto.ts | 77 + src/generated/models/TranslationDto.ts | 86 + src/generated/models/TranslationStatus.ts | 53 + src/generated/models/TweetRuleActionDto.ts | 85 + .../models/TypesenseRuleActionDto.ts | 101 + src/generated/models/UIFieldEditor.ts | 48 + src/generated/models/UIFieldPropertiesDto.ts | 74 + src/generated/models/UpdateAppDto.ts | 67 + src/generated/models/UpdateAppSettingsDto.ts | 98 + src/generated/models/UpdateAssetScriptsDto.ts | 107 + src/generated/models/UpdateClientDto.ts | 91 + src/generated/models/UpdateFieldDto.ts | 67 + src/generated/models/UpdateLanguageDto.ts | 75 + src/generated/models/UpdateProfileDto.ts | 59 + src/generated/models/UpdateRoleDto.ts | 68 + src/generated/models/UpdateRuleDto.ts | 96 + src/generated/models/UpdateSchemaDto.ts | 107 + src/generated/models/UpdateSettingDto.ts | 60 + src/generated/models/UpdateTeamDto.ts | 60 + src/generated/models/UpdateUserDto.ts | 86 + src/generated/models/UpdateWorkflowDto.ts | 92 + src/generated/models/UpsertSchemaDto.ts | 148 + src/generated/models/UpsertSchemaFieldDto.ts | 122 + .../models/UpsertSchemaNestedFieldDto.ts | 100 + src/generated/models/UsageRuleTriggerDto.ts | 75 + src/generated/models/UserDto.ts | 112 + src/generated/models/UserProperty.ts | 69 + src/generated/models/UsersDto.ts | 91 + src/generated/models/WebhookMethod.ts | 52 + src/generated/models/WebhookRuleActionDto.ts | 116 + src/generated/models/WorkflowDto.ts | 116 + src/generated/models/WorkflowStepDto.ts | 106 + src/generated/models/WorkflowTransitionDto.ts | 67 + src/generated/models/WorkflowsDto.ts | 91 + src/generated/models/index.ts | 208 + src/generated/runtime.ts | 422 ++ src/index.ts | 7 +- src/serialization/index.ts | 2 - .../resources/apps/client/getApps.ts | 14 - .../resources/apps/client/getPermissions.ts | 13 - .../resources/apps/client/getTeamApps.ts | 14 - .../resources/apps/client/index.ts | 4 - .../apps/client/requests/AddLanguageDto.ts | 18 - .../apps/client/requests/AddRoleDto.ts | 18 - .../apps/client/requests/AddWorkflowDto.ts | 18 - .../apps/client/requests/CreateAppDto.ts | 20 - .../apps/client/requests/CreateClientDto.ts | 18 - .../apps/client/requests/TransferToTeamDto.ts | 20 - .../apps/client/requests/UpdateAppDto.ts | 20 - .../client/requests/UpdateAppSettingsDto.ts | 30 - .../client/requests/UpdateAssetScriptsDto.ts | 32 - .../apps/client/requests/UpdateClientDto.ts | 26 - .../apps/client/requests/UpdateLanguageDto.ts | 24 - .../apps/client/requests/UpdateRoleDto.ts | 20 - .../apps/client/requests/UpdateWorkflowDto.ts | 29 - .../resources/apps/client/requests/index.ts | 13 - src/serialization/resources/apps/index.ts | 1 - .../assets/client/bulkUpdateAssets.ts | 16 - .../resources/assets/client/getTags.ts | 15 - .../resources/assets/client/index.ts | 4 - .../resources/assets/client/putTag.ts | 15 - .../client/requests/AnnotateAssetDto.ts | 26 - .../client/requests/BulkUpdateAssetsDto.ts | 28 - .../client/requests/CreateAssetFolderDto.ts | 22 - .../assets/client/requests/MoveAssetDto.ts | 18 - .../client/requests/MoveAssetFolderDto.ts | 20 - .../client/requests/RenameAssetFolderDto.ts | 20 - .../assets/client/requests/RenameTagDto.ts | 18 - .../resources/assets/client/requests/index.ts | 7 - src/serialization/resources/assets/index.ts | 1 - .../resources/backups/client/index.ts | 1 - .../client/requests/RestoreRequestDto.ts | 22 - .../backups/client/requests/index.ts | 1 - src/serialization/resources/backups/index.ts | 1 - .../comments/client/getWatchingUsers.ts | 13 - .../resources/comments/client/index.ts | 1 - src/serialization/resources/comments/index.ts | 1 - .../contents/client/bulkUpdateAllContents.ts | 16 - .../contents/client/bulkUpdateContents.ts | 16 - .../resources/contents/client/index.ts | 8 - .../resources/contents/client/patchContent.ts | 19 - .../resources/contents/client/postContent.ts | 19 - .../resources/contents/client/postContents.ts | 16 - .../contents/client/postUpsertContent.ts | 19 - .../resources/contents/client/putContent.ts | 19 - .../client/requests/AllContentsByPostDto.ts | 32 - .../client/requests/ChangeStatusDto.ts | 24 - .../client/requests/ImportContentsDto.ts | 26 - .../contents/client/requests/index.ts | 3 - src/serialization/resources/contents/index.ts | 1 - .../resources/history/client/getAppHistory.ts | 16 - .../history/client/getTeamHistory.ts | 16 - .../resources/history/client/index.ts | 2 - src/serialization/resources/history/index.ts | 1 - src/serialization/resources/index.ts | 25 - .../languages/client/getLanguages.ts | 16 - .../resources/languages/client/index.ts | 1 - .../resources/languages/index.ts | 1 - .../resources/rules/client/getActions.ts | 19 - .../resources/rules/client/getEventTypes.ts | 13 - .../resources/rules/client/index.ts | 3 - .../rules/client/requests/UpdateRuleDto.ts | 24 - .../resources/rules/client/requests/index.ts | 1 - src/serialization/resources/rules/index.ts | 1 - .../resources/schemas/client/index.ts | 2 - .../schemas/client/putPreviewUrls.ts | 15 - .../client/requests/ChangeCategoryDto.ts | 20 - .../client/requests/ConfigureFieldRulesDto.ts | 22 - .../client/requests/ConfigureUiFieldsDto.ts | 22 - .../client/requests/CreateSchemaDto.ts | 24 - .../client/requests/SynchronizeSchemaDto.ts | 24 - .../client/requests/UpdateSchemaDto.ts | 30 - .../schemas/client/requests/index.ts | 6 - src/serialization/resources/schemas/index.ts | 1 - .../search/client/getSearchResults.ts | 16 - .../resources/search/client/index.ts | 1 - src/serialization/resources/search/index.ts | 1 - .../statistics/client/getStorageSizes.ts | 18 - .../client/getStorageSizesForTeam.ts | 18 - .../resources/statistics/client/index.ts | 2 - .../resources/statistics/index.ts | 1 - .../resources/teams/client/getTeams.ts | 14 - .../resources/teams/client/index.ts | 2 - .../teams/client/requests/CreateTeamDto.ts | 18 - .../teams/client/requests/UpdateTeamDto.ts | 18 - .../resources/teams/client/requests/index.ts | 2 - src/serialization/resources/teams/index.ts | 1 - .../resources/translations/client/index.ts | 2 - .../translations/client/postQuestion.ts | 13 - .../translations/client/requests/AskDto.ts | 17 - .../client/requests/TranslateDto.ts | 22 - .../translations/client/requests/index.ts | 2 - .../resources/translations/index.ts | 1 - .../resources/userManagement/client/index.ts | 1 - .../client/requests/CreateUserDto.ts | 24 - .../client/requests/UpdateUserDto.ts | 24 - .../userManagement/client/requests/index.ts | 2 - .../resources/userManagement/index.ts | 1 - .../resources/users/client/getUsers.ts | 14 - .../resources/users/client/index.ts | 2 - .../users/client/requests/UpdateProfileDto.ts | 20 - .../resources/users/client/requests/index.ts | 1 - src/serialization/resources/users/index.ts | 1 - src/serialization/types/ActionTypeEnum.ts | 14 - src/serialization/types/AddFieldDto.ts | 22 - .../types/AlgoliaRuleActionDto.ts | 28 - src/serialization/types/AppDto.ts | 43 - src/serialization/types/AppLanguageDto.ts | 28 - src/serialization/types/AppLanguagesDto.ts | 22 - src/serialization/types/AppSettingsDto.ts | 30 - .../types/ArrayCalculatedDefaultValue.ts | 16 - .../types/ArrayFieldPropertiesDto.ts | 28 - .../types/AssetChangedRuleTriggerDto.ts | 20 - src/serialization/types/AssetDto.ts | 68 - src/serialization/types/AssetFolderDto.ts | 26 - src/serialization/types/AssetFolderScope.ts | 14 - src/serialization/types/AssetFoldersDto.ts | 26 - src/serialization/types/AssetMeta.ts | 18 - src/serialization/types/AssetPreviewMode.ts | 14 - src/serialization/types/AssetScriptsDto.ts | 36 - src/serialization/types/AssetType.ts | 14 - src/serialization/types/AssetsDto.ts | 22 - .../types/AssetsFieldPropertiesDto.ts | 62 - .../types/AssignContributorDto.ts | 24 - .../types/AzureQueueRuleActionDto.ts | 24 - src/serialization/types/BackupJobDto.ts | 30 - src/serialization/types/BackupJobsDto.ts | 22 - src/serialization/types/BooleanFieldEditor.ts | 16 - .../types/BooleanFieldPropertiesDto.ts | 26 - src/serialization/types/BulkResultDto.ts | 24 - .../types/BulkUpdateAssetType.ts | 16 - .../types/BulkUpdateAssetsJobDto.ts | 38 - .../types/BulkUpdateContentType.ts | 16 - .../types/BulkUpdateContentsDto.ts | 34 - .../types/BulkUpdateContentsJobDto.ts | 40 - src/serialization/types/CallsUsageDtoDto.ts | 39 - .../types/CallsUsagePerDateDto.ts | 26 - src/serialization/types/ChangePlanDto.ts | 18 - src/serialization/types/ClientDto.ts | 32 - src/serialization/types/ClientsDto.ts | 20 - src/serialization/types/CommentDto.ts | 26 - .../types/CommentRuleActionDto.ts | 22 - .../types/CommentRuleTriggerDto.ts | 20 - src/serialization/types/CommentsDto.ts | 28 - .../types/ComponentFieldPropertiesDto.ts | 20 - .../types/ComponentsFieldPropertiesDto.ts | 30 - .../types/ConfigurePreviewUrlsDto.ts | 16 - .../types/ContentChangedRuleTriggerDto.ts | 28 - src/serialization/types/ContentData.ts | 17 - src/serialization/types/ContentDto.ts | 58 - src/serialization/types/ContentFieldData.ts | 14 - src/serialization/types/ContentsDto.ts | 26 - src/serialization/types/ContributorDto.ts | 26 - src/serialization/types/ContributorsDto.ts | 29 - .../types/ContributorsMetadata.ts | 20 - .../types/CreateContentRuleActionDto.ts | 26 - src/serialization/types/CreateRuleDto.ts | 20 - src/serialization/types/CurrentStorageDto.ts | 22 - .../types/DateTimeCalculatedDefaultValue.ts | 16 - .../types/DateTimeFieldEditor.ts | 16 - .../types/DateTimeFieldPropertiesDto.ts | 34 - .../types/DeepDetectRuleActionDto.ts | 22 - .../types/DiscourseRuleActionDto.ts | 32 - src/serialization/types/EditorDto.ts | 20 - .../types/ElasticSearchRuleActionDto.ts | 30 - src/serialization/types/EmailRuleActionDto.ts | 34 - src/serialization/types/ErrorDto.ts | 28 - src/serialization/types/EventConsumerDto.ts | 32 - src/serialization/types/EventConsumersDto.ts | 24 - src/serialization/types/ExposedValues.ts | 14 - .../types/FastlyRuleActionDto.ts | 22 - src/serialization/types/FeatureDto.ts | 20 - src/serialization/types/FeaturesDto.ts | 20 - src/serialization/types/FieldDto.ts | 35 - src/serialization/types/FieldPropertiesDto.ts | 133 - src/serialization/types/FieldRuleAction.ts | 14 - src/serialization/types/FieldRuleDto.ts | 22 - .../types/GeolocationFieldEditor.ts | 16 - .../types/GeolocationFieldPropertiesDto.ts | 20 - src/serialization/types/HistoryEventDto.ts | 30 - src/serialization/types/ImageFormat.ts | 14 - src/serialization/types/JobStatus.ts | 14 - .../types/JsonFieldPropertiesDto.ts | 20 - src/serialization/types/LanguageDto.ts | 22 - .../types/LocalizedValueOfNullableBoolean.ts | 16 - .../types/LocalizedValueOfNullableDouble.ts | 16 - .../types/LocalizedValueOfNullableInstant.ts | 16 - .../LocalizedValueOfReadonlyListOfString.ts | 16 - .../types/LocalizedValueOfString.ts | 16 - src/serialization/types/LogDownloadDto.ts | 18 - .../types/ManualRuleTriggerDto.ts | 16 - .../types/MediumRuleActionDto.ts | 32 - src/serialization/types/NestedFieldDto.ts | 30 - .../types/NotificationRuleActionDto.ts | 26 - src/serialization/types/NumberFieldEditor.ts | 16 - .../types/NumberFieldPropertiesDto.ts | 34 - .../types/OpenSearchRuleActionDto.ts | 30 - src/serialization/types/PatternDto.ts | 22 - src/serialization/types/PlanChangedDto.ts | 18 - src/serialization/types/PlanDto.ts | 38 - src/serialization/types/PlansDto.ts | 28 - src/serialization/types/PlansLockedReason.ts | 16 - .../types/PrerenderRuleActionDto.ts | 22 - src/serialization/types/PropertyPath.ts | 14 - src/serialization/types/QueryDto.ts | 24 - src/serialization/types/QueryJsonDto.ts | 32 - .../types/ReferencesFieldEditor.ts | 16 - .../types/ReferencesFieldPropertiesDto.ts | 40 - src/serialization/types/ReferralInfo.ts | 22 - src/serialization/types/ReorderFieldsDto.ts | 20 - src/serialization/types/ResizeMode.ts | 14 - src/serialization/types/Resource.ts | 24 - src/serialization/types/ResourceLink.ts | 22 - src/serialization/types/ResourcesDto.ts | 14 - src/serialization/types/RestoreJobDto.ts | 26 - src/serialization/types/RoleDto.ts | 29 - src/serialization/types/RolesDto.ts | 19 - src/serialization/types/RuleActionDto.ts | 134 - src/serialization/types/RuleDto.ts | 43 - src/serialization/types/RuleElementDto.ts | 32 - .../types/RuleElementPropertyDto.ts | 32 - src/serialization/types/RuleEventDto.ts | 36 - src/serialization/types/RuleEventsDto.ts | 24 - src/serialization/types/RuleFieldEditor.ts | 24 - src/serialization/types/RuleJobResult.ts | 14 - src/serialization/types/RuleResult.ts | 14 - src/serialization/types/RuleTriggerDto.ts | 58 - src/serialization/types/RulesDto.ts | 21 - src/serialization/types/ScheduleJobDto.ts | 26 - .../types/SchemaChangedRuleTriggerDto.ts | 20 - src/serialization/types/SchemaCondition.ts | 22 - src/serialization/types/SchemaDto.ts | 56 - .../types/SchemaPropertiesDto.ts | 32 - src/serialization/types/SchemaScriptsDto.ts | 30 - src/serialization/types/SchemaType.ts | 14 - src/serialization/types/SchemasDto.ts | 20 - .../types/ScriptRuleActionDto.ts | 20 - src/serialization/types/SearchResultDto.ts | 26 - src/serialization/types/SearchResultType.ts | 14 - .../types/SignalRRuleActionDto.ts | 30 - .../types/SimulatedRuleEventDto.ts | 36 - .../types/SimulatedRuleEventsDto.ts | 26 - src/serialization/types/SkipReason.ts | 37 - src/serialization/types/SlackRuleActionDto.ts | 22 - src/serialization/types/SortNode.ts | 20 - src/serialization/types/SortOrder.ts | 14 - src/serialization/types/StatusInfoDto.ts | 20 - .../types/StorageUsagePerDateDto.ts | 24 - src/serialization/types/StringContentType.ts | 16 - src/serialization/types/StringFieldEditor.ts | 37 - .../types/StringFieldPropertiesDto.ts | 56 - src/serialization/types/TagsFieldEditor.ts | 14 - .../types/TagsFieldPropertiesDto.ts | 34 - src/serialization/types/TeamDto.ts | 29 - src/serialization/types/TemplateDetailsDto.ts | 22 - src/serialization/types/TemplateDto.ts | 26 - src/serialization/types/TemplatesDto.ts | 20 - src/serialization/types/TranslationDto.ts | 22 - src/serialization/types/TranslationStatus.ts | 23 - src/serialization/types/TweetRuleActionDto.ts | 24 - .../types/TypesenseRuleActionDto.ts | 28 - src/serialization/types/UiFieldEditor.ts | 14 - .../types/UiFieldPropertiesDto.ts | 20 - src/serialization/types/UpdateFieldDto.ts | 18 - src/serialization/types/UpdateSettingDto.ts | 20 - src/serialization/types/UpsertCommentDto.ts | 22 - src/serialization/types/UpsertSchemaDto.ts | 42 - .../types/UpsertSchemaFieldDto.ts | 34 - .../types/UpsertSchemaNestedFieldDto.ts | 28 - .../types/UsageRuleTriggerDto.ts | 22 - src/serialization/types/UserDto.ts | 27 - src/serialization/types/UserProperty.ts | 20 - src/serialization/types/UsersDto.ts | 21 - src/serialization/types/WebhookMethod.ts | 14 - .../types/WebhookRuleActionDto.ts | 30 - src/serialization/types/WorkflowDto.ts | 31 - src/serialization/types/WorkflowStepDto.ts | 35 - .../types/WorkflowTransitionDto.ts | 22 - src/serialization/types/WorkflowsDto.ts | 22 - src/serialization/types/index.ts | 176 - src/wrapper/SquidexClient.ts | 422 +- src/wrapper/errors.ts | 135 + src/wrapper/headers.ts | 23 + src/wrapper/normalize-headers.ts | 23 - templates/apis.mustache | 465 ++ templates/modelGeneric.mustache | 169 + templates/runtime.mustache | 413 ++ test-only.ps1 | 3 - test-only.sh | 3 - test.ps1 | 4 - test.sh | 4 - tests/_utils.ts | 32 +- tests/assets.test.ts | 43 +- tests/contents.test.ts | 58 +- tests/errors.test.ts | 12 +- tests/globalSetup.ts | 66 +- tests/globalTeardown.ts | 4 +- tests/normalize-headers.test.ts | 39 - tests/rules.test.ts | 29 +- tests/schemas.test.ts | 24 +- tests/userManagement.test.ts | 12 +- yarn.lock | 89 - 967 files changed, 41323 insertions(+), 29178 deletions(-) delete mode 100644 .fernignore delete mode 100644 fern/config.json delete mode 100644 fern/fern.config.json delete mode 100644 fern/generators.yml create mode 100644 generate.ps1 create mode 100644 openapi-config.yml rename fern/openapi/openapi.json => openapi.json (98%) create mode 100644 package-lock.json delete mode 100644 src/Client.ts delete mode 100644 src/api/errors/BadRequestError.ts delete mode 100644 src/api/errors/ConflictError.ts delete mode 100644 src/api/errors/ContentTooLargeError.ts delete mode 100644 src/api/errors/ForbiddenError.ts delete mode 100644 src/api/errors/InternalServerError.ts delete mode 100644 src/api/errors/NotFoundError.ts delete mode 100644 src/api/errors/NotImplementedError.ts delete mode 100644 src/api/errors/index.ts delete mode 100644 src/api/index.ts delete mode 100644 src/api/resources/apps/client/Client.ts delete mode 100644 src/api/resources/apps/client/index.ts delete mode 100644 src/api/resources/apps/client/requests/AddLanguageDto.ts delete mode 100644 src/api/resources/apps/client/requests/AddRoleDto.ts delete mode 100644 src/api/resources/apps/client/requests/AddWorkflowDto.ts delete mode 100644 src/api/resources/apps/client/requests/AppsUploadImageRequest.ts delete mode 100644 src/api/resources/apps/client/requests/CreateAppDto.ts delete mode 100644 src/api/resources/apps/client/requests/CreateClientDto.ts delete mode 100644 src/api/resources/apps/client/requests/TransferToTeamDto.ts delete mode 100644 src/api/resources/apps/client/requests/UpdateAppDto.ts delete mode 100644 src/api/resources/apps/client/requests/UpdateAppSettingsDto.ts delete mode 100644 src/api/resources/apps/client/requests/UpdateAssetScriptsDto.ts delete mode 100644 src/api/resources/apps/client/requests/UpdateClientDto.ts delete mode 100644 src/api/resources/apps/client/requests/UpdateLanguageDto.ts delete mode 100644 src/api/resources/apps/client/requests/UpdateRoleDto.ts delete mode 100644 src/api/resources/apps/client/requests/UpdateWorkflowDto.ts delete mode 100644 src/api/resources/apps/client/requests/index.ts delete mode 100644 src/api/resources/apps/index.ts delete mode 100644 src/api/resources/assets/client/Client.ts delete mode 100644 src/api/resources/assets/client/index.ts delete mode 100644 src/api/resources/assets/client/requests/AnnotateAssetDto.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsDeleteAssetRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsGetAssetFoldersRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsGetAssetsPostRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsGetAssetsRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsPostAssetRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsPostUpsertAssetRequest.ts delete mode 100644 src/api/resources/assets/client/requests/AssetsPutAssetContentRequest.ts delete mode 100644 src/api/resources/assets/client/requests/BulkUpdateAssetsDto.ts delete mode 100644 src/api/resources/assets/client/requests/CreateAssetFolderDto.ts delete mode 100644 src/api/resources/assets/client/requests/MoveAssetDto.ts delete mode 100644 src/api/resources/assets/client/requests/MoveAssetFolderDto.ts delete mode 100644 src/api/resources/assets/client/requests/RenameAssetFolderDto.ts delete mode 100644 src/api/resources/assets/client/requests/RenameTagDto.ts delete mode 100644 src/api/resources/assets/client/requests/index.ts delete mode 100644 src/api/resources/assets/index.ts delete mode 100644 src/api/resources/backups/client/Client.ts delete mode 100644 src/api/resources/backups/client/index.ts delete mode 100644 src/api/resources/backups/client/requests/BackupsGetBackupContentV2Request.ts delete mode 100644 src/api/resources/backups/client/requests/RestoreRequestDto.ts delete mode 100644 src/api/resources/backups/client/requests/index.ts delete mode 100644 src/api/resources/backups/index.ts delete mode 100644 src/api/resources/comments/client/Client.ts delete mode 100644 src/api/resources/comments/client/index.ts delete mode 100644 src/api/resources/comments/client/requests/CommentsGetCommentsRequest.ts delete mode 100644 src/api/resources/comments/client/requests/index.ts delete mode 100644 src/api/resources/comments/index.ts delete mode 100644 src/api/resources/contents/client/Client.ts delete mode 100644 src/api/resources/contents/client/index.ts delete mode 100644 src/api/resources/contents/client/requests/AllContentsByPostDto.ts delete mode 100644 src/api/resources/contents/client/requests/ChangeStatusDto.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsBulkUpdateAllContentsRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsCreateDraftRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsDeleteContentRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsDeleteVersionRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetAllContentsRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetContentRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetContentsPostRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetGraphQlBatchRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetGraphQlRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetReferencesRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsPostContentRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsPostGraphQlBatchRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsPostGraphQlRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ContentsPutContentRequest.ts delete mode 100644 src/api/resources/contents/client/requests/ImportContentsDto.ts delete mode 100644 src/api/resources/contents/client/requests/index.ts delete mode 100644 src/api/resources/contents/index.ts delete mode 100644 src/api/resources/diagnostics/client/Client.ts delete mode 100644 src/api/resources/diagnostics/client/index.ts delete mode 100644 src/api/resources/diagnostics/index.ts delete mode 100644 src/api/resources/eventConsumers/client/Client.ts delete mode 100644 src/api/resources/eventConsumers/client/index.ts delete mode 100644 src/api/resources/eventConsumers/index.ts delete mode 100644 src/api/resources/history/client/Client.ts delete mode 100644 src/api/resources/history/client/index.ts delete mode 100644 src/api/resources/history/client/requests/HistoryGetAppHistoryRequest.ts delete mode 100644 src/api/resources/history/client/requests/HistoryGetTeamHistoryRequest.ts delete mode 100644 src/api/resources/history/client/requests/index.ts delete mode 100644 src/api/resources/history/index.ts delete mode 100644 src/api/resources/index.ts delete mode 100644 src/api/resources/languages/client/Client.ts delete mode 100644 src/api/resources/languages/client/index.ts delete mode 100644 src/api/resources/languages/index.ts delete mode 100644 src/api/resources/news/client/Client.ts delete mode 100644 src/api/resources/news/client/index.ts delete mode 100644 src/api/resources/news/client/requests/NewsGetNewsRequest.ts delete mode 100644 src/api/resources/news/client/requests/index.ts delete mode 100644 src/api/resources/news/index.ts delete mode 100644 src/api/resources/notifications/client/Client.ts delete mode 100644 src/api/resources/notifications/client/index.ts delete mode 100644 src/api/resources/notifications/client/requests/NotificationsGetNotificationsRequest.ts delete mode 100644 src/api/resources/notifications/client/requests/index.ts delete mode 100644 src/api/resources/notifications/index.ts delete mode 100644 src/api/resources/ping/client/Client.ts delete mode 100644 src/api/resources/ping/client/index.ts delete mode 100644 src/api/resources/ping/index.ts delete mode 100644 src/api/resources/plans/client/Client.ts delete mode 100644 src/api/resources/plans/client/index.ts delete mode 100644 src/api/resources/plans/index.ts delete mode 100644 src/api/resources/rules/client/Client.ts delete mode 100644 src/api/resources/rules/client/index.ts delete mode 100644 src/api/resources/rules/client/requests/RulesGetEventsRequest.ts delete mode 100644 src/api/resources/rules/client/requests/RulesPutRuleRunRequest.ts delete mode 100644 src/api/resources/rules/client/requests/UpdateRuleDto.ts delete mode 100644 src/api/resources/rules/client/requests/index.ts delete mode 100644 src/api/resources/rules/index.ts delete mode 100644 src/api/resources/schemas/client/Client.ts delete mode 100644 src/api/resources/schemas/client/index.ts delete mode 100644 src/api/resources/schemas/client/requests/ChangeCategoryDto.ts delete mode 100644 src/api/resources/schemas/client/requests/ConfigureFieldRulesDto.ts delete mode 100644 src/api/resources/schemas/client/requests/ConfigureUiFieldsDto.ts delete mode 100644 src/api/resources/schemas/client/requests/CreateSchemaDto.ts delete mode 100644 src/api/resources/schemas/client/requests/SynchronizeSchemaDto.ts delete mode 100644 src/api/resources/schemas/client/requests/UpdateSchemaDto.ts delete mode 100644 src/api/resources/schemas/client/requests/index.ts delete mode 100644 src/api/resources/schemas/index.ts delete mode 100644 src/api/resources/search/client/Client.ts delete mode 100644 src/api/resources/search/client/index.ts delete mode 100644 src/api/resources/search/client/requests/SearchGetSearchResultsRequest.ts delete mode 100644 src/api/resources/search/client/requests/index.ts delete mode 100644 src/api/resources/search/index.ts delete mode 100644 src/api/resources/statistics/client/Client.ts delete mode 100644 src/api/resources/statistics/client/index.ts delete mode 100644 src/api/resources/statistics/index.ts delete mode 100644 src/api/resources/teams/client/Client.ts delete mode 100644 src/api/resources/teams/client/index.ts delete mode 100644 src/api/resources/teams/client/requests/CreateTeamDto.ts delete mode 100644 src/api/resources/teams/client/requests/UpdateTeamDto.ts delete mode 100644 src/api/resources/teams/client/requests/index.ts delete mode 100644 src/api/resources/teams/index.ts delete mode 100644 src/api/resources/templates/client/Client.ts delete mode 100644 src/api/resources/templates/client/index.ts delete mode 100644 src/api/resources/templates/index.ts delete mode 100644 src/api/resources/translations/client/Client.ts delete mode 100644 src/api/resources/translations/client/index.ts delete mode 100644 src/api/resources/translations/client/requests/AskDto.ts delete mode 100644 src/api/resources/translations/client/requests/TranslateDto.ts delete mode 100644 src/api/resources/translations/client/requests/index.ts delete mode 100644 src/api/resources/translations/index.ts delete mode 100644 src/api/resources/userManagement/client/Client.ts delete mode 100644 src/api/resources/userManagement/client/index.ts delete mode 100644 src/api/resources/userManagement/client/requests/CreateUserDto.ts delete mode 100644 src/api/resources/userManagement/client/requests/UpdateUserDto.ts delete mode 100644 src/api/resources/userManagement/client/requests/UserManagementGetUsersRequest.ts delete mode 100644 src/api/resources/userManagement/client/requests/index.ts delete mode 100644 src/api/resources/userManagement/index.ts delete mode 100644 src/api/resources/users/client/Client.ts delete mode 100644 src/api/resources/users/client/index.ts delete mode 100644 src/api/resources/users/client/requests/UpdateProfileDto.ts delete mode 100644 src/api/resources/users/client/requests/UsersGetUsersRequest.ts delete mode 100644 src/api/resources/users/client/requests/index.ts delete mode 100644 src/api/resources/users/index.ts delete mode 100644 src/api/types/ActionTypeEnum.ts delete mode 100644 src/api/types/AddFieldDto.ts delete mode 100644 src/api/types/AlgoliaRuleActionDto.ts delete mode 100644 src/api/types/AppDto.ts delete mode 100644 src/api/types/AppLanguageDto.ts delete mode 100644 src/api/types/AppLanguagesDto.ts delete mode 100644 src/api/types/AppSettingsDto.ts delete mode 100644 src/api/types/ArrayCalculatedDefaultValue.ts delete mode 100644 src/api/types/ArrayFieldPropertiesDto.ts delete mode 100644 src/api/types/AssetChangedRuleTriggerDto.ts delete mode 100644 src/api/types/AssetDto.ts delete mode 100644 src/api/types/AssetFolderDto.ts delete mode 100644 src/api/types/AssetFolderScope.ts delete mode 100644 src/api/types/AssetFoldersDto.ts delete mode 100644 src/api/types/AssetMeta.ts delete mode 100644 src/api/types/AssetPreviewMode.ts delete mode 100644 src/api/types/AssetScriptsDto.ts delete mode 100644 src/api/types/AssetType.ts delete mode 100644 src/api/types/AssetsDto.ts delete mode 100644 src/api/types/AssetsFieldPropertiesDto.ts delete mode 100644 src/api/types/AssignContributorDto.ts delete mode 100644 src/api/types/AzureQueueRuleActionDto.ts delete mode 100644 src/api/types/BackupJobDto.ts delete mode 100644 src/api/types/BackupJobsDto.ts delete mode 100644 src/api/types/BooleanFieldEditor.ts delete mode 100644 src/api/types/BooleanFieldPropertiesDto.ts delete mode 100644 src/api/types/BulkResultDto.ts delete mode 100644 src/api/types/BulkUpdateAssetType.ts delete mode 100644 src/api/types/BulkUpdateAssetsJobDto.ts delete mode 100644 src/api/types/BulkUpdateContentType.ts delete mode 100644 src/api/types/BulkUpdateContentsDto.ts delete mode 100644 src/api/types/BulkUpdateContentsJobDto.ts delete mode 100644 src/api/types/CallsUsageDtoDto.ts delete mode 100644 src/api/types/CallsUsagePerDateDto.ts delete mode 100644 src/api/types/ChangePlanDto.ts delete mode 100644 src/api/types/ClientDto.ts delete mode 100644 src/api/types/ClientsDto.ts delete mode 100644 src/api/types/CommentDto.ts delete mode 100644 src/api/types/CommentRuleActionDto.ts delete mode 100644 src/api/types/CommentRuleTriggerDto.ts delete mode 100644 src/api/types/CommentsDto.ts delete mode 100644 src/api/types/ComponentFieldPropertiesDto.ts delete mode 100644 src/api/types/ComponentsFieldPropertiesDto.ts delete mode 100644 src/api/types/ConfigurePreviewUrlsDto.ts delete mode 100644 src/api/types/ContentChangedRuleTriggerDto.ts delete mode 100644 src/api/types/ContentData.ts delete mode 100644 src/api/types/ContentDto.ts delete mode 100644 src/api/types/ContentFieldData.ts delete mode 100644 src/api/types/ContentsDto.ts delete mode 100644 src/api/types/ContributorDto.ts delete mode 100644 src/api/types/ContributorsDto.ts delete mode 100644 src/api/types/ContributorsMetadata.ts delete mode 100644 src/api/types/CreateContentRuleActionDto.ts delete mode 100644 src/api/types/CreateRuleDto.ts delete mode 100644 src/api/types/CurrentStorageDto.ts delete mode 100644 src/api/types/DateTimeCalculatedDefaultValue.ts delete mode 100644 src/api/types/DateTimeFieldEditor.ts delete mode 100644 src/api/types/DateTimeFieldPropertiesDto.ts delete mode 100644 src/api/types/DeepDetectRuleActionDto.ts delete mode 100644 src/api/types/DiscourseRuleActionDto.ts delete mode 100644 src/api/types/EditorDto.ts delete mode 100644 src/api/types/ElasticSearchRuleActionDto.ts delete mode 100644 src/api/types/EmailRuleActionDto.ts delete mode 100644 src/api/types/ErrorDto.ts delete mode 100644 src/api/types/EventConsumerDto.ts delete mode 100644 src/api/types/EventConsumersDto.ts delete mode 100644 src/api/types/ExposedValues.ts delete mode 100644 src/api/types/FastlyRuleActionDto.ts delete mode 100644 src/api/types/FeatureDto.ts delete mode 100644 src/api/types/FeaturesDto.ts delete mode 100644 src/api/types/FieldDto.ts delete mode 100644 src/api/types/FieldPropertiesDto.ts delete mode 100644 src/api/types/FieldRuleAction.ts delete mode 100644 src/api/types/FieldRuleDto.ts delete mode 100644 src/api/types/GeolocationFieldEditor.ts delete mode 100644 src/api/types/GeolocationFieldPropertiesDto.ts delete mode 100644 src/api/types/HistoryEventDto.ts delete mode 100644 src/api/types/ImageFormat.ts delete mode 100644 src/api/types/JobStatus.ts delete mode 100644 src/api/types/JsonFieldPropertiesDto.ts delete mode 100644 src/api/types/LanguageDto.ts delete mode 100644 src/api/types/LocalizedValueOfNullableBoolean.ts delete mode 100644 src/api/types/LocalizedValueOfNullableDouble.ts delete mode 100644 src/api/types/LocalizedValueOfNullableInstant.ts delete mode 100644 src/api/types/LocalizedValueOfReadonlyListOfString.ts delete mode 100644 src/api/types/LocalizedValueOfString.ts delete mode 100644 src/api/types/LogDownloadDto.ts delete mode 100644 src/api/types/ManualRuleTriggerDto.ts delete mode 100644 src/api/types/MediumRuleActionDto.ts delete mode 100644 src/api/types/NestedFieldDto.ts delete mode 100644 src/api/types/NotificationRuleActionDto.ts delete mode 100644 src/api/types/NumberFieldEditor.ts delete mode 100644 src/api/types/NumberFieldPropertiesDto.ts delete mode 100644 src/api/types/OpenSearchRuleActionDto.ts delete mode 100644 src/api/types/PatternDto.ts delete mode 100644 src/api/types/PlanChangedDto.ts delete mode 100644 src/api/types/PlanDto.ts delete mode 100644 src/api/types/PlansDto.ts delete mode 100644 src/api/types/PlansLockedReason.ts delete mode 100644 src/api/types/PrerenderRuleActionDto.ts delete mode 100644 src/api/types/PropertyPath.ts delete mode 100644 src/api/types/QueryDto.ts delete mode 100644 src/api/types/QueryJsonDto.ts delete mode 100644 src/api/types/ReferencesFieldEditor.ts delete mode 100644 src/api/types/ReferencesFieldPropertiesDto.ts delete mode 100644 src/api/types/ReferralInfo.ts delete mode 100644 src/api/types/ReorderFieldsDto.ts delete mode 100644 src/api/types/ResizeMode.ts delete mode 100644 src/api/types/Resource.ts delete mode 100644 src/api/types/ResourceLink.ts delete mode 100644 src/api/types/ResourcesDto.ts delete mode 100644 src/api/types/RestoreJobDto.ts delete mode 100644 src/api/types/RoleDto.ts delete mode 100644 src/api/types/RolesDto.ts delete mode 100644 src/api/types/RuleActionDto.ts delete mode 100644 src/api/types/RuleDto.ts delete mode 100644 src/api/types/RuleElementDto.ts delete mode 100644 src/api/types/RuleElementPropertyDto.ts delete mode 100644 src/api/types/RuleEventDto.ts delete mode 100644 src/api/types/RuleEventsDto.ts delete mode 100644 src/api/types/RuleFieldEditor.ts delete mode 100644 src/api/types/RuleJobResult.ts delete mode 100644 src/api/types/RuleResult.ts delete mode 100644 src/api/types/RuleTriggerDto.ts delete mode 100644 src/api/types/RulesDto.ts delete mode 100644 src/api/types/ScheduleJobDto.ts delete mode 100644 src/api/types/SchemaChangedRuleTriggerDto.ts delete mode 100644 src/api/types/SchemaCondition.ts delete mode 100644 src/api/types/SchemaDto.ts delete mode 100644 src/api/types/SchemaPropertiesDto.ts delete mode 100644 src/api/types/SchemaScriptsDto.ts delete mode 100644 src/api/types/SchemaType.ts delete mode 100644 src/api/types/SchemasDto.ts delete mode 100644 src/api/types/ScriptRuleActionDto.ts delete mode 100644 src/api/types/SearchResultDto.ts delete mode 100644 src/api/types/SearchResultType.ts delete mode 100644 src/api/types/SignalRRuleActionDto.ts delete mode 100644 src/api/types/SimulatedRuleEventDto.ts delete mode 100644 src/api/types/SimulatedRuleEventsDto.ts delete mode 100644 src/api/types/SkipReason.ts delete mode 100644 src/api/types/SlackRuleActionDto.ts delete mode 100644 src/api/types/SortNode.ts delete mode 100644 src/api/types/SortOrder.ts delete mode 100644 src/api/types/StatusInfoDto.ts delete mode 100644 src/api/types/StorageUsagePerDateDto.ts delete mode 100644 src/api/types/StringContentType.ts delete mode 100644 src/api/types/StringFieldEditor.ts delete mode 100644 src/api/types/StringFieldPropertiesDto.ts delete mode 100644 src/api/types/TagsFieldEditor.ts delete mode 100644 src/api/types/TagsFieldPropertiesDto.ts delete mode 100644 src/api/types/TeamDto.ts delete mode 100644 src/api/types/TemplateDetailsDto.ts delete mode 100644 src/api/types/TemplateDto.ts delete mode 100644 src/api/types/TemplatesDto.ts delete mode 100644 src/api/types/TranslationDto.ts delete mode 100644 src/api/types/TranslationStatus.ts delete mode 100644 src/api/types/TweetRuleActionDto.ts delete mode 100644 src/api/types/TypesenseRuleActionDto.ts delete mode 100644 src/api/types/UiFieldEditor.ts delete mode 100644 src/api/types/UiFieldPropertiesDto.ts delete mode 100644 src/api/types/UpdateFieldDto.ts delete mode 100644 src/api/types/UpdateSettingDto.ts delete mode 100644 src/api/types/UpsertCommentDto.ts delete mode 100644 src/api/types/UpsertSchemaDto.ts delete mode 100644 src/api/types/UpsertSchemaFieldDto.ts delete mode 100644 src/api/types/UpsertSchemaNestedFieldDto.ts delete mode 100644 src/api/types/UsageRuleTriggerDto.ts delete mode 100644 src/api/types/UserDto.ts delete mode 100644 src/api/types/UserProperty.ts delete mode 100644 src/api/types/UsersDto.ts delete mode 100644 src/api/types/WebhookMethod.ts delete mode 100644 src/api/types/WebhookRuleActionDto.ts delete mode 100644 src/api/types/WorkflowDto.ts delete mode 100644 src/api/types/WorkflowStepDto.ts delete mode 100644 src/api/types/WorkflowTransitionDto.ts delete mode 100644 src/api/types/WorkflowsDto.ts delete mode 100644 src/api/types/index.ts delete mode 100644 src/core/auth/BasicAuth.ts delete mode 100644 src/core/auth/BearerToken.ts delete mode 100644 src/core/auth/index.ts delete mode 100644 src/core/fetcher/APIResponse.ts delete mode 100644 src/core/fetcher/Fetcher.ts delete mode 100644 src/core/fetcher/Supplier.ts delete mode 100644 src/core/fetcher/index.ts delete mode 100644 src/core/form-data-utils/getFormDataContentLength.ts delete mode 100644 src/core/form-data-utils/index.ts delete mode 100644 src/core/index.ts delete mode 100644 src/core/schemas/Schema.ts delete mode 100644 src/core/schemas/builders/date/date.ts delete mode 100644 src/core/schemas/builders/date/index.ts delete mode 100644 src/core/schemas/builders/enum/enum.ts delete mode 100644 src/core/schemas/builders/enum/index.ts delete mode 100644 src/core/schemas/builders/index.ts delete mode 100644 src/core/schemas/builders/lazy/index.ts delete mode 100644 src/core/schemas/builders/lazy/lazy.ts delete mode 100644 src/core/schemas/builders/lazy/lazyObject.ts delete mode 100644 src/core/schemas/builders/list/index.ts delete mode 100644 src/core/schemas/builders/list/list.ts delete mode 100644 src/core/schemas/builders/literals/index.ts delete mode 100644 src/core/schemas/builders/literals/stringLiteral.ts delete mode 100644 src/core/schemas/builders/object-like/getObjectLikeUtils.ts delete mode 100644 src/core/schemas/builders/object-like/index.ts delete mode 100644 src/core/schemas/builders/object-like/types.ts delete mode 100644 src/core/schemas/builders/object/index.ts delete mode 100644 src/core/schemas/builders/object/object.ts delete mode 100644 src/core/schemas/builders/object/property.ts delete mode 100644 src/core/schemas/builders/object/types.ts delete mode 100644 src/core/schemas/builders/primitives/any.ts delete mode 100644 src/core/schemas/builders/primitives/boolean.ts delete mode 100644 src/core/schemas/builders/primitives/index.ts delete mode 100644 src/core/schemas/builders/primitives/number.ts delete mode 100644 src/core/schemas/builders/primitives/string.ts delete mode 100644 src/core/schemas/builders/primitives/unknown.ts delete mode 100644 src/core/schemas/builders/record/index.ts delete mode 100644 src/core/schemas/builders/record/record.ts delete mode 100644 src/core/schemas/builders/record/types.ts delete mode 100644 src/core/schemas/builders/schema-utils/JsonError.ts delete mode 100644 src/core/schemas/builders/schema-utils/ParseError.ts delete mode 100644 src/core/schemas/builders/schema-utils/getSchemaUtils.ts delete mode 100644 src/core/schemas/builders/schema-utils/index.ts delete mode 100644 src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts delete mode 100644 src/core/schemas/builders/set/index.ts delete mode 100644 src/core/schemas/builders/set/set.ts delete mode 100644 src/core/schemas/builders/undiscriminated-union/index.ts delete mode 100644 src/core/schemas/builders/undiscriminated-union/types.ts delete mode 100644 src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts delete mode 100644 src/core/schemas/builders/union/discriminant.ts delete mode 100644 src/core/schemas/builders/union/index.ts delete mode 100644 src/core/schemas/builders/union/types.ts delete mode 100644 src/core/schemas/builders/union/union.ts delete mode 100644 src/core/schemas/index.ts delete mode 100644 src/core/schemas/utils/MaybePromise.ts delete mode 100644 src/core/schemas/utils/addQuestionMarksToNullableProperties.ts delete mode 100644 src/core/schemas/utils/createIdentitySchemaCreator.ts delete mode 100644 src/core/schemas/utils/entries.ts delete mode 100644 src/core/schemas/utils/filterObject.ts delete mode 100644 src/core/schemas/utils/getErrorMessageForIncorrectType.ts delete mode 100644 src/core/schemas/utils/isPlainObject.ts delete mode 100644 src/core/schemas/utils/keys.ts delete mode 100644 src/core/schemas/utils/maybeSkipValidation.ts delete mode 100644 src/core/schemas/utils/partition.ts delete mode 100644 src/core/streaming-fetcher/StreamingFetcher.ts delete mode 100644 src/core/streaming-fetcher/getHeader.ts delete mode 100644 src/core/streaming-fetcher/index.ts delete mode 100644 src/errors/SquidexError.ts delete mode 100644 src/errors/SquidexTimeoutError.ts delete mode 100644 src/errors/index.ts create mode 100644 src/generated/.openapi-generator-ignore create mode 100644 src/generated/.openapi-generator/FILES create mode 100644 src/generated/.openapi-generator/VERSION create mode 100644 src/generated/apis/AppsApi.ts create mode 100644 src/generated/apis/AssetsApi.ts create mode 100644 src/generated/apis/BackupsApi.ts create mode 100644 src/generated/apis/ContentsApi.ts create mode 100644 src/generated/apis/DiagnosticsApi.ts create mode 100644 src/generated/apis/EventConsumersApi.ts create mode 100644 src/generated/apis/HistoryApi.ts create mode 100644 src/generated/apis/JobsApi.ts create mode 100644 src/generated/apis/LanguagesApi.ts create mode 100644 src/generated/apis/NewsApi.ts create mode 100644 src/generated/apis/PingApi.ts create mode 100644 src/generated/apis/PlansApi.ts create mode 100644 src/generated/apis/RulesApi.ts create mode 100644 src/generated/apis/SchemasApi.ts create mode 100644 src/generated/apis/SearchApi.ts create mode 100644 src/generated/apis/StatisticsApi.ts create mode 100644 src/generated/apis/TeamsApi.ts create mode 100644 src/generated/apis/TemplatesApi.ts create mode 100644 src/generated/apis/TranslationsApi.ts create mode 100644 src/generated/apis/UserManagementApi.ts create mode 100644 src/generated/apis/UsersApi.ts create mode 100644 src/generated/apis/index.ts create mode 100644 src/generated/index.ts create mode 100644 src/generated/models/ActionTypeEnum.ts create mode 100644 src/generated/models/AddFieldDto.ts create mode 100644 src/generated/models/AddLanguageDto.ts create mode 100644 src/generated/models/AddRoleDto.ts create mode 100644 src/generated/models/AddWorkflowDto.ts create mode 100644 src/generated/models/AlgoliaRuleActionDto.ts create mode 100644 src/generated/models/AllContentsByPostDto.ts create mode 100644 src/generated/models/AnnotateAssetDto.ts create mode 100644 src/generated/models/AppDto.ts create mode 100644 src/generated/models/AppLanguageDto.ts create mode 100644 src/generated/models/AppLanguagesDto.ts create mode 100644 src/generated/models/AppSettingsDto.ts create mode 100644 src/generated/models/ArrayCalculatedDefaultValue.ts create mode 100644 src/generated/models/ArrayFieldPropertiesDto.ts create mode 100644 src/generated/models/AssetChangedRuleTriggerDto.ts create mode 100644 src/generated/models/AssetDto.ts create mode 100644 src/generated/models/AssetFolderDto.ts create mode 100644 src/generated/models/AssetFolderScope.ts create mode 100644 src/generated/models/AssetFoldersDto.ts create mode 100644 src/generated/models/AssetMeta.ts create mode 100644 src/generated/models/AssetPreviewMode.ts create mode 100644 src/generated/models/AssetScriptsDto.ts create mode 100644 src/generated/models/AssetType.ts create mode 100644 src/generated/models/AssetsDto.ts create mode 100644 src/generated/models/AssetsFieldPropertiesDto.ts create mode 100644 src/generated/models/AssignContributorDto.ts create mode 100644 src/generated/models/AuthSchemeDto.ts create mode 100644 src/generated/models/AuthSchemeResponseDto.ts create mode 100644 src/generated/models/AuthSchemeValueDto.ts create mode 100644 src/generated/models/AzureQueueRuleActionDto.ts create mode 100644 src/generated/models/BackupJobDto.ts create mode 100644 src/generated/models/BackupJobsDto.ts create mode 100644 src/generated/models/BooleanFieldEditor.ts create mode 100644 src/generated/models/BooleanFieldPropertiesDto.ts create mode 100644 src/generated/models/BulkResultDto.ts create mode 100644 src/generated/models/BulkUpdateAssetType.ts create mode 100644 src/generated/models/BulkUpdateAssetsDto.ts create mode 100644 src/generated/models/BulkUpdateAssetsJobDto.ts create mode 100644 src/generated/models/BulkUpdateContentType.ts create mode 100644 src/generated/models/BulkUpdateContentsDto.ts create mode 100644 src/generated/models/BulkUpdateContentsJobDto.ts create mode 100644 src/generated/models/CallsUsageDtoDto.ts create mode 100644 src/generated/models/CallsUsagePerDateDto.ts create mode 100644 src/generated/models/ChangeCategoryDto.ts create mode 100644 src/generated/models/ChangePlanDto.ts create mode 100644 src/generated/models/ChangeStatusDto.ts create mode 100644 src/generated/models/ClientDto.ts create mode 100644 src/generated/models/ClientsDto.ts create mode 100644 src/generated/models/CommentRuleActionDto.ts create mode 100644 src/generated/models/CommentRuleTriggerDto.ts create mode 100644 src/generated/models/ComponentFieldPropertiesDto.ts create mode 100644 src/generated/models/ComponentsFieldPropertiesDto.ts create mode 100644 src/generated/models/ConfigureFieldRulesDto.ts create mode 100644 src/generated/models/ConfigureUIFieldsDto.ts create mode 100644 src/generated/models/ContentChangedRuleTriggerDto.ts create mode 100644 src/generated/models/ContentDto.ts create mode 100644 src/generated/models/ContentsDto.ts create mode 100644 src/generated/models/ContributorDto.ts create mode 100644 src/generated/models/ContributorsDto.ts create mode 100644 src/generated/models/ContributorsMetadata.ts create mode 100644 src/generated/models/CreateAppDto.ts create mode 100644 src/generated/models/CreateAssetFolderDto.ts create mode 100644 src/generated/models/CreateClientDto.ts create mode 100644 src/generated/models/CreateContentRuleActionDto.ts create mode 100644 src/generated/models/CreateRuleDto.ts create mode 100644 src/generated/models/CreateSchemaDto.ts create mode 100644 src/generated/models/CreateTeamDto.ts create mode 100644 src/generated/models/CreateUserDto.ts create mode 100644 src/generated/models/CurrentStorageDto.ts create mode 100644 src/generated/models/DateTimeCalculatedDefaultValue.ts create mode 100644 src/generated/models/DateTimeFieldEditor.ts create mode 100644 src/generated/models/DateTimeFieldPropertiesDto.ts create mode 100644 src/generated/models/DiscourseRuleActionDto.ts create mode 100644 src/generated/models/EditorDto.ts create mode 100644 src/generated/models/ElasticSearchRuleActionDto.ts create mode 100644 src/generated/models/EmailRuleActionDto.ts create mode 100644 src/generated/models/ErrorDto.ts create mode 100644 src/generated/models/EventConsumerDto.ts create mode 100644 src/generated/models/EventConsumersDto.ts create mode 100644 src/generated/models/FastlyRuleActionDto.ts create mode 100644 src/generated/models/FeatureDto.ts create mode 100644 src/generated/models/FeaturesDto.ts create mode 100644 src/generated/models/FieldDto.ts create mode 100644 src/generated/models/FieldPropertiesDto.ts create mode 100644 src/generated/models/FieldRuleAction.ts create mode 100644 src/generated/models/FieldRuleDto.ts create mode 100644 src/generated/models/GeolocationFieldEditor.ts create mode 100644 src/generated/models/GeolocationFieldPropertiesDto.ts create mode 100644 src/generated/models/HistoryEventDto.ts create mode 100644 src/generated/models/ImageFormat.ts create mode 100644 src/generated/models/ImportContentsDto.ts create mode 100644 src/generated/models/JobDto.ts create mode 100644 src/generated/models/JobLogMessageDto.ts create mode 100644 src/generated/models/JobStatus.ts create mode 100644 src/generated/models/JobsDto.ts create mode 100644 src/generated/models/JsonFieldPropertiesDto.ts create mode 100644 src/generated/models/LanguageDto.ts create mode 100644 src/generated/models/LogDownloadDto.ts create mode 100644 src/generated/models/ManualRuleTriggerDto.ts create mode 100644 src/generated/models/MediumRuleActionDto.ts create mode 100644 src/generated/models/MoveAssetDto.ts create mode 100644 src/generated/models/MoveAssetFolderDto.ts create mode 100644 src/generated/models/NestedFieldDto.ts create mode 100644 src/generated/models/NotificationRuleActionDto.ts create mode 100644 src/generated/models/NumberFieldEditor.ts create mode 100644 src/generated/models/NumberFieldPropertiesDto.ts create mode 100644 src/generated/models/OpenSearchRuleActionDto.ts create mode 100644 src/generated/models/PatternDto.ts create mode 100644 src/generated/models/PlanChangedDto.ts create mode 100644 src/generated/models/PlanDto.ts create mode 100644 src/generated/models/PlansDto.ts create mode 100644 src/generated/models/PlansLockedReason.ts create mode 100644 src/generated/models/PrerenderRuleActionDto.ts create mode 100644 src/generated/models/QueryDto.ts create mode 100644 src/generated/models/QueryJsonDto.ts create mode 100644 src/generated/models/ReferencesFieldEditor.ts create mode 100644 src/generated/models/ReferencesFieldPropertiesDto.ts create mode 100644 src/generated/models/ReferralInfo.ts create mode 100644 src/generated/models/RenameAssetFolderDto.ts create mode 100644 src/generated/models/RenameTagDto.ts create mode 100644 src/generated/models/ReorderFieldsDto.ts create mode 100644 src/generated/models/ResizeMode.ts create mode 100644 src/generated/models/Resource.ts create mode 100644 src/generated/models/ResourceLink.ts create mode 100644 src/generated/models/ResourcesDto.ts create mode 100644 src/generated/models/RestoreJobDto.ts create mode 100644 src/generated/models/RestoreRequestDto.ts create mode 100644 src/generated/models/RichTextFieldPropertiesDto.ts create mode 100644 src/generated/models/RoleDto.ts create mode 100644 src/generated/models/RolesDto.ts create mode 100644 src/generated/models/RuleActionDto.ts create mode 100644 src/generated/models/RuleDto.ts create mode 100644 src/generated/models/RuleElementDto.ts create mode 100644 src/generated/models/RuleElementPropertyDto.ts create mode 100644 src/generated/models/RuleEventDto.ts create mode 100644 src/generated/models/RuleEventsDto.ts create mode 100644 src/generated/models/RuleFieldEditor.ts create mode 100644 src/generated/models/RuleJobResult.ts create mode 100644 src/generated/models/RuleResult.ts create mode 100644 src/generated/models/RuleTriggerDto.ts create mode 100644 src/generated/models/RulesDto.ts create mode 100644 src/generated/models/ScheduleJobDto.ts create mode 100644 src/generated/models/SchemaChangedRuleTriggerDto.ts create mode 100644 src/generated/models/SchemaCondition.ts create mode 100644 src/generated/models/SchemaDto.ts create mode 100644 src/generated/models/SchemaPropertiesDto.ts create mode 100644 src/generated/models/SchemaScriptsDto.ts create mode 100644 src/generated/models/SchemaType.ts create mode 100644 src/generated/models/SchemasDto.ts create mode 100644 src/generated/models/ScriptRuleActionDto.ts create mode 100644 src/generated/models/SearchResultDto.ts create mode 100644 src/generated/models/SearchResultType.ts create mode 100644 src/generated/models/SignalRRuleActionDto.ts create mode 100644 src/generated/models/SimulatedRuleEventDto.ts create mode 100644 src/generated/models/SimulatedRuleEventsDto.ts create mode 100644 src/generated/models/SkipReason.ts create mode 100644 src/generated/models/SlackRuleActionDto.ts create mode 100644 src/generated/models/SortNode.ts create mode 100644 src/generated/models/SortOrder.ts create mode 100644 src/generated/models/StatusInfoDto.ts create mode 100644 src/generated/models/StorageUsagePerDateDto.ts create mode 100644 src/generated/models/StringContentType.ts create mode 100644 src/generated/models/StringFieldEditor.ts create mode 100644 src/generated/models/StringFieldPropertiesDto.ts create mode 100644 src/generated/models/SynchronizeSchemaDto.ts create mode 100644 src/generated/models/TagsFieldEditor.ts create mode 100644 src/generated/models/TagsFieldPropertiesDto.ts create mode 100644 src/generated/models/TeamDto.ts create mode 100644 src/generated/models/TemplateDetailsDto.ts create mode 100644 src/generated/models/TemplateDto.ts create mode 100644 src/generated/models/TemplatesDto.ts create mode 100644 src/generated/models/TransferToTeamDto.ts create mode 100644 src/generated/models/TranslateDto.ts create mode 100644 src/generated/models/TranslationDto.ts create mode 100644 src/generated/models/TranslationStatus.ts create mode 100644 src/generated/models/TweetRuleActionDto.ts create mode 100644 src/generated/models/TypesenseRuleActionDto.ts create mode 100644 src/generated/models/UIFieldEditor.ts create mode 100644 src/generated/models/UIFieldPropertiesDto.ts create mode 100644 src/generated/models/UpdateAppDto.ts create mode 100644 src/generated/models/UpdateAppSettingsDto.ts create mode 100644 src/generated/models/UpdateAssetScriptsDto.ts create mode 100644 src/generated/models/UpdateClientDto.ts create mode 100644 src/generated/models/UpdateFieldDto.ts create mode 100644 src/generated/models/UpdateLanguageDto.ts create mode 100644 src/generated/models/UpdateProfileDto.ts create mode 100644 src/generated/models/UpdateRoleDto.ts create mode 100644 src/generated/models/UpdateRuleDto.ts create mode 100644 src/generated/models/UpdateSchemaDto.ts create mode 100644 src/generated/models/UpdateSettingDto.ts create mode 100644 src/generated/models/UpdateTeamDto.ts create mode 100644 src/generated/models/UpdateUserDto.ts create mode 100644 src/generated/models/UpdateWorkflowDto.ts create mode 100644 src/generated/models/UpsertSchemaDto.ts create mode 100644 src/generated/models/UpsertSchemaFieldDto.ts create mode 100644 src/generated/models/UpsertSchemaNestedFieldDto.ts create mode 100644 src/generated/models/UsageRuleTriggerDto.ts create mode 100644 src/generated/models/UserDto.ts create mode 100644 src/generated/models/UserProperty.ts create mode 100644 src/generated/models/UsersDto.ts create mode 100644 src/generated/models/WebhookMethod.ts create mode 100644 src/generated/models/WebhookRuleActionDto.ts create mode 100644 src/generated/models/WorkflowDto.ts create mode 100644 src/generated/models/WorkflowStepDto.ts create mode 100644 src/generated/models/WorkflowTransitionDto.ts create mode 100644 src/generated/models/WorkflowsDto.ts create mode 100644 src/generated/models/index.ts create mode 100644 src/generated/runtime.ts delete mode 100644 src/serialization/index.ts delete mode 100644 src/serialization/resources/apps/client/getApps.ts delete mode 100644 src/serialization/resources/apps/client/getPermissions.ts delete mode 100644 src/serialization/resources/apps/client/getTeamApps.ts delete mode 100644 src/serialization/resources/apps/client/index.ts delete mode 100644 src/serialization/resources/apps/client/requests/AddLanguageDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/AddRoleDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/AddWorkflowDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/CreateAppDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/CreateClientDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/TransferToTeamDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/UpdateAppDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/UpdateAppSettingsDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/UpdateAssetScriptsDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/UpdateClientDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/UpdateLanguageDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/UpdateRoleDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/UpdateWorkflowDto.ts delete mode 100644 src/serialization/resources/apps/client/requests/index.ts delete mode 100644 src/serialization/resources/apps/index.ts delete mode 100644 src/serialization/resources/assets/client/bulkUpdateAssets.ts delete mode 100644 src/serialization/resources/assets/client/getTags.ts delete mode 100644 src/serialization/resources/assets/client/index.ts delete mode 100644 src/serialization/resources/assets/client/putTag.ts delete mode 100644 src/serialization/resources/assets/client/requests/AnnotateAssetDto.ts delete mode 100644 src/serialization/resources/assets/client/requests/BulkUpdateAssetsDto.ts delete mode 100644 src/serialization/resources/assets/client/requests/CreateAssetFolderDto.ts delete mode 100644 src/serialization/resources/assets/client/requests/MoveAssetDto.ts delete mode 100644 src/serialization/resources/assets/client/requests/MoveAssetFolderDto.ts delete mode 100644 src/serialization/resources/assets/client/requests/RenameAssetFolderDto.ts delete mode 100644 src/serialization/resources/assets/client/requests/RenameTagDto.ts delete mode 100644 src/serialization/resources/assets/client/requests/index.ts delete mode 100644 src/serialization/resources/assets/index.ts delete mode 100644 src/serialization/resources/backups/client/index.ts delete mode 100644 src/serialization/resources/backups/client/requests/RestoreRequestDto.ts delete mode 100644 src/serialization/resources/backups/client/requests/index.ts delete mode 100644 src/serialization/resources/backups/index.ts delete mode 100644 src/serialization/resources/comments/client/getWatchingUsers.ts delete mode 100644 src/serialization/resources/comments/client/index.ts delete mode 100644 src/serialization/resources/comments/index.ts delete mode 100644 src/serialization/resources/contents/client/bulkUpdateAllContents.ts delete mode 100644 src/serialization/resources/contents/client/bulkUpdateContents.ts delete mode 100644 src/serialization/resources/contents/client/index.ts delete mode 100644 src/serialization/resources/contents/client/patchContent.ts delete mode 100644 src/serialization/resources/contents/client/postContent.ts delete mode 100644 src/serialization/resources/contents/client/postContents.ts delete mode 100644 src/serialization/resources/contents/client/postUpsertContent.ts delete mode 100644 src/serialization/resources/contents/client/putContent.ts delete mode 100644 src/serialization/resources/contents/client/requests/AllContentsByPostDto.ts delete mode 100644 src/serialization/resources/contents/client/requests/ChangeStatusDto.ts delete mode 100644 src/serialization/resources/contents/client/requests/ImportContentsDto.ts delete mode 100644 src/serialization/resources/contents/client/requests/index.ts delete mode 100644 src/serialization/resources/contents/index.ts delete mode 100644 src/serialization/resources/history/client/getAppHistory.ts delete mode 100644 src/serialization/resources/history/client/getTeamHistory.ts delete mode 100644 src/serialization/resources/history/client/index.ts delete mode 100644 src/serialization/resources/history/index.ts delete mode 100644 src/serialization/resources/index.ts delete mode 100644 src/serialization/resources/languages/client/getLanguages.ts delete mode 100644 src/serialization/resources/languages/client/index.ts delete mode 100644 src/serialization/resources/languages/index.ts delete mode 100644 src/serialization/resources/rules/client/getActions.ts delete mode 100644 src/serialization/resources/rules/client/getEventTypes.ts delete mode 100644 src/serialization/resources/rules/client/index.ts delete mode 100644 src/serialization/resources/rules/client/requests/UpdateRuleDto.ts delete mode 100644 src/serialization/resources/rules/client/requests/index.ts delete mode 100644 src/serialization/resources/rules/index.ts delete mode 100644 src/serialization/resources/schemas/client/index.ts delete mode 100644 src/serialization/resources/schemas/client/putPreviewUrls.ts delete mode 100644 src/serialization/resources/schemas/client/requests/ChangeCategoryDto.ts delete mode 100644 src/serialization/resources/schemas/client/requests/ConfigureFieldRulesDto.ts delete mode 100644 src/serialization/resources/schemas/client/requests/ConfigureUiFieldsDto.ts delete mode 100644 src/serialization/resources/schemas/client/requests/CreateSchemaDto.ts delete mode 100644 src/serialization/resources/schemas/client/requests/SynchronizeSchemaDto.ts delete mode 100644 src/serialization/resources/schemas/client/requests/UpdateSchemaDto.ts delete mode 100644 src/serialization/resources/schemas/client/requests/index.ts delete mode 100644 src/serialization/resources/schemas/index.ts delete mode 100644 src/serialization/resources/search/client/getSearchResults.ts delete mode 100644 src/serialization/resources/search/client/index.ts delete mode 100644 src/serialization/resources/search/index.ts delete mode 100644 src/serialization/resources/statistics/client/getStorageSizes.ts delete mode 100644 src/serialization/resources/statistics/client/getStorageSizesForTeam.ts delete mode 100644 src/serialization/resources/statistics/client/index.ts delete mode 100644 src/serialization/resources/statistics/index.ts delete mode 100644 src/serialization/resources/teams/client/getTeams.ts delete mode 100644 src/serialization/resources/teams/client/index.ts delete mode 100644 src/serialization/resources/teams/client/requests/CreateTeamDto.ts delete mode 100644 src/serialization/resources/teams/client/requests/UpdateTeamDto.ts delete mode 100644 src/serialization/resources/teams/client/requests/index.ts delete mode 100644 src/serialization/resources/teams/index.ts delete mode 100644 src/serialization/resources/translations/client/index.ts delete mode 100644 src/serialization/resources/translations/client/postQuestion.ts delete mode 100644 src/serialization/resources/translations/client/requests/AskDto.ts delete mode 100644 src/serialization/resources/translations/client/requests/TranslateDto.ts delete mode 100644 src/serialization/resources/translations/client/requests/index.ts delete mode 100644 src/serialization/resources/translations/index.ts delete mode 100644 src/serialization/resources/userManagement/client/index.ts delete mode 100644 src/serialization/resources/userManagement/client/requests/CreateUserDto.ts delete mode 100644 src/serialization/resources/userManagement/client/requests/UpdateUserDto.ts delete mode 100644 src/serialization/resources/userManagement/client/requests/index.ts delete mode 100644 src/serialization/resources/userManagement/index.ts delete mode 100644 src/serialization/resources/users/client/getUsers.ts delete mode 100644 src/serialization/resources/users/client/index.ts delete mode 100644 src/serialization/resources/users/client/requests/UpdateProfileDto.ts delete mode 100644 src/serialization/resources/users/client/requests/index.ts delete mode 100644 src/serialization/resources/users/index.ts delete mode 100644 src/serialization/types/ActionTypeEnum.ts delete mode 100644 src/serialization/types/AddFieldDto.ts delete mode 100644 src/serialization/types/AlgoliaRuleActionDto.ts delete mode 100644 src/serialization/types/AppDto.ts delete mode 100644 src/serialization/types/AppLanguageDto.ts delete mode 100644 src/serialization/types/AppLanguagesDto.ts delete mode 100644 src/serialization/types/AppSettingsDto.ts delete mode 100644 src/serialization/types/ArrayCalculatedDefaultValue.ts delete mode 100644 src/serialization/types/ArrayFieldPropertiesDto.ts delete mode 100644 src/serialization/types/AssetChangedRuleTriggerDto.ts delete mode 100644 src/serialization/types/AssetDto.ts delete mode 100644 src/serialization/types/AssetFolderDto.ts delete mode 100644 src/serialization/types/AssetFolderScope.ts delete mode 100644 src/serialization/types/AssetFoldersDto.ts delete mode 100644 src/serialization/types/AssetMeta.ts delete mode 100644 src/serialization/types/AssetPreviewMode.ts delete mode 100644 src/serialization/types/AssetScriptsDto.ts delete mode 100644 src/serialization/types/AssetType.ts delete mode 100644 src/serialization/types/AssetsDto.ts delete mode 100644 src/serialization/types/AssetsFieldPropertiesDto.ts delete mode 100644 src/serialization/types/AssignContributorDto.ts delete mode 100644 src/serialization/types/AzureQueueRuleActionDto.ts delete mode 100644 src/serialization/types/BackupJobDto.ts delete mode 100644 src/serialization/types/BackupJobsDto.ts delete mode 100644 src/serialization/types/BooleanFieldEditor.ts delete mode 100644 src/serialization/types/BooleanFieldPropertiesDto.ts delete mode 100644 src/serialization/types/BulkResultDto.ts delete mode 100644 src/serialization/types/BulkUpdateAssetType.ts delete mode 100644 src/serialization/types/BulkUpdateAssetsJobDto.ts delete mode 100644 src/serialization/types/BulkUpdateContentType.ts delete mode 100644 src/serialization/types/BulkUpdateContentsDto.ts delete mode 100644 src/serialization/types/BulkUpdateContentsJobDto.ts delete mode 100644 src/serialization/types/CallsUsageDtoDto.ts delete mode 100644 src/serialization/types/CallsUsagePerDateDto.ts delete mode 100644 src/serialization/types/ChangePlanDto.ts delete mode 100644 src/serialization/types/ClientDto.ts delete mode 100644 src/serialization/types/ClientsDto.ts delete mode 100644 src/serialization/types/CommentDto.ts delete mode 100644 src/serialization/types/CommentRuleActionDto.ts delete mode 100644 src/serialization/types/CommentRuleTriggerDto.ts delete mode 100644 src/serialization/types/CommentsDto.ts delete mode 100644 src/serialization/types/ComponentFieldPropertiesDto.ts delete mode 100644 src/serialization/types/ComponentsFieldPropertiesDto.ts delete mode 100644 src/serialization/types/ConfigurePreviewUrlsDto.ts delete mode 100644 src/serialization/types/ContentChangedRuleTriggerDto.ts delete mode 100644 src/serialization/types/ContentData.ts delete mode 100644 src/serialization/types/ContentDto.ts delete mode 100644 src/serialization/types/ContentFieldData.ts delete mode 100644 src/serialization/types/ContentsDto.ts delete mode 100644 src/serialization/types/ContributorDto.ts delete mode 100644 src/serialization/types/ContributorsDto.ts delete mode 100644 src/serialization/types/ContributorsMetadata.ts delete mode 100644 src/serialization/types/CreateContentRuleActionDto.ts delete mode 100644 src/serialization/types/CreateRuleDto.ts delete mode 100644 src/serialization/types/CurrentStorageDto.ts delete mode 100644 src/serialization/types/DateTimeCalculatedDefaultValue.ts delete mode 100644 src/serialization/types/DateTimeFieldEditor.ts delete mode 100644 src/serialization/types/DateTimeFieldPropertiesDto.ts delete mode 100644 src/serialization/types/DeepDetectRuleActionDto.ts delete mode 100644 src/serialization/types/DiscourseRuleActionDto.ts delete mode 100644 src/serialization/types/EditorDto.ts delete mode 100644 src/serialization/types/ElasticSearchRuleActionDto.ts delete mode 100644 src/serialization/types/EmailRuleActionDto.ts delete mode 100644 src/serialization/types/ErrorDto.ts delete mode 100644 src/serialization/types/EventConsumerDto.ts delete mode 100644 src/serialization/types/EventConsumersDto.ts delete mode 100644 src/serialization/types/ExposedValues.ts delete mode 100644 src/serialization/types/FastlyRuleActionDto.ts delete mode 100644 src/serialization/types/FeatureDto.ts delete mode 100644 src/serialization/types/FeaturesDto.ts delete mode 100644 src/serialization/types/FieldDto.ts delete mode 100644 src/serialization/types/FieldPropertiesDto.ts delete mode 100644 src/serialization/types/FieldRuleAction.ts delete mode 100644 src/serialization/types/FieldRuleDto.ts delete mode 100644 src/serialization/types/GeolocationFieldEditor.ts delete mode 100644 src/serialization/types/GeolocationFieldPropertiesDto.ts delete mode 100644 src/serialization/types/HistoryEventDto.ts delete mode 100644 src/serialization/types/ImageFormat.ts delete mode 100644 src/serialization/types/JobStatus.ts delete mode 100644 src/serialization/types/JsonFieldPropertiesDto.ts delete mode 100644 src/serialization/types/LanguageDto.ts delete mode 100644 src/serialization/types/LocalizedValueOfNullableBoolean.ts delete mode 100644 src/serialization/types/LocalizedValueOfNullableDouble.ts delete mode 100644 src/serialization/types/LocalizedValueOfNullableInstant.ts delete mode 100644 src/serialization/types/LocalizedValueOfReadonlyListOfString.ts delete mode 100644 src/serialization/types/LocalizedValueOfString.ts delete mode 100644 src/serialization/types/LogDownloadDto.ts delete mode 100644 src/serialization/types/ManualRuleTriggerDto.ts delete mode 100644 src/serialization/types/MediumRuleActionDto.ts delete mode 100644 src/serialization/types/NestedFieldDto.ts delete mode 100644 src/serialization/types/NotificationRuleActionDto.ts delete mode 100644 src/serialization/types/NumberFieldEditor.ts delete mode 100644 src/serialization/types/NumberFieldPropertiesDto.ts delete mode 100644 src/serialization/types/OpenSearchRuleActionDto.ts delete mode 100644 src/serialization/types/PatternDto.ts delete mode 100644 src/serialization/types/PlanChangedDto.ts delete mode 100644 src/serialization/types/PlanDto.ts delete mode 100644 src/serialization/types/PlansDto.ts delete mode 100644 src/serialization/types/PlansLockedReason.ts delete mode 100644 src/serialization/types/PrerenderRuleActionDto.ts delete mode 100644 src/serialization/types/PropertyPath.ts delete mode 100644 src/serialization/types/QueryDto.ts delete mode 100644 src/serialization/types/QueryJsonDto.ts delete mode 100644 src/serialization/types/ReferencesFieldEditor.ts delete mode 100644 src/serialization/types/ReferencesFieldPropertiesDto.ts delete mode 100644 src/serialization/types/ReferralInfo.ts delete mode 100644 src/serialization/types/ReorderFieldsDto.ts delete mode 100644 src/serialization/types/ResizeMode.ts delete mode 100644 src/serialization/types/Resource.ts delete mode 100644 src/serialization/types/ResourceLink.ts delete mode 100644 src/serialization/types/ResourcesDto.ts delete mode 100644 src/serialization/types/RestoreJobDto.ts delete mode 100644 src/serialization/types/RoleDto.ts delete mode 100644 src/serialization/types/RolesDto.ts delete mode 100644 src/serialization/types/RuleActionDto.ts delete mode 100644 src/serialization/types/RuleDto.ts delete mode 100644 src/serialization/types/RuleElementDto.ts delete mode 100644 src/serialization/types/RuleElementPropertyDto.ts delete mode 100644 src/serialization/types/RuleEventDto.ts delete mode 100644 src/serialization/types/RuleEventsDto.ts delete mode 100644 src/serialization/types/RuleFieldEditor.ts delete mode 100644 src/serialization/types/RuleJobResult.ts delete mode 100644 src/serialization/types/RuleResult.ts delete mode 100644 src/serialization/types/RuleTriggerDto.ts delete mode 100644 src/serialization/types/RulesDto.ts delete mode 100644 src/serialization/types/ScheduleJobDto.ts delete mode 100644 src/serialization/types/SchemaChangedRuleTriggerDto.ts delete mode 100644 src/serialization/types/SchemaCondition.ts delete mode 100644 src/serialization/types/SchemaDto.ts delete mode 100644 src/serialization/types/SchemaPropertiesDto.ts delete mode 100644 src/serialization/types/SchemaScriptsDto.ts delete mode 100644 src/serialization/types/SchemaType.ts delete mode 100644 src/serialization/types/SchemasDto.ts delete mode 100644 src/serialization/types/ScriptRuleActionDto.ts delete mode 100644 src/serialization/types/SearchResultDto.ts delete mode 100644 src/serialization/types/SearchResultType.ts delete mode 100644 src/serialization/types/SignalRRuleActionDto.ts delete mode 100644 src/serialization/types/SimulatedRuleEventDto.ts delete mode 100644 src/serialization/types/SimulatedRuleEventsDto.ts delete mode 100644 src/serialization/types/SkipReason.ts delete mode 100644 src/serialization/types/SlackRuleActionDto.ts delete mode 100644 src/serialization/types/SortNode.ts delete mode 100644 src/serialization/types/SortOrder.ts delete mode 100644 src/serialization/types/StatusInfoDto.ts delete mode 100644 src/serialization/types/StorageUsagePerDateDto.ts delete mode 100644 src/serialization/types/StringContentType.ts delete mode 100644 src/serialization/types/StringFieldEditor.ts delete mode 100644 src/serialization/types/StringFieldPropertiesDto.ts delete mode 100644 src/serialization/types/TagsFieldEditor.ts delete mode 100644 src/serialization/types/TagsFieldPropertiesDto.ts delete mode 100644 src/serialization/types/TeamDto.ts delete mode 100644 src/serialization/types/TemplateDetailsDto.ts delete mode 100644 src/serialization/types/TemplateDto.ts delete mode 100644 src/serialization/types/TemplatesDto.ts delete mode 100644 src/serialization/types/TranslationDto.ts delete mode 100644 src/serialization/types/TranslationStatus.ts delete mode 100644 src/serialization/types/TweetRuleActionDto.ts delete mode 100644 src/serialization/types/TypesenseRuleActionDto.ts delete mode 100644 src/serialization/types/UiFieldEditor.ts delete mode 100644 src/serialization/types/UiFieldPropertiesDto.ts delete mode 100644 src/serialization/types/UpdateFieldDto.ts delete mode 100644 src/serialization/types/UpdateSettingDto.ts delete mode 100644 src/serialization/types/UpsertCommentDto.ts delete mode 100644 src/serialization/types/UpsertSchemaDto.ts delete mode 100644 src/serialization/types/UpsertSchemaFieldDto.ts delete mode 100644 src/serialization/types/UpsertSchemaNestedFieldDto.ts delete mode 100644 src/serialization/types/UsageRuleTriggerDto.ts delete mode 100644 src/serialization/types/UserDto.ts delete mode 100644 src/serialization/types/UserProperty.ts delete mode 100644 src/serialization/types/UsersDto.ts delete mode 100644 src/serialization/types/WebhookMethod.ts delete mode 100644 src/serialization/types/WebhookRuleActionDto.ts delete mode 100644 src/serialization/types/WorkflowDto.ts delete mode 100644 src/serialization/types/WorkflowStepDto.ts delete mode 100644 src/serialization/types/WorkflowTransitionDto.ts delete mode 100644 src/serialization/types/WorkflowsDto.ts delete mode 100644 src/serialization/types/index.ts create mode 100644 src/wrapper/errors.ts create mode 100644 src/wrapper/headers.ts delete mode 100644 src/wrapper/normalize-headers.ts create mode 100644 templates/apis.mustache create mode 100644 templates/modelGeneric.mustache create mode 100644 templates/runtime.mustache delete mode 100644 test-only.ps1 delete mode 100644 test-only.sh delete mode 100644 test.ps1 delete mode 100755 test.sh delete mode 100644 tests/normalize-headers.test.ts delete mode 100644 yarn.lock diff --git a/.fernignore b/.fernignore deleted file mode 100644 index 97cbfe0..0000000 --- a/.fernignore +++ /dev/null @@ -1,18 +0,0 @@ -# Specify files that shouldn't be modified by Fern - -README.md -src/index.ts -src/wrapper - -# Workflows -.github/workflows/check-updates.yml -.github/workflows/test.yml - -# tests -tests -babel.config.js -jest.config.js -test.sh -test.ps1 -test-only.sh -test-only.ps1 \ No newline at end of file diff --git a/fern/config.json b/fern/config.json deleted file mode 100644 index f9196e3..0000000 --- a/fern/config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "organization": "sebastian-stehle", - "version": "0.39.10" -} \ No newline at end of file diff --git a/fern/fern.config.json b/fern/fern.config.json deleted file mode 100644 index b0b388f..0000000 --- a/fern/fern.config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "organization": "squidex", - "version": "0.39.10" -} \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml deleted file mode 100644 index c8ae78d..0000000 --- a/fern/generators.yml +++ /dev/null @@ -1,9 +0,0 @@ -default-group: local -groups: - local: - generators: - - name: fernapi/fern-typescript-node-sdk - version: 0.9.5 - output: - location: local-file-system - path: ../sdks/typescript diff --git a/generate.ps1 b/generate.ps1 new file mode 100644 index 0000000..b98191d --- /dev/null +++ b/generate.ps1 @@ -0,0 +1,2 @@ +# docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli config-help -g php +docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/openapi.json -g typescript-fetch --template-dir /local/templates -o /local/src/generated -c /local/openapi-config.yml \ No newline at end of file diff --git a/openapi-config.yml b/openapi-config.yml new file mode 100644 index 0000000..5958781 --- /dev/null +++ b/openapi-config.yml @@ -0,0 +1,9 @@ +globalProperties: + apiDocs: false + apiTests: false + modelDocs: false + modelTests: false + +additionalProperties: + withInterfaces: true + useSingleRequestParameter: true \ No newline at end of file diff --git a/fern/openapi/openapi.json b/openapi.json similarity index 98% rename from fern/openapi/openapi.json rename to openapi.json index 6ee2f8e..64a45c3 100644 --- a/fern/openapi/openapi.json +++ b/openapi.json @@ -762,7 +762,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -1616,7 +1617,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -1672,7 +1674,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "fromDate", @@ -1827,7 +1830,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -1938,7 +1942,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "fromDate", @@ -2099,7 +2104,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "query", @@ -2168,7 +2174,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2267,7 +2274,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2377,7 +2385,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2466,7 +2475,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2555,7 +2565,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2655,7 +2666,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2753,7 +2765,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2840,7 +2853,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2949,7 +2963,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3048,7 +3063,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3136,7 +3152,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3235,7 +3252,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3323,7 +3341,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3422,7 +3441,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3510,7 +3530,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3609,7 +3630,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3697,7 +3719,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3796,7 +3819,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3884,7 +3908,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3982,7 +4007,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -4036,7 +4062,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -4122,7 +4149,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4186,7 +4214,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4273,7 +4302,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4342,7 +4372,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4431,7 +4462,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4520,7 +4552,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4609,7 +4642,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4698,7 +4732,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4787,7 +4822,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4863,7 +4899,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4980,7 +5017,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -5034,7 +5072,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -5113,7 +5152,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -5169,7 +5209,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5256,7 +5297,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5325,7 +5367,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5401,7 +5444,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5477,7 +5521,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5546,7 +5591,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5622,7 +5668,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5688,7 +5735,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -5767,7 +5815,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5833,7 +5882,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "ruleId", @@ -5919,7 +5969,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -5975,7 +6026,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -6042,7 +6094,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -6193,7 +6246,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -6249,7 +6303,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -6522,7 +6577,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -6719,7 +6775,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -6775,7 +6832,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -6844,7 +6902,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "channel", @@ -7301,7 +7360,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7483,7 +7543,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7620,7 +7681,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7762,7 +7824,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7882,7 +7945,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8035,7 +8099,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8160,7 +8225,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8276,7 +8342,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8374,7 +8441,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8452,7 +8520,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8591,7 +8660,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8730,7 +8800,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8838,7 +8909,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8932,7 +9004,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9025,7 +9098,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9139,7 +9213,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9255,7 +9330,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9360,7 +9436,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9463,7 +9540,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9568,7 +9646,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "The query string", @@ -9657,7 +9736,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-Unpublished", @@ -9739,7 +9819,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "The query string", @@ -9828,7 +9909,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-Unpublished", @@ -9910,7 +9992,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "ids", @@ -10079,7 +10162,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-Fields", @@ -10211,7 +10295,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -10302,7 +10387,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -10361,7 +10447,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -10500,7 +10587,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -10555,7 +10643,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -10708,7 +10797,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "idOrSlug", @@ -11141,7 +11231,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "parentId", @@ -11215,7 +11306,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -11294,7 +11386,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -11381,7 +11474,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -11450,7 +11544,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -11540,7 +11635,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -11600,7 +11696,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "name", @@ -11694,7 +11791,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "parentId", @@ -11833,7 +11931,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "ParentId", @@ -11959,7 +12058,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-NoTotal", @@ -12056,7 +12156,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12121,7 +12222,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12244,7 +12346,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12331,7 +12434,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12418,7 +12522,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -12501,7 +12606,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12608,7 +12714,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12697,7 +12804,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -12751,7 +12859,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -12831,7 +12940,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -12886,7 +12996,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -12966,7 +13077,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -13054,7 +13166,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -13130,7 +13243,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13184,7 +13298,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -13263,7 +13378,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13327,7 +13443,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -13403,7 +13520,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13451,7 +13569,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -13536,7 +13655,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13602,7 +13722,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13656,7 +13777,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -13735,7 +13857,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "language", @@ -13822,7 +13945,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "language", @@ -13898,7 +14022,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13952,7 +14077,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14031,7 +14157,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14090,7 +14217,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "roleName", @@ -14177,7 +14305,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "roleName", @@ -14419,7 +14548,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14471,7 +14601,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14548,7 +14679,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14607,7 +14739,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14686,7 +14819,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14738,7 +14872,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14817,7 +14952,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14871,7 +15007,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14950,7 +15087,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -15037,7 +15175,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..de8edca --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6545 @@ +{ + "name": "@squidex/squidex", + "version": "1.2.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@squidex/squidex", + "version": "1.2.1", + "dependencies": { + "@types/url-join": "4.0.1", + "@ungap/url-search-params": "0.2.2", + "axios": "0.27.2", + "form-data": "4.0.0", + "js-base64": "3.7.2", + "url-join": "4.0.1" + }, + "devDependencies": { + "@babel/core": "^7.25.2", + "@babel/preset-env": "^7.25.4", + "@babel/preset-typescript": "^7.24.7", + "@types/jest": "^29.5.12", + "@types/node": "17.0.33", + "jest": "^29.7.0", + "prettier": "2.7.1", + "typescript": "4.6.4" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", + "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", + "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.25.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.5.tgz", + "integrity": "sha512-abd43wyLfbWoxC6ahM8xTkqLpGB2iWBVyuKC9/srhFunCd1SDNrV1s72bBpK4hLj8KLzHBBcOblvLQZBNw9r3w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.25.4", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz", + "integrity": "sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.7.tgz", + "integrity": "sha512-xZeCVVdwb4MsDBkkyZ64tReWYrLRHlMN72vP7Bdm3OUOuyFZExhsHUUnuWnm2/XOlAJzR0LfPpB56WXZn0X/lA==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", + "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.25.2", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.4.tgz", + "integrity": "sha512-ro/bFs3/84MDgDmMwbcHgDa8/E6J3QKNTk4xJJnVeFtGE+tL0K26E3pNxhYz2b67fJpt7Aphw5XcploKXuCvCQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/helper-replace-supers": "^7.25.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/traverse": "^7.25.4", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.2.tgz", + "integrity": "sha512-+wqVGP+DFmqwFD3EH6TMTfUNeqDehV3E/dl+Sd54eaXqm17tEUNbEIn4sVivVowbvUpOtIGxdo3GoXyDH9N/9g==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz", + "integrity": "sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz", + "integrity": "sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.8", + "@babel/types": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", + "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz", + "integrity": "sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", + "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.0.tgz", + "integrity": "sha512-NhavI2eWEIz/H9dbrG0TuOicDhNexze43i5z7lEqwYm0WEZVTwnPpA0EafUTP7+6/W79HWIP2cTe3Z5NiSTVpw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-wrap-function": "^7.25.0", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.25.0.tgz", + "integrity": "sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg==", + "dev": true, + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz", + "integrity": "sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", + "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", + "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.0.tgz", + "integrity": "sha512-s6Q1ebqutSiZnEjaofc/UKDyC4SbzV5n5SrA2Gq8UawLycr3i04f1dX4OzoQVnexm6aOCh37SQNYlJ/8Ku+PMQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.0.tgz", + "integrity": "sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.4.tgz", + "integrity": "sha512-nq+eWrOgdtu3jG5Os4TQP3x3cLA8hR8TvJNjD8vnPa20WGycimcparWnLK4jJhElTK6SDyuJo1weMKO/5LpmLA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.25.4" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.3.tgz", + "integrity": "sha512-wUrcsxZg6rqBXG05HG1FPYgsP6EvwF4WpBbxIpWIIYnH8wG0gzx3yZY3dtEHas4sTAOGkbTsc9EGPxwff8lRoA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.0.tgz", + "integrity": "sha512-Bm4bH2qsX880b/3ziJ8KD711LT7z4u8CFudmjqle65AZj/HNUFhEf90dqYv6O86buWvSBmeQDjv0Tn2aF/bIBA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.0.tgz", + "integrity": "sha512-lXwdNZtTmeVOOFtwM/WDe7yg1PL8sYhRk/XH0FzbR2HDQ0xC+EnQ/JHeoMYSavtU115tnUk0q9CDyq8si+LMAA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.7.tgz", + "integrity": "sha512-+izXIbke1T33mY4MSNnrqhPXDz01WYhEf3yF5NbnUtkiNnm+XBZJl3kNfoK6NKmYlz/D07+l2GWVK/QfDkNCuQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.0.tgz", + "integrity": "sha512-tggFrk1AIShG/RUQbEwt2Tr/E+ObkfwrPjR6BjbRvsx24+PSjK8zrq0GWPNCjo8qpRx4DuJzlcvWJqlm+0h3kw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.7.tgz", + "integrity": "sha512-Ec3NRUMoi8gskrkBe3fNmEQfxDvY8bgfQpz6jlk/41kX9eUjvpyqWU7PBP/pLAvMaSQjbMNKJmvX57jP+M6bPg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz", + "integrity": "sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", + "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz", + "integrity": "sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.7.tgz", + "integrity": "sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.4.tgz", + "integrity": "sha512-jz8cV2XDDTqjKPwVPJBIjORVEmSGYhdRa8e5k5+vN+uwcjSrSxUaebBRa4ko1jqNF2uxyg8G6XYk30Jv285xzg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-remap-async-to-generator": "^7.25.0", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/traverse": "^7.25.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.7.tgz", + "integrity": "sha512-SQY01PcJfmQ+4Ash7NE+rpbLFbmqA2GPIgqzxfFTL4t1FKRq4zTms/7htKpoCUI9OcFYgzqfmCdH53s6/jn5fA==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-remap-async-to-generator": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz", + "integrity": "sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.0.tgz", + "integrity": "sha512-yBQjYoOjXlFv9nlXb3f1casSHOZkWr29NX+zChVanLg5Nc157CrbEX9D7hxxtTpuFy7Q0YzmmWfJxzvps4kXrQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.4.tgz", + "integrity": "sha512-nZeZHyCWPfjkdU5pA/uHiTaDAFUEqkpzf1YoQT2NeSynCGYq9rxfyI3XpQbfx/a0hSnFH6TGlEXvae5Vi7GD8g==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.25.4", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.7.tgz", + "integrity": "sha512-HMXK3WbBPpZQufbMG4B46A90PkuuhN9vBCb5T8+VAHqvAqvcLi+2cKoukcpmUYkszLhScU3l1iudhrks3DggRQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.4.tgz", + "integrity": "sha512-oexUfaQle2pF/b6E0dwsxQtAol9TLSO88kQvym6HHBWFliV2lGdrPieX+WgMRLSJDVzdYywk7jXbLPuO2KLTLg==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-replace-supers": "^7.25.0", + "@babel/traverse": "^7.25.4", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz", + "integrity": "sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/template": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz", + "integrity": "sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.7.tgz", + "integrity": "sha512-ZOA3W+1RRTSWvyqcMJDLqbchh7U4NRGqwRfFSVbOLS/ePIP4vHB5e8T8eXcuqyN1QkgKyj5wuW0lcS85v4CrSw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.7.tgz", + "integrity": "sha512-JdYfXyCRihAe46jUIliuL2/s0x0wObgwwiGxw/UbgJBr20gQBThrokO4nYKgWkD7uBaqM7+9x5TU7NkExZJyzw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.0.tgz", + "integrity": "sha512-YLpb4LlYSc3sCUa35un84poXoraOiQucUTTu8X1j18JV+gNa8E0nyUf/CjZ171IRGr4jEguF+vzJU66QZhn29g==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz", + "integrity": "sha512-sc3X26PhZQDb3JhORmakcbvkeInvxz+A8oda99lj7J60QRuPZvNAk9wQlTBS1ZynelDrDmTU4pw1tyc5d5ZMUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.7.tgz", + "integrity": "sha512-Rqe/vSc9OYgDajNIK35u7ot+KeCoetqQYFXM4Epf7M7ez3lWlOjrDjrwMei6caCVhfdw+mIKD4cgdGNy5JQotQ==", + "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.7.tgz", + "integrity": "sha512-v0K9uNYsPL3oXZ/7F9NNIbAj2jv1whUEtyA6aujhekLs56R++JDQuzRcP2/z4WX5Vg/c5lE9uWZA0/iUoFhLTA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.7.tgz", + "integrity": "sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.25.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.1.tgz", + "integrity": "sha512-TVVJVdW9RKMNgJJlLtHsKDTydjZAbwIsn6ySBPQaEAUU5+gVvlJt/9nRmqVbsV/IBanRjzWoaAQKLoamWVOUuA==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.7.tgz", + "integrity": "sha512-2yFnBGDvRuxAaE/f0vfBKvtnvvqU8tGpMHqMNpTN2oWMKIR3NqFkjaAgGwawhqK/pIN2T3XdjGPdaG0vDhOBGw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.2.tgz", + "integrity": "sha512-HQI+HcTbm9ur3Z2DkO+jgESMAMcYLuN/A7NRw9juzxAezN9AvqvUTnpKP/9kkYANz6u7dFlAyOu44ejuGySlfw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.7.tgz", + "integrity": "sha512-4D2tpwlQ1odXmTEIFWy9ELJcZHqrStlzK/dAOWYyxX3zT0iXQB6banjgeOJQXzEc4S0E0a5A+hahxPaEFYftsw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz", + "integrity": "sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.7.tgz", + "integrity": "sha512-9+pB1qxV3vs/8Hdmz/CulFB8w2tuu6EB94JZFsjdqxQokwGa9Unap7Bo2gGBGIvPmDIVvQrom7r5m/TCDMURhg==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz", + "integrity": "sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-simple-access": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.0.tgz", + "integrity": "sha512-YPJfjQPDXxyQWg/0+jHKj1llnY5f/R6a0p/vP4lPymxLu7Lvl4k2WMitqi08yxwQcCVUUdG9LCUj4TNEgAp3Jw==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.7.tgz", + "integrity": "sha512-3aytQvqJ/h9z4g8AsKPLvD4Zqi2qT+L3j7XoFFu1XBlZWEl2/1kWnhmAbxpLgPrHSY0M6UA02jyTiwUVtiKR6A==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.7.tgz", + "integrity": "sha512-/jr7h/EWeJtk1U/uz2jlsCioHkZk1JJZVcc8oQsJ1dUlaJD83f4/6Zeh2aHt9BIFokHIsSeDfhUmju0+1GPd6g==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.7.tgz", + "integrity": "sha512-RNKwfRIXg4Ls/8mMTza5oPF5RkOW8Wy/WgMAp1/F1yZ8mMbtwXW+HDoJiOsagWrAhI5f57Vncrmr9XeT4CVapA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.7.tgz", + "integrity": "sha512-Ts7xQVk1OEocqzm8rHMXHlxvsfZ0cEF2yomUqpKENHWMF4zKk175Y4q8H5knJes6PgYad50uuRmt3UJuhBw8pQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.7.tgz", + "integrity": "sha512-e6q1TiVUzvH9KRvicuxdBTUj4AdKSRwzIyFFnfnezpCfP2/7Qmbb8qbU2j7GODbl4JMkblitCQjKYUaX/qkkwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.7.tgz", + "integrity": "sha512-4QrHAr0aXQCEFni2q4DqKLD31n2DL+RxcwnNjDFkSG0eNQ/xCavnRkfCUjsyqGC2OviNJvZOF/mQqZBw7i2C5Q==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz", + "integrity": "sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-replace-supers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.7.tgz", + "integrity": "sha512-uLEndKqP5BfBbC/5jTwPxLh9kqPWWgzN/f8w6UwAIirAEqiIVJWWY312X72Eub09g5KF9+Zn7+hT7sDxmhRuKA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.8.tgz", + "integrity": "sha512-5cTOLSMs9eypEy8JUVvIKOu6NgvbJMnpG62VpIHrTmROdQ+L5mDAaI40g25k5vXti55JWNX5jCkq3HZxXBQANw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz", + "integrity": "sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.4.tgz", + "integrity": "sha512-ao8BG7E2b/URaUQGqN3Tlsg+M3KlHY6rJ1O1gXAEUnZoyNQnvKyH87Kfg+FoxSeyWUB8ISZZsC91C44ZuBFytw==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.25.4", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.7.tgz", + "integrity": "sha512-9z76mxwnwFxMyxZWEgdgECQglF2Q7cFLm0kMf8pGwt+GSJsY0cONKj/UuO4bOH0w/uAel3ekS4ra5CEAyJRmDA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz", + "integrity": "sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.7.tgz", + "integrity": "sha512-lq3fvXPdimDrlg6LWBoqj+r/DEWgONuwjuOuQCSYgRroXDH/IdM1C0IZf59fL5cHLpjEH/O6opIRBbqv7ELnuA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "regenerator-transform": "^0.15.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.7.tgz", + "integrity": "sha512-0DUq0pHcPKbjFZCfTss/pGkYMfy3vFWydkUBd9r0GHpIyfs2eCDENvqadMycRS9wZCXR41wucAfJHJmwA0UmoQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.7.tgz", + "integrity": "sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz", + "integrity": "sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.7.tgz", + "integrity": "sha512-kHPSIJc9v24zEml5geKg9Mjx5ULpfncj0wRpYtxbvKyTtHCYDkVE3aHQ03FrpEo4gEe2vrJJS1Y9CJTaThA52g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz", + "integrity": "sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.8.tgz", + "integrity": "sha512-adNTUpDCVnmAE58VEqKlAA6ZBlNkMnWD0ZcW76lyNFN3MJniyGFZfNwERVk8Ap56MCnXztmDr19T4mPTztcuaw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.2.tgz", + "integrity": "sha512-lBwRvjSmqiMYe/pS0+1gggjJleUJi7NzjvQ1Fkqtt69hBa/0t1YuW/MLQMAPixfwaQOHUXsd6jeU3Z+vdGv3+A==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-create-class-features-plugin": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-syntax-typescript": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.7.tgz", + "integrity": "sha512-U3ap1gm5+4edc2Q/P+9VrBNhGkfnf+8ZqppY71Bo/pzZmXhhLdqgaUl6cuB07O1+AQJtCLfaOmswiNbSQ9ivhw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.7.tgz", + "integrity": "sha512-uH2O4OV5M9FZYQrwc7NdVmMxQJOCCzFeYudlZSzUAHRFeOujQefa92E74TQDVskNHCzOXoigEuoyzHDhaEaK5w==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.7.tgz", + "integrity": "sha512-hlQ96MBZSAXUq7ltkjtu3FJCCSMx/j629ns3hA3pXnBXjanNP0LHi+JpPeA81zaWgVK1VGH95Xuy7u0RyQ8kMg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.4.tgz", + "integrity": "sha512-qesBxiWkgN1Q+31xUE9RcMk79eOXXDCv6tfyGMRSs4RGlioSg2WVyQAm07k726cSE56pa+Kb0y9epX2qaXzTvA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.2", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.25.4.tgz", + "integrity": "sha512-W9Gyo+KmcxjGahtt3t9fb14vFRWvPpu5pT6GBlovAK6BTBcxgjfVMSQCfJl4oi35ODrxP6xx2Wr8LNST57Mraw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.25.4", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-validator-option": "^7.24.8", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.3", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.0", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.7", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.0", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.24.7", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.24.7", + "@babel/plugin-transform-async-generator-functions": "^7.25.4", + "@babel/plugin-transform-async-to-generator": "^7.24.7", + "@babel/plugin-transform-block-scoped-functions": "^7.24.7", + "@babel/plugin-transform-block-scoping": "^7.25.0", + "@babel/plugin-transform-class-properties": "^7.25.4", + "@babel/plugin-transform-class-static-block": "^7.24.7", + "@babel/plugin-transform-classes": "^7.25.4", + "@babel/plugin-transform-computed-properties": "^7.24.7", + "@babel/plugin-transform-destructuring": "^7.24.8", + "@babel/plugin-transform-dotall-regex": "^7.24.7", + "@babel/plugin-transform-duplicate-keys": "^7.24.7", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.0", + "@babel/plugin-transform-dynamic-import": "^7.24.7", + "@babel/plugin-transform-exponentiation-operator": "^7.24.7", + "@babel/plugin-transform-export-namespace-from": "^7.24.7", + "@babel/plugin-transform-for-of": "^7.24.7", + "@babel/plugin-transform-function-name": "^7.25.1", + "@babel/plugin-transform-json-strings": "^7.24.7", + "@babel/plugin-transform-literals": "^7.25.2", + "@babel/plugin-transform-logical-assignment-operators": "^7.24.7", + "@babel/plugin-transform-member-expression-literals": "^7.24.7", + "@babel/plugin-transform-modules-amd": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.8", + "@babel/plugin-transform-modules-systemjs": "^7.25.0", + "@babel/plugin-transform-modules-umd": "^7.24.7", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7", + "@babel/plugin-transform-new-target": "^7.24.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", + "@babel/plugin-transform-numeric-separator": "^7.24.7", + "@babel/plugin-transform-object-rest-spread": "^7.24.7", + "@babel/plugin-transform-object-super": "^7.24.7", + "@babel/plugin-transform-optional-catch-binding": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.8", + "@babel/plugin-transform-parameters": "^7.24.7", + "@babel/plugin-transform-private-methods": "^7.25.4", + "@babel/plugin-transform-private-property-in-object": "^7.24.7", + "@babel/plugin-transform-property-literals": "^7.24.7", + "@babel/plugin-transform-regenerator": "^7.24.7", + "@babel/plugin-transform-reserved-words": "^7.24.7", + "@babel/plugin-transform-shorthand-properties": "^7.24.7", + "@babel/plugin-transform-spread": "^7.24.7", + "@babel/plugin-transform-sticky-regex": "^7.24.7", + "@babel/plugin-transform-template-literals": "^7.24.7", + "@babel/plugin-transform-typeof-symbol": "^7.24.8", + "@babel/plugin-transform-unicode-escapes": "^7.24.7", + "@babel/plugin-transform-unicode-property-regex": "^7.24.7", + "@babel/plugin-transform-unicode-regex": "^7.24.7", + "@babel/plugin-transform-unicode-sets-regex": "^7.25.4", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.37.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.24.7.tgz", + "integrity": "sha512-SyXRe3OdWwIwalxDg5UtJnJQO+YPcTfwiIY2B0Xlddh9o7jpWLvv8X1RthIeDOxQ+O1ML5BLPCONToObyVQVuQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "@babel/plugin-syntax-jsx": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.7", + "@babel/plugin-transform-typescript": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", + "dev": true + }, + "node_modules/@babel/runtime": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.4.tgz", + "integrity": "sha512-DSgLeL/FNcpXuzav5wfYvHCGvynXkJbn3Zvc3823AEe9nPwW9IK4UoCSS5yGymmQzN0pCPvivtgS6/8U2kkm1w==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", + "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.4.tgz", + "integrity": "sha512-VJ4XsrD+nOvlXyLzmLzUs/0qjFS4sK30te5yEFlvbbUNEgKaVb2BHZUpAL+ttLPQAHNrsI3zZisbfha5Cvr8vg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.4", + "@babel/parser": "^7.25.4", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.4", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.4.tgz", + "integrity": "sha512-zQ1ijeeCXVEh+aNL0RlmkPkG8HUiDcU2pzQQFjtbntgAczRASFzj4H+6+bV+dy1ntKR14I/DypeuRG1uma98iQ==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.12", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", + "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/node": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.33.tgz", + "integrity": "sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ==" + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/@ungap/url-search-params": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@ungap/url-search-params/-/url-search-params-0.2.2.tgz", + "integrity": "sha512-qQsguKXZVKdCixOHX9jqnX/K/1HekPDpGKyEcXHT+zR6EjGA7S4boSuelL4uuPv6YfhN0n8c4UxW+v/Z3gM2iw==" + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz", + "integrity": "sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.6.2", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.10.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", + "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2", + "core-js-compat": "^3.38.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz", + "integrity": "sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", + "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", + "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001646", + "electron-to-chromium": "^1.5.4", + "node-releases": "^2.0.18", + "update-browserslist-db": "^1.1.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001653", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz", + "integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", + "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/core-js-compat": { + "version": "3.38.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.38.1.tgz", + "integrity": "sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==", + "dev": true, + "dependencies": { + "browserslist": "^4.23.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/create-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/create-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/create-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/create-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/create-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/create-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.13", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz", + "integrity": "sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", + "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-base64": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", + "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", + "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", + "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "dev": true + }, + "node_modules/regenerator-transform": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dev": true, + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", + "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==" + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json index c124f7d..e5dd7d1 100644 --- a/package.json +++ b/package.json @@ -6,21 +6,28 @@ "main": "./index.js", "types": "./index.d.ts", "scripts": { - "format": "prettier --write 'src/**/*.ts'", + "format": "prettier --write src/wrapper/**/*.ts", + "format:tests": "prettier --write tests/**/*.ts", "build": "tsc", - "prepack": "cp -rv dist/. ." + "prepack": "cp -rv dist/. .", + "test": "jest tests/assets.test.ts" }, "dependencies": { - "@ungap/url-search-params": "0.2.2", - "url-join": "4.0.1", "@types/url-join": "4.0.1", - "form-data": "4.0.0", + "@ungap/url-search-params": "0.2.2", "axios": "0.27.2", - "js-base64": "3.7.2" + "form-data": "4.0.0", + "js-base64": "3.7.2", + "url-join": "4.0.1" }, "devDependencies": { + "@babel/core": "^7.25.2", + "@babel/preset-env": "^7.25.4", + "@babel/preset-typescript": "^7.24.7", + "@types/jest": "^29.5.12", "@types/node": "17.0.33", + "jest": "^29.7.0", "prettier": "2.7.1", "typescript": "4.6.4" } -} \ No newline at end of file +} diff --git a/src/Client.ts b/src/Client.ts deleted file mode 100644 index a0b7eeb..0000000 --- a/src/Client.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "./environments"; -import * as core from "./core"; -import { UserManagement } from "./api/resources/userManagement/client/Client"; -import { Users } from "./api/resources/users/client/Client"; -import { Translations } from "./api/resources/translations/client/Client"; -import { Templates } from "./api/resources/templates/client/Client"; -import { Teams } from "./api/resources/teams/client/Client"; -import { Statistics } from "./api/resources/statistics/client/Client"; -import { Search } from "./api/resources/search/client/Client"; -import { Schemas } from "./api/resources/schemas/client/Client"; -import { Rules } from "./api/resources/rules/client/Client"; -import { Plans } from "./api/resources/plans/client/Client"; -import { Ping } from "./api/resources/ping/client/Client"; -import { News } from "./api/resources/news/client/Client"; -import { Languages } from "./api/resources/languages/client/Client"; -import { History } from "./api/resources/history/client/Client"; -import { EventConsumers } from "./api/resources/eventConsumers/client/Client"; -import { Diagnostics } from "./api/resources/diagnostics/client/Client"; -import { Contents } from "./api/resources/contents/client/Client"; -import { Comments } from "./api/resources/comments/client/Client"; -import { Notifications } from "./api/resources/notifications/client/Client"; -import { Backups } from "./api/resources/backups/client/Client"; -import { Assets } from "./api/resources/assets/client/Client"; -import { Apps } from "./api/resources/apps/client/Client"; - -export declare namespace SquidexClient { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class SquidexClient { - constructor(protected readonly _options: SquidexClient.Options) {} - - protected _userManagement: UserManagement | undefined; - - public get userManagement(): UserManagement { - return (this._userManagement ??= new UserManagement(this._options)); - } - - protected _users: Users | undefined; - - public get users(): Users { - return (this._users ??= new Users(this._options)); - } - - protected _translations: Translations | undefined; - - public get translations(): Translations { - return (this._translations ??= new Translations(this._options)); - } - - protected _templates: Templates | undefined; - - public get templates(): Templates { - return (this._templates ??= new Templates(this._options)); - } - - protected _teams: Teams | undefined; - - public get teams(): Teams { - return (this._teams ??= new Teams(this._options)); - } - - protected _statistics: Statistics | undefined; - - public get statistics(): Statistics { - return (this._statistics ??= new Statistics(this._options)); - } - - protected _search: Search | undefined; - - public get search(): Search { - return (this._search ??= new Search(this._options)); - } - - protected _schemas: Schemas | undefined; - - public get schemas(): Schemas { - return (this._schemas ??= new Schemas(this._options)); - } - - protected _rules: Rules | undefined; - - public get rules(): Rules { - return (this._rules ??= new Rules(this._options)); - } - - protected _plans: Plans | undefined; - - public get plans(): Plans { - return (this._plans ??= new Plans(this._options)); - } - - protected _ping: Ping | undefined; - - public get ping(): Ping { - return (this._ping ??= new Ping(this._options)); - } - - protected _news: News | undefined; - - public get news(): News { - return (this._news ??= new News(this._options)); - } - - protected _languages: Languages | undefined; - - public get languages(): Languages { - return (this._languages ??= new Languages(this._options)); - } - - protected _history: History | undefined; - - public get history(): History { - return (this._history ??= new History(this._options)); - } - - protected _eventConsumers: EventConsumers | undefined; - - public get eventConsumers(): EventConsumers { - return (this._eventConsumers ??= new EventConsumers(this._options)); - } - - protected _diagnostics: Diagnostics | undefined; - - public get diagnostics(): Diagnostics { - return (this._diagnostics ??= new Diagnostics(this._options)); - } - - protected _contents: Contents | undefined; - - public get contents(): Contents { - return (this._contents ??= new Contents(this._options)); - } - - protected _comments: Comments | undefined; - - public get comments(): Comments { - return (this._comments ??= new Comments(this._options)); - } - - protected _notifications: Notifications | undefined; - - public get notifications(): Notifications { - return (this._notifications ??= new Notifications(this._options)); - } - - protected _backups: Backups | undefined; - - public get backups(): Backups { - return (this._backups ??= new Backups(this._options)); - } - - protected _assets: Assets | undefined; - - public get assets(): Assets { - return (this._assets ??= new Assets(this._options)); - } - - protected _apps: Apps | undefined; - - public get apps(): Apps { - return (this._apps ??= new Apps(this._options)); - } -} diff --git a/src/api/errors/BadRequestError.ts b/src/api/errors/BadRequestError.ts deleted file mode 100644 index a03f659..0000000 --- a/src/api/errors/BadRequestError.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors"; -import * as Squidex from ".."; - -export class BadRequestError extends errors.SquidexError { - constructor(body: Squidex.ErrorDto) { - super({ - statusCode: 400, - body: body, - }); - Object.setPrototypeOf(this, BadRequestError.prototype); - } -} diff --git a/src/api/errors/ConflictError.ts b/src/api/errors/ConflictError.ts deleted file mode 100644 index 80981e9..0000000 --- a/src/api/errors/ConflictError.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors"; -import * as Squidex from ".."; - -export class ConflictError extends errors.SquidexError { - constructor(body: Squidex.ErrorDto) { - super({ - statusCode: 409, - body: body, - }); - Object.setPrototypeOf(this, ConflictError.prototype); - } -} diff --git a/src/api/errors/ContentTooLargeError.ts b/src/api/errors/ContentTooLargeError.ts deleted file mode 100644 index ca652c1..0000000 --- a/src/api/errors/ContentTooLargeError.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors"; -import * as Squidex from ".."; - -export class ContentTooLargeError extends errors.SquidexError { - constructor(body: Squidex.ErrorDto) { - super({ - statusCode: 413, - body: body, - }); - Object.setPrototypeOf(this, ContentTooLargeError.prototype); - } -} diff --git a/src/api/errors/ForbiddenError.ts b/src/api/errors/ForbiddenError.ts deleted file mode 100644 index 3799b36..0000000 --- a/src/api/errors/ForbiddenError.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors"; -import * as Squidex from ".."; - -export class ForbiddenError extends errors.SquidexError { - constructor(body: Squidex.ErrorDto) { - super({ - statusCode: 403, - body: body, - }); - Object.setPrototypeOf(this, ForbiddenError.prototype); - } -} diff --git a/src/api/errors/InternalServerError.ts b/src/api/errors/InternalServerError.ts deleted file mode 100644 index b494a6f..0000000 --- a/src/api/errors/InternalServerError.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors"; -import * as Squidex from ".."; - -export class InternalServerError extends errors.SquidexError { - constructor(body: Squidex.ErrorDto) { - super({ - statusCode: 500, - body: body, - }); - Object.setPrototypeOf(this, InternalServerError.prototype); - } -} diff --git a/src/api/errors/NotFoundError.ts b/src/api/errors/NotFoundError.ts deleted file mode 100644 index 092802f..0000000 --- a/src/api/errors/NotFoundError.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors"; - -export class NotFoundError extends errors.SquidexError { - constructor(body?: unknown) { - super({ - statusCode: 404, - body: body, - }); - Object.setPrototypeOf(this, NotFoundError.prototype); - } -} diff --git a/src/api/errors/NotImplementedError.ts b/src/api/errors/NotImplementedError.ts deleted file mode 100644 index b5bb8fd..0000000 --- a/src/api/errors/NotImplementedError.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors"; -import * as Squidex from ".."; - -export class NotImplementedError extends errors.SquidexError { - constructor(body: Squidex.ErrorDto) { - super({ - statusCode: 501, - body: body, - }); - Object.setPrototypeOf(this, NotImplementedError.prototype); - } -} diff --git a/src/api/errors/index.ts b/src/api/errors/index.ts deleted file mode 100644 index f3ecc7a..0000000 --- a/src/api/errors/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./BadRequestError"; -export * from "./ForbiddenError"; -export * from "./NotFoundError"; -export * from "./ConflictError"; -export * from "./ContentTooLargeError"; -export * from "./InternalServerError"; -export * from "./NotImplementedError"; diff --git a/src/api/index.ts b/src/api/index.ts deleted file mode 100644 index 1cb55b6..0000000 --- a/src/api/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./types"; -export * from "./errors"; -export * from "./resources"; diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts deleted file mode 100644 index db7c339..0000000 --- a/src/api/resources/apps/client/Client.ts +++ /dev/null @@ -1,2581 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; -import * as stream from "stream"; -import * as fs from "fs"; -import { default as FormData } from "form-data"; - -export declare namespace Apps { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Apps { - constructor(protected readonly _options: Apps.Options) {} - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAssetScripts(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/scripts` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetScriptsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putAssetScripts( - request: Squidex.UpdateAssetScriptsDto = {}, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/scripts` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateAssetScriptsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetScriptsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Gets all configured clients for the app with the specified name. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getClients(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/clients` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ClientsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Create a new client for the app with the specified name. - * The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postClient( - request: Squidex.CreateClientDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/clients` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateClientDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ClientsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Only the display name can be changed, create a new client if necessary. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putClient( - id: string, - request: Squidex.UpdateClientDto = {}, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/clients/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateClientDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ClientsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * The application that uses this client credentials cannot access the API after it has been revoked. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteClient(id: string, requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/clients/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ClientsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getContributors(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/contributors` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postContributor( - request: Squidex.AssignContributorDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/contributors` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AssignContributorDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteMyself(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/contributors/me` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteContributor(id: string, requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/contributors/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - public async getImage(requestOptions?: Apps.RequestOptions): Promise<{ - data: stream.Readable; - contentLengthInBytes?: number; - contentType?: string; - }> { - const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/image` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - onError: (error) => { - throw new errors.SquidexError({ - message: (error as any)?.message, - }); - }, - }); - const _contentLength = core.getHeader(_response, "Content-Length"); - return { - data: _response.data, - contentLengthInBytes: _contentLength != null ? Number(_contentLength) : undefined, - contentType: core.getHeader(_response, "Content-Type"), - }; - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async uploadImage( - file: File | fs.ReadStream, - requestOptions?: Apps.RequestOptions - ): Promise { - const _request = new FormData(); - _request.append("file", file); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/image` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "Content-Length": (await core.getFormDataContentLength(_request)).toString(), - }, - contentType: "multipart/form-data; boundary=" + _request.getBoundary(), - body: _request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteImage(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/image` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getLanguages(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/languages` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppLanguagesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postLanguage( - request: Squidex.AddLanguageDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/languages` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AddLanguageDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppLanguagesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putLanguage( - language: string, - request: Squidex.UpdateLanguageDto = {}, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/languages/${language}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateLanguageDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppLanguagesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteLanguage( - language: string, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/languages/${language}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppLanguagesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getRoles(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/roles` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RolesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postRole( - request: Squidex.AddRoleDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/roles` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AddRoleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RolesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getPermissions(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/roles/permissions` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.apps.getPermissions.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putRole( - roleName: string, - request: Squidex.UpdateRoleDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/roles/${roleName}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateRoleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RolesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteRole(roleName: string, requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/roles/${roleName}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RolesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). - * You will retrieve all apps, where you are assigned as a contributor. - * @throws {@link Squidex.InternalServerError} - */ - public async getApps(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/apps" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.apps.getApps.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can only create an app when you are authenticated as a user (OpenID implicit flow). - * You will be assigned as owner of the new app automatically. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.ConflictError} - * @throws {@link Squidex.InternalServerError} - */ - public async postApp(request: Squidex.CreateAppDto, requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/apps" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateAppDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 409: - throw new Squidex.ConflictError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). - * You will retrieve all apps, where you are assigned as a contributor. - * @throws {@link Squidex.InternalServerError} - */ - public async getTeamApps(team: string, requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/apps` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.apps.getTeamApps.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getApp(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putApp( - request: Squidex.UpdateAppDto = {}, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateAppDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteApp(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putAppTeam( - request: Squidex.TransferToTeamDto = {}, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/team` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.TransferToTeamDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getSettings(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/settings` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppSettingsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putSettings( - request: Squidex.UpdateAppSettingsDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/settings` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateAppSettingsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AppSettingsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getWorkflows(requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/workflows` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.WorkflowsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postWorkflow( - request: Squidex.AddWorkflowDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/workflows` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AddWorkflowDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.WorkflowsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putWorkflow( - id: string, - request: Squidex.UpdateWorkflowDto, - requestOptions?: Apps.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/workflows/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateWorkflowDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.WorkflowsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteWorkflow(id: string, requestOptions?: Apps.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/workflows/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.WorkflowsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/apps/client/index.ts b/src/api/resources/apps/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/apps/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/apps/client/requests/AddLanguageDto.ts b/src/api/resources/apps/client/requests/AddLanguageDto.ts deleted file mode 100644 index 87d7cc8..0000000 --- a/src/api/resources/apps/client/requests/AddLanguageDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AddLanguageDto { - /** The language to add. `non-empty` */ - language: string; -} diff --git a/src/api/resources/apps/client/requests/AddRoleDto.ts b/src/api/resources/apps/client/requests/AddRoleDto.ts deleted file mode 100644 index 23776f6..0000000 --- a/src/api/resources/apps/client/requests/AddRoleDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AddRoleDto { - /** The role name. `non-empty` */ - name: string; -} diff --git a/src/api/resources/apps/client/requests/AddWorkflowDto.ts b/src/api/resources/apps/client/requests/AddWorkflowDto.ts deleted file mode 100644 index 1d98ce1..0000000 --- a/src/api/resources/apps/client/requests/AddWorkflowDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AddWorkflowDto { - /** The name of the workflow. `non-empty` */ - name: string; -} diff --git a/src/api/resources/apps/client/requests/AppsUploadImageRequest.ts b/src/api/resources/apps/client/requests/AppsUploadImageRequest.ts deleted file mode 100644 index efb3bd3..0000000 --- a/src/api/resources/apps/client/requests/AppsUploadImageRequest.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AppsUploadImageRequest {} diff --git a/src/api/resources/apps/client/requests/CreateAppDto.ts b/src/api/resources/apps/client/requests/CreateAppDto.ts deleted file mode 100644 index ef054d8..0000000 --- a/src/api/resources/apps/client/requests/CreateAppDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CreateAppDto { - /** The name of the app. `non-empty` */ - name: string; - /** Initialize the app with the inbuilt template. */ - template?: string; -} diff --git a/src/api/resources/apps/client/requests/CreateClientDto.ts b/src/api/resources/apps/client/requests/CreateClientDto.ts deleted file mode 100644 index 34ce262..0000000 --- a/src/api/resources/apps/client/requests/CreateClientDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CreateClientDto { - /** The ID of the client. `non-empty` */ - id: string; -} diff --git a/src/api/resources/apps/client/requests/TransferToTeamDto.ts b/src/api/resources/apps/client/requests/TransferToTeamDto.ts deleted file mode 100644 index 261eb50..0000000 --- a/src/api/resources/apps/client/requests/TransferToTeamDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface TransferToTeamDto { - /** The ID of the team. */ - teamId?: string; -} diff --git a/src/api/resources/apps/client/requests/UpdateAppDto.ts b/src/api/resources/apps/client/requests/UpdateAppDto.ts deleted file mode 100644 index a5f4694..0000000 --- a/src/api/resources/apps/client/requests/UpdateAppDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateAppDto { - /** The optional label of your app. */ - label?: string; - /** The optional description of your app. */ - description?: string; -} diff --git a/src/api/resources/apps/client/requests/UpdateAppSettingsDto.ts b/src/api/resources/apps/client/requests/UpdateAppSettingsDto.ts deleted file mode 100644 index 6cd77a5..0000000 --- a/src/api/resources/apps/client/requests/UpdateAppSettingsDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface UpdateAppSettingsDto { - /** The configured app patterns. */ - patterns: Squidex.PatternDto[]; - /** The configured UI editors. */ - editors: Squidex.EditorDto[]; - /** Hide the scheduler for content items. */ - hideScheduler?: boolean; - /** Hide the datetime mode button. */ - hideDateTimeModeButton?: boolean; -} diff --git a/src/api/resources/apps/client/requests/UpdateAssetScriptsDto.ts b/src/api/resources/apps/client/requests/UpdateAssetScriptsDto.ts deleted file mode 100644 index f3bad57..0000000 --- a/src/api/resources/apps/client/requests/UpdateAssetScriptsDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateAssetScriptsDto { - /** The script that is executed for each asset when querying assets. */ - query?: string; - /** The script that is executed for all assets when querying assets. */ - queryPre?: string; - /** The script that is executed when creating an asset. */ - create?: string; - /** The script that is executed when updating a content. */ - update?: string; - /** The script that is executed when annotating a content. */ - annotate?: string; - /** The script that is executed when moving a content. */ - move?: string; - /** The script that is executed when deleting a content. */ - delete?: string; -} diff --git a/src/api/resources/apps/client/requests/UpdateClientDto.ts b/src/api/resources/apps/client/requests/UpdateClientDto.ts deleted file mode 100644 index bddde46..0000000 --- a/src/api/resources/apps/client/requests/UpdateClientDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateClientDto { - /** The new display name of the client. */ - name?: string; - /** The role of the client. */ - role?: string; - /** True to allow anonymous access without an access token for this client. */ - allowAnonymous?: boolean; - /** The number of allowed api calls per month for this client. */ - apiCallsLimit?: number; - /** The number of allowed api traffic bytes per month for this client. */ - apiTrafficLimit?: number; -} diff --git a/src/api/resources/apps/client/requests/UpdateLanguageDto.ts b/src/api/resources/apps/client/requests/UpdateLanguageDto.ts deleted file mode 100644 index ee0089b..0000000 --- a/src/api/resources/apps/client/requests/UpdateLanguageDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateLanguageDto { - /** Set the value to true to make the language the master. */ - isMaster?: boolean; - /** Set the value to true to make the language optional. */ - isOptional?: boolean; - /** Optional fallback languages. */ - fallback?: string[]; -} diff --git a/src/api/resources/apps/client/requests/UpdateRoleDto.ts b/src/api/resources/apps/client/requests/UpdateRoleDto.ts deleted file mode 100644 index 263260b..0000000 --- a/src/api/resources/apps/client/requests/UpdateRoleDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateRoleDto { - /** Associated list of permissions. */ - permissions: string[]; - /** Associated list of UI properties. */ - properties?: Record; -} diff --git a/src/api/resources/apps/client/requests/UpdateWorkflowDto.ts b/src/api/resources/apps/client/requests/UpdateWorkflowDto.ts deleted file mode 100644 index 8d6402d..0000000 --- a/src/api/resources/apps/client/requests/UpdateWorkflowDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface UpdateWorkflowDto { - /** The name of the workflow. */ - name?: string; - /** The workflow steps. */ - steps: Record; - /** The schema ids. */ - schemaIds?: string[]; - /** The initial step. `non-empty` */ - initial: string; -} diff --git a/src/api/resources/apps/client/requests/index.ts b/src/api/resources/apps/client/requests/index.ts deleted file mode 100644 index 6ee1f31..0000000 --- a/src/api/resources/apps/client/requests/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { UpdateAssetScriptsDto } from "./UpdateAssetScriptsDto"; -export { CreateClientDto } from "./CreateClientDto"; -export { UpdateClientDto } from "./UpdateClientDto"; -export { AppsUploadImageRequest } from "./AppsUploadImageRequest"; -export { AddLanguageDto } from "./AddLanguageDto"; -export { UpdateLanguageDto } from "./UpdateLanguageDto"; -export { AddRoleDto } from "./AddRoleDto"; -export { UpdateRoleDto } from "./UpdateRoleDto"; -export { CreateAppDto } from "./CreateAppDto"; -export { UpdateAppDto } from "./UpdateAppDto"; -export { TransferToTeamDto } from "./TransferToTeamDto"; -export { UpdateAppSettingsDto } from "./UpdateAppSettingsDto"; -export { AddWorkflowDto } from "./AddWorkflowDto"; -export { UpdateWorkflowDto } from "./UpdateWorkflowDto"; diff --git a/src/api/resources/apps/index.ts b/src/api/resources/apps/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/apps/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/assets/client/Client.ts b/src/api/resources/assets/client/Client.ts deleted file mode 100644 index 96fecf2..0000000 --- a/src/api/resources/assets/client/Client.ts +++ /dev/null @@ -1,1657 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import * as stream from "stream"; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors"; -import * as serializers from "../../../../serialization"; -import * as fs from "fs"; -import { default as FormData } from "form-data"; - -export declare namespace Assets { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Assets { - constructor(protected readonly _options: Assets.Options) {} - - public async getAssetContentBySlug( - idOrSlug: string, - more: string, - request: Squidex.AssetsGetAssetContentBySlugRequest = {}, - requestOptions?: Assets.RequestOptions - ): Promise<{ - data: stream.Readable; - contentLengthInBytes?: number; - contentType?: string; - }> { - const { - version, - cache, - download, - width, - height, - quality, - mode, - bg, - focusX, - focusY, - nofocus, - auto, - force, - deleted, - format, - } = request; - const _queryParams = new URLSearchParams(); - if (version != null) { - _queryParams.append("version", version.toString()); - } - - if (cache != null) { - _queryParams.append("cache", cache.toString()); - } - - if (download != null) { - _queryParams.append("download", download.toString()); - } - - if (width != null) { - _queryParams.append("width", width.toString()); - } - - if (height != null) { - _queryParams.append("height", height.toString()); - } - - if (quality != null) { - _queryParams.append("quality", quality.toString()); - } - - if (mode != null) { - _queryParams.append("mode", mode); - } - - if (bg != null) { - _queryParams.append("bg", bg); - } - - if (focusX != null) { - _queryParams.append("focusX", focusX.toString()); - } - - if (focusY != null) { - _queryParams.append("focusY", focusY.toString()); - } - - if (nofocus != null) { - _queryParams.append("nofocus", nofocus.toString()); - } - - if (auto != null) { - _queryParams.append("auto", auto.toString()); - } - - if (force != null) { - _queryParams.append("force", force.toString()); - } - - if (deleted != null) { - _queryParams.append("deleted", deleted.toString()); - } - - if (format != null) { - _queryParams.append("format", format); - } - - const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/assets/${this._options.appName}/${idOrSlug}/${more}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - onError: (error) => { - throw new errors.SquidexError({ - message: (error as any)?.message, - }); - }, - }); - const _contentLength = core.getHeader(_response, "Content-Length"); - return { - data: _response.data, - contentLengthInBytes: _contentLength != null ? Number(_contentLength) : undefined, - contentType: core.getHeader(_response, "Content-Type"), - }; - } - - public async getAssetContent( - id: string, - request: Squidex.AssetsGetAssetContentRequest = {}, - requestOptions?: Assets.RequestOptions - ): Promise<{ - data: stream.Readable; - contentLengthInBytes?: number; - contentType?: string; - }> { - const { - version, - cache, - download, - width, - height, - quality, - mode, - bg, - focusX, - focusY, - nofocus, - auto, - force, - deleted, - format, - } = request; - const _queryParams = new URLSearchParams(); - if (version != null) { - _queryParams.append("version", version.toString()); - } - - if (cache != null) { - _queryParams.append("cache", cache.toString()); - } - - if (download != null) { - _queryParams.append("download", download.toString()); - } - - if (width != null) { - _queryParams.append("width", width.toString()); - } - - if (height != null) { - _queryParams.append("height", height.toString()); - } - - if (quality != null) { - _queryParams.append("quality", quality.toString()); - } - - if (mode != null) { - _queryParams.append("mode", mode); - } - - if (bg != null) { - _queryParams.append("bg", bg); - } - - if (focusX != null) { - _queryParams.append("focusX", focusX.toString()); - } - - if (focusY != null) { - _queryParams.append("focusY", focusY.toString()); - } - - if (nofocus != null) { - _queryParams.append("nofocus", nofocus.toString()); - } - - if (auto != null) { - _queryParams.append("auto", auto.toString()); - } - - if (force != null) { - _queryParams.append("force", force.toString()); - } - - if (deleted != null) { - _queryParams.append("deleted", deleted.toString()); - } - - if (format != null) { - _queryParams.append("format", format); - } - - const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/assets/${id}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - onError: (error) => { - throw new errors.SquidexError({ - message: (error as any)?.message, - }); - }, - }); - const _contentLength = core.getHeader(_response, "Content-Length"); - return { - data: _response.data, - contentLengthInBytes: _contentLength != null ? Number(_contentLength) : undefined, - contentType: core.getHeader(_response, "Content-Type"), - }; - } - - /** - * Get all asset folders for the app. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAssetFolders( - request: Squidex.AssetsGetAssetFoldersRequest = {}, - requestOptions?: Assets.RequestOptions - ): Promise { - const { parentId, scope } = request; - const _queryParams = new URLSearchParams(); - if (parentId != null) { - _queryParams.append("parentId", parentId); - } - - if (scope != null) { - _queryParams.append("scope", scope); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/folders` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetFoldersDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postAssetFolder( - request: Squidex.CreateAssetFolderDto, - requestOptions?: Assets.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/folders` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateAssetFolderDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetFolderDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putAssetFolder( - id: string, - request: Squidex.RenameAssetFolderDto, - requestOptions?: Assets.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/folders/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.RenameAssetFolderDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetFolderDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteAssetFolder(id: string, requestOptions?: Assets.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/folders/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putAssetFolderParent( - id: string, - request: Squidex.MoveAssetFolderDto = {}, - requestOptions?: Assets.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/folders/${id}/parent` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.MoveAssetFolderDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetFolderDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get all tags for assets. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getTags(requestOptions?: Assets.RequestOptions): Promise> { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/tags` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.assets.getTags.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putTag( - name: string, - request: Squidex.RenameTagDto, - requestOptions?: Assets.RequestOptions - ): Promise> { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/tags/${name}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.RenameTagDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.assets.putTag.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get all assets for the app. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAssets( - request: Squidex.AssetsGetAssetsRequest = {}, - requestOptions?: Assets.RequestOptions - ): Promise { - const { parentId, ids, q, top, skip, orderby, filter, noTotal, noSlowTotal } = request; - const _queryParams = new URLSearchParams(); - if (parentId != null) { - _queryParams.append("parentId", parentId); - } - - if (ids != null) { - _queryParams.append("ids", ids); - } - - if (q != null) { - _queryParams.append("q", q); - } - - if (top != null) { - _queryParams.append("$top", top.toString()); - } - - if (skip != null) { - _queryParams.append("$skip", skip.toString()); - } - - if (orderby != null) { - _queryParams.append("$orderby", orderby); - } - - if (filter != null) { - _queryParams.append("$filter", filter); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.ContentTooLargeError} - * @throws {@link Squidex.InternalServerError} - */ - public async postAsset( - file: File | fs.ReadStream, - requestOptions?: Assets.RequestOptions - ): Promise { - const _request = new FormData(); - _request.append("file", file); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "Content-Length": (await core.getFormDataContentLength(_request)).toString(), - }, - contentType: "multipart/form-data; boundary=" + _request.getBoundary(), - body: _request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 413: - throw new Squidex.ContentTooLargeError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get all assets for the app. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAssetsPost( - request: Squidex.AssetsGetAssetsPostRequest, - requestOptions?: Assets.RequestOptions - ): Promise { - const { noTotal, noSlowTotal, body: _body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/query` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - }, - contentType: "application/json", - body: await serializers.QueryDto.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAsset(id: string, requestOptions?: Assets.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/${id}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.ContentTooLargeError} - * @throws {@link Squidex.InternalServerError} - */ - public async postUpsertAsset( - file: File | fs.ReadStream, - id: string, - requestOptions?: Assets.RequestOptions - ): Promise { - const _request = new FormData(); - _request.append("file", file); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/${id}` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "Content-Length": (await core.getFormDataContentLength(_request)).toString(), - }, - contentType: "multipart/form-data; boundary=" + _request.getBoundary(), - body: _request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 413: - throw new Squidex.ContentTooLargeError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putAsset( - id: string, - request: Squidex.AnnotateAssetDto = {}, - requestOptions?: Assets.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AnnotateAssetDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteAsset( - id: string, - request: Squidex.AssetsDeleteAssetRequest = {}, - requestOptions?: Assets.RequestOptions - ): Promise { - const { checkReferrers, permanent } = request; - const _queryParams = new URLSearchParams(); - if (checkReferrers != null) { - _queryParams.append("checkReferrers", checkReferrers.toString()); - } - - if (permanent != null) { - _queryParams.append("permanent", permanent.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async bulkUpdateAssets( - request: Squidex.BulkUpdateAssetsDto = {}, - requestOptions?: Assets.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/bulk` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.BulkUpdateAssetsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.assets.bulkUpdateAssets.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Use multipart request to upload an asset. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.ContentTooLargeError} - * @throws {@link Squidex.InternalServerError} - */ - public async putAssetContent( - file: File | fs.ReadStream, - id: string, - requestOptions?: Assets.RequestOptions - ): Promise { - const _request = new FormData(); - _request.append("file", file); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/${id}/content` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "Content-Length": (await core.getFormDataContentLength(_request)).toString(), - }, - contentType: "multipart/form-data; boundary=" + _request.getBoundary(), - body: _request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 413: - throw new Squidex.ContentTooLargeError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putAssetParent( - id: string, - request: Squidex.MoveAssetDto = {}, - requestOptions?: Assets.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/assets/${id}/parent` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.MoveAssetDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.AssetDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/assets/client/index.ts b/src/api/resources/assets/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/assets/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/assets/client/requests/AnnotateAssetDto.ts b/src/api/resources/assets/client/requests/AnnotateAssetDto.ts deleted file mode 100644 index 879d0e6..0000000 --- a/src/api/resources/assets/client/requests/AnnotateAssetDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AnnotateAssetDto { - /** The new name of the asset. */ - fileName?: string; - /** The new slug of the asset. */ - slug?: string; - /** True, when the asset is not public. */ - isProtected?: boolean; - /** The new asset tags. */ - tags?: string[]; - /** The asset metadata. */ - metadata?: Record; -} diff --git a/src/api/resources/assets/client/requests/AssetsDeleteAssetRequest.ts b/src/api/resources/assets/client/requests/AssetsDeleteAssetRequest.ts deleted file mode 100644 index b46814c..0000000 --- a/src/api/resources/assets/client/requests/AssetsDeleteAssetRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssetsDeleteAssetRequest { - /** - * True to check referrers of this asset. - */ - checkReferrers?: boolean; - /** - * True to delete the asset permanently. - */ - permanent?: boolean; -} diff --git a/src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts b/src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts deleted file mode 100644 index 3063554..0000000 --- a/src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface AssetsGetAssetContentBySlugRequest { - /** - * The optional version of the asset. - */ - version?: number; - /** - * The cache duration in seconds. - */ - cache?: number; - /** - * Set it to 0 to prevent download. - */ - download?: number; - /** - * The target width of the asset, if it is an image. - */ - width?: number; - /** - * The target height of the asset, if it is an image. - */ - height?: number; - /** - * Optional image quality, it is is an jpeg image. - */ - quality?: number; - /** - * The resize mode when the width and height is defined. - */ - mode?: Squidex.ResizeMode; - /** - * Optional background color. - */ - bg?: string; - /** - * Override the y focus point. - */ - focusX?: number; - /** - * Override the x focus point. - */ - focusY?: number; - /** - * True to ignore the asset focus point if any. - */ - nofocus?: boolean; - /** - * True to use auto format. - */ - auto?: boolean; - /** - * True to force a new resize even if it already stored. - */ - force?: boolean; - /** - * Also return deleted content items. - */ - deleted?: boolean; - /** - * True to force a new resize even if it already stored. - */ - format?: Squidex.ImageFormat; -} diff --git a/src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts b/src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts deleted file mode 100644 index 932b3e4..0000000 --- a/src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface AssetsGetAssetContentRequest { - /** - * The optional version of the asset. - */ - version?: number; - /** - * The cache duration in seconds. - */ - cache?: number; - /** - * Set it to 0 to prevent download. - */ - download?: number; - /** - * The target width of the asset, if it is an image. - */ - width?: number; - /** - * The target height of the asset, if it is an image. - */ - height?: number; - /** - * Optional image quality, it is is an jpeg image. - */ - quality?: number; - /** - * The resize mode when the width and height is defined. - */ - mode?: Squidex.ResizeMode; - /** - * Optional background color. - */ - bg?: string; - /** - * Override the y focus point. - */ - focusX?: number; - /** - * Override the x focus point. - */ - focusY?: number; - /** - * True to ignore the asset focus point if any. - */ - nofocus?: boolean; - /** - * True to use auto format. - */ - auto?: boolean; - /** - * True to force a new resize even if it already stored. - */ - force?: boolean; - /** - * Also return deleted content items. - */ - deleted?: boolean; - /** - * True to force a new resize even if it already stored. - */ - format?: Squidex.ImageFormat; -} diff --git a/src/api/resources/assets/client/requests/AssetsGetAssetFoldersRequest.ts b/src/api/resources/assets/client/requests/AssetsGetAssetFoldersRequest.ts deleted file mode 100644 index 0e13d95..0000000 --- a/src/api/resources/assets/client/requests/AssetsGetAssetFoldersRequest.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface AssetsGetAssetFoldersRequest { - /** - * The optional parent folder id. - */ - parentId?: string; - /** - * The scope of the query. - */ - scope?: Squidex.AssetFolderScope; -} diff --git a/src/api/resources/assets/client/requests/AssetsGetAssetsPostRequest.ts b/src/api/resources/assets/client/requests/AssetsGetAssetsPostRequest.ts deleted file mode 100644 index 2345878..0000000 --- a/src/api/resources/assets/client/requests/AssetsGetAssetsPostRequest.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface AssetsGetAssetsPostRequest { - /** - * Do not return the total amount. - */ - noTotal?: boolean; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; - body: Squidex.QueryDto; -} diff --git a/src/api/resources/assets/client/requests/AssetsGetAssetsRequest.ts b/src/api/resources/assets/client/requests/AssetsGetAssetsRequest.ts deleted file mode 100644 index 5515e8b..0000000 --- a/src/api/resources/assets/client/requests/AssetsGetAssetsRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssetsGetAssetsRequest { - /** - * The optional parent folder id. - */ - parentId?: string; - /** - * The optional asset ids. - */ - ids?: string; - /** - * The optional json query. - */ - q?: string; - /** - * Optional number of items to take. - */ - top?: number; - /** - * Optional number of items to skip. - */ - skip?: number; - /** - * Optional OData order definition. - */ - orderby?: string; - /** - * Optional OData filter. - */ - filter?: string; - /** - * Do not return the total amount. - */ - noTotal?: boolean; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; -} diff --git a/src/api/resources/assets/client/requests/AssetsPostAssetRequest.ts b/src/api/resources/assets/client/requests/AssetsPostAssetRequest.ts deleted file mode 100644 index c30fbe3..0000000 --- a/src/api/resources/assets/client/requests/AssetsPostAssetRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssetsPostAssetRequest { - /** - * The optional parent folder id. - */ - parentId?: string; - /** - * The optional custom asset id. - */ - id?: string; - /** - * True to duplicate the asset, event if the file has been uploaded. - */ - duplicate?: boolean; -} diff --git a/src/api/resources/assets/client/requests/AssetsPostUpsertAssetRequest.ts b/src/api/resources/assets/client/requests/AssetsPostUpsertAssetRequest.ts deleted file mode 100644 index ad277dc..0000000 --- a/src/api/resources/assets/client/requests/AssetsPostUpsertAssetRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssetsPostUpsertAssetRequest { - /** - * The optional parent folder id. - */ - parentId?: string; - /** - * True to duplicate the asset, event if the file has been uploaded. - */ - duplicate?: boolean; -} diff --git a/src/api/resources/assets/client/requests/AssetsPutAssetContentRequest.ts b/src/api/resources/assets/client/requests/AssetsPutAssetContentRequest.ts deleted file mode 100644 index 0b5d88e..0000000 --- a/src/api/resources/assets/client/requests/AssetsPutAssetContentRequest.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssetsPutAssetContentRequest {} diff --git a/src/api/resources/assets/client/requests/BulkUpdateAssetsDto.ts b/src/api/resources/assets/client/requests/BulkUpdateAssetsDto.ts deleted file mode 100644 index dfcbb21..0000000 --- a/src/api/resources/assets/client/requests/BulkUpdateAssetsDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface BulkUpdateAssetsDto { - /** The contents to update or insert. */ - jobs?: Squidex.BulkUpdateAssetsJobDto[]; - /** True to check referrers of deleted assets. */ - checkReferrers?: boolean; - /** True to turn off costly validation: Folder checks. Default: true. */ - optimizeValidation?: boolean; - /** True to turn off scripting for faster inserts. Default: true. */ - doNotScript?: boolean; -} diff --git a/src/api/resources/assets/client/requests/CreateAssetFolderDto.ts b/src/api/resources/assets/client/requests/CreateAssetFolderDto.ts deleted file mode 100644 index 301287f..0000000 --- a/src/api/resources/assets/client/requests/CreateAssetFolderDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CreateAssetFolderDto { - /** The name of the folder. `non-empty` */ - folderName: string; - /** The ID of the parent folder. */ - parentId?: string; -} diff --git a/src/api/resources/assets/client/requests/MoveAssetDto.ts b/src/api/resources/assets/client/requests/MoveAssetDto.ts deleted file mode 100644 index f9cc289..0000000 --- a/src/api/resources/assets/client/requests/MoveAssetDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface MoveAssetDto { - /** The parent folder id. */ - parentId?: string; -} diff --git a/src/api/resources/assets/client/requests/MoveAssetFolderDto.ts b/src/api/resources/assets/client/requests/MoveAssetFolderDto.ts deleted file mode 100644 index ce3107d..0000000 --- a/src/api/resources/assets/client/requests/MoveAssetFolderDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface MoveAssetFolderDto { - /** The parent folder id. */ - parentId?: string; -} diff --git a/src/api/resources/assets/client/requests/RenameAssetFolderDto.ts b/src/api/resources/assets/client/requests/RenameAssetFolderDto.ts deleted file mode 100644 index 89414db..0000000 --- a/src/api/resources/assets/client/requests/RenameAssetFolderDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface RenameAssetFolderDto { - /** The name of the folder. `non-empty` */ - folderName: string; -} diff --git a/src/api/resources/assets/client/requests/RenameTagDto.ts b/src/api/resources/assets/client/requests/RenameTagDto.ts deleted file mode 100644 index 2a816f6..0000000 --- a/src/api/resources/assets/client/requests/RenameTagDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface RenameTagDto { - /** The new name for the tag. `non-empty` */ - tagName: string; -} diff --git a/src/api/resources/assets/client/requests/index.ts b/src/api/resources/assets/client/requests/index.ts deleted file mode 100644 index eecb124..0000000 --- a/src/api/resources/assets/client/requests/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -export { AssetsGetAssetContentBySlugRequest } from "./AssetsGetAssetContentBySlugRequest"; -export { AssetsGetAssetContentRequest } from "./AssetsGetAssetContentRequest"; -export { AssetsGetAssetFoldersRequest } from "./AssetsGetAssetFoldersRequest"; -export { CreateAssetFolderDto } from "./CreateAssetFolderDto"; -export { RenameAssetFolderDto } from "./RenameAssetFolderDto"; -export { MoveAssetFolderDto } from "./MoveAssetFolderDto"; -export { RenameTagDto } from "./RenameTagDto"; -export { AssetsGetAssetsRequest } from "./AssetsGetAssetsRequest"; -export { AssetsPostAssetRequest } from "./AssetsPostAssetRequest"; -export { AssetsGetAssetsPostRequest } from "./AssetsGetAssetsPostRequest"; -export { AssetsPostUpsertAssetRequest } from "./AssetsPostUpsertAssetRequest"; -export { AnnotateAssetDto } from "./AnnotateAssetDto"; -export { AssetsDeleteAssetRequest } from "./AssetsDeleteAssetRequest"; -export { BulkUpdateAssetsDto } from "./BulkUpdateAssetsDto"; -export { AssetsPutAssetContentRequest } from "./AssetsPutAssetContentRequest"; -export { MoveAssetDto } from "./MoveAssetDto"; diff --git a/src/api/resources/assets/index.ts b/src/api/resources/assets/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/assets/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/backups/client/Client.ts b/src/api/resources/backups/client/Client.ts deleted file mode 100644 index f2e8fb5..0000000 --- a/src/api/resources/backups/client/Client.ts +++ /dev/null @@ -1,454 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as stream from "stream"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors"; -import * as Squidex from "../../.."; -import * as serializers from "../../../../serialization"; -import { default as URLSearchParams } from "@ungap/url-search-params"; - -export declare namespace Backups { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Backups { - constructor(protected readonly _options: Backups.Options) {} - - public async getBackupContent( - id: string, - requestOptions?: Backups.RequestOptions - ): Promise<{ - data: stream.Readable; - contentLengthInBytes?: number; - contentType?: string; - }> { - const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/backups/${id}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - onError: (error) => { - throw new errors.SquidexError({ - message: (error as any)?.message, - }); - }, - }); - const _contentLength = core.getHeader(_response, "Content-Length"); - return { - data: _response.data, - contentLengthInBytes: _contentLength != null ? Number(_contentLength) : undefined, - contentType: core.getHeader(_response, "Content-Type"), - }; - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteBackup(id: string, requestOptions?: Backups.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/backups/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - public async getBackupContentV2( - id: string, - request: Squidex.BackupsGetBackupContentV2Request = {}, - requestOptions?: Backups.RequestOptions - ): Promise<{ - data: stream.Readable; - contentLengthInBytes?: number; - contentType?: string; - }> { - const { appId, app } = request; - const _queryParams = new URLSearchParams(); - if (appId != null) { - _queryParams.append("appId", appId); - } - - if (app != null) { - _queryParams.append("app", app); - } - - const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/backups/${id}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - onError: (error) => { - throw new errors.SquidexError({ - message: (error as any)?.message, - }); - }, - }); - const _contentLength = core.getHeader(_response, "Content-Length"); - return { - data: _response.data, - contentLengthInBytes: _contentLength != null ? Number(_contentLength) : undefined, - contentType: core.getHeader(_response, "Content-Type"), - }; - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getBackups(requestOptions?: Backups.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/backups` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.BackupJobsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postBackup(requestOptions?: Backups.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/backups` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getRestoreJob(requestOptions?: Backups.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/apps/restore" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RestoreJobDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async postRestoreJob( - request: Squidex.RestoreRequestDto, - requestOptions?: Backups.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/apps/restore" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.RestoreRequestDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/backups/client/index.ts b/src/api/resources/backups/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/backups/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/backups/client/requests/BackupsGetBackupContentV2Request.ts b/src/api/resources/backups/client/requests/BackupsGetBackupContentV2Request.ts deleted file mode 100644 index 0dbb8d3..0000000 --- a/src/api/resources/backups/client/requests/BackupsGetBackupContentV2Request.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface BackupsGetBackupContentV2Request { - /** - * The ID of the app. - */ - appId?: string; - /** - * The name of the app. - */ - app?: string; -} diff --git a/src/api/resources/backups/client/requests/RestoreRequestDto.ts b/src/api/resources/backups/client/requests/RestoreRequestDto.ts deleted file mode 100644 index b928e91..0000000 --- a/src/api/resources/backups/client/requests/RestoreRequestDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface RestoreRequestDto { - /** The name of the app. */ - name?: string; - /** The url to the restore file. `non-empty` */ - url: string; -} diff --git a/src/api/resources/backups/client/requests/index.ts b/src/api/resources/backups/client/requests/index.ts deleted file mode 100644 index 3e91ed8..0000000 --- a/src/api/resources/backups/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { BackupsGetBackupContentV2Request } from "./BackupsGetBackupContentV2Request"; -export { RestoreRequestDto } from "./RestoreRequestDto"; diff --git a/src/api/resources/backups/index.ts b/src/api/resources/backups/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/backups/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/comments/client/Client.ts b/src/api/resources/comments/client/Client.ts deleted file mode 100644 index f10090d..0000000 --- a/src/api/resources/comments/client/Client.ts +++ /dev/null @@ -1,405 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; -import { default as URLSearchParams } from "@ungap/url-search-params"; - -export declare namespace Comments { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Comments { - constructor(protected readonly _options: Comments.Options) {} - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getWatchingUsers(resource: string, requestOptions?: Comments.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/watching/${resource}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.comments.getWatchingUsers.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * When passing in a version you can retrieve all updates since then. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getComments( - commentsId: string, - request: Squidex.CommentsGetCommentsRequest = {}, - requestOptions?: Comments.RequestOptions - ): Promise { - const { version } = request; - const _queryParams = new URLSearchParams(); - if (version != null) { - _queryParams.append("version", version.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/comments/${commentsId}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.CommentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postComment( - commentsId: string, - request: Squidex.UpsertCommentDto, - requestOptions?: Comments.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/comments/${commentsId}` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpsertCommentDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.CommentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putComment( - commentsId: string, - commentId: string, - request: Squidex.UpsertCommentDto, - requestOptions?: Comments.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/comments/${commentsId}/${commentId}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpsertCommentDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteComment( - commentsId: string, - commentId: string, - requestOptions?: Comments.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/comments/${commentsId}/${commentId}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/comments/client/index.ts b/src/api/resources/comments/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/comments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/comments/client/requests/CommentsGetCommentsRequest.ts b/src/api/resources/comments/client/requests/CommentsGetCommentsRequest.ts deleted file mode 100644 index 9553c88..0000000 --- a/src/api/resources/comments/client/requests/CommentsGetCommentsRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CommentsGetCommentsRequest { - /** - * The current version. - */ - version?: number; -} diff --git a/src/api/resources/comments/client/requests/index.ts b/src/api/resources/comments/client/requests/index.ts deleted file mode 100644 index 9f80286..0000000 --- a/src/api/resources/comments/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { CommentsGetCommentsRequest } from "./CommentsGetCommentsRequest"; diff --git a/src/api/resources/comments/index.ts b/src/api/resources/comments/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/comments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/contents/client/Client.ts b/src/api/resources/contents/client/Client.ts deleted file mode 100644 index 4284acd..0000000 --- a/src/api/resources/contents/client/Client.ts +++ /dev/null @@ -1,2174 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; -import * as stream from "stream"; - -export declare namespace Contents { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Contents { - constructor(protected readonly _options: Contents.Options) {} - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getContents( - schema: string, - request: Squidex.ContentsGetContentsRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { - ids, - q, - search, - top, - skip, - orderby, - filter, - fields, - flatten, - languages, - noSlowTotal, - noTotal, - unpublished, - } = request; - const _queryParams = new URLSearchParams(); - if (ids != null) { - _queryParams.append("ids", ids); - } - - if (q != null) { - _queryParams.append("q", q); - } - - if (search != null) { - _queryParams.append("$search", search); - } - - if (top != null) { - _queryParams.append("$top", top.toString()); - } - - if (skip != null) { - _queryParams.append("$skip", skip.toString()); - } - - if (orderby != null) { - _queryParams.append("$orderby", orderby); - } - - if (filter != null) { - _queryParams.append("$filter", filter); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Fields": fields != null ? fields : undefined, - "X-Flatten": flatten != null ? flatten.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postContent( - schema: string, - request: Squidex.ContentsPostContentRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { status, id, publish, unpublished, languages, body: _body } = request; - const _queryParams = new URLSearchParams(); - if (status != null) { - _queryParams.append("status", status); - } - - if (id != null) { - _queryParams.append("id", id); - } - - if (publish != null) { - _queryParams.append("publish", publish.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - body: await serializers.contents.postContent.Request.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getContentsPost( - schema: string, - request: Squidex.ContentsGetContentsPostRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { fields, flatten, languages, noSlowTotal, noTotal, unpublished, body: _body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/query` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Fields": fields != null ? fields : undefined, - "X-Flatten": flatten != null ? flatten.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - body: await serializers.QueryDto.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getContent( - schema: string, - id: string, - request: Squidex.ContentsGetContentRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { version, fields, flatten, languages, unpublished } = request; - const _queryParams = new URLSearchParams(); - if (version != null) { - _queryParams.append("version", version.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Fields": fields != null ? fields : undefined, - "X-Flatten": flatten != null ? flatten.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postUpsertContent( - schema: string, - id: string, - request: Squidex.ContentsPostUpsertContentRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { status, patch, publish, unpublished, languages, body: _body } = request; - const _queryParams = new URLSearchParams(); - if (status != null) { - _queryParams.append("status", status); - } - - if (patch != null) { - _queryParams.append("patch", patch.toString()); - } - - if (publish != null) { - _queryParams.append("publish", publish.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - body: await serializers.contents.postUpsertContent.Request.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putContent( - schema: string, - id: string, - request: Squidex.ContentsPutContentRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, languages, body: _body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - body: await serializers.contents.putContent.Request.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async patchContent( - schema: string, - id: string, - request: Squidex.ContentsPatchContentRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, languages, body: _body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}` - ), - method: "PATCH", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - body: await serializers.contents.patchContent.Request.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can create an generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteContent( - schema: string, - id: string, - request: Squidex.ContentsDeleteContentRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { checkReferrers, permanent } = request; - const _queryParams = new URLSearchParams(); - if (checkReferrers != null) { - _queryParams.append("checkReferrers", checkReferrers.toString()); - } - - if (permanent != null) { - _queryParams.append("permanent", permanent.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getContentValidity( - schema: string, - id: string, - requestOptions?: Contents.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/validity` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getReferences( - schema: string, - id: string, - request: Squidex.ContentsGetReferencesRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { q, fields, flatten, languages, unpublished, noSlowTotal, noTotal } = request; - const _queryParams = new URLSearchParams(); - if (q != null) { - _queryParams.append("q", q); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/references` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Fields": fields != null ? fields : undefined, - "X-Flatten": flatten != null ? flatten.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getReferencing( - schema: string, - id: string, - request: Squidex.ContentsGetReferencingRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { q, fields, flatten, languages, unpublished, noSlowTotal, noTotal } = request; - const _queryParams = new URLSearchParams(); - if (q != null) { - _queryParams.append("q", q); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/referencing` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Fields": fields != null ? fields : undefined, - "X-Flatten": flatten != null ? flatten.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - */ - public async getContentVersion( - schema: string, - id: string, - version: number, - request: Squidex.ContentsGetContentVersionRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise<{ - data: stream.Readable; - contentLengthInBytes?: number; - contentType?: string; - }> { - const { unpublished, languages } = request; - const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/${version}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - onError: (error) => { - throw new errors.SquidexError({ - message: (error as any)?.message, - }); - }, - }); - const _contentLength = core.getHeader(_response, "Content-Length"); - return { - data: _response.data, - contentLengthInBytes: _contentLength != null ? Number(_contentLength) : undefined, - contentType: core.getHeader(_response, "Content-Type"), - }; - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postContents( - schema: string, - request: Squidex.ImportContentsDto, - requestOptions?: Contents.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/import` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ImportContentsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.contents.postContents.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async bulkUpdateContents( - schema: string, - request: Squidex.BulkUpdateContentsDto, - requestOptions?: Contents.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/bulk` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.BulkUpdateContentsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.contents.bulkUpdateContents.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putContentStatus( - schema: string, - id: string, - request: Squidex.ChangeStatusDto, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, languages, ..._body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/status` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - body: await serializers.ChangeStatusDto.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteContentStatus( - schema: string, - id: string, - request: Squidex.ContentsDeleteContentStatusRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, languages } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/status` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async createDraft( - schema: string, - id: string, - request: Squidex.ContentsCreateDraftRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, languages } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/draft` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteVersion( - schema: string, - id: string, - request: Squidex.ContentsDeleteVersionRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, languages } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/${schema}/${id}/draft` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getGraphQl( - request: Squidex.ContentsGetGraphQlRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { query, operationName, variables, unpublished } = request; - const _queryParams = new URLSearchParams(); - if (query != null) { - _queryParams.append("query", query); - } - - if (operationName != null) { - _queryParams.append("operationName", operationName); - } - - if (variables != null) { - _queryParams.append("variables", variables); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/graphql` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return _response.body; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postGraphQl( - request: Squidex.ContentsPostGraphQlRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, body: _body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/graphql` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return _response.body; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getGraphQlBatch( - request: Squidex.ContentsGetGraphQlBatchRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { query, operationName, variables, unpublished } = request; - const _queryParams = new URLSearchParams(); - if (query != null) { - _queryParams.append("query", query); - } - - if (operationName != null) { - _queryParams.append("operationName", operationName); - } - - if (variables != null) { - _queryParams.append("variables", variables); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/graphql/batch` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return _response.body; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postGraphQlBatch( - request: Squidex.ContentsPostGraphQlBatchRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { unpublished, body: _body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/graphql/batch` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return _response.body; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAllContents( - request: Squidex.ContentsGetAllContentsRequest = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { - ids, - scheduleFrom, - scheduleTo, - referencing, - references, - q, - fields, - flatten, - languages, - noSlowTotal, - noTotal, - unpublished, - } = request; - const _queryParams = new URLSearchParams(); - if (ids != null) { - _queryParams.append("ids", ids); - } - - if (scheduleFrom != null) { - _queryParams.append("scheduleFrom", scheduleFrom.toISOString()); - } - - if (scheduleTo != null) { - _queryParams.append("scheduleTo", scheduleTo.toISOString()); - } - - if (referencing != null) { - _queryParams.append("referencing", referencing); - } - - if (references != null) { - _queryParams.append("references", references); - } - - if (q != null) { - _queryParams.append("q", q); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Fields": fields != null ? fields : undefined, - "X-Flatten": flatten != null ? flatten.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAllContentsPost( - request: Squidex.AllContentsByPostDto = {}, - requestOptions?: Contents.RequestOptions - ): Promise { - const { fields, flatten, languages, noSlowTotal, noTotal, unpublished, ..._body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - "X-Fields": fields != null ? fields : undefined, - "X-Flatten": flatten != null ? flatten.toString() : undefined, - "X-Languages": languages != null ? languages : undefined, - "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, - "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, - "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, - }, - contentType: "application/json", - body: await serializers.AllContentsByPostDto.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can read the generated documentation for your app at /api/content/{appName}/docs. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async bulkUpdateAllContents( - request: Squidex.ContentsBulkUpdateAllContentsRequest, - requestOptions?: Contents.RequestOptions - ): Promise { - const { schema, body: _body } = request; - const _queryParams = new URLSearchParams(); - if (schema != null) { - _queryParams.append("schema", schema); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/content/${this._options.appName}/bulk` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - body: await serializers.BulkUpdateContentsDto.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.contents.bulkUpdateAllContents.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/contents/client/index.ts b/src/api/resources/contents/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/contents/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/contents/client/requests/AllContentsByPostDto.ts b/src/api/resources/contents/client/requests/AllContentsByPostDto.ts deleted file mode 100644 index fee3707..0000000 --- a/src/api/resources/contents/client/requests/AllContentsByPostDto.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AllContentsByPostDto { - /** - * The list of content fields (comma-separated). - */ - fields?: string; - /** - * Provide the data as flat object. - */ - flatten?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; - /** - * Do not return the total amount. - */ - noTotal?: boolean; - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** The list of ids to query. */ - ids?: string[]; - /** The start of the schedule. */ - scheduledFrom?: Date; - /** The end of the schedule. */ - scheduledTo?: Date; - /** The ID of the referencing content item. */ - referencing?: string; - /** The ID of the reference content item. */ - references?: string; - /** The optional odata query. */ - oData?: string; - q?: unknown; -} diff --git a/src/api/resources/contents/client/requests/ChangeStatusDto.ts b/src/api/resources/contents/client/requests/ChangeStatusDto.ts deleted file mode 100644 index e2fb6c4..0000000 --- a/src/api/resources/contents/client/requests/ChangeStatusDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ChangeStatusDto { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** The new status. `non-empty` */ - status: string; - /** The due time. */ - dueTime?: Date; - /** True to check referrers of this content. */ - checkReferrers?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsBulkUpdateAllContentsRequest.ts b/src/api/resources/contents/client/requests/ContentsBulkUpdateAllContentsRequest.ts deleted file mode 100644 index 5af6859..0000000 --- a/src/api/resources/contents/client/requests/ContentsBulkUpdateAllContentsRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ContentsBulkUpdateAllContentsRequest { - /** - * The name of the schema. - */ - schema?: string; - body: Squidex.BulkUpdateContentsDto; -} diff --git a/src/api/resources/contents/client/requests/ContentsCreateDraftRequest.ts b/src/api/resources/contents/client/requests/ContentsCreateDraftRequest.ts deleted file mode 100644 index 19762f5..0000000 --- a/src/api/resources/contents/client/requests/ContentsCreateDraftRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsCreateDraftRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; -} diff --git a/src/api/resources/contents/client/requests/ContentsDeleteContentRequest.ts b/src/api/resources/contents/client/requests/ContentsDeleteContentRequest.ts deleted file mode 100644 index 1680e58..0000000 --- a/src/api/resources/contents/client/requests/ContentsDeleteContentRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsDeleteContentRequest { - /** - * True to check referrers of this content. - */ - checkReferrers?: boolean; - /** - * True to delete the content permanently. - */ - permanent?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts b/src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts deleted file mode 100644 index 8294553..0000000 --- a/src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsDeleteContentStatusRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; -} diff --git a/src/api/resources/contents/client/requests/ContentsDeleteVersionRequest.ts b/src/api/resources/contents/client/requests/ContentsDeleteVersionRequest.ts deleted file mode 100644 index d0824ba..0000000 --- a/src/api/resources/contents/client/requests/ContentsDeleteVersionRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsDeleteVersionRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetAllContentsRequest.ts b/src/api/resources/contents/client/requests/ContentsGetAllContentsRequest.ts deleted file mode 100644 index d27ad5f..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetAllContentsRequest.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetAllContentsRequest { - /** - * The list of ids to query. - */ - ids?: string; - /** - * The start of the schedule. - */ - scheduleFrom?: Date; - /** - * The end of the schedule. - */ - scheduleTo?: Date; - /** - * The ID of the referencing content item. - */ - referencing?: string; - /** - * The ID of the reference content item. - */ - references?: string; - /** - * The optional json query. - */ - q?: string; - /** - * The list of content fields (comma-separated). - */ - fields?: string; - /** - * Provide the data as flat object. - */ - flatten?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; - /** - * Do not return the total amount. - */ - noTotal?: boolean; - /** - * Return unpublished content items. - */ - unpublished?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetContentRequest.ts b/src/api/resources/contents/client/requests/ContentsGetContentRequest.ts deleted file mode 100644 index 5a8ae2f..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetContentRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetContentRequest { - /** - * The optional version. - */ - version?: number; - /** - * The list of content fields (comma-separated). - */ - fields?: string; - /** - * Provide the data as flat object. - */ - flatten?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** - * Return unpublished content items. - */ - unpublished?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts b/src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts deleted file mode 100644 index dd4a4de..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetContentVersionRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetContentsPostRequest.ts b/src/api/resources/contents/client/requests/ContentsGetContentsPostRequest.ts deleted file mode 100644 index f1bef02..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetContentsPostRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ContentsGetContentsPostRequest { - /** - * The list of content fields (comma-separated). - */ - fields?: string; - /** - * Provide the data as flat object. - */ - flatten?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; - /** - * Do not return the total amount. - */ - noTotal?: boolean; - /** - * Return unpublished content items. - */ - unpublished?: boolean; - body: Squidex.QueryDto; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts b/src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts deleted file mode 100644 index 86180ba..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetContentsRequest { - /** - * The optional ids of the content to fetch. - */ - ids?: string; - /** - * The optional json query. - */ - q?: string; - /** - * Optional number of items to skip. - */ - search?: string; - /** - * Optional number of items to take. - */ - top?: number; - /** - * Optional number of items to skip. - */ - skip?: number; - /** - * Optional OData order definition. - */ - orderby?: string; - /** - * Optional OData filter. - */ - filter?: string; - /** - * The list of content fields (comma-separated). - */ - fields?: string; - /** - * Provide the data as flat object. - */ - flatten?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; - /** - * Do not return the total amount. - */ - noTotal?: boolean; - /** - * Return unpublished content items. - */ - unpublished?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetGraphQlBatchRequest.ts b/src/api/resources/contents/client/requests/ContentsGetGraphQlBatchRequest.ts deleted file mode 100644 index e0a9dc9..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetGraphQlBatchRequest.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetGraphQlBatchRequest { - /** - * The query string. - */ - query?: string; - /** - * The optional operation name. - */ - operationName?: string; - /** - * The optional variables. - */ - variables?: string; - /** - * Return unpublished content items. - */ - unpublished?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetGraphQlRequest.ts b/src/api/resources/contents/client/requests/ContentsGetGraphQlRequest.ts deleted file mode 100644 index ab3fd9b..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetGraphQlRequest.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetGraphQlRequest { - /** - * The query string. - */ - query?: string; - /** - * The optional operation name. - */ - operationName?: string; - /** - * The optional variables. - */ - variables?: string; - /** - * Return unpublished content items. - */ - unpublished?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetReferencesRequest.ts b/src/api/resources/contents/client/requests/ContentsGetReferencesRequest.ts deleted file mode 100644 index 72f917e..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetReferencesRequest.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetReferencesRequest { - /** - * The optional json query. - */ - q?: string; - /** - * The list of content fields (comma-separated). - */ - fields?: string; - /** - * Provide the data as flat object. - */ - flatten?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; - /** - * Do not return the total amount. - */ - noTotal?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts b/src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts deleted file mode 100644 index 4edea17..0000000 --- a/src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsGetReferencingRequest { - /** - * The optional json query. - */ - q?: string; - /** - * The list of content fields (comma-separated). - */ - fields?: string; - /** - * Provide the data as flat object. - */ - flatten?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * Do not return the total amount, if it would be slow. - */ - noSlowTotal?: boolean; - /** - * Do not return the total amount. - */ - noTotal?: boolean; -} diff --git a/src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts b/src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts deleted file mode 100644 index b636fd1..0000000 --- a/src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ContentsPatchContentRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - body: Record; -} diff --git a/src/api/resources/contents/client/requests/ContentsPostContentRequest.ts b/src/api/resources/contents/client/requests/ContentsPostContentRequest.ts deleted file mode 100644 index 830c6a5..0000000 --- a/src/api/resources/contents/client/requests/ContentsPostContentRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ContentsPostContentRequest { - /** - * The initial status. - */ - status?: string; - /** - * The optional custom content id. - */ - id?: string; - /** - * True to automatically publish the content. - */ - publish?: boolean; - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - body: Record; -} diff --git a/src/api/resources/contents/client/requests/ContentsPostGraphQlBatchRequest.ts b/src/api/resources/contents/client/requests/ContentsPostGraphQlBatchRequest.ts deleted file mode 100644 index 52141b4..0000000 --- a/src/api/resources/contents/client/requests/ContentsPostGraphQlBatchRequest.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsPostGraphQlBatchRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - body?: unknown; -} diff --git a/src/api/resources/contents/client/requests/ContentsPostGraphQlRequest.ts b/src/api/resources/contents/client/requests/ContentsPostGraphQlRequest.ts deleted file mode 100644 index 34bab89..0000000 --- a/src/api/resources/contents/client/requests/ContentsPostGraphQlRequest.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContentsPostGraphQlRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - body?: unknown; -} diff --git a/src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts b/src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts deleted file mode 100644 index 9e658ae..0000000 --- a/src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ContentsPostUpsertContentRequest { - /** - * The initial status. - */ - status?: string; - /** - * Makes the update as patch. - */ - patch?: boolean; - /** - * True to automatically publish the content. - */ - publish?: boolean; - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - body: Record; -} diff --git a/src/api/resources/contents/client/requests/ContentsPutContentRequest.ts b/src/api/resources/contents/client/requests/ContentsPutContentRequest.ts deleted file mode 100644 index 33172f8..0000000 --- a/src/api/resources/contents/client/requests/ContentsPutContentRequest.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ContentsPutContentRequest { - /** - * Return unpublished content items. - */ - unpublished?: boolean; - /** - * The list of languages to resolve (comma-separated). - */ - languages?: string; - body: Record; -} diff --git a/src/api/resources/contents/client/requests/ImportContentsDto.ts b/src/api/resources/contents/client/requests/ImportContentsDto.ts deleted file mode 100644 index ccb21d6..0000000 --- a/src/api/resources/contents/client/requests/ImportContentsDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ImportContentsDto { - /** The data to import. */ - datas: Squidex.ContentData[]; - /** True to automatically publish the content. */ - publish?: boolean; - /** True to turn off scripting for faster inserts. Default: true. */ - doNotScript?: boolean; - /** True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true. */ - optimizeValidation?: boolean; -} diff --git a/src/api/resources/contents/client/requests/index.ts b/src/api/resources/contents/client/requests/index.ts deleted file mode 100644 index 9b1fd80..0000000 --- a/src/api/resources/contents/client/requests/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -export { ContentsGetContentsRequest } from "./ContentsGetContentsRequest"; -export { ContentsPostContentRequest } from "./ContentsPostContentRequest"; -export { ContentsGetContentsPostRequest } from "./ContentsGetContentsPostRequest"; -export { ContentsGetContentRequest } from "./ContentsGetContentRequest"; -export { ContentsPostUpsertContentRequest } from "./ContentsPostUpsertContentRequest"; -export { ContentsPutContentRequest } from "./ContentsPutContentRequest"; -export { ContentsPatchContentRequest } from "./ContentsPatchContentRequest"; -export { ContentsDeleteContentRequest } from "./ContentsDeleteContentRequest"; -export { ContentsGetReferencesRequest } from "./ContentsGetReferencesRequest"; -export { ContentsGetReferencingRequest } from "./ContentsGetReferencingRequest"; -export { ContentsGetContentVersionRequest } from "./ContentsGetContentVersionRequest"; -export { ImportContentsDto } from "./ImportContentsDto"; -export { ChangeStatusDto } from "./ChangeStatusDto"; -export { ContentsDeleteContentStatusRequest } from "./ContentsDeleteContentStatusRequest"; -export { ContentsCreateDraftRequest } from "./ContentsCreateDraftRequest"; -export { ContentsDeleteVersionRequest } from "./ContentsDeleteVersionRequest"; -export { ContentsGetGraphQlRequest } from "./ContentsGetGraphQlRequest"; -export { ContentsPostGraphQlRequest } from "./ContentsPostGraphQlRequest"; -export { ContentsGetGraphQlBatchRequest } from "./ContentsGetGraphQlBatchRequest"; -export { ContentsPostGraphQlBatchRequest } from "./ContentsPostGraphQlBatchRequest"; -export { ContentsGetAllContentsRequest } from "./ContentsGetAllContentsRequest"; -export { AllContentsByPostDto } from "./AllContentsByPostDto"; -export { ContentsBulkUpdateAllContentsRequest } from "./ContentsBulkUpdateAllContentsRequest"; diff --git a/src/api/resources/contents/index.ts b/src/api/resources/contents/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/contents/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/diagnostics/client/Client.ts b/src/api/resources/diagnostics/client/Client.ts deleted file mode 100644 index b0f4948..0000000 --- a/src/api/resources/diagnostics/client/Client.ts +++ /dev/null @@ -1,166 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as errors from "../../../../errors"; -import * as serializers from "../../../../serialization"; - -export declare namespace Diagnostics { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Diagnostics { - constructor(protected readonly _options: Diagnostics.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - * @throws {@link Squidex.NotImplementedError} - */ - public async getDump(requestOptions?: Diagnostics.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/diagnostics/dump" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 501: - throw new Squidex.NotImplementedError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.InternalServerError} - * @throws {@link Squidex.NotImplementedError} - */ - public async getGcDump(requestOptions?: Diagnostics.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/diagnostics/gcdump" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 501: - throw new Squidex.NotImplementedError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/diagnostics/client/index.ts b/src/api/resources/diagnostics/client/index.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/src/api/resources/diagnostics/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/diagnostics/index.ts b/src/api/resources/diagnostics/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/diagnostics/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/eventConsumers/client/Client.ts b/src/api/resources/eventConsumers/client/Client.ts deleted file mode 100644 index 5dbfe3f..0000000 --- a/src/api/resources/eventConsumers/client/Client.ts +++ /dev/null @@ -1,328 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace EventConsumers { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class EventConsumers { - constructor(protected readonly _options: EventConsumers.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getEventConsumers(requestOptions?: EventConsumers.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/event-consumers" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.EventConsumersDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async startEventConsumer( - consumerName: string, - requestOptions?: EventConsumers.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/event-consumers/${consumerName}/start` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.EventConsumerDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async stopEventConsumer( - consumerName: string, - requestOptions?: EventConsumers.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/event-consumers/${consumerName}/stop` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.EventConsumerDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async resetEventConsumer( - consumerName: string, - requestOptions?: EventConsumers.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/event-consumers/${consumerName}/reset` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.EventConsumerDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/eventConsumers/client/index.ts b/src/api/resources/eventConsumers/client/index.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/src/api/resources/eventConsumers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/eventConsumers/index.ts b/src/api/resources/eventConsumers/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/eventConsumers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/history/client/Client.ts b/src/api/resources/history/client/Client.ts deleted file mode 100644 index a8af203..0000000 --- a/src/api/resources/history/client/Client.ts +++ /dev/null @@ -1,184 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace History { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class History { - constructor(protected readonly _options: History.Options) {} - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getAppHistory( - request: Squidex.HistoryGetAppHistoryRequest = {}, - requestOptions?: History.RequestOptions - ): Promise { - const { channel } = request; - const _queryParams = new URLSearchParams(); - if (channel != null) { - _queryParams.append("channel", channel); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/history` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.history.getAppHistory.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getTeamHistory( - team: string, - request: Squidex.HistoryGetTeamHistoryRequest = {}, - requestOptions?: History.RequestOptions - ): Promise { - const { channel } = request; - const _queryParams = new URLSearchParams(); - if (channel != null) { - _queryParams.append("channel", channel); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/history` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.history.getTeamHistory.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/history/client/index.ts b/src/api/resources/history/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/history/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/history/client/requests/HistoryGetAppHistoryRequest.ts b/src/api/resources/history/client/requests/HistoryGetAppHistoryRequest.ts deleted file mode 100644 index a977aa0..0000000 --- a/src/api/resources/history/client/requests/HistoryGetAppHistoryRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface HistoryGetAppHistoryRequest { - /** - * The name of the channel. - */ - channel?: string; -} diff --git a/src/api/resources/history/client/requests/HistoryGetTeamHistoryRequest.ts b/src/api/resources/history/client/requests/HistoryGetTeamHistoryRequest.ts deleted file mode 100644 index d8c6047..0000000 --- a/src/api/resources/history/client/requests/HistoryGetTeamHistoryRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface HistoryGetTeamHistoryRequest { - /** - * The name of the channel. - */ - channel?: string; -} diff --git a/src/api/resources/history/client/requests/index.ts b/src/api/resources/history/client/requests/index.ts deleted file mode 100644 index 4bedbbe..0000000 --- a/src/api/resources/history/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { HistoryGetAppHistoryRequest } from "./HistoryGetAppHistoryRequest"; -export { HistoryGetTeamHistoryRequest } from "./HistoryGetTeamHistoryRequest"; diff --git a/src/api/resources/history/index.ts b/src/api/resources/history/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/history/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts deleted file mode 100644 index c12f731..0000000 --- a/src/api/resources/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -export * as userManagement from "./userManagement"; -export * as users from "./users"; -export * as translations from "./translations"; -export * as templates from "./templates"; -export * as teams from "./teams"; -export * as statistics from "./statistics"; -export * as search from "./search"; -export * as schemas from "./schemas"; -export * as rules from "./rules"; -export * as plans from "./plans"; -export * as ping from "./ping"; -export * as news from "./news"; -export * as languages from "./languages"; -export * as history from "./history"; -export * as eventConsumers from "./eventConsumers"; -export * as diagnostics from "./diagnostics"; -export * as contents from "./contents"; -export * as comments from "./comments"; -export * as notifications from "./notifications"; -export * as backups from "./backups"; -export * as assets from "./assets"; -export * as apps from "./apps"; -export * from "./userManagement/client/requests"; -export * from "./users/client/requests"; -export * from "./translations/client/requests"; -export * from "./teams/client/requests"; -export * from "./search/client/requests"; -export * from "./schemas/client/requests"; -export * from "./rules/client/requests"; -export * from "./news/client/requests"; -export * from "./history/client/requests"; -export * from "./contents/client/requests"; -export * from "./comments/client/requests"; -export * from "./notifications/client/requests"; -export * from "./backups/client/requests"; -export * from "./assets/client/requests"; -export * from "./apps/client/requests"; diff --git a/src/api/resources/languages/client/Client.ts b/src/api/resources/languages/client/Client.ts deleted file mode 100644 index 078e4d4..0000000 --- a/src/api/resources/languages/client/Client.ts +++ /dev/null @@ -1,95 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Languages { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Languages { - constructor(protected readonly _options: Languages.Options) {} - - /** - * Provide a list of supported language codes, following the ISO2Code standard. - * @throws {@link Squidex.InternalServerError} - */ - public async getLanguages(requestOptions?: Languages.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/languages" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.languages.getLanguages.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/languages/client/index.ts b/src/api/resources/languages/client/index.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/src/api/resources/languages/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/languages/index.ts b/src/api/resources/languages/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/languages/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/news/client/Client.ts b/src/api/resources/news/client/Client.ts deleted file mode 100644 index 022c5d8..0000000 --- a/src/api/resources/news/client/Client.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace News { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class News { - constructor(protected readonly _options: News.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getNews( - request: Squidex.NewsGetNewsRequest = {}, - requestOptions?: News.RequestOptions - ): Promise { - const { version } = request; - const _queryParams = new URLSearchParams(); - if (version != null) { - _queryParams.append("version", version.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/news/features" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.FeaturesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/news/client/index.ts b/src/api/resources/news/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/news/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/news/client/requests/NewsGetNewsRequest.ts b/src/api/resources/news/client/requests/NewsGetNewsRequest.ts deleted file mode 100644 index 7de6b59..0000000 --- a/src/api/resources/news/client/requests/NewsGetNewsRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface NewsGetNewsRequest { - /** - * The latest received version. - */ - version?: number; -} diff --git a/src/api/resources/news/client/requests/index.ts b/src/api/resources/news/client/requests/index.ts deleted file mode 100644 index a03defa..0000000 --- a/src/api/resources/news/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { NewsGetNewsRequest } from "./NewsGetNewsRequest"; diff --git a/src/api/resources/news/index.ts b/src/api/resources/news/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/news/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/notifications/client/Client.ts b/src/api/resources/notifications/client/Client.ts deleted file mode 100644 index 453ac94..0000000 --- a/src/api/resources/notifications/client/Client.ts +++ /dev/null @@ -1,181 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Notifications { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Notifications { - constructor(protected readonly _options: Notifications.Options) {} - - /** - * When passing in a version you can retrieve all updates since then. - * @throws {@link Squidex.InternalServerError} - */ - public async getNotifications( - userId: string, - request: Squidex.NotificationsGetNotificationsRequest = {}, - requestOptions?: Notifications.RequestOptions - ): Promise { - const { version } = request; - const _queryParams = new URLSearchParams(); - if (version != null) { - _queryParams.append("version", version.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/users/${userId}/notifications` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.CommentsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteComment( - userId: string, - commentId: string, - requestOptions?: Notifications.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/users/${userId}/notifications/${commentId}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/notifications/client/index.ts b/src/api/resources/notifications/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/notifications/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/notifications/client/requests/NotificationsGetNotificationsRequest.ts b/src/api/resources/notifications/client/requests/NotificationsGetNotificationsRequest.ts deleted file mode 100644 index 202b87c..0000000 --- a/src/api/resources/notifications/client/requests/NotificationsGetNotificationsRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface NotificationsGetNotificationsRequest { - /** - * The current version. - */ - version?: number; -} diff --git a/src/api/resources/notifications/client/requests/index.ts b/src/api/resources/notifications/client/requests/index.ts deleted file mode 100644 index acdca83..0000000 --- a/src/api/resources/notifications/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { NotificationsGetNotificationsRequest } from "./NotificationsGetNotificationsRequest"; diff --git a/src/api/resources/notifications/index.ts b/src/api/resources/notifications/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/notifications/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ping/client/Client.ts b/src/api/resources/ping/client/Client.ts deleted file mode 100644 index 765a1b0..0000000 --- a/src/api/resources/ping/client/Client.ts +++ /dev/null @@ -1,210 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Ping { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Ping { - constructor(protected readonly _options: Ping.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getInfo(requestOptions?: Ping.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/info" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ExposedValues.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Can be used to test, if the Squidex API is alive and responding. - * @throws {@link Squidex.InternalServerError} - */ - public async getPing(requestOptions?: Ping.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/ping" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Can be used to test, if the Squidex API is alive and responding. - * @throws {@link Squidex.InternalServerError} - */ - public async getAppPing(requestOptions?: Ping.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/ping/${this._options.appName}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/ping/client/index.ts b/src/api/resources/ping/client/index.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/src/api/resources/ping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ping/index.ts b/src/api/resources/ping/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/ping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/plans/client/Client.ts b/src/api/resources/plans/client/Client.ts deleted file mode 100644 index 13fe93b..0000000 --- a/src/api/resources/plans/client/Client.ts +++ /dev/null @@ -1,321 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Plans { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Plans { - constructor(protected readonly _options: Plans.Options) {} - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getPlans(requestOptions?: Plans.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/plans` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.PlansDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putPlan( - request: Squidex.ChangePlanDto, - requestOptions?: Plans.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/plan` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ChangePlanDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.PlanChangedDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getTeamPlans(team: string, requestOptions?: Plans.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/plans` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.PlansDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putTeamPlan( - team: string, - request: Squidex.ChangePlanDto, - requestOptions?: Plans.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/plan` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ChangePlanDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.PlanChangedDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/plans/client/index.ts b/src/api/resources/plans/client/index.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/src/api/resources/plans/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/plans/index.ts b/src/api/resources/plans/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/plans/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/rules/client/Client.ts b/src/api/resources/rules/client/Client.ts deleted file mode 100644 index 4549a18..0000000 --- a/src/api/resources/rules/client/Client.ts +++ /dev/null @@ -1,1380 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; -import { default as URLSearchParams } from "@ungap/url-search-params"; - -export declare namespace Rules { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Rules { - constructor(protected readonly _options: Rules.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getActions(requestOptions?: Rules.RequestOptions): Promise> { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/rules/actions" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.rules.getActions.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getRules(requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RulesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postRule( - request: Squidex.CreateRuleDto, - requestOptions?: Rules.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateRuleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RuleDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteRuleRun(requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/run` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putRule( - id: string, - request: Squidex.UpdateRuleDto = {}, - requestOptions?: Rules.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateRuleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RuleDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteRule(id: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async enableRule(id: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}/enable` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RuleDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async disableRule(id: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}/disable` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RuleDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async triggerRule(id: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}/trigger` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async putRuleRun( - id: string, - request: Squidex.RulesPutRuleRunRequest = {}, - requestOptions?: Rules.RequestOptions - ): Promise { - const { fromSnapshots } = request; - const _queryParams = new URLSearchParams(); - if (fromSnapshots != null) { - _queryParams.append("fromSnapshots", fromSnapshots.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}/run` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteRuleEvents(id: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}/events` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async simulatePost( - request: Squidex.CreateRuleDto, - requestOptions?: Rules.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/simulate` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateRuleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SimulatedRuleEventsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async simulateGet( - id: string, - requestOptions?: Rules.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/${id}/simulate` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SimulatedRuleEventsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getEvents( - request: Squidex.RulesGetEventsRequest = {}, - requestOptions?: Rules.RequestOptions - ): Promise { - const { ruleId, skip, take } = request; - const _queryParams = new URLSearchParams(); - if (ruleId != null) { - _queryParams.append("ruleId", ruleId); - } - - if (skip != null) { - _queryParams.append("skip", skip.toString()); - } - - if (take != null) { - _queryParams.append("take", take.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/events` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.RuleEventsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteEvents(requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/events` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putEvent(id: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/events/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteEvent(id: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/rules/events/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getEventTypes(requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/rules/eventtypes" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.rules.getEventTypes.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getEventSchema(type: string, requestOptions?: Rules.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/rules/eventtypes/${type}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return _response.body; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/rules/client/index.ts b/src/api/resources/rules/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/rules/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/rules/client/requests/RulesGetEventsRequest.ts b/src/api/resources/rules/client/requests/RulesGetEventsRequest.ts deleted file mode 100644 index cbfecc9..0000000 --- a/src/api/resources/rules/client/requests/RulesGetEventsRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface RulesGetEventsRequest { - /** - * The optional rule id to filter to events. - */ - ruleId?: string; - /** - * The number of events to skip. - */ - skip?: number; - /** - * The number of events to take. - */ - take?: number; -} diff --git a/src/api/resources/rules/client/requests/RulesPutRuleRunRequest.ts b/src/api/resources/rules/client/requests/RulesPutRuleRunRequest.ts deleted file mode 100644 index 6a107a3..0000000 --- a/src/api/resources/rules/client/requests/RulesPutRuleRunRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface RulesPutRuleRunRequest { - /** - * Runs the rule from snapeshots if possible. - */ - fromSnapshots?: boolean; -} diff --git a/src/api/resources/rules/client/requests/UpdateRuleDto.ts b/src/api/resources/rules/client/requests/UpdateRuleDto.ts deleted file mode 100644 index 1838ed4..0000000 --- a/src/api/resources/rules/client/requests/UpdateRuleDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface UpdateRuleDto { - /** Optional rule name. */ - name?: string; - /** The trigger properties. */ - trigger?: Squidex.RuleTriggerDto; - /** The action properties. */ - action?: Squidex.RuleActionDto; - /** Enable or disable the rule. */ - isEnabled?: boolean; -} diff --git a/src/api/resources/rules/client/requests/index.ts b/src/api/resources/rules/client/requests/index.ts deleted file mode 100644 index 30a1948..0000000 --- a/src/api/resources/rules/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { UpdateRuleDto } from "./UpdateRuleDto"; -export { RulesPutRuleRunRequest } from "./RulesPutRuleRunRequest"; -export { RulesGetEventsRequest } from "./RulesGetEventsRequest"; diff --git a/src/api/resources/rules/index.ts b/src/api/resources/rules/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/rules/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/schemas/client/Client.ts b/src/api/resources/schemas/client/Client.ts deleted file mode 100644 index e5c3283..0000000 --- a/src/api/resources/schemas/client/Client.ts +++ /dev/null @@ -1,2499 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import * as serializers from "../../../../serialization"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors"; - -export declare namespace Schemas { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Schemas { - constructor(protected readonly _options: Schemas.Options) {} - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.ConflictError} - * @throws {@link Squidex.InternalServerError} - */ - public async postField( - schema: string, - request: Squidex.AddFieldDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AddFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 409: - throw new Squidex.ConflictError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.ConflictError} - * @throws {@link Squidex.InternalServerError} - */ - public async postNestedField( - schema: string, - parentId: number, - request: Squidex.AddFieldDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AddFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 409: - throw new Squidex.ConflictError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putSchemaUiFields( - schema: string, - request: Squidex.ConfigureUiFieldsDto = {}, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/ui` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ConfigureUiFieldsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putSchemaFieldOrdering( - schema: string, - request: Squidex.ReorderFieldsDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/ordering` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ReorderFieldsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putNestedFieldOrdering( - schema: string, - parentId: number, - request: Squidex.ReorderFieldsDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/ordering` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ReorderFieldsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putField( - schema: string, - id: number, - request: Squidex.UpdateFieldDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteField( - schema: string, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putNestedField( - schema: string, - parentId: number, - id: number, - request: Squidex.UpdateFieldDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteNestedField( - schema: string, - parentId: number, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A locked field cannot be updated or deleted. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async lockField( - schema: string, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${id}/lock` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A locked field cannot be edited or deleted. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async lockNestedField( - schema: string, - parentId: number, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/${id}/lock` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A hidden field is not part of the API response, but can still be edited in the portal. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async hideField( - schema: string, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${id}/hide` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A hidden field is not part of the API response, but can still be edited in the portal. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async hideNestedField( - schema: string, - parentId: number, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/${id}/hide` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A hidden field is not part of the API response, but can still be edited in the portal. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async showField( - schema: string, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${id}/show` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A hidden field is not part of the API response, but can still be edited in the portal. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async showNestedField( - schema: string, - parentId: number, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/${id}/show` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async enableField( - schema: string, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${id}/enable` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async enableNestedField( - schema: string, - parentId: number, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/${id}/enable` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async disableField( - schema: string, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${id}/disable` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async disableNestedField( - schema: string, - parentId: number, - id: number, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/fields/${parentId}/nested/${id}/disable` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getSchemas(requestOptions?: Schemas.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemasDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.ConflictError} - * @throws {@link Squidex.InternalServerError} - */ - public async postSchema( - request: Squidex.CreateSchemaDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateSchemaDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 409: - throw new Squidex.ConflictError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getSchema(schema: string, requestOptions?: Schemas.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putSchema( - schema: string, - request: Squidex.UpdateSchemaDto = {}, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateSchemaDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteSchema(schema: string, requestOptions?: Schemas.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putSchemaSync( - schema: string, - request: Squidex.SynchronizeSchemaDto = {}, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/sync` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.SynchronizeSchemaDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putCategory( - schema: string, - request: Squidex.ChangeCategoryDto = {}, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/category` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ChangeCategoryDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putPreviewUrls( - schema: string, - request: Record, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/preview-urls` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.schemas.putPreviewUrls.Request.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putScripts( - schema: string, - request: Squidex.SchemaScriptsDto, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/scripts` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.SchemaScriptsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putRules( - schema: string, - request: Squidex.ConfigureFieldRulesDto = {}, - requestOptions?: Schemas.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/rules` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.ConfigureFieldRulesDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async publishSchema(schema: string, requestOptions?: Schemas.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/publish` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async unpublishSchema(schema: string, requestOptions?: Schemas.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/schemas/${schema}/unpublish` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.SchemaDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/schemas/client/index.ts b/src/api/resources/schemas/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/schemas/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/schemas/client/requests/ChangeCategoryDto.ts b/src/api/resources/schemas/client/requests/ChangeCategoryDto.ts deleted file mode 100644 index 631bd85..0000000 --- a/src/api/resources/schemas/client/requests/ChangeCategoryDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ChangeCategoryDto { - /** The name of the category. */ - name?: string; -} diff --git a/src/api/resources/schemas/client/requests/ConfigureFieldRulesDto.ts b/src/api/resources/schemas/client/requests/ConfigureFieldRulesDto.ts deleted file mode 100644 index fd8e6b9..0000000 --- a/src/api/resources/schemas/client/requests/ConfigureFieldRulesDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface ConfigureFieldRulesDto { - /** The field rules to configure. */ - fieldRules?: Squidex.FieldRuleDto[]; -} diff --git a/src/api/resources/schemas/client/requests/ConfigureUiFieldsDto.ts b/src/api/resources/schemas/client/requests/ConfigureUiFieldsDto.ts deleted file mode 100644 index 8cc9d61..0000000 --- a/src/api/resources/schemas/client/requests/ConfigureUiFieldsDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ConfigureUiFieldsDto { - /** The name of fields that are used in content lists. */ - fieldsInLists?: string[]; - /** The name of fields that are used in content references. */ - fieldsInReferences?: string[]; -} diff --git a/src/api/resources/schemas/client/requests/CreateSchemaDto.ts b/src/api/resources/schemas/client/requests/CreateSchemaDto.ts deleted file mode 100644 index 43a8363..0000000 --- a/src/api/resources/schemas/client/requests/CreateSchemaDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface CreateSchemaDto extends Squidex.UpsertSchemaDto { - /** The name of the schema. `non-empty` */ - name: string; - /** The type of the schema. */ - type?: Squidex.SchemaType; - /** Set to true to allow a single content item only. */ - isSingleton?: boolean; -} diff --git a/src/api/resources/schemas/client/requests/SynchronizeSchemaDto.ts b/src/api/resources/schemas/client/requests/SynchronizeSchemaDto.ts deleted file mode 100644 index 497a891..0000000 --- a/src/api/resources/schemas/client/requests/SynchronizeSchemaDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from "../../../.."; - -export interface SynchronizeSchemaDto extends Squidex.UpsertSchemaDto { - /** True, when fields should not be deleted. */ - noFieldDeletion?: boolean; - /** True, when fields with different types should not be recreated. */ - noFieldRecreation?: boolean; -} diff --git a/src/api/resources/schemas/client/requests/UpdateSchemaDto.ts b/src/api/resources/schemas/client/requests/UpdateSchemaDto.ts deleted file mode 100644 index bc559d6..0000000 --- a/src/api/resources/schemas/client/requests/UpdateSchemaDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateSchemaDto { - /** Optional label for the editor. */ - label?: string; - /** Hints to describe the schema. */ - hints?: string; - /** The url to a the sidebar plugin for content lists. */ - contentsSidebarUrl?: string; - /** The url to a the sidebar plugin for content items. */ - contentSidebarUrl?: string; - /** The url to the editor plugin. */ - contentEditorUrl?: string; - /** True to validate the content items on publish. */ - validateOnPublish?: boolean; - /** Tags for automation processes. */ - tags?: string[]; -} diff --git a/src/api/resources/schemas/client/requests/index.ts b/src/api/resources/schemas/client/requests/index.ts deleted file mode 100644 index cc5afd7..0000000 --- a/src/api/resources/schemas/client/requests/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { ConfigureUiFieldsDto } from "./ConfigureUiFieldsDto"; -export { CreateSchemaDto } from "./CreateSchemaDto"; -export { UpdateSchemaDto } from "./UpdateSchemaDto"; -export { SynchronizeSchemaDto } from "./SynchronizeSchemaDto"; -export { ChangeCategoryDto } from "./ChangeCategoryDto"; -export { ConfigureFieldRulesDto } from "./ConfigureFieldRulesDto"; diff --git a/src/api/resources/schemas/index.ts b/src/api/resources/schemas/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/schemas/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/search/client/Client.ts b/src/api/resources/search/client/Client.ts deleted file mode 100644 index e6301d1..0000000 --- a/src/api/resources/search/client/Client.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Search { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Search { - constructor(protected readonly _options: Search.Options) {} - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getSearchResults( - request: Squidex.SearchGetSearchResultsRequest = {}, - requestOptions?: Search.RequestOptions - ): Promise { - const { query } = request; - const _queryParams = new URLSearchParams(); - if (query != null) { - _queryParams.append("query", query); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/search` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.search.getSearchResults.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/search/client/index.ts b/src/api/resources/search/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/search/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/search/client/requests/SearchGetSearchResultsRequest.ts b/src/api/resources/search/client/requests/SearchGetSearchResultsRequest.ts deleted file mode 100644 index 7c21361..0000000 --- a/src/api/resources/search/client/requests/SearchGetSearchResultsRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SearchGetSearchResultsRequest { - /** - * The search query. - */ - query?: string; -} diff --git a/src/api/resources/search/client/requests/index.ts b/src/api/resources/search/client/requests/index.ts deleted file mode 100644 index d347a63..0000000 --- a/src/api/resources/search/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { SearchGetSearchResultsRequest } from "./SearchGetSearchResultsRequest"; diff --git a/src/api/resources/search/index.ts b/src/api/resources/search/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/search/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/statistics/client/Client.ts b/src/api/resources/statistics/client/Client.ts deleted file mode 100644 index 4e12433..0000000 --- a/src/api/resources/statistics/client/Client.ts +++ /dev/null @@ -1,508 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Statistics { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Statistics { - constructor(protected readonly _options: Statistics.Options) {} - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getLog(requestOptions?: Statistics.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/usages/log` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.LogDownloadDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getUsages( - fromDate: string, - toDate: string, - requestOptions?: Statistics.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/usages/calls/${fromDate}/${toDate}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.CallsUsageDtoDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getUsagesForTeam( - team: string, - fromDate: string, - toDate: string, - requestOptions?: Statistics.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/usages/calls/${fromDate}/${toDate}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.CallsUsageDtoDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getCurrentStorageSize(requestOptions?: Statistics.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/usages/storage/today` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.CurrentStorageDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getTeamCurrentStorageSizeForTeam( - team: string, - requestOptions?: Statistics.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/usages/storage/today` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.CurrentStorageDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getStorageSizes( - fromDate: string, - toDate: string, - requestOptions?: Statistics.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/usages/storage/${fromDate}/${toDate}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.statistics.getStorageSizes.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getStorageSizesForTeam( - team: string, - fromDate: string, - toDate: string, - requestOptions?: Statistics.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/usages/storage/${fromDate}/${toDate}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.statistics.getStorageSizesForTeam.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/statistics/client/index.ts b/src/api/resources/statistics/client/index.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/src/api/resources/statistics/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/statistics/index.ts b/src/api/resources/statistics/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/statistics/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/teams/client/Client.ts b/src/api/resources/teams/client/Client.ts deleted file mode 100644 index a7badb5..0000000 --- a/src/api/resources/teams/client/Client.ts +++ /dev/null @@ -1,631 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Teams { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Teams { - constructor(protected readonly _options: Teams.Options) {} - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getContributors( - team: string, - requestOptions?: Teams.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/contributors` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async postContributor( - team: string, - request: Squidex.AssignContributorDto, - requestOptions?: Teams.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/contributors` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AssignContributorDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteMyself(team: string, requestOptions?: Teams.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/contributors/me` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteContributor( - team: string, - id: string, - requestOptions?: Teams.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}/contributors/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ContributorsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can only retrieve the list of teams when you are authenticated as a user (OpenID implicit flow). - * You will retrieve all teams, where you are assigned as a contributor. - * @throws {@link Squidex.InternalServerError} - */ - public async getTeams(requestOptions?: Teams.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/teams" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.teams.getTeams.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * You can only create an team when you are authenticated as a user (OpenID implicit flow). - * You will be assigned as owner of the new team automatically. - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.ConflictError} - * @throws {@link Squidex.InternalServerError} - */ - public async postTeam( - request: Squidex.CreateTeamDto, - requestOptions?: Teams.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/teams" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateTeamDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.TeamDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 409: - throw new Squidex.ConflictError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getTeam(team: string, requestOptions?: Teams.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.TeamDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putTeam( - team: string, - request: Squidex.UpdateTeamDto, - requestOptions?: Teams.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/teams/${team}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateTeamDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.TeamDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/teams/client/index.ts b/src/api/resources/teams/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/teams/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/teams/client/requests/CreateTeamDto.ts b/src/api/resources/teams/client/requests/CreateTeamDto.ts deleted file mode 100644 index 720727f..0000000 --- a/src/api/resources/teams/client/requests/CreateTeamDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CreateTeamDto { - /** The name of the team. `non-empty` */ - name: string; -} diff --git a/src/api/resources/teams/client/requests/UpdateTeamDto.ts b/src/api/resources/teams/client/requests/UpdateTeamDto.ts deleted file mode 100644 index 2295f6f..0000000 --- a/src/api/resources/teams/client/requests/UpdateTeamDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateTeamDto { - /** The name of the team. `non-empty` */ - name: string; -} diff --git a/src/api/resources/teams/client/requests/index.ts b/src/api/resources/teams/client/requests/index.ts deleted file mode 100644 index 36453aa..0000000 --- a/src/api/resources/teams/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateTeamDto } from "./CreateTeamDto"; -export { UpdateTeamDto } from "./UpdateTeamDto"; diff --git a/src/api/resources/teams/index.ts b/src/api/resources/teams/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/teams/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts deleted file mode 100644 index 3a3ebdb..0000000 --- a/src/api/resources/templates/client/Client.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace Templates { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Templates { - constructor(protected readonly _options: Templates.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getTemplates(requestOptions?: Templates.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/templates" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.TemplatesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getTemplate( - name: string, - requestOptions?: Templates.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/templates/${name}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.TemplateDetailsDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/templates/client/index.ts b/src/api/resources/templates/client/index.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/src/api/resources/templates/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/templates/index.ts b/src/api/resources/templates/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/templates/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/translations/client/Client.ts b/src/api/resources/translations/client/Client.ts deleted file mode 100644 index 6c8997b..0000000 --- a/src/api/resources/translations/client/Client.ts +++ /dev/null @@ -1,184 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import * as serializers from "../../../../serialization"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors"; - -export declare namespace Translations { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Translations { - constructor(protected readonly _options: Translations.Options) {} - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async postTranslation( - request: Squidex.TranslateDto, - requestOptions?: Translations.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/translations` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.TranslateDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.TranslationDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async postQuestion( - request: Squidex.AskDto, - requestOptions?: Translations.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/apps/${this._options.appName}/ask` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.AskDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.translations.postQuestion.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/translations/client/index.ts b/src/api/resources/translations/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/translations/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/translations/client/requests/AskDto.ts b/src/api/resources/translations/client/requests/AskDto.ts deleted file mode 100644 index 943bee9..0000000 --- a/src/api/resources/translations/client/requests/AskDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AskDto { - /** The text to ask. `non-empty` */ - prompt: string; -} diff --git a/src/api/resources/translations/client/requests/TranslateDto.ts b/src/api/resources/translations/client/requests/TranslateDto.ts deleted file mode 100644 index c9b5889..0000000 --- a/src/api/resources/translations/client/requests/TranslateDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface TranslateDto { - /** The text to translate. `non-empty` */ - text: string; - /** The target language. `non-empty` */ - targetLanguage: string; - /** The optional source language. */ - sourceLanguage?: string; -} diff --git a/src/api/resources/translations/client/requests/index.ts b/src/api/resources/translations/client/requests/index.ts deleted file mode 100644 index 0025378..0000000 --- a/src/api/resources/translations/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { TranslateDto } from "./TranslateDto"; -export { AskDto } from "./AskDto"; diff --git a/src/api/resources/translations/index.ts b/src/api/resources/translations/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/translations/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/userManagement/client/Client.ts b/src/api/resources/userManagement/client/Client.ts deleted file mode 100644 index 619ccbd..0000000 --- a/src/api/resources/userManagement/client/Client.ts +++ /dev/null @@ -1,584 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; - -export declare namespace UserManagement { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class UserManagement { - constructor(protected readonly _options: UserManagement.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getUsers( - request: Squidex.UserManagementGetUsersRequest = {}, - requestOptions?: UserManagement.RequestOptions - ): Promise { - const { query, skip, take } = request; - const _queryParams = new URLSearchParams(); - if (query != null) { - _queryParams.append("query", query); - } - - if (skip != null) { - _queryParams.append("skip", skip.toString()); - } - - if (take != null) { - _queryParams.append("take", take.toString()); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/user-management" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.UsersDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async postUser( - request: Squidex.CreateUserDto, - requestOptions?: UserManagement.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/user-management" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.CreateUserDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.UserDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getUser(id: string, requestOptions?: UserManagement.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/user-management/${id}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.UserDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async putUser( - id: string, - request: Squidex.UpdateUserDto, - requestOptions?: UserManagement.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/user-management/${id}` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateUserDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.UserDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.ForbiddenError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async deleteUser(id: string, requestOptions?: UserManagement.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/user-management/${id}` - ), - method: "DELETE", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 403: - throw new Squidex.ForbiddenError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.ForbiddenError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async lockUser(id: string, requestOptions?: UserManagement.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/user-management/${id}/lock` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.UserDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 403: - throw new Squidex.ForbiddenError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.ForbiddenError} - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async unlockUser(id: string, requestOptions?: UserManagement.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/user-management/${id}/unlock` - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.UserDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 403: - throw new Squidex.ForbiddenError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/userManagement/client/index.ts b/src/api/resources/userManagement/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/userManagement/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/userManagement/client/requests/CreateUserDto.ts b/src/api/resources/userManagement/client/requests/CreateUserDto.ts deleted file mode 100644 index cd09109..0000000 --- a/src/api/resources/userManagement/client/requests/CreateUserDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CreateUserDto { - /** The email of the user. Unique value. `non-empty` */ - email: string; - /** The display name (usually first name and last name) of the user. `non-empty` */ - displayName: string; - /** The password of the user. `non-empty` */ - password: string; - /** Additional permissions for the user. */ - permissions: string[]; -} diff --git a/src/api/resources/userManagement/client/requests/UpdateUserDto.ts b/src/api/resources/userManagement/client/requests/UpdateUserDto.ts deleted file mode 100644 index ac6a90e..0000000 --- a/src/api/resources/userManagement/client/requests/UpdateUserDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateUserDto { - /** The email of the user. Unique value. `non-empty` */ - email: string; - /** The display name (usually first name and last name) of the user. `non-empty` */ - displayName: string; - /** The password of the user. */ - password?: string; - /** Additional permissions for the user. */ - permissions: string[]; -} diff --git a/src/api/resources/userManagement/client/requests/UserManagementGetUsersRequest.ts b/src/api/resources/userManagement/client/requests/UserManagementGetUsersRequest.ts deleted file mode 100644 index 8de6e76..0000000 --- a/src/api/resources/userManagement/client/requests/UserManagementGetUsersRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UserManagementGetUsersRequest { - /** - * Optional query to search by email address or username. - */ - query?: string; - /** - * The number of users to skip. - */ - skip?: number; - /** - * The number of users to return. - */ - take?: number; -} diff --git a/src/api/resources/userManagement/client/requests/index.ts b/src/api/resources/userManagement/client/requests/index.ts deleted file mode 100644 index 3b2ad76..0000000 --- a/src/api/resources/userManagement/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { UserManagementGetUsersRequest } from "./UserManagementGetUsersRequest"; -export { CreateUserDto } from "./CreateUserDto"; -export { UpdateUserDto } from "./UpdateUserDto"; diff --git a/src/api/resources/userManagement/index.ts b/src/api/resources/userManagement/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/userManagement/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts deleted file mode 100644 index 4564448..0000000 --- a/src/api/resources/users/client/Client.ts +++ /dev/null @@ -1,340 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Squidex from "../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; -import * as errors from "../../../../errors"; -import { default as URLSearchParams } from "@ungap/url-search-params"; -import * as stream from "stream"; - -export declare namespace Users { - interface Options { - environment?: core.Supplier; - appName: string; - token: core.Supplier; - fetcher?: core.FetchFunction; - streamingFetcher?: core.StreamingFetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - } -} - -export class Users { - constructor(protected readonly _options: Users.Options) {} - - /** - * @throws {@link Squidex.InternalServerError} - */ - public async getUserResources(requestOptions?: Users.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.ResourcesDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.BadRequestError} - * @throws {@link Squidex.InternalServerError} - */ - public async postUser( - request: Squidex.UpdateProfileDto = {}, - requestOptions?: Users.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/user" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - body: await serializers.UpdateProfileDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Squidex.BadRequestError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Search the user by query that contains the email address or the part of the email address. - * @throws {@link Squidex.InternalServerError} - */ - public async getUsers( - request: Squidex.UsersGetUsersRequest = {}, - requestOptions?: Users.RequestOptions - ): Promise { - const { query } = request; - const _queryParams = new URLSearchParams(); - if (query != null) { - _queryParams.append("query", query); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - "api/users" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.users.getUsers.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @throws {@link Squidex.NotFoundError} - * @throws {@link Squidex.InternalServerError} - */ - public async getUser(id: string, requestOptions?: Users.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/users/${id}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - }); - if (_response.ok) { - return await serializers.UserDto.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 404: - throw new Squidex.NotFoundError(_response.error.body); - case 500: - throw new Squidex.InternalServerError( - await serializers.ErrorDto.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - case "unknown": - throw new errors.SquidexError({ - message: _response.error.errorMessage, - }); - } - } - - public async getUserPicture( - id: string, - requestOptions?: Users.RequestOptions - ): Promise<{ - data: stream.Readable; - contentLengthInBytes?: number; - contentType?: string; - }> { - const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default, - `api/users/${id}/picture` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.2.1", - }, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - onError: (error) => { - throw new errors.SquidexError({ - message: (error as any)?.message, - }); - }, - }); - const _contentLength = core.getHeader(_response, "Content-Length"); - return { - data: _response.data, - contentLengthInBytes: _contentLength != null ? Number(_contentLength) : undefined, - contentType: core.getHeader(_response, "Content-Type"), - }; - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.token)}`; - } -} diff --git a/src/api/resources/users/client/index.ts b/src/api/resources/users/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/users/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/users/client/requests/UpdateProfileDto.ts b/src/api/resources/users/client/requests/UpdateProfileDto.ts deleted file mode 100644 index ac30237..0000000 --- a/src/api/resources/users/client/requests/UpdateProfileDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateProfileDto { - /** The answers from a questionaire. */ - answers?: Record; -} diff --git a/src/api/resources/users/client/requests/UsersGetUsersRequest.ts b/src/api/resources/users/client/requests/UsersGetUsersRequest.ts deleted file mode 100644 index 2c6559d..0000000 --- a/src/api/resources/users/client/requests/UsersGetUsersRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UsersGetUsersRequest { - /** - * The query to search the user by email address. Case invariant. - */ - query?: string; -} diff --git a/src/api/resources/users/client/requests/index.ts b/src/api/resources/users/client/requests/index.ts deleted file mode 100644 index d11076e..0000000 --- a/src/api/resources/users/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { UpdateProfileDto } from "./UpdateProfileDto"; -export { UsersGetUsersRequest } from "./UsersGetUsersRequest"; diff --git a/src/api/resources/users/index.ts b/src/api/resources/users/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/users/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/types/ActionTypeEnum.ts b/src/api/types/ActionTypeEnum.ts deleted file mode 100644 index 99dca8b..0000000 --- a/src/api/types/ActionTypeEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type ActionTypeEnum = "Broadcast" | "User" | "Group"; - -export const ActionTypeEnum = { - Broadcast: "Broadcast", - User: "User", - Group: "Group", -} as const; diff --git a/src/api/types/AddFieldDto.ts b/src/api/types/AddFieldDto.ts deleted file mode 100644 index 7f9eb3f..0000000 --- a/src/api/types/AddFieldDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AddFieldDto { - /** The name of the field. Must be unique within the schema. `non-empty` */ - name: string; - /** Determines the optional partitioning of the field. */ - partitioning?: string; - /** The field properties. */ - properties: Squidex.FieldPropertiesDto; -} diff --git a/src/api/types/AlgoliaRuleActionDto.ts b/src/api/types/AlgoliaRuleActionDto.ts deleted file mode 100644 index 538e336..0000000 --- a/src/api/types/AlgoliaRuleActionDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AlgoliaRuleActionDto { - /** The application ID. `non-empty` */ - appId: string; - /** The API key to grant access to Squidex. `non-empty` */ - apiKey: string; - /** The name of the index. `non-empty` */ - indexName: string; - /** The optional custom document. */ - document?: string; - /** The condition when to delete the entry. */ - delete?: string; -} diff --git a/src/api/types/AppDto.ts b/src/api/types/AppDto.ts deleted file mode 100644 index 80d99c0..0000000 --- a/src/api/types/AppDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AppDto extends Squidex.Resource { - /** The ID of the app. */ - id: string; - /** The name of the app. */ - name: string; - /** The optional label of the app. */ - label?: string; - /** The optional description of the app. */ - description?: string; - /** The version of the app. */ - version: number; - /** The timestamp when the app has been created. */ - created: Date; - /** The timestamp when the app has been modified last. */ - lastModified: Date; - /** The ID of the team. */ - teamId?: string; - /** The permission level of the user. */ - permissions: string[]; - /** Indicates if the user can access the api. */ - canAccessApi: boolean; - /** Indicates if the user can access at least one content. */ - canAccessContent: boolean; - /** The role name of the user. */ - roleName?: string; - /** The properties from the role. */ - roleProperties: Record; -} diff --git a/src/api/types/AppLanguageDto.ts b/src/api/types/AppLanguageDto.ts deleted file mode 100644 index 793b908..0000000 --- a/src/api/types/AppLanguageDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AppLanguageDto extends Squidex.Resource { - /** The iso code of the language. */ - iso2Code: string; - /** The english name of the language. */ - englishName: string; - /** The fallback languages. */ - fallback: string[]; - /** Indicates if the language is the master language. */ - isMaster: boolean; - /** Indicates if the language is optional. */ - isOptional: boolean; -} diff --git a/src/api/types/AppLanguagesDto.ts b/src/api/types/AppLanguagesDto.ts deleted file mode 100644 index 397842e..0000000 --- a/src/api/types/AppLanguagesDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AppLanguagesDto extends Squidex.Resource { - /** The languages. */ - items: Squidex.AppLanguageDto[]; -} diff --git a/src/api/types/AppSettingsDto.ts b/src/api/types/AppSettingsDto.ts deleted file mode 100644 index f11b04f..0000000 --- a/src/api/types/AppSettingsDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AppSettingsDto extends Squidex.Resource { - /** The configured app patterns. */ - patterns: Squidex.PatternDto[]; - /** The configured UI editors. */ - editors: Squidex.EditorDto[]; - /** Hide the scheduler for content items. */ - hideScheduler: boolean; - /** Hide the datetime mode button. */ - hideDateTimeModeButton: boolean; - /** The version of the app. */ - version: number; -} diff --git a/src/api/types/ArrayCalculatedDefaultValue.ts b/src/api/types/ArrayCalculatedDefaultValue.ts deleted file mode 100644 index 2bcbe57..0000000 --- a/src/api/types/ArrayCalculatedDefaultValue.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type ArrayCalculatedDefaultValue = "EmptyArray" | "Null"; - -export const ArrayCalculatedDefaultValue = { - EmptyArray: "EmptyArray", - Null: "Null", -} as const; diff --git a/src/api/types/ArrayFieldPropertiesDto.ts b/src/api/types/ArrayFieldPropertiesDto.ts deleted file mode 100644 index 2e946f2..0000000 --- a/src/api/types/ArrayFieldPropertiesDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ArrayFieldPropertiesDto { - /** The minimum allowed items for the field value. */ - minItems?: number; - /** The maximum allowed items for the field value. */ - maxItems?: number; - /** The calculated default value for the field value. */ - calculatedDefaultValue?: Squidex.ArrayCalculatedDefaultValue; - /** The fields that must be unique. */ - uniqueFields?: string[]; -} diff --git a/src/api/types/AssetChangedRuleTriggerDto.ts b/src/api/types/AssetChangedRuleTriggerDto.ts deleted file mode 100644 index b7ac0a6..0000000 --- a/src/api/types/AssetChangedRuleTriggerDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssetChangedRuleTriggerDto { - /** Javascript condition when to trigger. */ - condition?: string; -} diff --git a/src/api/types/AssetDto.ts b/src/api/types/AssetDto.ts deleted file mode 100644 index 63e0384..0000000 --- a/src/api/types/AssetDto.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AssetDto extends Squidex.Resource { - /** The ID of the asset. */ - id: string; - /** The ID of the parent folder. Empty for files without parent. */ - parentId: string; - /** The file name. */ - fileName: string; - /** The file hash. */ - fileHash?: string; - /** True, when the asset is not public. */ - isProtected: boolean; - /** The slug. */ - slug: string; - /** The mime type. */ - mimeType: string; - /** The file type. */ - fileType: string; - /** The formatted text representation of the metadata. */ - metadataText: string; - /** The UI token. */ - editToken?: string; - /** The asset metadata. */ - metadata: Record; - /** The asset tags. */ - tags?: string[]; - /** The size of the file in bytes. */ - fileSize: number; - /** The version of the file. */ - fileVersion: number; - /** The type of the asset. */ - type: Squidex.AssetType; - /** The user that has created the schema. */ - createdBy: string; - /** The user that has updated the asset. */ - lastModifiedBy: string; - /** The date and time when the asset has been created. */ - created: Date; - /** The date and time when the asset has been modified last. */ - lastModified: Date; - /** The version of the asset. */ - version: number; - /** The metadata. */ - meta?: Squidex.AssetMeta; - /** Determines of the created file is an image. */ - isImage: boolean; - /** The width of the image in pixels if the asset is an image. */ - pixelWidth?: number; - /** The height of the image in pixels if the asset is an image. */ - pixelHeight?: number; -} diff --git a/src/api/types/AssetFolderDto.ts b/src/api/types/AssetFolderDto.ts deleted file mode 100644 index 1497adf..0000000 --- a/src/api/types/AssetFolderDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AssetFolderDto extends Squidex.Resource { - /** The ID of the asset. */ - id: string; - /** The ID of the parent folder. Empty for files without parent. */ - parentId: string; - /** The folder name. */ - folderName: string; - /** The version of the asset folder. */ - version: number; -} diff --git a/src/api/types/AssetFolderScope.ts b/src/api/types/AssetFolderScope.ts deleted file mode 100644 index 456140f..0000000 --- a/src/api/types/AssetFolderScope.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type AssetFolderScope = "PathAndItems" | "Path" | "Items"; - -export const AssetFolderScope = { - PathAndItems: "PathAndItems", - Path: "Path", - Items: "Items", -} as const; diff --git a/src/api/types/AssetFoldersDto.ts b/src/api/types/AssetFoldersDto.ts deleted file mode 100644 index ded831a..0000000 --- a/src/api/types/AssetFoldersDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AssetFoldersDto extends Squidex.Resource { - /** The total number of assets. */ - total: number; - /** The assets folders. */ - items: Squidex.AssetFolderDto[]; - /** The path to the current folder. */ - path: Squidex.AssetFolderDto[]; -} diff --git a/src/api/types/AssetMeta.ts b/src/api/types/AssetMeta.ts deleted file mode 100644 index df9d8f0..0000000 --- a/src/api/types/AssetMeta.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssetMeta { - /** Indicates whether the asset is a duplicate. */ - isDuplicate: string; -} diff --git a/src/api/types/AssetPreviewMode.ts b/src/api/types/AssetPreviewMode.ts deleted file mode 100644 index 7f2d90b..0000000 --- a/src/api/types/AssetPreviewMode.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type AssetPreviewMode = "ImageAndFileName" | "Image" | "FileName"; - -export const AssetPreviewMode = { - ImageAndFileName: "ImageAndFileName", - Image: "Image", - FileName: "FileName", -} as const; diff --git a/src/api/types/AssetScriptsDto.ts b/src/api/types/AssetScriptsDto.ts deleted file mode 100644 index 3873f38..0000000 --- a/src/api/types/AssetScriptsDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AssetScriptsDto extends Squidex.Resource { - /** The script that is executed for each asset when querying assets. */ - query?: string; - /** The script that is executed for all assets when querying assets. */ - queryPre?: string; - /** The script that is executed when creating an asset. */ - create?: string; - /** The script that is executed when updating a content. */ - update?: string; - /** The script that is executed when annotating a content. */ - annotate?: string; - /** The script that is executed when moving a content. */ - move?: string; - /** The script that is executed when deleting a content. */ - delete?: string; - /** The version of the app. */ - version: number; -} diff --git a/src/api/types/AssetType.ts b/src/api/types/AssetType.ts deleted file mode 100644 index ab7f225..0000000 --- a/src/api/types/AssetType.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type AssetType = "Unknown" | "Image" | "Audio" | "Video"; - -export const AssetType = { - Unknown: "Unknown", - Image: "Image", - Audio: "Audio", - Video: "Video", -} as const; diff --git a/src/api/types/AssetsDto.ts b/src/api/types/AssetsDto.ts deleted file mode 100644 index f38ec62..0000000 --- a/src/api/types/AssetsDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AssetsDto extends Squidex.Resource { - /** The total number of assets. */ - total: number; - /** The assets. */ - items: Squidex.AssetDto[]; -} diff --git a/src/api/types/AssetsFieldPropertiesDto.ts b/src/api/types/AssetsFieldPropertiesDto.ts deleted file mode 100644 index 8b85d93..0000000 --- a/src/api/types/AssetsFieldPropertiesDto.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface AssetsFieldPropertiesDto { - /** The preview mode for the asset. */ - previewMode?: Squidex.AssetPreviewMode; - /** The language specific default value as a list of asset ids. */ - defaultValues?: Squidex.LocalizedValueOfReadonlyListOfString; - /** The default value as a list of asset ids. */ - defaultValue?: string[]; - /** The initial id to the folder. */ - folderId?: string; - /** The preview format. */ - previewFormat?: string; - /** The minimum allowed items for the field value. */ - minItems?: number; - /** The maximum allowed items for the field value. */ - maxItems?: number; - /** The minimum file size in bytes. */ - minSize?: number; - /** The maximum file size in bytes. */ - maxSize?: number; - /** The minimum image width in pixels. */ - minWidth?: number; - /** The maximum image width in pixels. */ - maxWidth?: number; - /** The minimum image height in pixels. */ - minHeight?: number; - /** The maximum image height in pixels. */ - maxHeight?: number; - /** The image aspect width in pixels. */ - aspectWidth?: number; - /** The image aspect height in pixels. */ - aspectHeight?: number; - /** The expected type. */ - expectedType?: Squidex.AssetType; - /** True to resolve first asset in the content list. */ - resolveFirst?: boolean; - /** True to resolve first image in the content list. */ - mustBeImage?: boolean; - /** True to resolve first image in the content list. */ - resolveImage?: boolean; - /** The allowed file extensions. */ - allowedExtensions?: string[]; - /** True, if duplicate values are allowed. */ - allowDuplicates?: boolean; -} diff --git a/src/api/types/AssignContributorDto.ts b/src/api/types/AssignContributorDto.ts deleted file mode 100644 index b960f2a..0000000 --- a/src/api/types/AssignContributorDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AssignContributorDto { - /** The id or email of the user to add to the app. `non-empty` */ - contributorId: string; - /** The role of the contributor. */ - role?: string; - /** Set to true to invite the user if he does not exist. */ - invite?: boolean; -} diff --git a/src/api/types/AzureQueueRuleActionDto.ts b/src/api/types/AzureQueueRuleActionDto.ts deleted file mode 100644 index f5d9a6d..0000000 --- a/src/api/types/AzureQueueRuleActionDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AzureQueueRuleActionDto { - /** The connection string to the storage account. `non-empty` */ - connectionString: string; - /** The name of the queue. `non-empty` */ - queue: string; - /** Leave it empty to use the full event as body. */ - payload?: string; -} diff --git a/src/api/types/BackupJobDto.ts b/src/api/types/BackupJobDto.ts deleted file mode 100644 index d21b09f..0000000 --- a/src/api/types/BackupJobDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface BackupJobDto extends Squidex.Resource { - /** The ID of the backup job. */ - id: string; - /** The time when the job has been started. */ - started: Date; - /** The time when the job has been stopped. */ - stopped?: Date; - /** The number of handled events. */ - handledEvents: number; - /** The number of handled assets. */ - handledAssets: number; - /** The status of the operation. */ - status: Squidex.JobStatus; -} diff --git a/src/api/types/BackupJobsDto.ts b/src/api/types/BackupJobsDto.ts deleted file mode 100644 index 177fe48..0000000 --- a/src/api/types/BackupJobsDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface BackupJobsDto extends Squidex.Resource { - /** The backups. */ - items: Squidex.BackupJobDto[]; -} diff --git a/src/api/types/BooleanFieldEditor.ts b/src/api/types/BooleanFieldEditor.ts deleted file mode 100644 index d4b0d62..0000000 --- a/src/api/types/BooleanFieldEditor.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type BooleanFieldEditor = "Checkbox" | "Toggle"; - -export const BooleanFieldEditor = { - Checkbox: "Checkbox", - Toggle: "Toggle", -} as const; diff --git a/src/api/types/BooleanFieldPropertiesDto.ts b/src/api/types/BooleanFieldPropertiesDto.ts deleted file mode 100644 index 017f7ff..0000000 --- a/src/api/types/BooleanFieldPropertiesDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface BooleanFieldPropertiesDto { - /** The language specific default value for the field value. */ - defaultValues?: Squidex.LocalizedValueOfNullableBoolean; - /** The default value for the field value. */ - defaultValue?: boolean; - /** Indicates that the inline editor is enabled for this field. */ - inlineEditable?: boolean; - /** The editor that is used to manage this field. */ - editor?: Squidex.BooleanFieldEditor; -} diff --git a/src/api/types/BulkResultDto.ts b/src/api/types/BulkResultDto.ts deleted file mode 100644 index 462fa85..0000000 --- a/src/api/types/BulkResultDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface BulkResultDto { - /** The error when the bulk job failed. */ - error?: Squidex.ErrorDto; - /** The index of the bulk job where the result belongs to. The order can change. */ - jobIndex: number; - /** The ID of the entity that has been handled successfully or not. */ - id?: string; - /** The ID of the entity that has been handled successfully or not. */ - contentId?: string; -} diff --git a/src/api/types/BulkUpdateAssetType.ts b/src/api/types/BulkUpdateAssetType.ts deleted file mode 100644 index d138641..0000000 --- a/src/api/types/BulkUpdateAssetType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type BulkUpdateAssetType = "Annotate" | "Move" | "Delete"; - -export const BulkUpdateAssetType = { - Annotate: "Annotate", - Move: "Move", - Delete: "Delete", -} as const; diff --git a/src/api/types/BulkUpdateAssetsJobDto.ts b/src/api/types/BulkUpdateAssetsJobDto.ts deleted file mode 100644 index 07fd5fb..0000000 --- a/src/api/types/BulkUpdateAssetsJobDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface BulkUpdateAssetsJobDto { - /** An optional ID of the asset to update. */ - id?: string; - /** The update type. */ - type?: Squidex.BulkUpdateAssetType; - /** The parent folder id. */ - parentId?: string; - /** The new name of the asset. */ - fileName?: string; - /** The new slug of the asset. */ - slug?: string; - /** True, when the asset is not public. */ - isProtected?: boolean; - /** The new asset tags. */ - tags?: string[]; - /** The asset metadata. */ - metadata?: Record; - /** True to delete the asset permanently. */ - permanent?: boolean; - /** The expected version. */ - expectedVersion?: number; -} diff --git a/src/api/types/BulkUpdateContentType.ts b/src/api/types/BulkUpdateContentType.ts deleted file mode 100644 index 5af655d..0000000 --- a/src/api/types/BulkUpdateContentType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type BulkUpdateContentType = "Upsert" | "ChangeStatus" | "Create" | "Delete" | "Patch" | "Update" | "Validate"; - -export const BulkUpdateContentType = { - Upsert: "Upsert", - ChangeStatus: "ChangeStatus", - Create: "Create", - Delete: "Delete", - Patch: "Patch", - Update: "Update", - Validate: "Validate", -} as const; diff --git a/src/api/types/BulkUpdateContentsDto.ts b/src/api/types/BulkUpdateContentsDto.ts deleted file mode 100644 index 16fcfdf..0000000 --- a/src/api/types/BulkUpdateContentsDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface BulkUpdateContentsDto { - /** The contents to update or insert. */ - jobs: Squidex.BulkUpdateContentsJobDto[]; - /** True to automatically publish the content. */ - publish?: boolean; - /** True to turn off scripting for faster inserts. Default: true. */ - doNotScript?: boolean; - /** True to turn off validation for faster inserts. Default: false. */ - doNotValidate?: boolean; - /** True to turn off validation of workflow rules. Default: false. */ - doNotValidateWorkflow?: boolean; - /** True to check referrers of deleted contents. */ - checkReferrers?: boolean; - /** True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true. */ - optimizeValidation?: boolean; -} diff --git a/src/api/types/BulkUpdateContentsJobDto.ts b/src/api/types/BulkUpdateContentsJobDto.ts deleted file mode 100644 index 3eafb6f..0000000 --- a/src/api/types/BulkUpdateContentsJobDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface BulkUpdateContentsJobDto { - /** An optional query to identify the content to update. */ - query?: Squidex.QueryJsonDto; - /** An optional ID of the content to update. */ - id?: string; - /** The data of the content when type is set to 'Upsert', 'Create', 'Update' or 'Patch. */ - data?: Squidex.ContentData; - /** The new status when the type is set to 'ChangeStatus' or 'Upsert'. */ - status?: string; - /** The due time. */ - dueTime?: Date; - /** The update type. */ - type?: Squidex.BulkUpdateContentType; - /** The optional schema id or name. */ - schema?: string; - /** Makes the update as patch. */ - patch?: boolean; - /** True to delete the content permanently. */ - permanent?: boolean; - /** The number of expected items. Set it to a higher number to update multiple items when a query is defined. */ - expectedCount?: number; - /** The expected version. */ - expectedVersion?: number; -} diff --git a/src/api/types/CallsUsageDtoDto.ts b/src/api/types/CallsUsageDtoDto.ts deleted file mode 100644 index 599caf3..0000000 --- a/src/api/types/CallsUsageDtoDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface CallsUsageDtoDto { - /** The total number of API calls. */ - totalCalls: number; - /** The total number of bytes transferred. */ - totalBytes: number; - /** The total number of API calls this month. */ - monthCalls: number; - /** The total number of bytes transferred this month. */ - monthBytes: number; - /** The amount of calls that will block the app. */ - blockingApiCalls: number; - /** The included API traffic. */ - allowedBytes: number; - /** The included API calls. */ - allowedCalls: number; - /** The average duration in milliseconds. */ - averageElapsedMs: number; - /** The statistics by date and group. */ - details: Record; -} diff --git a/src/api/types/CallsUsagePerDateDto.ts b/src/api/types/CallsUsagePerDateDto.ts deleted file mode 100644 index 909f40a..0000000 --- a/src/api/types/CallsUsagePerDateDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CallsUsagePerDateDto { - /** The date when the usage was tracked. */ - date: string; - /** The total number of API calls. */ - totalCalls: number; - /** The total number of bytes transferred. */ - totalBytes: number; - /** The average duration in milliseconds. */ - averageElapsedMs: number; -} diff --git a/src/api/types/ChangePlanDto.ts b/src/api/types/ChangePlanDto.ts deleted file mode 100644 index c68bf91..0000000 --- a/src/api/types/ChangePlanDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ChangePlanDto { - /** The new plan id. `non-empty` */ - planId: string; -} diff --git a/src/api/types/ClientDto.ts b/src/api/types/ClientDto.ts deleted file mode 100644 index a6f8ace..0000000 --- a/src/api/types/ClientDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ClientDto extends Squidex.Resource { - /** The client id. */ - id: string; - /** The client secret. */ - secret: string; - /** The client name. */ - name: string; - /** The role of the client. */ - role?: string; - /** The number of allowed api calls per month for this client. */ - apiCallsLimit: number; - /** The number of allowed api traffic bytes per month for this client. */ - apiTrafficLimit: number; - /** True to allow anonymous access without an access token for this client. */ - allowAnonymous: boolean; -} diff --git a/src/api/types/ClientsDto.ts b/src/api/types/ClientsDto.ts deleted file mode 100644 index 91c0364..0000000 --- a/src/api/types/ClientsDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ClientsDto extends Squidex.Resource { - /** The clients. */ - items: Squidex.ClientDto[]; -} diff --git a/src/api/types/CommentDto.ts b/src/api/types/CommentDto.ts deleted file mode 100644 index b718181..0000000 --- a/src/api/types/CommentDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CommentDto { - /** The ID of the comment. */ - id: string; - /** The time when the comment was created or updated last. */ - time: Date; - /** The user who created or updated the comment. */ - user: string; - /** The text of the comment. */ - text: string; - /** The url where the comment is created. */ - url?: string; -} diff --git a/src/api/types/CommentRuleActionDto.ts b/src/api/types/CommentRuleActionDto.ts deleted file mode 100644 index ddef48e..0000000 --- a/src/api/types/CommentRuleActionDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CommentRuleActionDto { - /** The comment text. `non-empty` */ - text: string; - /** An optional client name. */ - client?: string; -} diff --git a/src/api/types/CommentRuleTriggerDto.ts b/src/api/types/CommentRuleTriggerDto.ts deleted file mode 100644 index 73f3dbb..0000000 --- a/src/api/types/CommentRuleTriggerDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CommentRuleTriggerDto { - /** Javascript condition when to trigger. */ - condition?: string; -} diff --git a/src/api/types/CommentsDto.ts b/src/api/types/CommentsDto.ts deleted file mode 100644 index 5e90544..0000000 --- a/src/api/types/CommentsDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface CommentsDto { - /** The created comments including the updates. */ - createdComments?: Squidex.CommentDto[]; - /** The updates comments since the last version. */ - updatedComments?: Squidex.CommentDto[]; - /** The deleted comments since the last version. */ - deletedComments?: string[]; - /** The current version. */ - version: number; -} diff --git a/src/api/types/ComponentFieldPropertiesDto.ts b/src/api/types/ComponentFieldPropertiesDto.ts deleted file mode 100644 index 72b22f0..0000000 --- a/src/api/types/ComponentFieldPropertiesDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ComponentFieldPropertiesDto { - /** The ID of the embedded schemas. */ - schemaIds?: string[]; -} diff --git a/src/api/types/ComponentsFieldPropertiesDto.ts b/src/api/types/ComponentsFieldPropertiesDto.ts deleted file mode 100644 index 299a784..0000000 --- a/src/api/types/ComponentsFieldPropertiesDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ComponentsFieldPropertiesDto { - /** The minimum allowed items for the field value. */ - minItems?: number; - /** The maximum allowed items for the field value. */ - maxItems?: number; - /** The calculated default value for the field value. */ - calculatedDefaultValue?: Squidex.ArrayCalculatedDefaultValue; - /** The ID of the embedded schemas. */ - schemaIds?: string[]; - /** The fields that must be unique. */ - uniqueFields?: string[]; -} diff --git a/src/api/types/ConfigurePreviewUrlsDto.ts b/src/api/types/ConfigurePreviewUrlsDto.ts deleted file mode 100644 index 4b22635..0000000 --- a/src/api/types/ConfigurePreviewUrlsDto.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type ConfigurePreviewUrlsDto = Record; diff --git a/src/api/types/ContentChangedRuleTriggerDto.ts b/src/api/types/ContentChangedRuleTriggerDto.ts deleted file mode 100644 index f7193cb..0000000 --- a/src/api/types/ContentChangedRuleTriggerDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ContentChangedRuleTriggerDto { - /** The schema settings. */ - schemas?: Squidex.SchemaCondition[]; - /** The schema references. */ - referencedSchemas?: Squidex.SchemaCondition[]; - /** Determines whether the trigger should handle all content changes events. */ - handleAll: boolean; -} diff --git a/src/api/types/ContentData.ts b/src/api/types/ContentData.ts deleted file mode 100644 index 8a23446..0000000 --- a/src/api/types/ContentData.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export type ContentData = Record; diff --git a/src/api/types/ContentDto.ts b/src/api/types/ContentDto.ts deleted file mode 100644 index b1b479a..0000000 --- a/src/api/types/ContentDto.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ContentDto extends Squidex.Resource { - /** The if of the content item. */ - id: string; - /** The user that has created the content item. */ - createdBy: string; - /** The user that has updated the content item. */ - lastModifiedBy: string; - data?: unknown; - /** The reference data for the frontend UI. */ - referenceData?: Squidex.ContentData; - /** The date and time when the content item has been created. */ - created: Date; - /** The date and time when the content item has been modified last. */ - lastModified: Date; - /** The status of the content. */ - status: string; - /** The new status of the content. */ - newStatus?: string; - /** The color of the status. */ - statusColor: string; - /** The color of the new status. */ - newStatusColor?: string; - /** The UI token. */ - editToken?: string; - /** The scheduled status. */ - scheduleJob?: Squidex.ScheduleJobDto; - /** The ID of the schema. */ - schemaId: string; - /** The name of the schema. */ - schemaName?: string; - /** The display name of the schema. */ - schemaDisplayName?: string; - /** The reference fields. */ - referenceFields?: Squidex.FieldDto[]; - /** Indicates whether the content is deleted. */ - isDeleted: boolean; - /** The version of the content. */ - version: number; -} diff --git a/src/api/types/ContentFieldData.ts b/src/api/types/ContentFieldData.ts deleted file mode 100644 index bb70dd6..0000000 --- a/src/api/types/ContentFieldData.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type ContentFieldData = Record; diff --git a/src/api/types/ContentsDto.ts b/src/api/types/ContentsDto.ts deleted file mode 100644 index ea1fd05..0000000 --- a/src/api/types/ContentsDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ContentsDto extends Squidex.Resource { - /** The total number of content items. */ - total: number; - /** The content items. */ - items: Squidex.ContentDto[]; - /** The possible statuses. */ - statuses: Squidex.StatusInfoDto[]; -} diff --git a/src/api/types/ContributorDto.ts b/src/api/types/ContributorDto.ts deleted file mode 100644 index 68bdf65..0000000 --- a/src/api/types/ContributorDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ContributorDto extends Squidex.Resource { - /** The ID of the user that contributes to the app. */ - contributorId: string; - /** The display name. */ - contributorName: string; - /** The email address. */ - contributorEmail: string; - /** The role of the contributor. */ - role?: string; -} diff --git a/src/api/types/ContributorsDto.ts b/src/api/types/ContributorsDto.ts deleted file mode 100644 index 052a06f..0000000 --- a/src/api/types/ContributorsDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ContributorsDto extends Squidex.Resource { - /** The contributors. */ - items: Squidex.ContributorDto[]; - /** The maximum number of allowed contributors. */ - maxContributors: number; - /** The metadata to provide information about this request. */ - meta?: Squidex.ContributorsMetadata; -} diff --git a/src/api/types/ContributorsMetadata.ts b/src/api/types/ContributorsMetadata.ts deleted file mode 100644 index 85e8f04..0000000 --- a/src/api/types/ContributorsMetadata.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ContributorsMetadata { - /** Indicates whether the user has been invited. */ - isInvited: string; -} diff --git a/src/api/types/CreateContentRuleActionDto.ts b/src/api/types/CreateContentRuleActionDto.ts deleted file mode 100644 index 455df72..0000000 --- a/src/api/types/CreateContentRuleActionDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CreateContentRuleActionDto { - /** The content data. `non-empty` */ - data: string; - /** The name of the schema. `non-empty` */ - schema: string; - /** An optional client name. */ - client: string; - /** Publish the content. */ - publish: boolean; -} diff --git a/src/api/types/CreateRuleDto.ts b/src/api/types/CreateRuleDto.ts deleted file mode 100644 index ea4042a..0000000 --- a/src/api/types/CreateRuleDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface CreateRuleDto { - /** The trigger properties. */ - trigger: Squidex.RuleTriggerDto; - /** The action properties. */ - action: Squidex.RuleActionDto; -} diff --git a/src/api/types/CurrentStorageDto.ts b/src/api/types/CurrentStorageDto.ts deleted file mode 100644 index ebdf4b7..0000000 --- a/src/api/types/CurrentStorageDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CurrentStorageDto { - /** The size in bytes. */ - size: number; - /** The maximum allowed asset size. */ - maxAllowed: number; -} diff --git a/src/api/types/DateTimeCalculatedDefaultValue.ts b/src/api/types/DateTimeCalculatedDefaultValue.ts deleted file mode 100644 index a1d2247..0000000 --- a/src/api/types/DateTimeCalculatedDefaultValue.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type DateTimeCalculatedDefaultValue = "Now" | "Today"; - -export const DateTimeCalculatedDefaultValue = { - Now: "Now", - Today: "Today", -} as const; diff --git a/src/api/types/DateTimeFieldEditor.ts b/src/api/types/DateTimeFieldEditor.ts deleted file mode 100644 index 5b2ce34..0000000 --- a/src/api/types/DateTimeFieldEditor.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type DateTimeFieldEditor = "Date" | "DateTime"; - -export const DateTimeFieldEditor = { - Date: "Date", - DateTime: "DateTime", -} as const; diff --git a/src/api/types/DateTimeFieldPropertiesDto.ts b/src/api/types/DateTimeFieldPropertiesDto.ts deleted file mode 100644 index 004f12c..0000000 --- a/src/api/types/DateTimeFieldPropertiesDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface DateTimeFieldPropertiesDto { - /** The language specific default value for the field value. */ - defaultValues?: Squidex.LocalizedValueOfNullableInstant; - /** The default value for the field value. */ - defaultValue?: Date; - /** The maximum allowed value for the field value. */ - maxValue?: Date; - /** The minimum allowed value for the field value. */ - minValue?: Date; - /** The format pattern when displayed in the UI. */ - format?: string; - /** The editor that is used to manage this field. */ - editor?: Squidex.DateTimeFieldEditor; - /** The calculated default value for the field value. */ - calculatedDefaultValue?: Squidex.DateTimeCalculatedDefaultValue; -} diff --git a/src/api/types/DeepDetectRuleActionDto.ts b/src/api/types/DeepDetectRuleActionDto.ts deleted file mode 100644 index 77262e5..0000000 --- a/src/api/types/DeepDetectRuleActionDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface DeepDetectRuleActionDto { - /** The minimum probability for objects to be recognized (0 - 100). */ - minimumProbability: number; - /** The maximum number of tags to use. */ - maximumTags: number; -} diff --git a/src/api/types/DiscourseRuleActionDto.ts b/src/api/types/DiscourseRuleActionDto.ts deleted file mode 100644 index 158bda3..0000000 --- a/src/api/types/DiscourseRuleActionDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface DiscourseRuleActionDto { - /** The url to the discourse server. `non-empty` */ - url: string; - /** The api key to authenticate to your discourse server. `non-empty` */ - apiKey: string; - /** The api username to authenticate to your discourse server. `non-empty` */ - apiUsername: string; - /** The text as markdown. `non-empty` */ - text: string; - /** The optional title when creating new topics. */ - title?: string; - /** The optional topic id. */ - topic?: number; - /** The optional category id. */ - category?: number; -} diff --git a/src/api/types/EditorDto.ts b/src/api/types/EditorDto.ts deleted file mode 100644 index c8cb2e9..0000000 --- a/src/api/types/EditorDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface EditorDto { - /** The name of the editor. */ - name: string; - /** The url to the editor. */ - url: string; -} diff --git a/src/api/types/ElasticSearchRuleActionDto.ts b/src/api/types/ElasticSearchRuleActionDto.ts deleted file mode 100644 index 70d5bc2..0000000 --- a/src/api/types/ElasticSearchRuleActionDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ElasticSearchRuleActionDto { - /** The url to the instance or cluster. `non-empty` */ - host: string; - /** The name of the index. `non-empty` */ - indexName: string; - /** The optional username. */ - username?: string; - /** The optional password. */ - password?: string; - /** The optional custom document. */ - document?: string; - /** The condition when to delete the document. */ - delete?: string; -} diff --git a/src/api/types/EmailRuleActionDto.ts b/src/api/types/EmailRuleActionDto.ts deleted file mode 100644 index 674df66..0000000 --- a/src/api/types/EmailRuleActionDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface EmailRuleActionDto { - /** The IP address or host to the SMTP server. `non-empty` */ - serverHost: string; - /** The port to the SMTP server. */ - serverPort: number; - /** The username for the SMTP server. `non-empty` */ - serverUsername: string; - /** The password for the SMTP server. `non-empty` */ - serverPassword: string; - /** The email sending address. `non-empty` */ - messageFrom: string; - /** The email message will be sent to. `non-empty` */ - messageTo: string; - /** The subject line for this email message. `non-empty` */ - messageSubject: string; - /** The message body. `non-empty` */ - messageBody: string; -} diff --git a/src/api/types/ErrorDto.ts b/src/api/types/ErrorDto.ts deleted file mode 100644 index 28f8461..0000000 --- a/src/api/types/ErrorDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ErrorDto { - /** Error message. `non-empty` */ - message: string; - /** The error code. */ - errorCode?: string; - /** The optional trace id. */ - traceId?: string; - /** Link to the error details. */ - type?: string; - /** Detailed error messages. */ - details?: string[]; - /** Status code of the http response. */ - statusCode: number; -} diff --git a/src/api/types/EventConsumerDto.ts b/src/api/types/EventConsumerDto.ts deleted file mode 100644 index 99c4e13..0000000 --- a/src/api/types/EventConsumerDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface EventConsumerDto extends Squidex.Resource { - /** Indicates if the event consumer has been started. */ - isStopped: boolean; - /** Indicates if the event consumer is resetting at the moment. */ - isResetting: boolean; - /** The number of handled events. */ - count: number; - /** The name of the event consumer. `non-empty` */ - name: string; - /** The error details if the event consumer has been stopped after a failure. */ - error?: string; - /** The position within the vent stream. */ - position?: string; -} diff --git a/src/api/types/EventConsumersDto.ts b/src/api/types/EventConsumersDto.ts deleted file mode 100644 index 966e505..0000000 --- a/src/api/types/EventConsumersDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface EventConsumersDto extends Squidex.Resource { - /** The event consumers. */ - items: Squidex.EventConsumerDto[]; -} diff --git a/src/api/types/ExposedValues.ts b/src/api/types/ExposedValues.ts deleted file mode 100644 index af67de4..0000000 --- a/src/api/types/ExposedValues.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type ExposedValues = Record; diff --git a/src/api/types/FastlyRuleActionDto.ts b/src/api/types/FastlyRuleActionDto.ts deleted file mode 100644 index 13c4a5d..0000000 --- a/src/api/types/FastlyRuleActionDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface FastlyRuleActionDto { - /** The API key to grant access to Squidex. `non-empty` */ - apiKey: string; - /** The ID of the fastly service. `non-empty` */ - serviceId: string; -} diff --git a/src/api/types/FeatureDto.ts b/src/api/types/FeatureDto.ts deleted file mode 100644 index d37dfb2..0000000 --- a/src/api/types/FeatureDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface FeatureDto { - /** The name of the feature. */ - name: string; - /** The description text. */ - text: string; -} diff --git a/src/api/types/FeaturesDto.ts b/src/api/types/FeaturesDto.ts deleted file mode 100644 index 37ec94d..0000000 --- a/src/api/types/FeaturesDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface FeaturesDto { - /** The latest features. */ - features: Squidex.FeatureDto[]; - /** The recent version. */ - version: number; -} diff --git a/src/api/types/FieldDto.ts b/src/api/types/FieldDto.ts deleted file mode 100644 index 64d7e6e..0000000 --- a/src/api/types/FieldDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface FieldDto extends Squidex.Resource { - /** The ID of the field. */ - fieldId: number; - /** The name of the field. Must be unique within the schema. `non-empty` */ - name: string; - /** Defines if the field is hidden. */ - isHidden: boolean; - /** Defines if the field is locked. */ - isLocked: boolean; - /** Defines if the field is disabled. */ - isDisabled: boolean; - /** Defines the partitioning of the field. `non-empty` */ - partitioning: string; - /** The field properties. */ - properties: Squidex.FieldPropertiesDto; - /** The nested fields. */ - nested?: Squidex.NestedFieldDto[]; -} diff --git a/src/api/types/FieldPropertiesDto.ts b/src/api/types/FieldPropertiesDto.ts deleted file mode 100644 index 43f47c3..0000000 --- a/src/api/types/FieldPropertiesDto.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export type FieldPropertiesDto = - | Squidex.FieldPropertiesDto.Array - | Squidex.FieldPropertiesDto.Assets - | Squidex.FieldPropertiesDto.Boolean - | Squidex.FieldPropertiesDto.Component - | Squidex.FieldPropertiesDto.Components - | Squidex.FieldPropertiesDto.DateTime - | Squidex.FieldPropertiesDto.Geolocation - | Squidex.FieldPropertiesDto.Json - | Squidex.FieldPropertiesDto.Number - | Squidex.FieldPropertiesDto.References - | Squidex.FieldPropertiesDto.String - | Squidex.FieldPropertiesDto.Tags - | Squidex.FieldPropertiesDto.Ui; - -export declare namespace FieldPropertiesDto { - interface Array extends Squidex.ArrayFieldPropertiesDto, _Base { - fieldType: "Array"; - } - - interface Assets extends Squidex.AssetsFieldPropertiesDto, _Base { - fieldType: "Assets"; - } - - interface Boolean extends Squidex.BooleanFieldPropertiesDto, _Base { - fieldType: "Boolean"; - } - - interface Component extends Squidex.ComponentFieldPropertiesDto, _Base { - fieldType: "Component"; - } - - interface Components extends Squidex.ComponentsFieldPropertiesDto, _Base { - fieldType: "Components"; - } - - interface DateTime extends Squidex.DateTimeFieldPropertiesDto, _Base { - fieldType: "DateTime"; - } - - interface Geolocation extends Squidex.GeolocationFieldPropertiesDto, _Base { - fieldType: "Geolocation"; - } - - interface Json extends Squidex.JsonFieldPropertiesDto, _Base { - fieldType: "Json"; - } - - interface Number extends Squidex.NumberFieldPropertiesDto, _Base { - fieldType: "Number"; - } - - interface References extends Squidex.ReferencesFieldPropertiesDto, _Base { - fieldType: "References"; - } - - interface String extends Squidex.StringFieldPropertiesDto, _Base { - fieldType: "String"; - } - - interface Tags extends Squidex.TagsFieldPropertiesDto, _Base { - fieldType: "Tags"; - } - - interface Ui extends Squidex.UiFieldPropertiesDto, _Base { - fieldType: "UI"; - } - - interface _Base { - /** Optional label for the editor. */ - label?: string; - /** Hints to describe the field. */ - hints?: string; - /** Placeholder to show when no value has been entered. */ - placeholder?: string; - /** Indicates if the field is required. */ - isRequired?: boolean; - /** Indicates if the field is required when publishing. */ - isRequiredOnPublish?: boolean; - /** Indicates if the field should be rendered with half width only. */ - isHalfWidth?: boolean; - /** Optional url to the editor. */ - editorUrl?: string; - /** Tags for automation processes. */ - tags?: string[]; - } -} diff --git a/src/api/types/FieldRuleAction.ts b/src/api/types/FieldRuleAction.ts deleted file mode 100644 index 277ac0b..0000000 --- a/src/api/types/FieldRuleAction.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type FieldRuleAction = "Disable" | "Hide" | "Require"; - -export const FieldRuleAction = { - Disable: "Disable", - Hide: "Hide", - Require: "Require", -} as const; diff --git a/src/api/types/FieldRuleDto.ts b/src/api/types/FieldRuleDto.ts deleted file mode 100644 index 9b58a0c..0000000 --- a/src/api/types/FieldRuleDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface FieldRuleDto { - /** The action to perform when the condition is met. */ - action: Squidex.FieldRuleAction; - /** The field to update. `non-empty` */ - field: string; - /** The condition. */ - condition?: string; -} diff --git a/src/api/types/GeolocationFieldEditor.ts b/src/api/types/GeolocationFieldEditor.ts deleted file mode 100644 index bd73fda..0000000 --- a/src/api/types/GeolocationFieldEditor.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type GeolocationFieldEditor = "Map"; diff --git a/src/api/types/GeolocationFieldPropertiesDto.ts b/src/api/types/GeolocationFieldPropertiesDto.ts deleted file mode 100644 index 675169a..0000000 --- a/src/api/types/GeolocationFieldPropertiesDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface GeolocationFieldPropertiesDto { - /** The editor that is used to manage this field. */ - editor?: Squidex.GeolocationFieldEditor; -} diff --git a/src/api/types/HistoryEventDto.ts b/src/api/types/HistoryEventDto.ts deleted file mode 100644 index 3fe6520..0000000 --- a/src/api/types/HistoryEventDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface HistoryEventDto { - /** The message for the event. */ - message: string; - /** The type of the original event. */ - eventType: string; - /** The user who called the action. */ - actor: string; - /** Gets a unique id for the event. */ - eventId: string; - /** The time when the event happened. */ - created: Date; - /** The version identifier. */ - version: number; -} diff --git a/src/api/types/ImageFormat.ts b/src/api/types/ImageFormat.ts deleted file mode 100644 index 7607541..0000000 --- a/src/api/types/ImageFormat.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type ImageFormat = "AVIF" | "BMP" | "GIF" | "JPEG" | "PNG" | "TGA" | "TIFF" | "WEBP"; - -export const ImageFormat = { - Avif: "AVIF", - Bmp: "BMP", - Gif: "GIF", - Jpeg: "JPEG", - Png: "PNG", - Tga: "TGA", - Tiff: "TIFF", - Webp: "WEBP", -} as const; diff --git a/src/api/types/JobStatus.ts b/src/api/types/JobStatus.ts deleted file mode 100644 index cb706e1..0000000 --- a/src/api/types/JobStatus.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type JobStatus = "Created" | "Started" | "Completed" | "Failed"; - -export const JobStatus = { - Created: "Created", - Started: "Started", - Completed: "Completed", - Failed: "Failed", -} as const; diff --git a/src/api/types/JsonFieldPropertiesDto.ts b/src/api/types/JsonFieldPropertiesDto.ts deleted file mode 100644 index 51c21f2..0000000 --- a/src/api/types/JsonFieldPropertiesDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface JsonFieldPropertiesDto { - /** The GraphQL schema. */ - graphQlSchema?: string; -} diff --git a/src/api/types/LanguageDto.ts b/src/api/types/LanguageDto.ts deleted file mode 100644 index 2644ffc..0000000 --- a/src/api/types/LanguageDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LanguageDto { - /** The iso code of the language. */ - iso2Code: string; - /** The english name of the language. */ - englishName: string; - /** The native name of the language. */ - nativeName: string; -} diff --git a/src/api/types/LocalizedValueOfNullableBoolean.ts b/src/api/types/LocalizedValueOfNullableBoolean.ts deleted file mode 100644 index e1fafa0..0000000 --- a/src/api/types/LocalizedValueOfNullableBoolean.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type LocalizedValueOfNullableBoolean = Record; diff --git a/src/api/types/LocalizedValueOfNullableDouble.ts b/src/api/types/LocalizedValueOfNullableDouble.ts deleted file mode 100644 index 2e41856..0000000 --- a/src/api/types/LocalizedValueOfNullableDouble.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type LocalizedValueOfNullableDouble = Record; diff --git a/src/api/types/LocalizedValueOfNullableInstant.ts b/src/api/types/LocalizedValueOfNullableInstant.ts deleted file mode 100644 index 37b645c..0000000 --- a/src/api/types/LocalizedValueOfNullableInstant.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type LocalizedValueOfNullableInstant = Record; diff --git a/src/api/types/LocalizedValueOfReadonlyListOfString.ts b/src/api/types/LocalizedValueOfReadonlyListOfString.ts deleted file mode 100644 index 114f7c8..0000000 --- a/src/api/types/LocalizedValueOfReadonlyListOfString.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type LocalizedValueOfReadonlyListOfString = Record; diff --git a/src/api/types/LocalizedValueOfString.ts b/src/api/types/LocalizedValueOfString.ts deleted file mode 100644 index 6d4e47b..0000000 --- a/src/api/types/LocalizedValueOfString.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type LocalizedValueOfString = Record; diff --git a/src/api/types/LogDownloadDto.ts b/src/api/types/LogDownloadDto.ts deleted file mode 100644 index 6398c8f..0000000 --- a/src/api/types/LogDownloadDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LogDownloadDto { - /** The url to download the log. */ - downloadUrl?: string; -} diff --git a/src/api/types/ManualRuleTriggerDto.ts b/src/api/types/ManualRuleTriggerDto.ts deleted file mode 100644 index 5d2f2e2..0000000 --- a/src/api/types/ManualRuleTriggerDto.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ManualRuleTriggerDto {} diff --git a/src/api/types/MediumRuleActionDto.ts b/src/api/types/MediumRuleActionDto.ts deleted file mode 100644 index 6cf8d2f..0000000 --- a/src/api/types/MediumRuleActionDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface MediumRuleActionDto { - /** The self issued access token. `non-empty` */ - accessToken: string; - /** The title, used for the url. `non-empty` */ - title: string; - /** The content, either html or markdown. `non-empty` */ - content: string; - /** The original home of this content, if it was originally published elsewhere. */ - canonicalUrl?: string; - /** The optional comma separated list of tags. */ - tags?: string; - /** Optional publication id. */ - publicationId?: string; - /** Indicates whether the content is markdown or html. */ - isHtml: boolean; -} diff --git a/src/api/types/NestedFieldDto.ts b/src/api/types/NestedFieldDto.ts deleted file mode 100644 index 095fe00..0000000 --- a/src/api/types/NestedFieldDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface NestedFieldDto extends Squidex.Resource { - /** The ID of the field. */ - fieldId: number; - /** The name of the field. Must be unique within the schema. `non-empty` */ - name: string; - /** Defines if the field is hidden. */ - isHidden: boolean; - /** Defines if the field is locked. */ - isLocked: boolean; - /** Defines if the field is disabled. */ - isDisabled: boolean; - /** The field properties. */ - properties: Squidex.FieldPropertiesDto; -} diff --git a/src/api/types/NotificationRuleActionDto.ts b/src/api/types/NotificationRuleActionDto.ts deleted file mode 100644 index faa6f4c..0000000 --- a/src/api/types/NotificationRuleActionDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface NotificationRuleActionDto { - /** The user id or email. `non-empty` */ - user: string; - /** The text to send. `non-empty` */ - text: string; - /** The optional url to attach to the notification. */ - url?: string; - /** An optional client name. */ - client?: string; -} diff --git a/src/api/types/NumberFieldEditor.ts b/src/api/types/NumberFieldEditor.ts deleted file mode 100644 index 32724f5..0000000 --- a/src/api/types/NumberFieldEditor.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type NumberFieldEditor = "Input" | "Radio" | "Dropdown" | "Stars"; - -export const NumberFieldEditor = { - Input: "Input", - Radio: "Radio", - Dropdown: "Dropdown", - Stars: "Stars", -} as const; diff --git a/src/api/types/NumberFieldPropertiesDto.ts b/src/api/types/NumberFieldPropertiesDto.ts deleted file mode 100644 index c9760fa..0000000 --- a/src/api/types/NumberFieldPropertiesDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface NumberFieldPropertiesDto { - /** The language specific default value for the field value. */ - defaultValues?: Squidex.LocalizedValueOfNullableDouble; - /** The default value for the field value. */ - defaultValue?: number; - /** The maximum allowed value for the field value. */ - maxValue?: number; - /** The minimum allowed value for the field value. */ - minValue?: number; - /** The allowed values for the field value. */ - allowedValues?: number[]; - /** Indicates if the field value must be unique. Ignored for nested fields and localized fields. */ - isUnique?: boolean; - /** Indicates that the inline editor is enabled for this field. */ - inlineEditable?: boolean; - /** The editor that is used to manage this field. */ - editor?: Squidex.NumberFieldEditor; -} diff --git a/src/api/types/OpenSearchRuleActionDto.ts b/src/api/types/OpenSearchRuleActionDto.ts deleted file mode 100644 index e07b9b2..0000000 --- a/src/api/types/OpenSearchRuleActionDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface OpenSearchRuleActionDto { - /** The url to the instance or cluster. `non-empty` */ - host: string; - /** The name of the index. `non-empty` */ - indexName: string; - /** The optional username. */ - username?: string; - /** The optional password. */ - password?: string; - /** The optional custom document. */ - document?: string; - /** The condition when to delete the document. */ - delete?: string; -} diff --git a/src/api/types/PatternDto.ts b/src/api/types/PatternDto.ts deleted file mode 100644 index 2fd79f9..0000000 --- a/src/api/types/PatternDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface PatternDto { - /** The name of the suggestion. */ - name: string; - /** The regex pattern. */ - regex: string; - /** The regex message. */ - message?: string; -} diff --git a/src/api/types/PlanChangedDto.ts b/src/api/types/PlanChangedDto.ts deleted file mode 100644 index 11cc23b..0000000 --- a/src/api/types/PlanChangedDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface PlanChangedDto { - /** Optional redirect uri. */ - redirectUri?: string; -} diff --git a/src/api/types/PlanDto.ts b/src/api/types/PlanDto.ts deleted file mode 100644 index 1e61d4a..0000000 --- a/src/api/types/PlanDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface PlanDto { - /** The ID of the plan. */ - id: string; - /** The name of the plan. */ - name: string; - /** The monthly costs of the plan. */ - costs: string; - /** An optional confirm text for the monthly subscription. */ - confirmText?: string; - /** An optional confirm text for the yearly subscription. */ - yearlyConfirmText?: string; - /** The yearly costs of the plan. */ - yearlyCosts?: string; - /** The yearly ID of the plan. */ - yearlyId?: string; - /** The maximum number of API traffic. */ - maxApiBytes: number; - /** The maximum number of API calls. */ - maxApiCalls: number; - /** The maximum allowed asset size. */ - maxAssetSize: number; - /** The maximum number of contributors. */ - maxContributors: number; -} diff --git a/src/api/types/PlansDto.ts b/src/api/types/PlansDto.ts deleted file mode 100644 index 6bb35bd..0000000 --- a/src/api/types/PlansDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface PlansDto { - /** The available plans. */ - plans: Squidex.PlanDto[]; - /** The current plan id. */ - currentPlanId?: string; - /** The plan owner. */ - planOwner?: string; - /** The link to the management portal. */ - portalLink?: string; - /** The referral management. */ - referral?: Squidex.ReferralInfo; - /** The reason why the plan cannot be changed. */ - locked: Squidex.PlansLockedReason; -} diff --git a/src/api/types/PlansLockedReason.ts b/src/api/types/PlansLockedReason.ts deleted file mode 100644 index d474f4a..0000000 --- a/src/api/types/PlansLockedReason.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type PlansLockedReason = "None" | "NotOwner" | "NoPermission" | "ManagedByTeam"; - -export const PlansLockedReason = { - None: "None", - NotOwner: "NotOwner", - NoPermission: "NoPermission", - ManagedByTeam: "ManagedByTeam", -} as const; diff --git a/src/api/types/PrerenderRuleActionDto.ts b/src/api/types/PrerenderRuleActionDto.ts deleted file mode 100644 index deb15ef..0000000 --- a/src/api/types/PrerenderRuleActionDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface PrerenderRuleActionDto { - /** The prerender token from your account. `non-empty` */ - token: string; - /** The url to recache. `non-empty` */ - url: string; -} diff --git a/src/api/types/PropertyPath.ts b/src/api/types/PropertyPath.ts deleted file mode 100644 index 46db146..0000000 --- a/src/api/types/PropertyPath.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type PropertyPath = string[]; diff --git a/src/api/types/QueryDto.ts b/src/api/types/QueryDto.ts deleted file mode 100644 index 428310a..0000000 --- a/src/api/types/QueryDto.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface QueryDto { - /** The optional list of ids to query. */ - ids?: string[]; - /** The optional odata query. */ - oData?: string; - q?: unknown; - /** The parent id (for assets). */ - parentId?: string; -} diff --git a/src/api/types/QueryJsonDto.ts b/src/api/types/QueryJsonDto.ts deleted file mode 100644 index 05c259b..0000000 --- a/src/api/types/QueryJsonDto.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface QueryJsonDto { - filter?: unknown; - fullText?: string; - skip: number; - take: number; - random: number; - top: number; - sort?: Squidex.SortNode[]; -} diff --git a/src/api/types/ReferencesFieldEditor.ts b/src/api/types/ReferencesFieldEditor.ts deleted file mode 100644 index 2d51a42..0000000 --- a/src/api/types/ReferencesFieldEditor.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type ReferencesFieldEditor = "List" | "Dropdown" | "Tags" | "Checkboxes" | "Input"; - -export const ReferencesFieldEditor = { - List: "List", - Dropdown: "Dropdown", - Tags: "Tags", - Checkboxes: "Checkboxes", - Input: "Input", -} as const; diff --git a/src/api/types/ReferencesFieldPropertiesDto.ts b/src/api/types/ReferencesFieldPropertiesDto.ts deleted file mode 100644 index 1bd69e2..0000000 --- a/src/api/types/ReferencesFieldPropertiesDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ReferencesFieldPropertiesDto { - /** The language specific default value as a list of content ids. */ - defaultValues?: Squidex.LocalizedValueOfReadonlyListOfString; - /** The default value as a list of content ids. */ - defaultValue?: string[]; - /** The minimum allowed items for the field value. */ - minItems?: number; - /** The maximum allowed items for the field value. */ - maxItems?: number; - /** True, if duplicate values are allowed. */ - allowDuplicates?: boolean; - /** True to resolve references in the content list. */ - resolveReference?: boolean; - /** True when all references must be published. */ - mustBePublished?: boolean; - /** The initial query that is applied in the UI. */ - query?: string; - /** The editor that is used to manage this field. */ - editor?: Squidex.ReferencesFieldEditor; - /** The ID of the referenced schemas. */ - schemaIds?: string[]; -} diff --git a/src/api/types/ReferralInfo.ts b/src/api/types/ReferralInfo.ts deleted file mode 100644 index b94c479..0000000 --- a/src/api/types/ReferralInfo.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ReferralInfo { - code: string; - earned: string; - condition: string; -} diff --git a/src/api/types/ReorderFieldsDto.ts b/src/api/types/ReorderFieldsDto.ts deleted file mode 100644 index 75744fa..0000000 --- a/src/api/types/ReorderFieldsDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ReorderFieldsDto { - /** The field ids in the target order. */ - fieldIds: number[]; -} diff --git a/src/api/types/ResizeMode.ts b/src/api/types/ResizeMode.ts deleted file mode 100644 index 87a1605..0000000 --- a/src/api/types/ResizeMode.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type ResizeMode = "Crop" | "CropUpsize" | "Pad" | "BoxPad" | "Max" | "Min" | "Stretch"; - -export const ResizeMode = { - Crop: "Crop", - CropUpsize: "CropUpsize", - Pad: "Pad", - BoxPad: "BoxPad", - Max: "Max", - Min: "Min", - Stretch: "Stretch", -} as const; diff --git a/src/api/types/Resource.ts b/src/api/types/Resource.ts deleted file mode 100644 index 0e67421..0000000 --- a/src/api/types/Resource.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface Resource { - /** The links. */ - links: Record; -} diff --git a/src/api/types/ResourceLink.ts b/src/api/types/ResourceLink.ts deleted file mode 100644 index 00e7ca5..0000000 --- a/src/api/types/ResourceLink.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ResourceLink { - /** The link url. `non-empty` */ - href: string; - /** The link method. `non-empty` */ - method: string; - /** Additional data about the link. */ - metadata?: string; -} diff --git a/src/api/types/ResourcesDto.ts b/src/api/types/ResourcesDto.ts deleted file mode 100644 index 0b223ae..0000000 --- a/src/api/types/ResourcesDto.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface ResourcesDto extends Squidex.Resource {} diff --git a/src/api/types/RestoreJobDto.ts b/src/api/types/RestoreJobDto.ts deleted file mode 100644 index ff56748..0000000 --- a/src/api/types/RestoreJobDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RestoreJobDto { - /** The uri to load from. */ - url: string; - /** The status log. */ - log: string[]; - /** The time when the job has been started. */ - started: Date; - /** The time when the job has been stopped. */ - stopped?: Date; - /** The status of the operation. */ - status: Squidex.JobStatus; -} diff --git a/src/api/types/RoleDto.ts b/src/api/types/RoleDto.ts deleted file mode 100644 index 77a2838..0000000 --- a/src/api/types/RoleDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RoleDto extends Squidex.Resource { - /** The role name. */ - name: string; - /** The number of clients with this role. */ - numClients: number; - /** The number of contributors with this role. */ - numContributors: number; - /** Indicates if the role is an builtin default role. */ - isDefaultRole: boolean; - /** Associated list of permissions. */ - permissions: string[]; - /** Associated list of UI properties. */ - properties: Record; -} diff --git a/src/api/types/RolesDto.ts b/src/api/types/RolesDto.ts deleted file mode 100644 index e88f0e1..0000000 --- a/src/api/types/RolesDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RolesDto extends Squidex.Resource { - /** The roles. */ - items: Squidex.RoleDto[]; -} diff --git a/src/api/types/RuleActionDto.ts b/src/api/types/RuleActionDto.ts deleted file mode 100644 index bee50d8..0000000 --- a/src/api/types/RuleActionDto.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export type RuleActionDto = - | Squidex.RuleActionDto.Algolia - | Squidex.RuleActionDto.AzureQueue - | Squidex.RuleActionDto.Comment - | Squidex.RuleActionDto.CreateContent - | Squidex.RuleActionDto.DeepDetect - | Squidex.RuleActionDto.Discourse - | Squidex.RuleActionDto.ElasticSearch - | Squidex.RuleActionDto.Email - | Squidex.RuleActionDto.Fastly - | Squidex.RuleActionDto.Medium - | Squidex.RuleActionDto.Notification - | Squidex.RuleActionDto.OpenSearch - | Squidex.RuleActionDto.Prerender - | Squidex.RuleActionDto.Script - | Squidex.RuleActionDto.SignalR - | Squidex.RuleActionDto.Slack - | Squidex.RuleActionDto.Tweet - | Squidex.RuleActionDto.Typesense - | Squidex.RuleActionDto.Webhook; - -export declare namespace RuleActionDto { - interface Algolia extends Squidex.AlgoliaRuleActionDto { - actionType: "Algolia"; - } - - interface AzureQueue extends Squidex.AzureQueueRuleActionDto { - actionType: "AzureQueue"; - } - - interface Comment extends Squidex.CommentRuleActionDto { - actionType: "Comment"; - } - - interface CreateContent extends Squidex.CreateContentRuleActionDto { - actionType: "CreateContent"; - } - - interface DeepDetect extends Squidex.DeepDetectRuleActionDto { - actionType: "DeepDetect"; - } - - interface Discourse extends Squidex.DiscourseRuleActionDto { - actionType: "Discourse"; - } - - interface ElasticSearch extends Squidex.ElasticSearchRuleActionDto { - actionType: "ElasticSearch"; - } - - interface Email extends Squidex.EmailRuleActionDto { - actionType: "Email"; - } - - interface Fastly extends Squidex.FastlyRuleActionDto { - actionType: "Fastly"; - } - - interface Medium extends Squidex.MediumRuleActionDto { - actionType: "Medium"; - } - - interface Notification extends Squidex.NotificationRuleActionDto { - actionType: "Notification"; - } - - interface OpenSearch extends Squidex.OpenSearchRuleActionDto { - actionType: "OpenSearch"; - } - - interface Prerender extends Squidex.PrerenderRuleActionDto { - actionType: "Prerender"; - } - - interface Script extends Squidex.ScriptRuleActionDto { - actionType: "Script"; - } - - interface SignalR extends Squidex.SignalRRuleActionDto { - actionType: "SignalR"; - } - - interface Slack extends Squidex.SlackRuleActionDto { - actionType: "Slack"; - } - - interface Tweet extends Squidex.TweetRuleActionDto { - actionType: "Tweet"; - } - - interface Typesense extends Squidex.TypesenseRuleActionDto { - actionType: "Typesense"; - } - - interface Webhook extends Squidex.WebhookRuleActionDto { - actionType: "Webhook"; - } -} diff --git a/src/api/types/RuleDto.ts b/src/api/types/RuleDto.ts deleted file mode 100644 index 33be036..0000000 --- a/src/api/types/RuleDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RuleDto extends Squidex.Resource { - /** The ID of the rule. */ - id: string; - /** The user that has created the rule. */ - createdBy: string; - /** The user that has updated the rule. */ - lastModifiedBy: string; - /** The date and time when the rule has been created. */ - created: Date; - /** The date and time when the rule has been modified last. */ - lastModified: Date; - /** The version of the rule. */ - version: number; - /** Determines if the rule is enabled. */ - isEnabled: boolean; - /** Optional rule name. */ - name?: string; - /** The trigger properties. */ - trigger: Squidex.RuleTriggerDto; - /** The action properties. */ - action: Squidex.RuleActionDto; - /** The number of completed executions. */ - numSucceeded: number; - /** The number of failed executions. */ - numFailed: number; - /** The date and time when the rule was executed the last time. */ - lastExecuted?: Date; -} diff --git a/src/api/types/RuleElementDto.ts b/src/api/types/RuleElementDto.ts deleted file mode 100644 index 52fed99..0000000 --- a/src/api/types/RuleElementDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RuleElementDto { - /** Describes the action or trigger type. */ - description: string; - /** The label for the action or trigger type. */ - display: string; - /** Optional title. */ - title?: string; - /** The color for the icon. */ - iconColor?: string; - /** The image for the icon. */ - iconImage?: string; - /** The optional link to the product that is integrated. */ - readMore?: string; - /** The properties. */ - properties: Squidex.RuleElementPropertyDto[]; -} diff --git a/src/api/types/RuleElementPropertyDto.ts b/src/api/types/RuleElementPropertyDto.ts deleted file mode 100644 index d869ab7..0000000 --- a/src/api/types/RuleElementPropertyDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RuleElementPropertyDto { - /** The html editor. */ - editor: Squidex.RuleFieldEditor; - /** The name of the editor. */ - name: string; - /** The label to use. */ - display: string; - /** The options, if the editor is a dropdown. */ - options?: string[]; - /** The optional description. */ - description?: string; - /** Indicates if the property is formattable. */ - isFormattable: boolean; - /** Indicates if the property is required. */ - isRequired: boolean; -} diff --git a/src/api/types/RuleEventDto.ts b/src/api/types/RuleEventDto.ts deleted file mode 100644 index 20a181a..0000000 --- a/src/api/types/RuleEventDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RuleEventDto extends Squidex.Resource { - /** The ID of the event. */ - id: string; - /** The time when the event has been created. */ - created: Date; - /** The description. */ - description: string; - /** The name of the event. */ - eventName: string; - /** The last dump. */ - lastDump?: string; - /** The number of calls. */ - numCalls: number; - /** The next attempt. */ - nextAttempt?: Date; - /** The result of the event. */ - result: Squidex.RuleResult; - /** The result of the job. */ - jobResult: Squidex.RuleJobResult; -} diff --git a/src/api/types/RuleEventsDto.ts b/src/api/types/RuleEventsDto.ts deleted file mode 100644 index 7c21696..0000000 --- a/src/api/types/RuleEventsDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RuleEventsDto extends Squidex.Resource { - /** The total number of rule events. */ - total: number; - /** The rule events. */ - items: Squidex.RuleEventDto[]; -} diff --git a/src/api/types/RuleFieldEditor.ts b/src/api/types/RuleFieldEditor.ts deleted file mode 100644 index a9c614e..0000000 --- a/src/api/types/RuleFieldEditor.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type RuleFieldEditor = - | "Checkbox" - | "Dropdown" - | "Email" - | "Javascript" - | "Number" - | "Password" - | "Text" - | "TextArea" - | "Url"; - -export const RuleFieldEditor = { - Checkbox: "Checkbox", - Dropdown: "Dropdown", - Email: "Email", - Javascript: "Javascript", - Number: "Number", - Password: "Password", - Text: "Text", - TextArea: "TextArea", - Url: "Url", -} as const; diff --git a/src/api/types/RuleJobResult.ts b/src/api/types/RuleJobResult.ts deleted file mode 100644 index 3f1fe7e..0000000 --- a/src/api/types/RuleJobResult.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type RuleJobResult = "Pending" | "Success" | "Retry" | "Failed" | "Cancelled"; - -export const RuleJobResult = { - Pending: "Pending", - Success: "Success", - Retry: "Retry", - Failed: "Failed", - Cancelled: "Cancelled", -} as const; diff --git a/src/api/types/RuleResult.ts b/src/api/types/RuleResult.ts deleted file mode 100644 index 69a6ba1..0000000 --- a/src/api/types/RuleResult.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type RuleResult = "Pending" | "Success" | "Failed" | "Timeout"; - -export const RuleResult = { - Pending: "Pending", - Success: "Success", - Failed: "Failed", - Timeout: "Timeout", -} as const; diff --git a/src/api/types/RuleTriggerDto.ts b/src/api/types/RuleTriggerDto.ts deleted file mode 100644 index af7384c..0000000 --- a/src/api/types/RuleTriggerDto.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export type RuleTriggerDto = - | Squidex.RuleTriggerDto.AssetChanged - | Squidex.RuleTriggerDto.Comment - | Squidex.RuleTriggerDto.ContentChanged - | Squidex.RuleTriggerDto.Manual - | Squidex.RuleTriggerDto.SchemaChanged - | Squidex.RuleTriggerDto.Usage; - -export declare namespace RuleTriggerDto { - interface AssetChanged extends Squidex.AssetChangedRuleTriggerDto { - triggerType: "AssetChanged"; - } - - interface Comment extends Squidex.CommentRuleTriggerDto { - triggerType: "Comment"; - } - - interface ContentChanged extends Squidex.ContentChangedRuleTriggerDto { - triggerType: "ContentChanged"; - } - - interface Manual extends Squidex.ManualRuleTriggerDto { - triggerType: "Manual"; - } - - interface SchemaChanged extends Squidex.SchemaChangedRuleTriggerDto { - triggerType: "SchemaChanged"; - } - - interface Usage extends Squidex.UsageRuleTriggerDto { - triggerType: "Usage"; - } -} diff --git a/src/api/types/RulesDto.ts b/src/api/types/RulesDto.ts deleted file mode 100644 index a9cdce1..0000000 --- a/src/api/types/RulesDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface RulesDto extends Squidex.Resource { - /** The rules. */ - items: Squidex.RuleDto[]; - /** The ID of the rule that is currently rerunning. */ - runningRuleId?: string; -} diff --git a/src/api/types/ScheduleJobDto.ts b/src/api/types/ScheduleJobDto.ts deleted file mode 100644 index 70a32ba..0000000 --- a/src/api/types/ScheduleJobDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ScheduleJobDto { - /** The ID of the schedule job. */ - id: string; - /** The new status. */ - status: string; - /** The target date and time when the content should be scheduled. */ - dueTime: Date; - /** The color of the scheduled status. */ - color: string; - /** The user who schedule the content. */ - scheduledBy: string; -} diff --git a/src/api/types/SchemaChangedRuleTriggerDto.ts b/src/api/types/SchemaChangedRuleTriggerDto.ts deleted file mode 100644 index 1346071..0000000 --- a/src/api/types/SchemaChangedRuleTriggerDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SchemaChangedRuleTriggerDto { - /** Javascript condition when to trigger. */ - condition?: string; -} diff --git a/src/api/types/SchemaCondition.ts b/src/api/types/SchemaCondition.ts deleted file mode 100644 index fc18bc8..0000000 --- a/src/api/types/SchemaCondition.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SchemaCondition { - schemaId: string; - condition?: string; -} diff --git a/src/api/types/SchemaDto.ts b/src/api/types/SchemaDto.ts deleted file mode 100644 index f8e2155..0000000 --- a/src/api/types/SchemaDto.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface SchemaDto extends Squidex.Resource { - /** The ID of the schema. */ - id: string; - /** The user that has created the schema. `non-empty` */ - createdBy: string; - /** The user that has updated the schema. `non-empty` */ - lastModifiedBy: string; - /** The name of the schema. Unique within the app. `non-empty` */ - name: string; - /** The type of the schema. */ - type: Squidex.SchemaType; - /** The name of the category. */ - category?: string; - /** The schema properties. */ - properties: Squidex.SchemaPropertiesDto; - /** Indicates if the schema is a singleton. */ - isSingleton: boolean; - /** Indicates if the schema is published. */ - isPublished: boolean; - /** The date and time when the schema has been created. */ - created: Date; - /** The date and time when the schema has been modified last. */ - lastModified: Date; - /** The version of the schema. */ - version: number; - /** The scripts. */ - scripts: Squidex.SchemaScriptsDto; - /** The preview Urls. */ - previewUrls: Record; - /** The name of fields that are used in content lists. */ - fieldsInLists: string[]; - /** The name of fields that are used in content references. */ - fieldsInReferences: string[]; - /** The field rules. */ - fieldRules: Squidex.FieldRuleDto[]; - /** The list of fields. */ - fields: Squidex.FieldDto[]; -} diff --git a/src/api/types/SchemaPropertiesDto.ts b/src/api/types/SchemaPropertiesDto.ts deleted file mode 100644 index 02719ae..0000000 --- a/src/api/types/SchemaPropertiesDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SchemaPropertiesDto { - /** Optional label for the editor. */ - label?: string; - /** Hints to describe the schema. */ - hints?: string; - /** The url to a the sidebar plugin for content lists. */ - contentsSidebarUrl?: string; - /** The url to a the sidebar plugin for content items. */ - contentSidebarUrl?: string; - /** The url to the editor plugin. */ - contentEditorUrl?: string; - /** True to validate the content items on publish. */ - validateOnPublish: boolean; - /** Tags for automation processes. */ - tags?: string[]; -} diff --git a/src/api/types/SchemaScriptsDto.ts b/src/api/types/SchemaScriptsDto.ts deleted file mode 100644 index acaf03d..0000000 --- a/src/api/types/SchemaScriptsDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SchemaScriptsDto { - /** The script that is executed for each content when querying contents. */ - query?: string; - /** The script that is executed for all contents when querying contents. */ - queryPre?: string; - /** The script that is executed when creating a content. */ - create?: string; - /** The script that is executed when updating a content. */ - update?: string; - /** The script that is executed when deleting a content. */ - delete?: string; - /** The script that is executed when change a content status. */ - change?: string; -} diff --git a/src/api/types/SchemaType.ts b/src/api/types/SchemaType.ts deleted file mode 100644 index 9f3af13..0000000 --- a/src/api/types/SchemaType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type SchemaType = "Default" | "Singleton" | "Component"; - -export const SchemaType = { - Default: "Default", - Singleton: "Singleton", - Component: "Component", -} as const; diff --git a/src/api/types/SchemasDto.ts b/src/api/types/SchemasDto.ts deleted file mode 100644 index d026ff8..0000000 --- a/src/api/types/SchemasDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface SchemasDto extends Squidex.Resource { - /** The schemas. */ - items: Squidex.SchemaDto[]; -} diff --git a/src/api/types/ScriptRuleActionDto.ts b/src/api/types/ScriptRuleActionDto.ts deleted file mode 100644 index f085d2e..0000000 --- a/src/api/types/ScriptRuleActionDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ScriptRuleActionDto { - /** The script to render. `non-empty` */ - script: string; -} diff --git a/src/api/types/SearchResultDto.ts b/src/api/types/SearchResultDto.ts deleted file mode 100644 index bf60d4b..0000000 --- a/src/api/types/SearchResultDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface SearchResultDto extends Squidex.Resource { - /** The name of the search result. */ - name: string; - /** The type of the search result. */ - type: Squidex.SearchResultType; - /** An optional label. */ - label?: string; -} diff --git a/src/api/types/SearchResultType.ts b/src/api/types/SearchResultType.ts deleted file mode 100644 index 00cd73a..0000000 --- a/src/api/types/SearchResultType.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type SearchResultType = "Asset" | "Content" | "Dashboard" | "Setting" | "Rule" | "Schema"; - -export const SearchResultType = { - Asset: "Asset", - Content: "Content", - Dashboard: "Dashboard", - Setting: "Setting", - Rule: "Rule", - Schema: "Schema", -} as const; diff --git a/src/api/types/SignalRRuleActionDto.ts b/src/api/types/SignalRRuleActionDto.ts deleted file mode 100644 index 24cc550..0000000 --- a/src/api/types/SignalRRuleActionDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface SignalRRuleActionDto { - /** The connection string to the Azure SignalR. `non-empty` */ - connectionString: string; - /** The name of the hub. `non-empty` */ - hubName: string; - /** - * * Broadcast = send to all users. - * * User = send to all target users(s). - * * Group = send to all target group(s). - */ - action: Squidex.ActionTypeEnum; - /** Set the Name of the hub method received by the customer. */ - methodName?: string; - /** Define target users or groups by id or name. One item per line. Not needed for Broadcast action. */ - target?: string; - /** Leave it empty to use the full event as body. */ - payload?: string; -} diff --git a/src/api/types/SimulatedRuleEventDto.ts b/src/api/types/SimulatedRuleEventDto.ts deleted file mode 100644 index 63b9be5..0000000 --- a/src/api/types/SimulatedRuleEventDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface SimulatedRuleEventDto { - /** The unique event id. `non-empty` */ - eventId: string; - /** The the unique id of the simulated event. `non-empty` */ - uniqueId: string; - /** The name of the event. `non-empty` */ - eventName: string; - event?: unknown; - enrichedEvent?: unknown; - /** The data for the action. */ - actionName?: string; - /** The name of the action. */ - actionData?: string; - /** The name of the event. */ - error?: string; - /** The reason why the event has been skipped. */ - skipReasons: Squidex.SkipReason[]; -} diff --git a/src/api/types/SimulatedRuleEventsDto.ts b/src/api/types/SimulatedRuleEventsDto.ts deleted file mode 100644 index a1ff5f7..0000000 --- a/src/api/types/SimulatedRuleEventsDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface SimulatedRuleEventsDto extends Squidex.Resource { - /** The total number of simulated rule events. */ - total: number; - /** The simulated rule events. */ - items: Squidex.SimulatedRuleEventDto[]; -} diff --git a/src/api/types/SkipReason.ts b/src/api/types/SkipReason.ts deleted file mode 100644 index 0162538..0000000 --- a/src/api/types/SkipReason.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type SkipReason = - | "None" - | "ConditionDoesNotMatch" - | "ConditionPrecheckDoesNotMatch" - | "Disabled" - | "Failed" - | "FromRule" - | "NoAction" - | "NoTrigger" - | "TooOld" - | "WrongEvent" - | "WrongEventForTrigger"; - -export const SkipReason = { - None: "None", - ConditionDoesNotMatch: "ConditionDoesNotMatch", - ConditionPrecheckDoesNotMatch: "ConditionPrecheckDoesNotMatch", - Disabled: "Disabled", - Failed: "Failed", - FromRule: "FromRule", - NoAction: "NoAction", - NoTrigger: "NoTrigger", - TooOld: "TooOld", - WrongEvent: "WrongEvent", - WrongEventForTrigger: "WrongEventForTrigger", -} as const; diff --git a/src/api/types/SlackRuleActionDto.ts b/src/api/types/SlackRuleActionDto.ts deleted file mode 100644 index 61a4e04..0000000 --- a/src/api/types/SlackRuleActionDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SlackRuleActionDto { - /** The slack webhook url. `non-empty` */ - webhookUrl: string; - /** The text that is sent as message to slack. `non-empty` */ - text: string; -} diff --git a/src/api/types/SortNode.ts b/src/api/types/SortNode.ts deleted file mode 100644 index 71e98e1..0000000 --- a/src/api/types/SortNode.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface SortNode { - path: Squidex.PropertyPath; - order: Squidex.SortOrder; -} diff --git a/src/api/types/SortOrder.ts b/src/api/types/SortOrder.ts deleted file mode 100644 index 641f537..0000000 --- a/src/api/types/SortOrder.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type SortOrder = "Ascending" | "Descending"; - -export const SortOrder = { - Ascending: "Ascending", - Descending: "Descending", -} as const; diff --git a/src/api/types/StatusInfoDto.ts b/src/api/types/StatusInfoDto.ts deleted file mode 100644 index 9daef87..0000000 --- a/src/api/types/StatusInfoDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface StatusInfoDto { - /** The name of the status. */ - status: string; - /** The color of the status. */ - color: string; -} diff --git a/src/api/types/StorageUsagePerDateDto.ts b/src/api/types/StorageUsagePerDateDto.ts deleted file mode 100644 index 274bcbf..0000000 --- a/src/api/types/StorageUsagePerDateDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface StorageUsagePerDateDto { - /** The date when the usage was tracked. */ - date: string; - /** The number of assets. */ - totalCount: number; - /** The size in bytes. */ - totalSize: number; -} diff --git a/src/api/types/StringContentType.ts b/src/api/types/StringContentType.ts deleted file mode 100644 index a104269..0000000 --- a/src/api/types/StringContentType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type StringContentType = "Unspecified" | "Html" | "Markdown"; - -export const StringContentType = { - Unspecified: "Unspecified", - Html: "Html", - Markdown: "Markdown", -} as const; diff --git a/src/api/types/StringFieldEditor.ts b/src/api/types/StringFieldEditor.ts deleted file mode 100644 index c9b837e..0000000 --- a/src/api/types/StringFieldEditor.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type StringFieldEditor = - | "Input" - | "Color" - | "Markdown" - | "Dropdown" - | "Html" - | "Radio" - | "RichText" - | "Slug" - | "StockPhoto" - | "TextArea"; - -export const StringFieldEditor = { - Input: "Input", - Color: "Color", - Markdown: "Markdown", - Dropdown: "Dropdown", - Html: "Html", - Radio: "Radio", - RichText: "RichText", - Slug: "Slug", - StockPhoto: "StockPhoto", - TextArea: "TextArea", -} as const; diff --git a/src/api/types/StringFieldPropertiesDto.ts b/src/api/types/StringFieldPropertiesDto.ts deleted file mode 100644 index 699b49f..0000000 --- a/src/api/types/StringFieldPropertiesDto.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface StringFieldPropertiesDto { - /** The language specific default value for the field value. */ - defaultValues?: Squidex.LocalizedValueOfString; - /** The default value for the field value. */ - defaultValue?: string; - /** The pattern to enforce a specific format for the field value. */ - pattern?: string; - /** The validation message for the pattern. */ - patternMessage?: string; - /** The initial id to the folder when the control supports file uploads. */ - folderId?: string; - /** The minimum allowed length for the field value. */ - minLength?: number; - /** The maximum allowed length for the field value. */ - maxLength?: number; - /** The minimum allowed of normal characters for the field value. */ - minCharacters?: number; - /** The maximum allowed of normal characters for the field value. */ - maxCharacters?: number; - /** The minimum allowed number of words for the field value. */ - minWords?: number; - /** The maximum allowed number of words for the field value. */ - maxWords?: number; - /** The allowed values for the field value. */ - allowedValues?: string[]; - /** The allowed schema ids that can be embedded. */ - schemaIds?: string[]; - /** Indicates if the field value must be unique. Ignored for nested fields and localized fields. */ - isUnique?: boolean; - /** Indicates that other content items or references are embedded. */ - isEmbeddable?: boolean; - /** Indicates that the inline editor is enabled for this field. */ - inlineEditable?: boolean; - /** Indicates whether GraphQL Enum should be created. */ - createEnum?: boolean; - /** How the string content should be interpreted. */ - contentType?: Squidex.StringContentType; - /** The editor that is used to manage this field. */ - editor?: Squidex.StringFieldEditor; -} diff --git a/src/api/types/TagsFieldEditor.ts b/src/api/types/TagsFieldEditor.ts deleted file mode 100644 index 8a2cd73..0000000 --- a/src/api/types/TagsFieldEditor.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type TagsFieldEditor = "Tags" | "Checkboxes" | "Dropdown"; - -export const TagsFieldEditor = { - Tags: "Tags", - Checkboxes: "Checkboxes", - Dropdown: "Dropdown", -} as const; diff --git a/src/api/types/TagsFieldPropertiesDto.ts b/src/api/types/TagsFieldPropertiesDto.ts deleted file mode 100644 index 5124876..0000000 --- a/src/api/types/TagsFieldPropertiesDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface TagsFieldPropertiesDto { - /** The language specific default value for the field value. */ - defaultValues?: Squidex.LocalizedValueOfReadonlyListOfString; - /** The default value. */ - defaultValue?: string[]; - /** The minimum allowed items for the field value. */ - minItems?: number; - /** The maximum allowed items for the field value. */ - maxItems?: number; - /** The allowed values for the field value. */ - allowedValues?: string[]; - /** Indicates whether GraphQL Enum should be created. */ - createEnum?: boolean; - /** The editor that is used to manage this field. */ - editor?: Squidex.TagsFieldEditor; -} diff --git a/src/api/types/TeamDto.ts b/src/api/types/TeamDto.ts deleted file mode 100644 index 948ad3c..0000000 --- a/src/api/types/TeamDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface TeamDto extends Squidex.Resource { - /** The ID of the team. */ - id: string; - /** The name of the team. */ - name: string; - /** The version of the team. */ - version: number; - /** The timestamp when the team has been created. */ - created: Date; - /** The timestamp when the team has been modified last. */ - lastModified: Date; - /** The role name of the user. */ - roleName?: string; -} diff --git a/src/api/types/TemplateDetailsDto.ts b/src/api/types/TemplateDetailsDto.ts deleted file mode 100644 index 29fe624..0000000 --- a/src/api/types/TemplateDetailsDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface TemplateDetailsDto extends Squidex.Resource { - /** The details of the template. */ - details: string; -} diff --git a/src/api/types/TemplateDto.ts b/src/api/types/TemplateDto.ts deleted file mode 100644 index 4d99c83..0000000 --- a/src/api/types/TemplateDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface TemplateDto extends Squidex.Resource { - /** The name of the template. */ - name: string; - /** The title of the template. */ - title: string; - /** The description of the template. */ - description: string; - /** True, if the template is a starter. */ - isStarter: boolean; -} diff --git a/src/api/types/TemplatesDto.ts b/src/api/types/TemplatesDto.ts deleted file mode 100644 index dc747f5..0000000 --- a/src/api/types/TemplatesDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface TemplatesDto extends Squidex.Resource { - /** The event consumers. */ - items: Squidex.TemplateDto[]; -} diff --git a/src/api/types/TranslationDto.ts b/src/api/types/TranslationDto.ts deleted file mode 100644 index 216b006..0000000 --- a/src/api/types/TranslationDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface TranslationDto { - /** The result of the translation. */ - status: Squidex.TranslationStatus; - /** The result of the translation. */ - result: Squidex.TranslationStatus; - /** The translated text. */ - text?: string; -} diff --git a/src/api/types/TranslationStatus.ts b/src/api/types/TranslationStatus.ts deleted file mode 100644 index e94e37c..0000000 --- a/src/api/types/TranslationStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type TranslationStatus = - | "Translated" - | "LanguageNotSupported" - | "NotTranslated" - | "NotConfigured" - | "Unauthorized" - | "Failed"; - -export const TranslationStatus = { - Translated: "Translated", - LanguageNotSupported: "LanguageNotSupported", - NotTranslated: "NotTranslated", - NotConfigured: "NotConfigured", - Unauthorized: "Unauthorized", - Failed: "Failed", -} as const; diff --git a/src/api/types/TweetRuleActionDto.ts b/src/api/types/TweetRuleActionDto.ts deleted file mode 100644 index fb49d9a..0000000 --- a/src/api/types/TweetRuleActionDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface TweetRuleActionDto { - /** The generated access token. `non-empty` */ - accessToken: string; - /** The generated access secret. `non-empty` */ - accessSecret: string; - /** The text that is sent as tweet to twitter. `non-empty` */ - text: string; -} diff --git a/src/api/types/TypesenseRuleActionDto.ts b/src/api/types/TypesenseRuleActionDto.ts deleted file mode 100644 index 03824a4..0000000 --- a/src/api/types/TypesenseRuleActionDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface TypesenseRuleActionDto { - /** The url to the instance or cluster. `non-empty` */ - host: string; - /** The name of the index. `non-empty` */ - indexName: string; - /** The api key. `non-empty` */ - apiKey: string; - /** The optional custom document. */ - document?: string; - /** The condition when to delete the document. */ - delete?: string; -} diff --git a/src/api/types/UiFieldEditor.ts b/src/api/types/UiFieldEditor.ts deleted file mode 100644 index 2a9332d..0000000 --- a/src/api/types/UiFieldEditor.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type UiFieldEditor = "Separator"; diff --git a/src/api/types/UiFieldPropertiesDto.ts b/src/api/types/UiFieldPropertiesDto.ts deleted file mode 100644 index 9090e31..0000000 --- a/src/api/types/UiFieldPropertiesDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface UiFieldPropertiesDto { - /** The editor that is used to manage this field. */ - editor?: Squidex.UiFieldEditor; -} diff --git a/src/api/types/UpdateFieldDto.ts b/src/api/types/UpdateFieldDto.ts deleted file mode 100644 index 7ae2f76..0000000 --- a/src/api/types/UpdateFieldDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface UpdateFieldDto { - /** The field properties. */ - properties: Squidex.FieldPropertiesDto; -} diff --git a/src/api/types/UpdateSettingDto.ts b/src/api/types/UpdateSettingDto.ts deleted file mode 100644 index a09301d..0000000 --- a/src/api/types/UpdateSettingDto.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpdateSettingDto { - value?: unknown; -} diff --git a/src/api/types/UpsertCommentDto.ts b/src/api/types/UpsertCommentDto.ts deleted file mode 100644 index 837fcbd..0000000 --- a/src/api/types/UpsertCommentDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UpsertCommentDto { - /** The comment text. `non-empty` */ - text: string; - /** The url where the comment is created. */ - url?: string; -} diff --git a/src/api/types/UpsertSchemaDto.ts b/src/api/types/UpsertSchemaDto.ts deleted file mode 100644 index 4e2243f..0000000 --- a/src/api/types/UpsertSchemaDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface UpsertSchemaDto { - /** The optional properties. */ - properties?: Squidex.SchemaPropertiesDto; - /** The optional scripts. */ - scripts?: Squidex.SchemaScriptsDto; - /** The names of the fields that should be used in references. */ - fieldsInReferences?: string[]; - /** The names of the fields that should be shown in lists, including meta fields. */ - fieldsInLists?: string[]; - /** Optional fields. */ - fields?: Squidex.UpsertSchemaFieldDto[]; - /** The optional preview urls. */ - previewUrls?: Record; - /** The optional field Rules. */ - fieldRules?: Squidex.FieldRuleDto[]; - /** The category. */ - category?: string; - /** Set it to true to autopublish the schema. */ - isPublished?: boolean; -} diff --git a/src/api/types/UpsertSchemaFieldDto.ts b/src/api/types/UpsertSchemaFieldDto.ts deleted file mode 100644 index d77b53a..0000000 --- a/src/api/types/UpsertSchemaFieldDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface UpsertSchemaFieldDto { - /** The name of the field. Must be unique within the schema. `non-empty` */ - name: string; - /** Defines if the field is hidden. */ - isHidden?: boolean; - /** Defines if the field is locked. */ - isLocked?: boolean; - /** Defines if the field is disabled. */ - isDisabled?: boolean; - /** Determines the optional partitioning of the field. */ - partitioning?: string; - /** The field properties. */ - properties: Squidex.FieldPropertiesDto; - /** The nested fields. */ - nested?: Squidex.UpsertSchemaNestedFieldDto[]; -} diff --git a/src/api/types/UpsertSchemaNestedFieldDto.ts b/src/api/types/UpsertSchemaNestedFieldDto.ts deleted file mode 100644 index 8ea75c0..0000000 --- a/src/api/types/UpsertSchemaNestedFieldDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface UpsertSchemaNestedFieldDto { - /** The name of the field. Must be unique within the schema. `non-empty` */ - name: string; - /** Defines if the field is hidden. */ - isHidden?: boolean; - /** Defines if the field is locked. */ - isLocked?: boolean; - /** Defines if the field is disabled. */ - isDisabled?: boolean; - /** The field properties. */ - properties: Squidex.FieldPropertiesDto; -} diff --git a/src/api/types/UsageRuleTriggerDto.ts b/src/api/types/UsageRuleTriggerDto.ts deleted file mode 100644 index 590a098..0000000 --- a/src/api/types/UsageRuleTriggerDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UsageRuleTriggerDto { - /** The number of monthly api calls. */ - limit: number; - /** The number of days to check or null for the current month. */ - numDays?: number; -} diff --git a/src/api/types/UserDto.ts b/src/api/types/UserDto.ts deleted file mode 100644 index 3bb0a30..0000000 --- a/src/api/types/UserDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface UserDto extends Squidex.Resource { - /** The ID of the user. */ - id: string; - /** The email of the user. Unique value. */ - email: string; - /** The display name (usually first name and last name) of the user. */ - displayName: string; - /** Determines if the user is locked. */ - isLocked: boolean; - /** Additional permissions for the user. */ - permissions: string[]; -} diff --git a/src/api/types/UserProperty.ts b/src/api/types/UserProperty.ts deleted file mode 100644 index c2663bd..0000000 --- a/src/api/types/UserProperty.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UserProperty { - /** `non-empty` */ - name: string; - /** `non-empty` */ - value: string; -} diff --git a/src/api/types/UsersDto.ts b/src/api/types/UsersDto.ts deleted file mode 100644 index 1e218b0..0000000 --- a/src/api/types/UsersDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface UsersDto extends Squidex.Resource { - /** The total number of users. */ - total: number; - /** The users. */ - items: Squidex.UserDto[]; -} diff --git a/src/api/types/WebhookMethod.ts b/src/api/types/WebhookMethod.ts deleted file mode 100644 index 8f44c35..0000000 --- a/src/api/types/WebhookMethod.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - */ -export type WebhookMethod = "POST" | "PUT" | "GET" | "DELETE" | "PATCH"; - -export const WebhookMethod = { - Post: "POST", - Put: "PUT", - Get: "GET", - Delete: "DELETE", - Patch: "PATCH", -} as const; diff --git a/src/api/types/WebhookRuleActionDto.ts b/src/api/types/WebhookRuleActionDto.ts deleted file mode 100644 index 282bed3..0000000 --- a/src/api/types/WebhookRuleActionDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface WebhookRuleActionDto { - /** The url to the webhook. `non-empty` */ - url: string; - /** The type of the request. */ - method: Squidex.WebhookMethod; - /** Leave it empty to use the full event as body. */ - payload?: string; - /** The mime type of the payload. */ - payloadType?: string; - /** The message headers in the format '[Key]=[Value]', one entry per line. */ - headers?: string; - /** The shared secret that is used to calculate the payload signature. */ - sharedSecret?: string; -} diff --git a/src/api/types/WorkflowDto.ts b/src/api/types/WorkflowDto.ts deleted file mode 100644 index 2103507..0000000 --- a/src/api/types/WorkflowDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface WorkflowDto extends Squidex.Resource { - /** The workflow id. */ - id: string; - /** The name of the workflow. */ - name?: string; - /** The workflow steps. */ - steps: Record; - /** The schema ids. */ - schemaIds?: string[]; - /** The initial step. */ - initial: string; -} diff --git a/src/api/types/WorkflowStepDto.ts b/src/api/types/WorkflowStepDto.ts deleted file mode 100644 index 4744e89..0000000 --- a/src/api/types/WorkflowStepDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface WorkflowStepDto { - /** The transitions. */ - transitions?: Record; - /** The optional color. */ - color?: string; - /** True if the content should be validated when moving to this step. */ - validate?: boolean; - /** Indicates if updates should not be allowed. */ - noUpdate?: boolean; - /** Optional expression that must evaluate to true when you want to prevent updates. */ - noUpdateExpression?: string; - /** Optional list of roles to restrict the updates for users with these roles. */ - noUpdateRoles?: string[]; -} diff --git a/src/api/types/WorkflowTransitionDto.ts b/src/api/types/WorkflowTransitionDto.ts deleted file mode 100644 index 454db49..0000000 --- a/src/api/types/WorkflowTransitionDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface WorkflowTransitionDto { - /** The optional expression. */ - expression?: string; - /** The optional restricted role. */ - roles?: string[]; -} diff --git a/src/api/types/WorkflowsDto.ts b/src/api/types/WorkflowsDto.ts deleted file mode 100644 index 74559bb..0000000 --- a/src/api/types/WorkflowsDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Squidex from ".."; - -export interface WorkflowsDto extends Squidex.Resource { - /** The workflow. */ - items: Squidex.WorkflowDto[]; - /** The errros that should be fixed. */ - errors: string[]; -} diff --git a/src/api/types/index.ts b/src/api/types/index.ts deleted file mode 100644 index de1c0d5..0000000 --- a/src/api/types/index.ts +++ /dev/null @@ -1,176 +0,0 @@ -export * from "./AssignContributorDto"; -export * from "./AddFieldDto"; -export * from "./ReorderFieldsDto"; -export * from "./UpdateFieldDto"; -export * from "./SchemaScriptsDto"; -export * from "./CreateRuleDto"; -export * from "./ChangePlanDto"; -export * from "./QueryDto"; -export * from "./BulkUpdateContentsDto"; -export * from "./UpsertCommentDto"; -export * from "./ErrorDto"; -export * from "./UserProperty"; -export * from "./UpdateSettingDto"; -export * from "./UsersDto"; -export * from "./UserDto"; -export * from "./Resource"; -export * from "./ResourceLink"; -export * from "./ResourcesDto"; -export * from "./TranslationDto"; -export * from "./TranslationStatus"; -export * from "./TemplatesDto"; -export * from "./TemplateDto"; -export * from "./TemplateDetailsDto"; -export * from "./ContributorsDto"; -export * from "./ContributorDto"; -export * from "./ContributorsMetadata"; -export * from "./TeamDto"; -export * from "./LogDownloadDto"; -export * from "./CallsUsageDtoDto"; -export * from "./CallsUsagePerDateDto"; -export * from "./CurrentStorageDto"; -export * from "./StorageUsagePerDateDto"; -export * from "./SearchResultDto"; -export * from "./SearchResultType"; -export * from "./SchemaDto"; -export * from "./SchemaType"; -export * from "./SchemaPropertiesDto"; -export * from "./FieldRuleDto"; -export * from "./FieldRuleAction"; -export * from "./FieldDto"; -export * from "./FieldPropertiesDto"; -export * from "./ArrayFieldPropertiesDto"; -export * from "./ArrayCalculatedDefaultValue"; -export * from "./AssetsFieldPropertiesDto"; -export * from "./AssetPreviewMode"; -export * from "./LocalizedValueOfReadonlyListOfString"; -export * from "./AssetType"; -export * from "./BooleanFieldPropertiesDto"; -export * from "./LocalizedValueOfNullableBoolean"; -export * from "./BooleanFieldEditor"; -export * from "./ComponentFieldPropertiesDto"; -export * from "./ComponentsFieldPropertiesDto"; -export * from "./DateTimeFieldPropertiesDto"; -export * from "./LocalizedValueOfNullableInstant"; -export * from "./DateTimeFieldEditor"; -export * from "./DateTimeCalculatedDefaultValue"; -export * from "./GeolocationFieldPropertiesDto"; -export * from "./GeolocationFieldEditor"; -export * from "./JsonFieldPropertiesDto"; -export * from "./NumberFieldPropertiesDto"; -export * from "./LocalizedValueOfNullableDouble"; -export * from "./NumberFieldEditor"; -export * from "./ReferencesFieldPropertiesDto"; -export * from "./ReferencesFieldEditor"; -export * from "./StringFieldPropertiesDto"; -export * from "./LocalizedValueOfString"; -export * from "./StringContentType"; -export * from "./StringFieldEditor"; -export * from "./TagsFieldPropertiesDto"; -export * from "./TagsFieldEditor"; -export * from "./UiFieldPropertiesDto"; -export * from "./UiFieldEditor"; -export * from "./NestedFieldDto"; -export * from "./SchemasDto"; -export * from "./UpsertSchemaDto"; -export * from "./UpsertSchemaFieldDto"; -export * from "./UpsertSchemaNestedFieldDto"; -export * from "./ConfigurePreviewUrlsDto"; -export * from "./RuleElementDto"; -export * from "./RuleElementPropertyDto"; -export * from "./RuleFieldEditor"; -export * from "./RulesDto"; -export * from "./RuleDto"; -export * from "./RuleTriggerDto"; -export * from "./AssetChangedRuleTriggerDto"; -export * from "./CommentRuleTriggerDto"; -export * from "./ContentChangedRuleTriggerDto"; -export * from "./SchemaCondition"; -export * from "./ManualRuleTriggerDto"; -export * from "./SchemaChangedRuleTriggerDto"; -export * from "./UsageRuleTriggerDto"; -export * from "./RuleActionDto"; -export * from "./AlgoliaRuleActionDto"; -export * from "./AzureQueueRuleActionDto"; -export * from "./CommentRuleActionDto"; -export * from "./CreateContentRuleActionDto"; -export * from "./DeepDetectRuleActionDto"; -export * from "./DiscourseRuleActionDto"; -export * from "./ElasticSearchRuleActionDto"; -export * from "./EmailRuleActionDto"; -export * from "./FastlyRuleActionDto"; -export * from "./MediumRuleActionDto"; -export * from "./NotificationRuleActionDto"; -export * from "./OpenSearchRuleActionDto"; -export * from "./PrerenderRuleActionDto"; -export * from "./ScriptRuleActionDto"; -export * from "./SignalRRuleActionDto"; -export * from "./ActionTypeEnum"; -export * from "./SlackRuleActionDto"; -export * from "./TweetRuleActionDto"; -export * from "./TypesenseRuleActionDto"; -export * from "./WebhookRuleActionDto"; -export * from "./WebhookMethod"; -export * from "./SimulatedRuleEventsDto"; -export * from "./SimulatedRuleEventDto"; -export * from "./SkipReason"; -export * from "./RuleEventsDto"; -export * from "./RuleEventDto"; -export * from "./RuleResult"; -export * from "./RuleJobResult"; -export * from "./PlansDto"; -export * from "./PlanDto"; -export * from "./ReferralInfo"; -export * from "./PlansLockedReason"; -export * from "./PlanChangedDto"; -export * from "./ExposedValues"; -export * from "./FeaturesDto"; -export * from "./FeatureDto"; -export * from "./LanguageDto"; -export * from "./HistoryEventDto"; -export * from "./EventConsumersDto"; -export * from "./EventConsumerDto"; -export * from "./ContentsDto"; -export * from "./ContentDto"; -export * from "./ContentData"; -export * from "./ContentFieldData"; -export * from "./ScheduleJobDto"; -export * from "./StatusInfoDto"; -export * from "./BulkResultDto"; -export * from "./BulkUpdateContentsJobDto"; -export * from "./QueryJsonDto"; -export * from "./SortNode"; -export * from "./PropertyPath"; -export * from "./SortOrder"; -export * from "./BulkUpdateContentType"; -export * from "./CommentsDto"; -export * from "./CommentDto"; -export * from "./BackupJobsDto"; -export * from "./BackupJobDto"; -export * from "./JobStatus"; -export * from "./RestoreJobDto"; -export * from "./ResizeMode"; -export * from "./ImageFormat"; -export * from "./AssetFoldersDto"; -export * from "./AssetFolderDto"; -export * from "./AssetFolderScope"; -export * from "./AssetsDto"; -export * from "./AssetDto"; -export * from "./AssetMeta"; -export * from "./BulkUpdateAssetsJobDto"; -export * from "./BulkUpdateAssetType"; -export * from "./AssetScriptsDto"; -export * from "./ClientsDto"; -export * from "./ClientDto"; -export * from "./AppLanguagesDto"; -export * from "./AppLanguageDto"; -export * from "./RolesDto"; -export * from "./RoleDto"; -export * from "./AppDto"; -export * from "./AppSettingsDto"; -export * from "./PatternDto"; -export * from "./EditorDto"; -export * from "./WorkflowsDto"; -export * from "./WorkflowDto"; -export * from "./WorkflowStepDto"; -export * from "./WorkflowTransitionDto"; diff --git a/src/core/auth/BasicAuth.ts b/src/core/auth/BasicAuth.ts deleted file mode 100644 index 146df21..0000000 --- a/src/core/auth/BasicAuth.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Base64 } from "js-base64"; - -export interface BasicAuth { - username: string; - password: string; -} - -const BASIC_AUTH_HEADER_PREFIX = /^Basic /i; - -export const BasicAuth = { - toAuthorizationHeader: (basicAuth: BasicAuth | undefined): string | undefined => { - if (basicAuth == null) { - return undefined; - } - const token = Base64.encode(`${basicAuth.username}:${basicAuth.password}`); - return `Basic ${token}`; - }, - fromAuthorizationHeader: (header: string): BasicAuth => { - const credentials = header.replace(BASIC_AUTH_HEADER_PREFIX, ""); - const decoded = Base64.decode(credentials); - const [username, password] = decoded.split(":", 2); - - if (username == null || password == null) { - throw new Error("Invalid basic auth"); - } - return { - username, - password, - }; - }, -}; diff --git a/src/core/auth/BearerToken.ts b/src/core/auth/BearerToken.ts deleted file mode 100644 index fe987fc..0000000 --- a/src/core/auth/BearerToken.ts +++ /dev/null @@ -1,15 +0,0 @@ -export type BearerToken = string; - -const BEARER_AUTH_HEADER_PREFIX = /^Bearer /i; - -export const BearerToken = { - toAuthorizationHeader: (token: BearerToken | undefined): string | undefined => { - if (token == null) { - return undefined; - } - return `Bearer ${token}`; - }, - fromAuthorizationHeader: (header: string): BearerToken => { - return header.replace(BEARER_AUTH_HEADER_PREFIX, "").trim() as BearerToken; - }, -}; diff --git a/src/core/auth/index.ts b/src/core/auth/index.ts deleted file mode 100644 index ee293b3..0000000 --- a/src/core/auth/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { BasicAuth } from "./BasicAuth"; -export { BearerToken } from "./BearerToken"; diff --git a/src/core/fetcher/APIResponse.ts b/src/core/fetcher/APIResponse.ts deleted file mode 100644 index ea838f3..0000000 --- a/src/core/fetcher/APIResponse.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type APIResponse = SuccessfulResponse | FailedResponse; - -export interface SuccessfulResponse { - ok: true; - body: T; -} - -export interface FailedResponse { - ok: false; - error: T; -} diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts deleted file mode 100644 index 6af0fb1..0000000 --- a/src/core/fetcher/Fetcher.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { default as URLSearchParams } from "@ungap/url-search-params"; -import axios, { AxiosAdapter, AxiosError } from "axios"; -import { APIResponse } from "./APIResponse"; - -export type FetchFunction = (args: Fetcher.Args) => Promise>; - -export declare namespace Fetcher { - export interface Args { - url: string; - method: string; - contentType?: string; - headers?: Record; - queryParameters?: URLSearchParams; - body?: unknown; - timeoutMs?: number; - withCredentials?: boolean; - responseType?: "json" | "blob"; - adapter?: AxiosAdapter; - onUploadProgress?: (event: ProgressEvent) => void; - } - - export type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError; - - export interface FailedStatusCodeError { - reason: "status-code"; - statusCode: number; - body: unknown; - } - - export interface NonJsonError { - reason: "non-json"; - statusCode: number; - rawBody: string; - } - - export interface TimeoutError { - reason: "timeout"; - } - - export interface UnknownError { - reason: "unknown"; - errorMessage: string; - } -} - -async function fetcherImpl(args: Fetcher.Args): Promise> { - const headers: Record = {}; - if (args.body !== undefined && args.contentType != null) { - headers["Content-Type"] = args.contentType; - } - - if (args.headers != null) { - for (const [key, value] of Object.entries(args.headers)) { - if (value != null) { - headers[key] = value; - } - } - } - - try { - const response = await axios({ - url: args.url, - params: args.queryParameters, - method: args.method, - headers, - data: args.body, - validateStatus: () => true, - transformResponse: (response) => response, - timeout: args.timeoutMs, - transitional: { - clarifyTimeoutError: true, - }, - withCredentials: args.withCredentials, - adapter: args.adapter, - onUploadProgress: args.onUploadProgress, - maxBodyLength: Infinity, - maxContentLength: Infinity, - responseType: args.responseType ?? "json", - }); - - let body: unknown; - if (args.responseType === "blob") { - body = response.data; - } else if (response.data != null && response.data.length > 0) { - try { - body = JSON.parse(response.data) ?? undefined; - } catch { - return { - ok: false, - error: { - reason: "non-json", - statusCode: response.status, - rawBody: response.data, - }, - }; - } - } - - if (response.status >= 200 && response.status < 400) { - return { - ok: true, - body: body as R, - }; - } else { - return { - ok: false, - error: { - reason: "status-code", - statusCode: response.status, - body, - }, - }; - } - } catch (error) { - if ((error as AxiosError).code === "ETIMEDOUT") { - return { - ok: false, - error: { - reason: "timeout", - }, - }; - } - - return { - ok: false, - error: { - reason: "unknown", - errorMessage: (error as AxiosError).message, - }, - }; - } -} - -export const fetcher: FetchFunction = fetcherImpl; diff --git a/src/core/fetcher/Supplier.ts b/src/core/fetcher/Supplier.ts deleted file mode 100644 index 867c931..0000000 --- a/src/core/fetcher/Supplier.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type Supplier = T | Promise | (() => T | Promise); - -export const Supplier = { - get: async (supplier: Supplier): Promise => { - if (typeof supplier === "function") { - return (supplier as () => T)(); - } else { - return supplier; - } - }, -}; diff --git a/src/core/fetcher/index.ts b/src/core/fetcher/index.ts deleted file mode 100644 index 6becab2..0000000 --- a/src/core/fetcher/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { APIResponse } from "./APIResponse"; -export { fetcher } from "./Fetcher"; -export type { Fetcher, FetchFunction } from "./Fetcher"; -export { Supplier } from "./Supplier"; diff --git a/src/core/form-data-utils/getFormDataContentLength.ts b/src/core/form-data-utils/getFormDataContentLength.ts deleted file mode 100644 index fb2a1a0..0000000 --- a/src/core/form-data-utils/getFormDataContentLength.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { default as FormData } from "form-data"; - -export async function getFormDataContentLength(formData: FormData): Promise { - return new Promise((resolve, reject) => { - formData.getLength((err, length) => { - if (err != null) { - reject(err); - } else { - resolve(length); - } - }); - }); -} diff --git a/src/core/form-data-utils/index.ts b/src/core/form-data-utils/index.ts deleted file mode 100644 index 0ebc6c9..0000000 --- a/src/core/form-data-utils/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { getFormDataContentLength } from "./getFormDataContentLength"; diff --git a/src/core/index.ts b/src/core/index.ts deleted file mode 100644 index c26940d..0000000 --- a/src/core/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./fetcher"; -export * from "./auth"; -export * from "./streaming-fetcher"; -export * from "./form-data-utils"; -export * as serialization from "./schemas"; diff --git a/src/core/schemas/Schema.ts b/src/core/schemas/Schema.ts deleted file mode 100644 index 3211fa4..0000000 --- a/src/core/schemas/Schema.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { SchemaUtils } from "./builders"; -import { MaybePromise } from "./utils/MaybePromise"; - -export type Schema = BaseSchema & SchemaUtils; - -export type inferRaw = S extends Schema ? Raw : never; -export type inferParsed = S extends Schema ? Parsed : never; - -export interface BaseSchema { - parse: (raw: unknown, opts?: SchemaOptions) => MaybePromise>; - json: (parsed: unknown, opts?: SchemaOptions) => MaybePromise>; - getType: () => SchemaType | Promise; -} - -export const SchemaType = { - DATE: "date", - ENUM: "enum", - LIST: "list", - STRING_LITERAL: "stringLiteral", - OBJECT: "object", - ANY: "any", - BOOLEAN: "boolean", - NUMBER: "number", - STRING: "string", - UNKNOWN: "unknown", - RECORD: "record", - SET: "set", - UNION: "union", - UNDISCRIMINATED_UNION: "undiscriminatedUnion", - OPTIONAL: "optional", -} as const; -export type SchemaType = typeof SchemaType[keyof typeof SchemaType]; - -export type MaybeValid = Valid | Invalid; - -export interface Valid { - ok: true; - value: T; -} - -export interface Invalid { - ok: false; - errors: ValidationError[]; -} - -export interface ValidationError { - path: string[]; - message: string; -} - -export interface SchemaOptions { - /** - * how to handle unrecognized keys in objects - * - * @default "fail" - */ - unrecognizedObjectKeys?: "fail" | "passthrough" | "strip"; - - /** - * whether to fail when an unrecognized discriminant value is - * encountered in a union - * - * @default false - */ - allowUnrecognizedUnionMembers?: boolean; - - /** - * whether to fail when an unrecognized enum value is encountered - * - * @default false - */ - allowUnrecognizedEnumValues?: boolean; - - /** - * whether to allow data that doesn't conform to the schema. - * invalid data is passed through without transformation. - * - * when this is enabled, .parse() and .json() will always - * return `ok: true`. `.parseOrThrow()` and `.jsonOrThrow()` - * will never fail. - * - * @default false - */ - skipValidation?: boolean; - - /** - * each validation failure contains a "path" property, which is - * the breadcrumbs to the offending node in the JSON. you can supply - * a prefix that is prepended to all the errors' paths. this can be - * helpful for zurg's internal debug logging. - */ - breadcrumbsPrefix?: string[]; -} diff --git a/src/core/schemas/builders/date/date.ts b/src/core/schemas/builders/date/date.ts deleted file mode 100644 index b70f24b..0000000 --- a/src/core/schemas/builders/date/date.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { BaseSchema, Schema, SchemaType } from "../../Schema"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; -import { maybeSkipValidation } from "../../utils/maybeSkipValidation"; -import { getSchemaUtils } from "../schema-utils"; - -// https://stackoverflow.com/questions/12756159/regex-and-iso8601-formatted-datetime -const ISO_8601_REGEX = - /^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/; - -export function date(): Schema { - const baseSchema: BaseSchema = { - parse: (raw, { breadcrumbsPrefix = [] } = {}) => { - if (typeof raw !== "string") { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(raw, "string"), - }, - ], - }; - } - if (!ISO_8601_REGEX.test(raw)) { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(raw, "ISO 8601 date string"), - }, - ], - }; - } - return { - ok: true, - value: new Date(raw), - }; - }, - json: (date, { breadcrumbsPrefix = [] } = {}) => { - if (date instanceof Date) { - return { - ok: true, - value: date.toISOString(), - }; - } else { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(date, "Date object"), - }, - ], - }; - } - }, - getType: () => SchemaType.DATE, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - }; -} diff --git a/src/core/schemas/builders/date/index.ts b/src/core/schemas/builders/date/index.ts deleted file mode 100644 index 187b290..0000000 --- a/src/core/schemas/builders/date/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { date } from "./date"; diff --git a/src/core/schemas/builders/enum/enum.ts b/src/core/schemas/builders/enum/enum.ts deleted file mode 100644 index c1e24d6..0000000 --- a/src/core/schemas/builders/enum/enum.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Schema, SchemaType } from "../../Schema"; -import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; - -export function enum_(values: E): Schema { - const validValues = new Set(values); - - const schemaCreator = createIdentitySchemaCreator( - SchemaType.ENUM, - (value, { allowUnrecognizedEnumValues, breadcrumbsPrefix = [] } = {}) => { - if (typeof value !== "string") { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "string"), - }, - ], - }; - } - - if (!validValues.has(value) && !allowUnrecognizedEnumValues) { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "enum"), - }, - ], - }; - } - - return { - ok: true, - value: value as U, - }; - } - ); - - return schemaCreator(); -} diff --git a/src/core/schemas/builders/enum/index.ts b/src/core/schemas/builders/enum/index.ts deleted file mode 100644 index fe6faed..0000000 --- a/src/core/schemas/builders/enum/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { enum_ } from "./enum"; diff --git a/src/core/schemas/builders/index.ts b/src/core/schemas/builders/index.ts deleted file mode 100644 index 050cd2c..0000000 --- a/src/core/schemas/builders/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -export * from "./date"; -export * from "./enum"; -export * from "./lazy"; -export * from "./list"; -export * from "./literals"; -export * from "./object"; -export * from "./object-like"; -export * from "./primitives"; -export * from "./record"; -export * from "./schema-utils"; -export * from "./set"; -export * from "./undiscriminated-union"; -export * from "./union"; diff --git a/src/core/schemas/builders/lazy/index.ts b/src/core/schemas/builders/lazy/index.ts deleted file mode 100644 index 77420fb..0000000 --- a/src/core/schemas/builders/lazy/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { lazy } from "./lazy"; -export type { SchemaGetter } from "./lazy"; -export { lazyObject } from "./lazyObject"; diff --git a/src/core/schemas/builders/lazy/lazy.ts b/src/core/schemas/builders/lazy/lazy.ts deleted file mode 100644 index a665472..0000000 --- a/src/core/schemas/builders/lazy/lazy.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { BaseSchema, Schema } from "../../Schema"; -import { getSchemaUtils } from "../schema-utils"; - -export type SchemaGetter> = () => SchemaType | Promise; - -export function lazy(getter: SchemaGetter>): Schema { - const baseSchema = constructLazyBaseSchema(getter); - return { - ...baseSchema, - ...getSchemaUtils(baseSchema), - }; -} - -export function constructLazyBaseSchema( - getter: SchemaGetter> -): BaseSchema { - return { - parse: async (raw, opts) => (await getMemoizedSchema(getter)).parse(raw, opts), - json: async (parsed, opts) => (await getMemoizedSchema(getter)).json(parsed, opts), - getType: async () => (await getMemoizedSchema(getter)).getType(), - }; -} - -type MemoizedGetter> = SchemaGetter & { __zurg_memoized?: SchemaType }; - -export async function getMemoizedSchema>( - getter: SchemaGetter -): Promise { - const castedGetter = getter as MemoizedGetter; - if (castedGetter.__zurg_memoized == null) { - castedGetter.__zurg_memoized = await getter(); - } - return castedGetter.__zurg_memoized; -} diff --git a/src/core/schemas/builders/lazy/lazyObject.ts b/src/core/schemas/builders/lazy/lazyObject.ts deleted file mode 100644 index e48c016..0000000 --- a/src/core/schemas/builders/lazy/lazyObject.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { getObjectUtils } from "../object"; -import { getObjectLikeUtils } from "../object-like"; -import { BaseObjectSchema, ObjectSchema } from "../object/types"; -import { getSchemaUtils } from "../schema-utils"; -import { constructLazyBaseSchema, getMemoizedSchema, SchemaGetter } from "./lazy"; - -export function lazyObject(getter: SchemaGetter>): ObjectSchema { - const baseSchema: BaseObjectSchema = { - ...constructLazyBaseSchema(getter), - _getRawProperties: async () => (await getMemoizedSchema(getter))._getRawProperties(), - _getParsedProperties: async () => (await getMemoizedSchema(getter))._getParsedProperties(), - }; - - return { - ...baseSchema, - ...getSchemaUtils(baseSchema), - ...getObjectLikeUtils(baseSchema), - ...getObjectUtils(baseSchema), - }; -} diff --git a/src/core/schemas/builders/list/index.ts b/src/core/schemas/builders/list/index.ts deleted file mode 100644 index 25f4bcc..0000000 --- a/src/core/schemas/builders/list/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { list } from "./list"; diff --git a/src/core/schemas/builders/list/list.ts b/src/core/schemas/builders/list/list.ts deleted file mode 100644 index b333321..0000000 --- a/src/core/schemas/builders/list/list.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { BaseSchema, MaybeValid, Schema, SchemaType, ValidationError } from "../../Schema"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; -import { MaybePromise } from "../../utils/MaybePromise"; -import { maybeSkipValidation } from "../../utils/maybeSkipValidation"; -import { getSchemaUtils } from "../schema-utils"; - -export function list(schema: Schema): Schema { - const baseSchema: BaseSchema = { - parse: async (raw, opts) => - validateAndTransformArray(raw, (item, index) => - schema.parse(item, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `[${index}]`], - }) - ), - json: (parsed, opts) => - validateAndTransformArray(parsed, (item, index) => - schema.json(item, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `[${index}]`], - }) - ), - getType: () => SchemaType.LIST, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - }; -} - -async function validateAndTransformArray( - value: unknown, - transformItem: (item: Raw, index: number) => MaybePromise> -): Promise> { - if (!Array.isArray(value)) { - return { - ok: false, - errors: [ - { - message: getErrorMessageForIncorrectType(value, "list"), - path: [], - }, - ], - }; - } - - const maybeValidItems = await Promise.all(value.map((item, index) => transformItem(item, index))); - - return maybeValidItems.reduce>( - (acc, item) => { - if (acc.ok && item.ok) { - return { - ok: true, - value: [...acc.value, item.value], - }; - } - - const errors: ValidationError[] = []; - if (!acc.ok) { - errors.push(...acc.errors); - } - if (!item.ok) { - errors.push(...item.errors); - } - - return { - ok: false, - errors, - }; - }, - { ok: true, value: [] } - ); -} diff --git a/src/core/schemas/builders/literals/index.ts b/src/core/schemas/builders/literals/index.ts deleted file mode 100644 index a4cd05c..0000000 --- a/src/core/schemas/builders/literals/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { stringLiteral } from "./stringLiteral"; diff --git a/src/core/schemas/builders/literals/stringLiteral.ts b/src/core/schemas/builders/literals/stringLiteral.ts deleted file mode 100644 index 3939b76..0000000 --- a/src/core/schemas/builders/literals/stringLiteral.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Schema, SchemaType } from "../../Schema"; -import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; - -export function stringLiteral(literal: V): Schema { - const schemaCreator = createIdentitySchemaCreator( - SchemaType.STRING_LITERAL, - (value, { breadcrumbsPrefix = [] } = {}) => { - if (value === literal) { - return { - ok: true, - value: literal, - }; - } else { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, `"${literal}"`), - }, - ], - }; - } - } - ); - - return schemaCreator(); -} diff --git a/src/core/schemas/builders/object-like/getObjectLikeUtils.ts b/src/core/schemas/builders/object-like/getObjectLikeUtils.ts deleted file mode 100644 index 270ea17..0000000 --- a/src/core/schemas/builders/object-like/getObjectLikeUtils.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { BaseSchema } from "../../Schema"; -import { filterObject } from "../../utils/filterObject"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; -import { isPlainObject } from "../../utils/isPlainObject"; -import { getSchemaUtils } from "../schema-utils"; -import { ObjectLikeSchema, ObjectLikeUtils } from "./types"; - -export function getObjectLikeUtils(schema: BaseSchema): ObjectLikeUtils { - return { - withParsedProperties: (properties) => withParsedProperties(schema, properties), - }; -} - -/** - * object-like utils are defined in one file to resolve issues with circular imports - */ - -export function withParsedProperties( - objectLike: BaseSchema, - properties: { [K in keyof Properties]: Properties[K] | ((parsed: ParsedObjectShape) => Properties[K]) } -): ObjectLikeSchema { - const objectSchema: BaseSchema = { - parse: async (raw, opts) => { - const parsedObject = await objectLike.parse(raw, opts); - if (!parsedObject.ok) { - return parsedObject; - } - - const additionalProperties = Object.entries(properties).reduce>( - (processed, [key, value]) => { - return { - ...processed, - [key]: typeof value === "function" ? value(parsedObject.value) : value, - }; - }, - {} - ); - - return { - ok: true, - value: { - ...parsedObject.value, - ...(additionalProperties as Properties), - }, - }; - }, - - json: (parsed, opts) => { - if (!isPlainObject(parsed)) { - return { - ok: false, - errors: [ - { - path: opts?.breadcrumbsPrefix ?? [], - message: getErrorMessageForIncorrectType(parsed, "object"), - }, - ], - }; - } - - // strip out added properties - const addedPropertyKeys = new Set(Object.keys(properties)); - const parsedWithoutAddedProperties = filterObject( - parsed, - Object.keys(parsed).filter((key) => !addedPropertyKeys.has(key)) - ); - - return objectLike.json(parsedWithoutAddedProperties as ParsedObjectShape, opts); - }, - - getType: () => objectLike.getType(), - }; - - return { - ...objectSchema, - ...getSchemaUtils(objectSchema), - ...getObjectLikeUtils(objectSchema), - }; -} diff --git a/src/core/schemas/builders/object-like/index.ts b/src/core/schemas/builders/object-like/index.ts deleted file mode 100644 index c342e72..0000000 --- a/src/core/schemas/builders/object-like/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { getObjectLikeUtils, withParsedProperties } from "./getObjectLikeUtils"; -export type { ObjectLikeSchema, ObjectLikeUtils } from "./types"; diff --git a/src/core/schemas/builders/object-like/types.ts b/src/core/schemas/builders/object-like/types.ts deleted file mode 100644 index 75b3698..0000000 --- a/src/core/schemas/builders/object-like/types.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseSchema, Schema } from "../../Schema"; - -export type ObjectLikeSchema = Schema & - BaseSchema & - ObjectLikeUtils; - -export interface ObjectLikeUtils { - withParsedProperties: >(properties: { - [K in keyof T]: T[K] | ((parsed: Parsed) => T[K]); - }) => ObjectLikeSchema; -} diff --git a/src/core/schemas/builders/object/index.ts b/src/core/schemas/builders/object/index.ts deleted file mode 100644 index e6db5b5..0000000 --- a/src/core/schemas/builders/object/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -export { getObjectUtils, object } from "./object"; -export { isProperty, property } from "./property"; -export type { Property } from "./property"; -export type { - BaseObjectSchema, - inferObjectSchemaFromPropertySchemas, - inferParsedObject, - inferParsedObjectFromPropertySchemas, - inferParsedPropertySchema, - inferRawKey, - inferRawObject, - inferRawObjectFromPropertySchemas, - inferRawPropertySchema, - ObjectSchema, - ObjectUtils, - PropertySchemas, -} from "./types"; diff --git a/src/core/schemas/builders/object/object.ts b/src/core/schemas/builders/object/object.ts deleted file mode 100644 index 4abadfb..0000000 --- a/src/core/schemas/builders/object/object.ts +++ /dev/null @@ -1,333 +0,0 @@ -import { MaybeValid, Schema, SchemaType, ValidationError } from "../../Schema"; -import { entries } from "../../utils/entries"; -import { filterObject } from "../../utils/filterObject"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; -import { isPlainObject } from "../../utils/isPlainObject"; -import { keys } from "../../utils/keys"; -import { MaybePromise } from "../../utils/MaybePromise"; -import { maybeSkipValidation } from "../../utils/maybeSkipValidation"; -import { partition } from "../../utils/partition"; -import { getObjectLikeUtils } from "../object-like"; -import { getSchemaUtils } from "../schema-utils"; -import { isProperty } from "./property"; -import { - BaseObjectSchema, - inferObjectSchemaFromPropertySchemas, - inferParsedObjectFromPropertySchemas, - inferRawObjectFromPropertySchemas, - ObjectSchema, - ObjectUtils, - PropertySchemas, -} from "./types"; - -interface ObjectPropertyWithRawKey { - rawKey: string; - parsedKey: string; - valueSchema: Schema; -} - -export function object>( - schemas: T -): inferObjectSchemaFromPropertySchemas { - const baseSchema: BaseObjectSchema< - inferRawObjectFromPropertySchemas, - inferParsedObjectFromPropertySchemas - > = { - _getRawProperties: () => - Promise.resolve( - Object.entries(schemas).map(([parsedKey, propertySchema]) => - isProperty(propertySchema) ? propertySchema.rawKey : parsedKey - ) as unknown as (keyof inferRawObjectFromPropertySchemas)[] - ), - _getParsedProperties: () => - Promise.resolve(keys(schemas) as unknown as (keyof inferParsedObjectFromPropertySchemas)[]), - - parse: async (raw, opts) => { - const rawKeyToProperty: Record = {}; - const requiredKeys: string[] = []; - - for (const [parsedKey, schemaOrObjectProperty] of entries(schemas)) { - const rawKey = isProperty(schemaOrObjectProperty) ? schemaOrObjectProperty.rawKey : parsedKey; - const valueSchema: Schema = isProperty(schemaOrObjectProperty) - ? schemaOrObjectProperty.valueSchema - : schemaOrObjectProperty; - - const property: ObjectPropertyWithRawKey = { - rawKey, - parsedKey: parsedKey as string, - valueSchema, - }; - - rawKeyToProperty[rawKey] = property; - - if (await isSchemaRequired(valueSchema)) { - requiredKeys.push(rawKey); - } - } - - return validateAndTransformObject({ - value: raw, - requiredKeys, - getProperty: (rawKey) => { - const property = rawKeyToProperty[rawKey]; - if (property == null) { - return undefined; - } - return { - transformedKey: property.parsedKey, - transform: (propertyValue) => - property.valueSchema.parse(propertyValue, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), rawKey], - }), - }; - }, - unrecognizedObjectKeys: opts?.unrecognizedObjectKeys, - skipValidation: opts?.skipValidation, - breadcrumbsPrefix: opts?.breadcrumbsPrefix, - }); - }, - - json: async (parsed, opts) => { - const requiredKeys: string[] = []; - - for (const [parsedKey, schemaOrObjectProperty] of entries(schemas)) { - const valueSchema: Schema = isProperty(schemaOrObjectProperty) - ? schemaOrObjectProperty.valueSchema - : schemaOrObjectProperty; - - if (await isSchemaRequired(valueSchema)) { - requiredKeys.push(parsedKey as string); - } - } - - return validateAndTransformObject({ - value: parsed, - requiredKeys, - getProperty: ( - parsedKey - ): - | { transformedKey: string; transform: (propertyValue: unknown) => MaybePromise> } - | undefined => { - const property = schemas[parsedKey as keyof T]; - - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (property == null) { - return undefined; - } - - if (isProperty(property)) { - return { - transformedKey: property.rawKey, - transform: (propertyValue) => - property.valueSchema.json(propertyValue, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), parsedKey], - }), - }; - } else { - return { - transformedKey: parsedKey, - transform: (propertyValue) => - property.json(propertyValue, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), parsedKey], - }), - }; - } - }, - unrecognizedObjectKeys: opts?.unrecognizedObjectKeys, - skipValidation: opts?.skipValidation, - breadcrumbsPrefix: opts?.breadcrumbsPrefix, - }); - }, - - getType: () => SchemaType.OBJECT, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - ...getObjectLikeUtils(baseSchema), - ...getObjectUtils(baseSchema), - }; -} - -async function validateAndTransformObject({ - value, - requiredKeys, - getProperty, - unrecognizedObjectKeys = "fail", - skipValidation = false, - breadcrumbsPrefix = [], -}: { - value: unknown; - requiredKeys: string[]; - getProperty: ( - preTransformedKey: string - ) => { transformedKey: string; transform: (propertyValue: unknown) => MaybePromise> } | undefined; - unrecognizedObjectKeys: "fail" | "passthrough" | "strip" | undefined; - skipValidation: boolean | undefined; - breadcrumbsPrefix: string[] | undefined; -}): Promise> { - if (!isPlainObject(value)) { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "object"), - }, - ], - }; - } - - const missingRequiredKeys = new Set(requiredKeys); - const errors: ValidationError[] = []; - const transformed: Record = {}; - - for (const [preTransformedKey, preTransformedItemValue] of Object.entries(value)) { - const property = getProperty(preTransformedKey); - - if (property != null) { - missingRequiredKeys.delete(preTransformedKey); - - const value = await property.transform(preTransformedItemValue); - if (value.ok) { - transformed[property.transformedKey] = value.value; - } else { - transformed[preTransformedKey] = preTransformedItemValue; - errors.push(...value.errors); - } - } else { - switch (unrecognizedObjectKeys) { - case "fail": - errors.push({ - path: [...breadcrumbsPrefix, preTransformedKey], - message: `Unexpected key "${preTransformedKey}"`, - }); - break; - case "strip": - break; - case "passthrough": - transformed[preTransformedKey] = preTransformedItemValue; - break; - } - } - } - - errors.push( - ...requiredKeys - .filter((key) => missingRequiredKeys.has(key)) - .map((key) => ({ - path: breadcrumbsPrefix, - message: `Missing required key "${key}"`, - })) - ); - - if (errors.length === 0 || skipValidation) { - return { - ok: true, - value: transformed as Transformed, - }; - } else { - return { - ok: false, - errors, - }; - } -} - -export function getObjectUtils(schema: BaseObjectSchema): ObjectUtils { - return { - extend: (extension: ObjectSchema) => { - const baseSchema: BaseObjectSchema = { - _getParsedProperties: async () => [ - ...(await schema._getParsedProperties()), - ...(await extension._getParsedProperties()), - ], - _getRawProperties: async () => [ - ...(await schema._getRawProperties()), - ...(await extension._getRawProperties()), - ], - parse: async (raw, opts) => { - return validateAndTransformExtendedObject({ - extensionKeys: await extension._getRawProperties(), - value: raw, - transformBase: (rawBase) => schema.parse(rawBase, opts), - transformExtension: (rawExtension) => extension.parse(rawExtension, opts), - }); - }, - json: async (parsed, opts) => { - return validateAndTransformExtendedObject({ - extensionKeys: await extension._getParsedProperties(), - value: parsed, - transformBase: (parsedBase) => schema.json(parsedBase, opts), - transformExtension: (parsedExtension) => extension.json(parsedExtension, opts), - }); - }, - getType: () => SchemaType.OBJECT, - }; - - return { - ...baseSchema, - ...getSchemaUtils(baseSchema), - ...getObjectLikeUtils(baseSchema), - ...getObjectUtils(baseSchema), - }; - }, - }; -} - -async function validateAndTransformExtendedObject({ - extensionKeys, - value, - transformBase, - transformExtension, -}: { - extensionKeys: (keyof PreTransformedExtension)[]; - value: unknown; - transformBase: (value: unknown) => MaybePromise>; - transformExtension: (value: unknown) => MaybePromise>; -}): Promise> { - const extensionPropertiesSet = new Set(extensionKeys); - const [extensionProperties, baseProperties] = partition(keys(value), (key) => - extensionPropertiesSet.has(key as keyof PreTransformedExtension) - ); - - const transformedBase = await transformBase(filterObject(value, baseProperties)); - const transformedExtension = await transformExtension(filterObject(value, extensionProperties)); - - if (transformedBase.ok && transformedExtension.ok) { - return { - ok: true, - value: { - ...transformedBase.value, - ...transformedExtension.value, - }, - }; - } else { - return { - ok: false, - errors: [ - ...(transformedBase.ok ? [] : transformedBase.errors), - ...(transformedExtension.ok ? [] : transformedExtension.errors), - ], - }; - } -} - -async function isSchemaRequired(schema: Schema): Promise { - return !(await isSchemaOptional(schema)); -} - -async function isSchemaOptional(schema: Schema): Promise { - switch (await schema.getType()) { - case SchemaType.ANY: - case SchemaType.UNKNOWN: - case SchemaType.OPTIONAL: - return true; - default: - return false; - } -} diff --git a/src/core/schemas/builders/object/property.ts b/src/core/schemas/builders/object/property.ts deleted file mode 100644 index d245c4b..0000000 --- a/src/core/schemas/builders/object/property.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Schema } from "../../Schema"; - -export function property( - rawKey: RawKey, - valueSchema: Schema -): Property { - return { - rawKey, - valueSchema, - isProperty: true, - }; -} - -export interface Property { - rawKey: RawKey; - valueSchema: Schema; - isProperty: true; -} - -export function isProperty>(maybeProperty: unknown): maybeProperty is O { - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - return (maybeProperty as O).isProperty; -} diff --git a/src/core/schemas/builders/object/types.ts b/src/core/schemas/builders/object/types.ts deleted file mode 100644 index 17cff4f..0000000 --- a/src/core/schemas/builders/object/types.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { BaseSchema, inferParsed, inferRaw, Schema } from "../../Schema"; -import { addQuestionMarksToNullableProperties } from "../../utils/addQuestionMarksToNullableProperties"; -import { ObjectLikeUtils } from "../object-like"; -import { SchemaUtils } from "../schema-utils"; -import { Property } from "./property"; - -export type ObjectSchema = BaseObjectSchema & - ObjectLikeUtils & - ObjectUtils & - SchemaUtils; - -export interface BaseObjectSchema extends BaseSchema { - _getRawProperties: () => Promise<(keyof Raw)[]>; - _getParsedProperties: () => Promise<(keyof Parsed)[]>; -} - -export interface ObjectUtils { - extend: ( - schemas: ObjectSchema - ) => ObjectSchema; -} - -export type inferRawObject> = O extends ObjectSchema ? Raw : never; - -export type inferParsedObject> = O extends ObjectSchema - ? Parsed - : never; - -export type inferObjectSchemaFromPropertySchemas> = ObjectSchema< - inferRawObjectFromPropertySchemas, - inferParsedObjectFromPropertySchemas ->; - -export type inferRawObjectFromPropertySchemas> = - addQuestionMarksToNullableProperties<{ - [ParsedKey in keyof T as inferRawKey]: inferRawPropertySchema; - }>; - -export type inferParsedObjectFromPropertySchemas> = - addQuestionMarksToNullableProperties<{ - [K in keyof T]: inferParsedPropertySchema; - }>; - -export type PropertySchemas = Record< - ParsedKeys, - Property | Schema ->; - -export type inferRawPropertySchema

| Schema> = P extends Property< - any, - infer Raw, - any -> - ? Raw - : P extends Schema - ? inferRaw

- : never; - -export type inferParsedPropertySchema

| Schema> = P extends Property< - any, - any, - infer Parsed -> - ? Parsed - : P extends Schema - ? inferParsed

- : never; - -export type inferRawKey< - ParsedKey extends string | number | symbol, - P extends Property | Schema -> = P extends Property ? Raw : ParsedKey; diff --git a/src/core/schemas/builders/primitives/any.ts b/src/core/schemas/builders/primitives/any.ts deleted file mode 100644 index fcaeb04..0000000 --- a/src/core/schemas/builders/primitives/any.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { SchemaType } from "../../Schema"; -import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; - -export const any = createIdentitySchemaCreator(SchemaType.ANY, (value) => ({ ok: true, value })); diff --git a/src/core/schemas/builders/primitives/boolean.ts b/src/core/schemas/builders/primitives/boolean.ts deleted file mode 100644 index fad6056..0000000 --- a/src/core/schemas/builders/primitives/boolean.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { SchemaType } from "../../Schema"; -import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; - -export const boolean = createIdentitySchemaCreator( - SchemaType.BOOLEAN, - (value, { breadcrumbsPrefix = [] } = {}) => { - if (typeof value === "boolean") { - return { - ok: true, - value, - }; - } else { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "boolean"), - }, - ], - }; - } - } -); diff --git a/src/core/schemas/builders/primitives/index.ts b/src/core/schemas/builders/primitives/index.ts deleted file mode 100644 index 788f941..0000000 --- a/src/core/schemas/builders/primitives/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { any } from "./any"; -export { boolean } from "./boolean"; -export { number } from "./number"; -export { string } from "./string"; -export { unknown } from "./unknown"; diff --git a/src/core/schemas/builders/primitives/number.ts b/src/core/schemas/builders/primitives/number.ts deleted file mode 100644 index c268945..0000000 --- a/src/core/schemas/builders/primitives/number.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { SchemaType } from "../../Schema"; -import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; - -export const number = createIdentitySchemaCreator( - SchemaType.NUMBER, - (value, { breadcrumbsPrefix = [] } = {}) => { - if (typeof value === "number") { - return { - ok: true, - value, - }; - } else { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "number"), - }, - ], - }; - } - } -); diff --git a/src/core/schemas/builders/primitives/string.ts b/src/core/schemas/builders/primitives/string.ts deleted file mode 100644 index 949f1f2..0000000 --- a/src/core/schemas/builders/primitives/string.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { SchemaType } from "../../Schema"; -import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; - -export const string = createIdentitySchemaCreator( - SchemaType.STRING, - (value, { breadcrumbsPrefix = [] } = {}) => { - if (typeof value === "string") { - return { - ok: true, - value, - }; - } else { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "string"), - }, - ], - }; - } - } -); diff --git a/src/core/schemas/builders/primitives/unknown.ts b/src/core/schemas/builders/primitives/unknown.ts deleted file mode 100644 index 4d52495..0000000 --- a/src/core/schemas/builders/primitives/unknown.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { SchemaType } from "../../Schema"; -import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; - -export const unknown = createIdentitySchemaCreator(SchemaType.UNKNOWN, (value) => ({ ok: true, value })); diff --git a/src/core/schemas/builders/record/index.ts b/src/core/schemas/builders/record/index.ts deleted file mode 100644 index 82e25c5..0000000 --- a/src/core/schemas/builders/record/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { record } from "./record"; -export type { BaseRecordSchema, RecordSchema } from "./types"; diff --git a/src/core/schemas/builders/record/record.ts b/src/core/schemas/builders/record/record.ts deleted file mode 100644 index ac1cd22..0000000 --- a/src/core/schemas/builders/record/record.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { MaybeValid, Schema, SchemaType, ValidationError } from "../../Schema"; -import { entries } from "../../utils/entries"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; -import { isPlainObject } from "../../utils/isPlainObject"; -import { MaybePromise } from "../../utils/MaybePromise"; -import { maybeSkipValidation } from "../../utils/maybeSkipValidation"; -import { getSchemaUtils } from "../schema-utils"; -import { BaseRecordSchema, RecordSchema } from "./types"; - -export function record( - keySchema: Schema, - valueSchema: Schema -): RecordSchema { - const baseSchema: BaseRecordSchema = { - parse: async (raw, opts) => { - return validateAndTransformRecord({ - value: raw, - isKeyNumeric: (await keySchema.getType()) === SchemaType.NUMBER, - transformKey: (key) => - keySchema.parse(key, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key} (key)`], - }), - transformValue: (value, key) => - valueSchema.parse(value, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key}`], - }), - breadcrumbsPrefix: opts?.breadcrumbsPrefix, - }); - }, - json: async (parsed, opts) => { - return validateAndTransformRecord({ - value: parsed, - isKeyNumeric: (await keySchema.getType()) === SchemaType.NUMBER, - transformKey: (key) => - keySchema.json(key, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key} (key)`], - }), - transformValue: (value, key) => - valueSchema.json(value, { - ...opts, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key}`], - }), - breadcrumbsPrefix: opts?.breadcrumbsPrefix, - }); - }, - getType: () => SchemaType.RECORD, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - }; -} - -async function validateAndTransformRecord({ - value, - isKeyNumeric, - transformKey, - transformValue, - breadcrumbsPrefix = [], -}: { - value: unknown; - isKeyNumeric: boolean; - transformKey: (key: string | number) => MaybePromise>; - transformValue: (value: unknown, key: string | number) => MaybePromise>; - breadcrumbsPrefix: string[] | undefined; -}): Promise>> { - if (!isPlainObject(value)) { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "object"), - }, - ], - }; - } - - return entries(value).reduce>>>( - async (accPromise, [stringKey, value]) => { - // skip nullish keys - if (value == null) { - return accPromise; - } - - const acc = await accPromise; - - let key: string | number = stringKey; - if (isKeyNumeric) { - const numberKey = stringKey.length > 0 ? Number(stringKey) : NaN; - if (!isNaN(numberKey)) { - key = numberKey; - } - } - const transformedKey = await transformKey(key); - - const transformedValue = await transformValue(value, key); - - if (acc.ok && transformedKey.ok && transformedValue.ok) { - return { - ok: true, - value: { - ...acc.value, - [transformedKey.value]: transformedValue.value, - }, - }; - } - - const errors: ValidationError[] = []; - if (!acc.ok) { - errors.push(...acc.errors); - } - if (!transformedKey.ok) { - errors.push(...transformedKey.errors); - } - if (!transformedValue.ok) { - errors.push(...transformedValue.errors); - } - - return { - ok: false, - errors, - }; - }, - Promise.resolve({ ok: true, value: {} as Record }) - ); -} diff --git a/src/core/schemas/builders/record/types.ts b/src/core/schemas/builders/record/types.ts deleted file mode 100644 index eb82cc7..0000000 --- a/src/core/schemas/builders/record/types.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseSchema } from "../../Schema"; -import { SchemaUtils } from "../schema-utils"; - -export type RecordSchema< - RawKey extends string | number, - RawValue, - ParsedKey extends string | number, - ParsedValue -> = BaseRecordSchema & - SchemaUtils, Record>; - -export type BaseRecordSchema< - RawKey extends string | number, - RawValue, - ParsedKey extends string | number, - ParsedValue -> = BaseSchema, Record>; diff --git a/src/core/schemas/builders/schema-utils/JsonError.ts b/src/core/schemas/builders/schema-utils/JsonError.ts deleted file mode 100644 index 2b89ca0..0000000 --- a/src/core/schemas/builders/schema-utils/JsonError.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ValidationError } from "../../Schema"; -import { stringifyValidationError } from "./stringifyValidationErrors"; - -export class JsonError extends Error { - constructor(public readonly errors: ValidationError[]) { - super(errors.map(stringifyValidationError).join("; ")); - Object.setPrototypeOf(this, JsonError.prototype); - } -} diff --git a/src/core/schemas/builders/schema-utils/ParseError.ts b/src/core/schemas/builders/schema-utils/ParseError.ts deleted file mode 100644 index d056eb4..0000000 --- a/src/core/schemas/builders/schema-utils/ParseError.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ValidationError } from "../../Schema"; -import { stringifyValidationError } from "./stringifyValidationErrors"; - -export class ParseError extends Error { - constructor(public readonly errors: ValidationError[]) { - super(errors.map(stringifyValidationError).join("; ")); - Object.setPrototypeOf(this, ParseError.prototype); - } -} diff --git a/src/core/schemas/builders/schema-utils/getSchemaUtils.ts b/src/core/schemas/builders/schema-utils/getSchemaUtils.ts deleted file mode 100644 index 0c0d379..0000000 --- a/src/core/schemas/builders/schema-utils/getSchemaUtils.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { BaseSchema, Schema, SchemaOptions, SchemaType } from "../../Schema"; -import { JsonError } from "./JsonError"; -import { ParseError } from "./ParseError"; - -export interface SchemaUtils { - optional: () => Schema; - transform: (transformer: SchemaTransformer) => Schema; - parseOrThrow: (raw: unknown, opts?: SchemaOptions) => Promise; - jsonOrThrow: (raw: unknown, opts?: SchemaOptions) => Promise; -} - -export interface SchemaTransformer { - transform: (parsed: Parsed) => Transformed; - untransform: (transformed: any) => Parsed; -} - -export function getSchemaUtils(schema: BaseSchema): SchemaUtils { - return { - optional: () => optional(schema), - transform: (transformer) => transform(schema, transformer), - parseOrThrow: async (raw, opts) => { - const parsed = await schema.parse(raw, opts); - if (parsed.ok) { - return parsed.value; - } - throw new ParseError(parsed.errors); - }, - jsonOrThrow: async (parsed, opts) => { - const raw = await schema.json(parsed, opts); - if (raw.ok) { - return raw.value; - } - throw new JsonError(raw.errors); - }, - }; -} - -/** - * schema utils are defined in one file to resolve issues with circular imports - */ - -export function optional( - schema: BaseSchema -): Schema { - const baseSchema: BaseSchema = { - parse: (raw, opts) => { - if (raw == null) { - return { - ok: true, - value: undefined, - }; - } - return schema.parse(raw, opts); - }, - json: (parsed, opts) => { - if (parsed == null) { - return { - ok: true, - value: null, - }; - } - return schema.json(parsed, opts); - }, - getType: () => SchemaType.OPTIONAL, - }; - - return { - ...baseSchema, - ...getSchemaUtils(baseSchema), - }; -} - -export function transform( - schema: BaseSchema, - transformer: SchemaTransformer -): Schema { - const baseSchema: BaseSchema = { - parse: async (raw, opts) => { - const parsed = await schema.parse(raw, opts); - if (!parsed.ok) { - return parsed; - } - return { - ok: true, - value: transformer.transform(parsed.value), - }; - }, - json: async (transformed, opts) => { - const parsed = await transformer.untransform(transformed); - return schema.json(parsed, opts); - }, - getType: () => schema.getType(), - }; - - return { - ...baseSchema, - ...getSchemaUtils(baseSchema), - }; -} diff --git a/src/core/schemas/builders/schema-utils/index.ts b/src/core/schemas/builders/schema-utils/index.ts deleted file mode 100644 index aa04e05..0000000 --- a/src/core/schemas/builders/schema-utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { getSchemaUtils, optional, transform } from "./getSchemaUtils"; -export type { SchemaUtils } from "./getSchemaUtils"; -export { JsonError } from "./JsonError"; -export { ParseError } from "./ParseError"; diff --git a/src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts b/src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts deleted file mode 100644 index 4160f0a..0000000 --- a/src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ValidationError } from "../../Schema"; - -export function stringifyValidationError(error: ValidationError): string { - if (error.path.length === 0) { - return error.message; - } - return `${error.path.join(" -> ")}: ${error.message}`; -} diff --git a/src/core/schemas/builders/set/index.ts b/src/core/schemas/builders/set/index.ts deleted file mode 100644 index f3310e8..0000000 --- a/src/core/schemas/builders/set/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { set } from "./set"; diff --git a/src/core/schemas/builders/set/set.ts b/src/core/schemas/builders/set/set.ts deleted file mode 100644 index 3113bcb..0000000 --- a/src/core/schemas/builders/set/set.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { BaseSchema, Schema, SchemaType } from "../../Schema"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; -import { maybeSkipValidation } from "../../utils/maybeSkipValidation"; -import { list } from "../list"; -import { getSchemaUtils } from "../schema-utils"; - -export function set(schema: Schema): Schema> { - const listSchema = list(schema); - const baseSchema: BaseSchema> = { - parse: async (raw, opts) => { - const parsedList = await listSchema.parse(raw, opts); - if (parsedList.ok) { - return { - ok: true, - value: new Set(parsedList.value), - }; - } else { - return parsedList; - } - }, - json: async (parsed, opts) => { - if (!(parsed instanceof Set)) { - return { - ok: false, - errors: [ - { - path: opts?.breadcrumbsPrefix ?? [], - message: getErrorMessageForIncorrectType(parsed, "Set"), - }, - ], - }; - } - const jsonList = await listSchema.json([...parsed], opts); - return jsonList; - }, - getType: () => SchemaType.SET, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - }; -} diff --git a/src/core/schemas/builders/undiscriminated-union/index.ts b/src/core/schemas/builders/undiscriminated-union/index.ts deleted file mode 100644 index 75b71cb..0000000 --- a/src/core/schemas/builders/undiscriminated-union/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type { - inferParsedUnidiscriminatedUnionSchema, - inferRawUnidiscriminatedUnionSchema, - UndiscriminatedUnionSchema, -} from "./types"; -export { undiscriminatedUnion } from "./undiscriminatedUnion"; diff --git a/src/core/schemas/builders/undiscriminated-union/types.ts b/src/core/schemas/builders/undiscriminated-union/types.ts deleted file mode 100644 index 43e7108..0000000 --- a/src/core/schemas/builders/undiscriminated-union/types.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { inferParsed, inferRaw, Schema } from "../../Schema"; - -export type UndiscriminatedUnionSchema = Schema< - inferRawUnidiscriminatedUnionSchema, - inferParsedUnidiscriminatedUnionSchema ->; - -export type inferRawUnidiscriminatedUnionSchema = inferRaw; - -export type inferParsedUnidiscriminatedUnionSchema = inferParsed; diff --git a/src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts b/src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts deleted file mode 100644 index 771dc6a..0000000 --- a/src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { BaseSchema, MaybeValid, Schema, SchemaOptions, SchemaType, ValidationError } from "../../Schema"; -import { MaybePromise } from "../../utils/MaybePromise"; -import { maybeSkipValidation } from "../../utils/maybeSkipValidation"; -import { getSchemaUtils } from "../schema-utils"; -import { inferParsedUnidiscriminatedUnionSchema, inferRawUnidiscriminatedUnionSchema } from "./types"; - -export function undiscriminatedUnion, ...Schema[]]>( - schemas: Schemas -): Schema, inferParsedUnidiscriminatedUnionSchema> { - const baseSchema: BaseSchema< - inferRawUnidiscriminatedUnionSchema, - inferParsedUnidiscriminatedUnionSchema - > = { - parse: async (raw, opts) => { - return validateAndTransformUndiscriminatedUnion>( - (schema, opts) => schema.parse(raw, opts), - schemas, - opts - ); - }, - json: async (parsed, opts) => { - return validateAndTransformUndiscriminatedUnion>( - (schema, opts) => schema.json(parsed, opts), - schemas, - opts - ); - }, - getType: () => SchemaType.UNDISCRIMINATED_UNION, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - }; -} - -async function validateAndTransformUndiscriminatedUnion( - transform: (schema: Schema, opts: SchemaOptions) => MaybePromise>, - schemas: Schema[], - opts: SchemaOptions | undefined -): Promise> { - const errors: ValidationError[] = []; - for (const [index, schema] of schemas.entries()) { - const transformed = await transform(schema, { ...opts, skipValidation: false }); - if (transformed.ok) { - return transformed; - } else { - for (const error of transformed.errors) { - errors.push({ - path: error.path, - message: `[Variant ${index}] ${error.message}`, - }); - } - } - } - - return { - ok: false, - errors, - }; -} diff --git a/src/core/schemas/builders/union/discriminant.ts b/src/core/schemas/builders/union/discriminant.ts deleted file mode 100644 index 55065bc..0000000 --- a/src/core/schemas/builders/union/discriminant.ts +++ /dev/null @@ -1,14 +0,0 @@ -export function discriminant( - parsedDiscriminant: ParsedDiscriminant, - rawDiscriminant: RawDiscriminant -): Discriminant { - return { - parsedDiscriminant, - rawDiscriminant, - }; -} - -export interface Discriminant { - parsedDiscriminant: ParsedDiscriminant; - rawDiscriminant: RawDiscriminant; -} diff --git a/src/core/schemas/builders/union/index.ts b/src/core/schemas/builders/union/index.ts deleted file mode 100644 index 85fc008..0000000 --- a/src/core/schemas/builders/union/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -export { discriminant } from "./discriminant"; -export type { Discriminant } from "./discriminant"; -export type { - inferParsedDiscriminant, - inferParsedUnion, - inferRawDiscriminant, - inferRawUnion, - UnionSubtypes, -} from "./types"; -export { union } from "./union"; diff --git a/src/core/schemas/builders/union/types.ts b/src/core/schemas/builders/union/types.ts deleted file mode 100644 index 6f82c86..0000000 --- a/src/core/schemas/builders/union/types.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { inferParsedObject, inferRawObject, ObjectSchema } from "../object"; -import { Discriminant } from "./discriminant"; - -export type UnionSubtypes = { - [K in DiscriminantValues]: ObjectSchema; -}; - -export type inferRawUnion, U extends UnionSubtypes> = { - [K in keyof U]: Record, K> & inferRawObject; -}[keyof U]; - -export type inferParsedUnion, U extends UnionSubtypes> = { - [K in keyof U]: Record, K> & inferParsedObject; -}[keyof U]; - -export type inferRawDiscriminant> = D extends string - ? D - : D extends Discriminant - ? Raw - : never; - -export type inferParsedDiscriminant> = D extends string - ? D - : D extends Discriminant - ? Parsed - : never; diff --git a/src/core/schemas/builders/union/union.ts b/src/core/schemas/builders/union/union.ts deleted file mode 100644 index ed659be..0000000 --- a/src/core/schemas/builders/union/union.ts +++ /dev/null @@ -1,173 +0,0 @@ -import { BaseSchema, MaybeValid, SchemaType } from "../../Schema"; -import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType"; -import { isPlainObject } from "../../utils/isPlainObject"; -import { keys } from "../../utils/keys"; -import { MaybePromise } from "../../utils/MaybePromise"; -import { maybeSkipValidation } from "../../utils/maybeSkipValidation"; -import { enum_ } from "../enum"; -import { ObjectSchema } from "../object"; -import { getObjectLikeUtils, ObjectLikeSchema } from "../object-like"; -import { getSchemaUtils } from "../schema-utils"; -import { Discriminant } from "./discriminant"; -import { inferParsedDiscriminant, inferParsedUnion, inferRawDiscriminant, inferRawUnion, UnionSubtypes } from "./types"; - -export function union, U extends UnionSubtypes>( - discriminant: D, - union: U -): ObjectLikeSchema, inferParsedUnion> { - const rawDiscriminant = - typeof discriminant === "string" ? discriminant : (discriminant.rawDiscriminant as inferRawDiscriminant); - const parsedDiscriminant = - typeof discriminant === "string" - ? discriminant - : (discriminant.parsedDiscriminant as inferParsedDiscriminant); - - const discriminantValueSchema = enum_(keys(union) as string[]); - - const baseSchema: BaseSchema, inferParsedUnion> = { - parse: async (raw, opts) => { - return transformAndValidateUnion({ - value: raw, - discriminant: rawDiscriminant, - transformedDiscriminant: parsedDiscriminant, - transformDiscriminantValue: (discriminantValue) => - discriminantValueSchema.parse(discriminantValue, { - allowUnrecognizedEnumValues: opts?.allowUnrecognizedUnionMembers, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), rawDiscriminant], - }), - getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue], - allowUnrecognizedUnionMembers: opts?.allowUnrecognizedUnionMembers, - transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => - additionalPropertiesSchema.parse(additionalProperties, opts), - breadcrumbsPrefix: opts?.breadcrumbsPrefix, - }); - }, - json: async (parsed, opts) => { - return transformAndValidateUnion({ - value: parsed, - discriminant: parsedDiscriminant, - transformedDiscriminant: rawDiscriminant, - transformDiscriminantValue: (discriminantValue) => - discriminantValueSchema.json(discriminantValue, { - allowUnrecognizedEnumValues: opts?.allowUnrecognizedUnionMembers, - breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), parsedDiscriminant], - }), - getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue], - allowUnrecognizedUnionMembers: opts?.allowUnrecognizedUnionMembers, - transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => - additionalPropertiesSchema.json(additionalProperties, opts), - breadcrumbsPrefix: opts?.breadcrumbsPrefix, - }); - }, - getType: () => SchemaType.UNION, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - ...getObjectLikeUtils(baseSchema), - }; -} - -async function transformAndValidateUnion< - TransformedDiscriminant extends string, - TransformedDiscriminantValue extends string, - TransformedAdditionalProperties ->({ - value, - discriminant, - transformedDiscriminant, - transformDiscriminantValue, - getAdditionalPropertiesSchema, - allowUnrecognizedUnionMembers = false, - transformAdditionalProperties, - breadcrumbsPrefix = [], -}: { - value: unknown; - discriminant: string; - transformedDiscriminant: TransformedDiscriminant; - transformDiscriminantValue: (discriminantValue: unknown) => MaybePromise>; - getAdditionalPropertiesSchema: (discriminantValue: string) => ObjectSchema | undefined; - allowUnrecognizedUnionMembers: boolean | undefined; - transformAdditionalProperties: ( - additionalProperties: unknown, - additionalPropertiesSchema: ObjectSchema - ) => MaybePromise>; - breadcrumbsPrefix: string[] | undefined; -}): Promise< - MaybeValid & TransformedAdditionalProperties> -> { - if (!isPlainObject(value)) { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: getErrorMessageForIncorrectType(value, "object"), - }, - ], - }; - } - - const { [discriminant]: discriminantValue, ...additionalProperties } = value; - - if (discriminantValue == null) { - return { - ok: false, - errors: [ - { - path: breadcrumbsPrefix, - message: `Missing discriminant ("${discriminant}")`, - }, - ], - }; - } - - const transformedDiscriminantValue = await transformDiscriminantValue(discriminantValue); - if (!transformedDiscriminantValue.ok) { - return { - ok: false, - errors: transformedDiscriminantValue.errors, - }; - } - - const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value); - - if (additionalPropertiesSchema == null) { - if (allowUnrecognizedUnionMembers) { - return { - ok: true, - value: { - [transformedDiscriminant]: transformedDiscriminantValue.value, - ...additionalProperties, - } as Record & TransformedAdditionalProperties, - }; - } else { - return { - ok: false, - errors: [ - { - path: [...breadcrumbsPrefix, discriminant], - message: "Unexpected discriminant value", - }, - ], - }; - } - } - - const transformedAdditionalProperties = await transformAdditionalProperties( - additionalProperties, - additionalPropertiesSchema - ); - if (!transformedAdditionalProperties.ok) { - return transformedAdditionalProperties; - } - - return { - ok: true, - value: { - [transformedDiscriminant]: discriminantValue, - ...transformedAdditionalProperties.value, - } as Record & TransformedAdditionalProperties, - }; -} diff --git a/src/core/schemas/index.ts b/src/core/schemas/index.ts deleted file mode 100644 index 5429d8b..0000000 --- a/src/core/schemas/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./builders"; -export type { inferParsed, inferRaw, Schema, SchemaOptions } from "./Schema"; diff --git a/src/core/schemas/utils/MaybePromise.ts b/src/core/schemas/utils/MaybePromise.ts deleted file mode 100644 index 9cd354b..0000000 --- a/src/core/schemas/utils/MaybePromise.ts +++ /dev/null @@ -1 +0,0 @@ -export type MaybePromise = T | Promise; diff --git a/src/core/schemas/utils/addQuestionMarksToNullableProperties.ts b/src/core/schemas/utils/addQuestionMarksToNullableProperties.ts deleted file mode 100644 index 4111d70..0000000 --- a/src/core/schemas/utils/addQuestionMarksToNullableProperties.ts +++ /dev/null @@ -1,15 +0,0 @@ -export type addQuestionMarksToNullableProperties = { - [K in OptionalKeys]?: T[K]; -} & Pick>; - -export type OptionalKeys = { - [K in keyof T]-?: undefined extends T[K] - ? K - : null extends T[K] - ? K - : 1 extends (any extends T[K] ? 0 : 1) - ? never - : K; -}[keyof T]; - -export type RequiredKeys = Exclude>; diff --git a/src/core/schemas/utils/createIdentitySchemaCreator.ts b/src/core/schemas/utils/createIdentitySchemaCreator.ts deleted file mode 100644 index de107cf..0000000 --- a/src/core/schemas/utils/createIdentitySchemaCreator.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { getSchemaUtils } from "../builders/schema-utils"; -import { BaseSchema, MaybeValid, Schema, SchemaOptions, SchemaType } from "../Schema"; -import { maybeSkipValidation } from "./maybeSkipValidation"; - -export function createIdentitySchemaCreator( - schemaType: SchemaType, - validate: (value: unknown, opts?: SchemaOptions) => MaybeValid -): () => Schema { - return () => { - const baseSchema: BaseSchema = { - parse: validate, - json: validate, - getType: () => schemaType, - }; - - return { - ...maybeSkipValidation(baseSchema), - ...getSchemaUtils(baseSchema), - }; - }; -} diff --git a/src/core/schemas/utils/entries.ts b/src/core/schemas/utils/entries.ts deleted file mode 100644 index e122952..0000000 --- a/src/core/schemas/utils/entries.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function entries(object: T): [keyof T, T[keyof T]][] { - return Object.entries(object) as [keyof T, T[keyof T]][]; -} diff --git a/src/core/schemas/utils/filterObject.ts b/src/core/schemas/utils/filterObject.ts deleted file mode 100644 index 2c25a34..0000000 --- a/src/core/schemas/utils/filterObject.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function filterObject(obj: T, keysToInclude: K[]): Pick { - const keysToIncludeSet = new Set(keysToInclude); - return Object.entries(obj).reduce((acc, [key, value]) => { - if (keysToIncludeSet.has(key as K)) { - acc[key as K] = value; - } - return acc; - // eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter - }, {} as Pick); -} diff --git a/src/core/schemas/utils/getErrorMessageForIncorrectType.ts b/src/core/schemas/utils/getErrorMessageForIncorrectType.ts deleted file mode 100644 index 438012d..0000000 --- a/src/core/schemas/utils/getErrorMessageForIncorrectType.ts +++ /dev/null @@ -1,21 +0,0 @@ -export function getErrorMessageForIncorrectType(value: unknown, expectedType: string): string { - return `Expected ${expectedType}. Received ${getTypeAsString(value)}.`; -} - -function getTypeAsString(value: unknown): string { - if (Array.isArray(value)) { - return "list"; - } - if (value === null) { - return "null"; - } - switch (typeof value) { - case "string": - return `"${value}"`; - case "number": - case "boolean": - case "undefined": - return `${value}`; - } - return typeof value; -} diff --git a/src/core/schemas/utils/isPlainObject.ts b/src/core/schemas/utils/isPlainObject.ts deleted file mode 100644 index db82a72..0000000 --- a/src/core/schemas/utils/isPlainObject.ts +++ /dev/null @@ -1,17 +0,0 @@ -// borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js -export function isPlainObject(value: unknown): value is Record { - if (typeof value !== "object" || value === null) { - return false; - } - - if (Object.getPrototypeOf(value) === null) { - return true; - } - - let proto = value; - while (Object.getPrototypeOf(proto) !== null) { - proto = Object.getPrototypeOf(proto); - } - - return Object.getPrototypeOf(value) === proto; -} diff --git a/src/core/schemas/utils/keys.ts b/src/core/schemas/utils/keys.ts deleted file mode 100644 index 0186709..0000000 --- a/src/core/schemas/utils/keys.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function keys(object: T): (keyof T)[] { - return Object.keys(object) as (keyof T)[]; -} diff --git a/src/core/schemas/utils/maybeSkipValidation.ts b/src/core/schemas/utils/maybeSkipValidation.ts deleted file mode 100644 index 99c02c3..0000000 --- a/src/core/schemas/utils/maybeSkipValidation.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { BaseSchema, MaybeValid, SchemaOptions } from "../Schema"; -import { MaybePromise } from "./MaybePromise"; - -export function maybeSkipValidation, Raw, Parsed>(schema: S): S { - return { - ...schema, - json: transformAndMaybeSkipValidation(schema.json), - parse: transformAndMaybeSkipValidation(schema.parse), - }; -} - -function transformAndMaybeSkipValidation( - transform: (value: unknown, opts?: SchemaOptions) => MaybePromise> -): (value: unknown, opts?: SchemaOptions) => MaybePromise> { - return async (value, opts): Promise> => { - const transformed = await transform(value, opts); - const { skipValidation = false } = opts ?? {}; - if (!transformed.ok && skipValidation) { - // eslint-disable-next-line no-console - console.warn( - [ - "Failed to validate.", - ...transformed.errors.map( - (error) => - " - " + - (error.path.length > 0 ? `${error.path.join(".")}: ${error.message}` : error.message) - ), - ].join("\n") - ); - - return { - ok: true, - value: value as T, - }; - } else { - return transformed; - } - }; -} diff --git a/src/core/schemas/utils/partition.ts b/src/core/schemas/utils/partition.ts deleted file mode 100644 index f58d6f3..0000000 --- a/src/core/schemas/utils/partition.ts +++ /dev/null @@ -1,12 +0,0 @@ -export function partition(items: readonly T[], predicate: (item: T) => boolean): [T[], T[]] { - const trueItems: T[] = [], - falseItems: T[] = []; - for (const item of items) { - if (predicate(item)) { - trueItems.push(item); - } else { - falseItems.push(item); - } - } - return [trueItems, falseItems]; -} diff --git a/src/core/streaming-fetcher/StreamingFetcher.ts b/src/core/streaming-fetcher/StreamingFetcher.ts deleted file mode 100644 index 88ed0d4..0000000 --- a/src/core/streaming-fetcher/StreamingFetcher.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { default as URLSearchParams } from "@ungap/url-search-params"; -import axios, { AxiosAdapter } from "axios"; -import { Readable } from "stream"; - -export type StreamingFetchFunction = (args: StreamingFetcher.Args) => Promise; - -export declare namespace StreamingFetcher { - export interface Args { - url: string; - method: string; - headers?: Record; - queryParameters?: URLSearchParams; - body?: unknown; - timeoutMs?: number; - withCredentials?: boolean; - adapter?: AxiosAdapter; - onUploadProgress?: (event: ProgressEvent) => void; - onDownloadProgress?: (event: ProgressEvent) => void; - - onData?: (data: unknown) => void; - onError?: (err: unknown) => void; - onFinish?: () => void; - abortController?: AbortController; - responseChunkPrefix?: string; - terminator?: string; - } - - export interface Response { - data: Readable; - headers: Record; - } -} - -export const streamingFetcher: StreamingFetchFunction = async (args) => { - const headers: Record = {}; - if (args.body !== undefined) { - headers["Content-Type"] = "application/json"; - } - if (args.headers != null) { - for (const [key, value] of Object.entries(args.headers)) { - if (value != null) { - headers[key] = value; - } - } - } - - const response = await axios({ - url: args.url, - params: args.queryParameters, - method: args.method, - headers, - data: args.body, - timeout: args.timeoutMs, - transitional: { - clarifyTimeoutError: true, - }, - withCredentials: args.withCredentials, - maxBodyLength: Infinity, - maxContentLength: Infinity, - onUploadProgress: args.onUploadProgress, - onDownloadProgress: args.onDownloadProgress, - signal: args.abortController?.signal, - responseType: "stream", - adapter: args.adapter, - }); - - if (args.onData != null) { - const { onData } = args; - response.data.on("data", (data: Buffer) => { - for (const line of data.toString().split("\n")) { - let data = line; - if (args.responseChunkPrefix != null) { - if (!data.startsWith(args.responseChunkPrefix)) { - continue; - } - data = data.substring(args.responseChunkPrefix.length); - } - - try { - const parsed = JSON.parse(data); - onData(parsed); - } catch (error) { - args.onError?.(error); - } - } - }); - } - - if (args.onFinish != null) { - response.data.on("end", args.onFinish); - } - - return { - data: response.data, - headers: response.headers, - }; -}; diff --git a/src/core/streaming-fetcher/getHeader.ts b/src/core/streaming-fetcher/getHeader.ts deleted file mode 100644 index e59189c..0000000 --- a/src/core/streaming-fetcher/getHeader.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { StreamingFetcher } from "./StreamingFetcher"; - -export function getHeader(response: StreamingFetcher.Response, header: string): string | undefined { - for (const [headerKey, headerValue] of Object.entries(response.headers)) { - if (headerKey.toLowerCase() === header.toLowerCase()) { - return headerValue; - } - } - return undefined; -} diff --git a/src/core/streaming-fetcher/index.ts b/src/core/streaming-fetcher/index.ts deleted file mode 100644 index da8e465..0000000 --- a/src/core/streaming-fetcher/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { getHeader } from "./getHeader"; -export { streamingFetcher } from "./StreamingFetcher"; -export type { StreamingFetcher, StreamingFetchFunction } from "./StreamingFetcher"; diff --git a/src/errors/SquidexError.ts b/src/errors/SquidexError.ts deleted file mode 100644 index e6013f7..0000000 --- a/src/errors/SquidexError.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export class SquidexError extends Error { - readonly statusCode?: number; - readonly body?: unknown; - - constructor({ message, statusCode, body }: { message?: string; statusCode?: number; body?: unknown }) { - super(buildMessage({ message, statusCode, body })); - Object.setPrototypeOf(this, SquidexError.prototype); - if (statusCode != null) { - this.statusCode = statusCode; - } - - if (body !== undefined) { - this.body = body; - } - } -} - -function buildMessage({ - message, - statusCode, - body, -}: { - message: string | undefined; - statusCode: number | undefined; - body: unknown | undefined; -}): string { - let lines: string[] = []; - if (message != null) { - lines.push(message); - } - - if (statusCode != null) { - lines.push(`Status code: ${statusCode.toString()}`); - } - - if (body != null) { - lines.push(`Body: ${JSON.stringify(body, undefined, 2)}`); - } - - return lines.join("\n"); -} diff --git a/src/errors/SquidexTimeoutError.ts b/src/errors/SquidexTimeoutError.ts deleted file mode 100644 index 67f7e13..0000000 --- a/src/errors/SquidexTimeoutError.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export class SquidexTimeoutError extends Error { - constructor() { - super("Timeout"); - Object.setPrototypeOf(this, SquidexTimeoutError.prototype); - } -} diff --git a/src/errors/index.ts b/src/errors/index.ts deleted file mode 100644 index e9a8c18..0000000 --- a/src/errors/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { SquidexError } from "./SquidexError"; -export { SquidexTimeoutError } from "./SquidexTimeoutError"; diff --git a/src/generated/.openapi-generator-ignore b/src/generated/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/src/generated/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/src/generated/.openapi-generator/FILES b/src/generated/.openapi-generator/FILES new file mode 100644 index 0000000..221a24b --- /dev/null +++ b/src/generated/.openapi-generator/FILES @@ -0,0 +1,231 @@ +apis/AppsApi.ts +apis/AssetsApi.ts +apis/BackupsApi.ts +apis/ContentsApi.ts +apis/DiagnosticsApi.ts +apis/EventConsumersApi.ts +apis/HistoryApi.ts +apis/JobsApi.ts +apis/LanguagesApi.ts +apis/NewsApi.ts +apis/PingApi.ts +apis/PlansApi.ts +apis/RulesApi.ts +apis/SchemasApi.ts +apis/SearchApi.ts +apis/StatisticsApi.ts +apis/TeamsApi.ts +apis/TemplatesApi.ts +apis/TranslationsApi.ts +apis/UserManagementApi.ts +apis/UsersApi.ts +apis/index.ts +index.ts +models/ActionTypeEnum.ts +models/AddFieldDto.ts +models/AddLanguageDto.ts +models/AddRoleDto.ts +models/AddWorkflowDto.ts +models/AlgoliaRuleActionDto.ts +models/AllContentsByPostDto.ts +models/AnnotateAssetDto.ts +models/AppDto.ts +models/AppLanguageDto.ts +models/AppLanguagesDto.ts +models/AppSettingsDto.ts +models/ArrayCalculatedDefaultValue.ts +models/ArrayFieldPropertiesDto.ts +models/AssetChangedRuleTriggerDto.ts +models/AssetDto.ts +models/AssetFolderDto.ts +models/AssetFolderScope.ts +models/AssetFoldersDto.ts +models/AssetMeta.ts +models/AssetPreviewMode.ts +models/AssetScriptsDto.ts +models/AssetType.ts +models/AssetsDto.ts +models/AssetsFieldPropertiesDto.ts +models/AssignContributorDto.ts +models/AuthSchemeDto.ts +models/AuthSchemeResponseDto.ts +models/AuthSchemeValueDto.ts +models/AzureQueueRuleActionDto.ts +models/BackupJobDto.ts +models/BackupJobsDto.ts +models/BooleanFieldEditor.ts +models/BooleanFieldPropertiesDto.ts +models/BulkResultDto.ts +models/BulkUpdateAssetType.ts +models/BulkUpdateAssetsDto.ts +models/BulkUpdateAssetsJobDto.ts +models/BulkUpdateContentType.ts +models/BulkUpdateContentsDto.ts +models/BulkUpdateContentsJobDto.ts +models/CallsUsageDtoDto.ts +models/CallsUsagePerDateDto.ts +models/ChangeCategoryDto.ts +models/ChangePlanDto.ts +models/ChangeStatusDto.ts +models/ClientDto.ts +models/ClientsDto.ts +models/CommentRuleActionDto.ts +models/CommentRuleTriggerDto.ts +models/ComponentFieldPropertiesDto.ts +models/ComponentsFieldPropertiesDto.ts +models/ConfigureFieldRulesDto.ts +models/ConfigureUIFieldsDto.ts +models/ContentChangedRuleTriggerDto.ts +models/ContentDto.ts +models/ContentsDto.ts +models/ContributorDto.ts +models/ContributorsDto.ts +models/ContributorsMetadata.ts +models/CreateAppDto.ts +models/CreateAssetFolderDto.ts +models/CreateClientDto.ts +models/CreateContentRuleActionDto.ts +models/CreateRuleDto.ts +models/CreateSchemaDto.ts +models/CreateTeamDto.ts +models/CreateUserDto.ts +models/CurrentStorageDto.ts +models/DateTimeCalculatedDefaultValue.ts +models/DateTimeFieldEditor.ts +models/DateTimeFieldPropertiesDto.ts +models/DiscourseRuleActionDto.ts +models/EditorDto.ts +models/ElasticSearchRuleActionDto.ts +models/EmailRuleActionDto.ts +models/ErrorDto.ts +models/EventConsumerDto.ts +models/EventConsumersDto.ts +models/FastlyRuleActionDto.ts +models/FeatureDto.ts +models/FeaturesDto.ts +models/FieldDto.ts +models/FieldPropertiesDto.ts +models/FieldRuleAction.ts +models/FieldRuleDto.ts +models/GeolocationFieldEditor.ts +models/GeolocationFieldPropertiesDto.ts +models/HistoryEventDto.ts +models/ImageFormat.ts +models/ImportContentsDto.ts +models/JobDto.ts +models/JobLogMessageDto.ts +models/JobStatus.ts +models/JobsDto.ts +models/JsonFieldPropertiesDto.ts +models/LanguageDto.ts +models/LogDownloadDto.ts +models/ManualRuleTriggerDto.ts +models/MediumRuleActionDto.ts +models/MoveAssetDto.ts +models/MoveAssetFolderDto.ts +models/NestedFieldDto.ts +models/NotificationRuleActionDto.ts +models/NumberFieldEditor.ts +models/NumberFieldPropertiesDto.ts +models/OpenSearchRuleActionDto.ts +models/PatternDto.ts +models/PlanChangedDto.ts +models/PlanDto.ts +models/PlansDto.ts +models/PlansLockedReason.ts +models/PrerenderRuleActionDto.ts +models/QueryDto.ts +models/QueryJsonDto.ts +models/ReferencesFieldEditor.ts +models/ReferencesFieldPropertiesDto.ts +models/ReferralInfo.ts +models/RenameAssetFolderDto.ts +models/RenameTagDto.ts +models/ReorderFieldsDto.ts +models/ResizeMode.ts +models/Resource.ts +models/ResourceLink.ts +models/ResourcesDto.ts +models/RestoreJobDto.ts +models/RestoreRequestDto.ts +models/RichTextFieldPropertiesDto.ts +models/RoleDto.ts +models/RolesDto.ts +models/RuleActionDto.ts +models/RuleDto.ts +models/RuleElementDto.ts +models/RuleElementPropertyDto.ts +models/RuleEventDto.ts +models/RuleEventsDto.ts +models/RuleFieldEditor.ts +models/RuleJobResult.ts +models/RuleResult.ts +models/RuleTriggerDto.ts +models/RulesDto.ts +models/ScheduleJobDto.ts +models/SchemaChangedRuleTriggerDto.ts +models/SchemaCondition.ts +models/SchemaDto.ts +models/SchemaPropertiesDto.ts +models/SchemaScriptsDto.ts +models/SchemaType.ts +models/SchemasDto.ts +models/ScriptRuleActionDto.ts +models/SearchResultDto.ts +models/SearchResultType.ts +models/SignalRRuleActionDto.ts +models/SimulatedRuleEventDto.ts +models/SimulatedRuleEventsDto.ts +models/SkipReason.ts +models/SlackRuleActionDto.ts +models/SortNode.ts +models/SortOrder.ts +models/StatusInfoDto.ts +models/StorageUsagePerDateDto.ts +models/StringContentType.ts +models/StringFieldEditor.ts +models/StringFieldPropertiesDto.ts +models/SynchronizeSchemaDto.ts +models/TagsFieldEditor.ts +models/TagsFieldPropertiesDto.ts +models/TeamDto.ts +models/TemplateDetailsDto.ts +models/TemplateDto.ts +models/TemplatesDto.ts +models/TransferToTeamDto.ts +models/TranslateDto.ts +models/TranslationDto.ts +models/TranslationStatus.ts +models/TweetRuleActionDto.ts +models/TypesenseRuleActionDto.ts +models/UIFieldEditor.ts +models/UIFieldPropertiesDto.ts +models/UpdateAppDto.ts +models/UpdateAppSettingsDto.ts +models/UpdateAssetScriptsDto.ts +models/UpdateClientDto.ts +models/UpdateFieldDto.ts +models/UpdateLanguageDto.ts +models/UpdateProfileDto.ts +models/UpdateRoleDto.ts +models/UpdateRuleDto.ts +models/UpdateSchemaDto.ts +models/UpdateSettingDto.ts +models/UpdateTeamDto.ts +models/UpdateUserDto.ts +models/UpdateWorkflowDto.ts +models/UpsertSchemaDto.ts +models/UpsertSchemaFieldDto.ts +models/UpsertSchemaNestedFieldDto.ts +models/UsageRuleTriggerDto.ts +models/UserDto.ts +models/UserProperty.ts +models/UsersDto.ts +models/WebhookMethod.ts +models/WebhookRuleActionDto.ts +models/WorkflowDto.ts +models/WorkflowStepDto.ts +models/WorkflowTransitionDto.ts +models/WorkflowsDto.ts +models/index.ts +runtime.ts diff --git a/src/generated/.openapi-generator/VERSION b/src/generated/.openapi-generator/VERSION new file mode 100644 index 0000000..09a6d30 --- /dev/null +++ b/src/generated/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.8.0 diff --git a/src/generated/apis/AppsApi.ts b/src/generated/apis/AppsApi.ts new file mode 100644 index 0000000..45f4ea9 --- /dev/null +++ b/src/generated/apis/AppsApi.ts @@ -0,0 +1,1954 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AddLanguageDto, + AddRoleDto, + AddWorkflowDto, + AppDto, + AppLanguagesDto, + AppSettingsDto, + AssetScriptsDto, + AssignContributorDto, + ClientsDto, + ContributorsDto, + CreateAppDto, + CreateClientDto, + ErrorDto, + RolesDto, + TransferToTeamDto, + UpdateAppDto, + UpdateAppSettingsDto, + UpdateAssetScriptsDto, + UpdateClientDto, + UpdateLanguageDto, + UpdateRoleDto, + UpdateWorkflowDto, + WorkflowsDto, +} from '../models/index'; +import { + AddLanguageDtoFromJSON, + AddLanguageDtoToJSON, + AddRoleDtoFromJSON, + AddRoleDtoToJSON, + AddWorkflowDtoFromJSON, + AddWorkflowDtoToJSON, + AppDtoFromJSON, + AppDtoToJSON, + AppLanguagesDtoFromJSON, + AppLanguagesDtoToJSON, + AppSettingsDtoFromJSON, + AppSettingsDtoToJSON, + AssetScriptsDtoFromJSON, + AssetScriptsDtoToJSON, + AssignContributorDtoFromJSON, + AssignContributorDtoToJSON, + ClientsDtoFromJSON, + ClientsDtoToJSON, + ContributorsDtoFromJSON, + ContributorsDtoToJSON, + CreateAppDtoFromJSON, + CreateAppDtoToJSON, + CreateClientDtoFromJSON, + CreateClientDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + RolesDtoFromJSON, + RolesDtoToJSON, + TransferToTeamDtoFromJSON, + TransferToTeamDtoToJSON, + UpdateAppDtoFromJSON, + UpdateAppDtoToJSON, + UpdateAppSettingsDtoFromJSON, + UpdateAppSettingsDtoToJSON, + UpdateAssetScriptsDtoFromJSON, + UpdateAssetScriptsDtoToJSON, + UpdateClientDtoFromJSON, + UpdateClientDtoToJSON, + UpdateLanguageDtoFromJSON, + UpdateLanguageDtoToJSON, + UpdateRoleDtoFromJSON, + UpdateRoleDtoToJSON, + UpdateWorkflowDtoFromJSON, + UpdateWorkflowDtoToJSON, + WorkflowsDtoFromJSON, + WorkflowsDtoToJSON, +} from '../models/index'; + +export interface AppAssetsGetAssetScriptsRequest { +} + +export interface AppAssetsPutAssetScriptsRequest { + updateAssetScriptsDto: UpdateAssetScriptsDto; +} + +export interface AppClientsDeleteClientRequest { + id: string; +} + +export interface AppClientsGetClientsRequest { +} + +export interface AppClientsPostClientRequest { + createClientDto: CreateClientDto; +} + +export interface AppClientsPutClientRequest { + id: string; + updateClientDto: UpdateClientDto; +} + +export interface AppContributorsDeleteContributorRequest { + id: string; +} + +export interface AppContributorsDeleteMyselfRequest { +} + +export interface AppContributorsGetContributorsRequest { +} + +export interface AppContributorsPostContributorRequest { + assignContributorDto: AssignContributorDto; +} + +export interface AppImageGetImageRequest { +} + +export interface AppLanguagesDeleteLanguageRequest { + language: string; +} + +export interface AppLanguagesGetLanguagesRequest { +} + +export interface AppLanguagesPostLanguageRequest { + addLanguageDto: AddLanguageDto; +} + +export interface AppLanguagesPutLanguageRequest { + language: string; + updateLanguageDto: UpdateLanguageDto; +} + +export interface AppRolesDeleteRoleRequest { + roleName: string; +} + +export interface AppRolesGetPermissionsRequest { +} + +export interface AppRolesGetRolesRequest { +} + +export interface AppRolesPostRoleRequest { + addRoleDto: AddRoleDto; +} + +export interface AppRolesPutRoleRequest { + roleName: string; + updateRoleDto: UpdateRoleDto; +} + +export interface AppSettingsGetSettingsRequest { +} + +export interface AppSettingsPutSettingsRequest { + updateAppSettingsDto: UpdateAppSettingsDto; +} + +export interface AppWorkflowsDeleteWorkflowRequest { + id: string; +} + +export interface AppWorkflowsGetWorkflowsRequest { +} + +export interface AppWorkflowsPostWorkflowRequest { + addWorkflowDto: AddWorkflowDto; +} + +export interface AppWorkflowsPutWorkflowRequest { + id: string; + updateWorkflowDto: UpdateWorkflowDto; +} + +export interface AppsDeleteAppRequest { +} + +export interface AppsDeleteImageRequest { +} + +export interface AppsGetAppRequest { +} + +export interface AppsGetTeamAppsRequest { + team: string; +} + +export interface AppsPostAppRequest { + createAppDto: CreateAppDto; +} + +export interface AppsPutAppRequest { + updateAppDto: UpdateAppDto; +} + +export interface AppsPutAppTeamRequest { + transferToTeamDto: TransferToTeamDto; +} + +export interface AppsUploadImageRequest { + file?: Blob; + fileUrl?: string; + fileName?: string; +} + +/** + * AppsApi - interface + * + * @export + * @interface AppsApiInterface + */ +export interface AppsApiInterface { + /** + * + * @summary Get the app asset scripts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getAssetScriptsRaw(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the app asset scripts. + */ + getAssetScripts(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the asset scripts. + * @param {UpdateAssetScriptsDto} updateAssetScriptsDto The values to update. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putAssetScriptsRaw(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the asset scripts. + */ + putAssetScripts(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * The application that uses this client credentials cannot access the API after it has been revoked. + * @summary Revoke an app client. + * @param {string} id The ID of the client that must be deleted. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteClientRaw(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * The application that uses this client credentials cannot access the API after it has been revoked. + * Revoke an app client. + */ + deleteClient(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Gets all configured clients for the app with the specified name. + * @summary Get app clients. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getClientsRaw(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Gets all configured clients for the app with the specified name. + * Get app clients. + */ + getClients(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. + * @summary Create a new app client. + * @param {CreateClientDto} createClientDto Client object that needs to be added to the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + postClientRaw(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. + * Create a new app client. + */ + postClient(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Only the display name can be changed, create a new client if necessary. + * @summary Updates an app client. + * @param {string} id The ID of the client that must be updated. + * @param {UpdateClientDto} updateClientDto Client object that needs to be updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putClientRaw(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Only the display name can be changed, create a new client if necessary. + * Updates an app client. + */ + putClient(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Remove contributor. + * @param {string} id The ID of the contributor. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteContributorRaw(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Remove contributor. + */ + deleteContributor(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Remove yourself. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteMyselfRaw(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Remove yourself. + */ + deleteMyself(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get app contributors. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getContributorsRaw(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get app contributors. + */ + getContributors(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Assign contributor to app. + * @param {AssignContributorDto} assignContributorDto Contributor object that needs to be added to the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + postContributorRaw(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Assign contributor to app. + */ + postContributor(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get the app image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getImageRaw(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the app image. + */ + getImage(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Deletes an app language. + * @param {string} language The language to delete from the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteLanguageRaw(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Deletes an app language. + */ + deleteLanguage(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get app languages. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getLanguagesRaw(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get app languages. + */ + getLanguages(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Add an app language. + * @param {AddLanguageDto} addLanguageDto The language to add to the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + postLanguageRaw(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Add an app language. + */ + postLanguage(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Updates an app language. + * @param {string} language The language to update. + * @param {UpdateLanguageDto} updateLanguageDto The language object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putLanguageRaw(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Updates an app language. + */ + putLanguage(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Remove role from app. + * @param {string} roleName The name of the role. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteRoleRaw(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Remove role from app. + */ + deleteRole(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get app permissions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getPermissionsRaw(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Get app permissions. + */ + getPermissions(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * + * @summary Get app roles. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getRolesRaw(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get app roles. + */ + getRoles(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Add role to app. + * @param {AddRoleDto} addRoleDto Role object that needs to be added to the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + postRoleRaw(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Add role to app. + */ + postRole(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update an app role. + * @param {string} roleName The name of the role to be updated. + * @param {UpdateRoleDto} updateRoleDto Role to be updated for the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putRoleRaw(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update an app role. + */ + putRole(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get the app settings. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getSettingsRaw(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the app settings. + */ + getSettings(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the settings. + * @param {UpdateAppSettingsDto} updateAppSettingsDto The values to update. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putSettingsRaw(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the settings. + */ + putSettings(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete a workflow. + * @param {string} id The ID of the workflow to update. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteWorkflowRaw(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a workflow. + */ + deleteWorkflow(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get app workflow. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getWorkflowsRaw(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get app workflow. + */ + getWorkflows(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Create a workflow. + * @param {AddWorkflowDto} addWorkflowDto The new workflow. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + postWorkflowRaw(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Create a workflow. + */ + postWorkflow(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update a workflow. + * @param {string} id The ID of the workflow to update. + * @param {UpdateWorkflowDto} updateWorkflowDto The new workflow. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putWorkflowRaw(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update a workflow. + */ + putWorkflow(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteAppRaw(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete the app. + */ + deleteApp(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Remove the app image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + deleteImageRaw(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Remove the app image. + */ + deleteImage(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get an app by name. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getAppRaw(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get an app by name. + */ + getApp(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * @summary Get your apps. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getAppsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * Get your apps. + */ + getApps(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * @summary Get team apps. + * @param {string} team The ID of the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + getTeamAppsRaw(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * Get team apps. + */ + getTeamApps(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. + * @summary Create a new app. + * @param {CreateAppDto} createAppDto The app object that needs to be added to Squidex. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + postAppRaw(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. + * Create a new app. + */ + postApp(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the app. + * @param {UpdateAppDto} updateAppDto The values to update. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putAppRaw(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the app. + */ + putApp(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Transfer the app. + * @param {TransferToTeamDto} transferToTeamDto The team information. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + putAppTeamRaw(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Transfer the app. + */ + putAppTeam(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Upload the app image. + * @param {Blob} [file] + * @param {string} [fileUrl] + * @param {string} [fileName] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppsApiInterface + */ + uploadImageRaw(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Upload the app image. + */ + uploadImage(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { + + /** + * Get the app asset scripts. + */ + async getAssetScriptsRaw(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/assets/scripts`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetScriptsDtoFromJSON(jsonValue)); + } + + /** + * Get the app asset scripts. + */ + async getAssetScripts(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetScriptsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the asset scripts. + */ + async putAssetScriptsRaw(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['updateAssetScriptsDto'] == null) { + throw new runtime.RequiredError( + 'updateAssetScriptsDto', + 'Required parameter "updateAssetScriptsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/scripts`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateAssetScriptsDtoToJSON(requestParameters['updateAssetScriptsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetScriptsDtoFromJSON(jsonValue)); + } + + /** + * Update the asset scripts. + */ + async putAssetScripts(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetScriptsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * The application that uses this client credentials cannot access the API after it has been revoked. + * Revoke an app client. + */ + async deleteClientRaw(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/clients/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ClientsDtoFromJSON(jsonValue)); + } + + /** + * The application that uses this client credentials cannot access the API after it has been revoked. + * Revoke an app client. + */ + async deleteClient(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteClientRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Gets all configured clients for the app with the specified name. + * Get app clients. + */ + async getClientsRaw(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/clients`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ClientsDtoFromJSON(jsonValue)); + } + + /** + * Gets all configured clients for the app with the specified name. + * Get app clients. + */ + async getClients(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getClientsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. + * Create a new app client. + */ + async postClientRaw(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createClientDto'] == null) { + throw new runtime.RequiredError( + 'createClientDto', + 'Required parameter "createClientDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/clients`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateClientDtoToJSON(requestParameters['createClientDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ClientsDtoFromJSON(jsonValue)); + } + + /** + * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. + * Create a new app client. + */ + async postClient(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postClientRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Only the display name can be changed, create a new client if necessary. + * Updates an app client. + */ + async putClientRaw(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateClientDto'] == null) { + throw new runtime.RequiredError( + 'updateClientDto', + 'Required parameter "updateClientDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/clients/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateClientDtoToJSON(requestParameters['updateClientDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ClientsDtoFromJSON(jsonValue)); + } + + /** + * Only the display name can be changed, create a new client if necessary. + * Updates an app client. + */ + async putClient(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putClientRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Remove contributor. + */ + async deleteContributorRaw(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/contributors/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Remove contributor. + */ + async deleteContributor(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteContributorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Remove yourself. + */ + async deleteMyselfRaw(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/contributors/me`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Remove yourself. + */ + async deleteMyself(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteMyselfRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get app contributors. + */ + async getContributorsRaw(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/contributors`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Get app contributors. + */ + async getContributors(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContributorsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Assign contributor to app. + */ + async postContributorRaw(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['assignContributorDto'] == null) { + throw new runtime.RequiredError( + 'assignContributorDto', + 'Required parameter "assignContributorDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/contributors`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AssignContributorDtoToJSON(requestParameters['assignContributorDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Assign contributor to app. + */ + async postContributor(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postContributorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get the app image. + */ + async getImageRaw(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/image`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get the app image. + */ + async getImage(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getImageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Deletes an app language. + */ + async deleteLanguageRaw(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['language'] == null) { + throw new runtime.RequiredError( + 'language', + 'Required parameter "language" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/languages/{language}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppLanguagesDtoFromJSON(jsonValue)); + } + + /** + * Deletes an app language. + */ + async deleteLanguage(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteLanguageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get app languages. + */ + async getLanguagesRaw(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/languages`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppLanguagesDtoFromJSON(jsonValue)); + } + + /** + * Get app languages. + */ + async getLanguages(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getLanguagesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Add an app language. + */ + async postLanguageRaw(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['addLanguageDto'] == null) { + throw new runtime.RequiredError( + 'addLanguageDto', + 'Required parameter "addLanguageDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/languages`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddLanguageDtoToJSON(requestParameters['addLanguageDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppLanguagesDtoFromJSON(jsonValue)); + } + + /** + * Add an app language. + */ + async postLanguage(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postLanguageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Updates an app language. + */ + async putLanguageRaw(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['language'] == null) { + throw new runtime.RequiredError( + 'language', + 'Required parameter "language" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateLanguageDto'] == null) { + throw new runtime.RequiredError( + 'updateLanguageDto', + 'Required parameter "updateLanguageDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/languages/{language}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateLanguageDtoToJSON(requestParameters['updateLanguageDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppLanguagesDtoFromJSON(jsonValue)); + } + + /** + * Updates an app language. + */ + async putLanguage(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putLanguageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Remove role from app. + */ + async deleteRoleRaw(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/roles/{roleName}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RolesDtoFromJSON(jsonValue)); + } + + /** + * Remove role from app. + */ + async deleteRole(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteRoleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get app permissions. + */ + async getPermissionsRaw(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/roles/permissions`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response); + } + + /** + * Get app permissions. + */ + async getPermissions(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getPermissionsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get app roles. + */ + async getRolesRaw(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/roles`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RolesDtoFromJSON(jsonValue)); + } + + /** + * Get app roles. + */ + async getRoles(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getRolesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Add role to app. + */ + async postRoleRaw(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['addRoleDto'] == null) { + throw new runtime.RequiredError( + 'addRoleDto', + 'Required parameter "addRoleDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/roles`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddRoleDtoToJSON(requestParameters['addRoleDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RolesDtoFromJSON(jsonValue)); + } + + /** + * Add role to app. + */ + async postRole(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postRoleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update an app role. + */ + async putRoleRaw(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateRoleDto'] == null) { + throw new runtime.RequiredError( + 'updateRoleDto', + 'Required parameter "updateRoleDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/roles/{roleName}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateRoleDtoToJSON(requestParameters['updateRoleDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RolesDtoFromJSON(jsonValue)); + } + + /** + * Update an app role. + */ + async putRole(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putRoleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get the app settings. + */ + async getSettingsRaw(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/settings`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppSettingsDtoFromJSON(jsonValue)); + } + + /** + * Get the app settings. + */ + async getSettings(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSettingsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the settings. + */ + async putSettingsRaw(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['updateAppSettingsDto'] == null) { + throw new runtime.RequiredError( + 'updateAppSettingsDto', + 'Required parameter "updateAppSettingsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/settings`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateAppSettingsDtoToJSON(requestParameters['updateAppSettingsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppSettingsDtoFromJSON(jsonValue)); + } + + /** + * Update the settings. + */ + async putSettings(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSettingsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a workflow. + */ + async deleteWorkflowRaw(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/workflows/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsDtoFromJSON(jsonValue)); + } + + /** + * Delete a workflow. + */ + async deleteWorkflow(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteWorkflowRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get app workflow. + */ + async getWorkflowsRaw(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/workflows`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsDtoFromJSON(jsonValue)); + } + + /** + * Get app workflow. + */ + async getWorkflows(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getWorkflowsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create a workflow. + */ + async postWorkflowRaw(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['addWorkflowDto'] == null) { + throw new runtime.RequiredError( + 'addWorkflowDto', + 'Required parameter "addWorkflowDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/workflows`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddWorkflowDtoToJSON(requestParameters['addWorkflowDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsDtoFromJSON(jsonValue)); + } + + /** + * Create a workflow. + */ + async postWorkflow(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postWorkflowRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a workflow. + */ + async putWorkflowRaw(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateWorkflowDto'] == null) { + throw new runtime.RequiredError( + 'updateWorkflowDto', + 'Required parameter "updateWorkflowDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/workflows/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateWorkflowDtoToJSON(requestParameters['updateWorkflowDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsDtoFromJSON(jsonValue)); + } + + /** + * Update a workflow. + */ + async putWorkflow(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putWorkflowRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete the app. + */ + async deleteAppRaw(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the app. + */ + async deleteApp(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteAppRaw(requestParameters, initOverrides); + } + + /** + * Remove the app image. + */ + async deleteImageRaw(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/image`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); + } + + /** + * Remove the app image. + */ + async deleteImage(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteImageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get an app by name. + */ + async getAppRaw(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); + } + + /** + * Get an app by name. + */ + async getApp(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAppRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * Get your apps. + */ + async getAppsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AppDtoFromJSON)); + } + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * Get your apps. + */ + async getApps(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getAppsRaw(initOverrides); + return await response.value(); + } + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * Get team apps. + */ + async getTeamAppsRaw(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/apps`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AppDtoFromJSON)); + } + + /** + * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. + * Get team apps. + */ + async getTeamApps(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getTeamAppsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. + * Create a new app. + */ + async postAppRaw(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createAppDto'] == null) { + throw new runtime.RequiredError( + 'createAppDto', + 'Required parameter "createAppDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateAppDtoToJSON(requestParameters['createAppDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); + } + + /** + * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. + * Create a new app. + */ + async postApp(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postAppRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the app. + */ + async putAppRaw(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['updateAppDto'] == null) { + throw new runtime.RequiredError( + 'updateAppDto', + 'Required parameter "updateAppDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateAppDtoToJSON(requestParameters['updateAppDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); + } + + /** + * Update the app. + */ + async putApp(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAppRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Transfer the app. + */ + async putAppTeamRaw(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['transferToTeamDto'] == null) { + throw new runtime.RequiredError( + 'transferToTeamDto', + 'Required parameter "transferToTeamDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/team`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: TransferToTeamDtoToJSON(requestParameters['transferToTeamDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); + } + + /** + * Transfer the app. + */ + async putAppTeam(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAppTeamRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Upload the app image. + */ + async uploadImageRaw(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const consumes: runtime.Consume[] = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): any }; + let useForm = false; + // use FormData to transmit files using content-type "multipart/form-data" + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new URLSearchParams(); + } + + if (requestParameters['file'] != null) { + formParams.append('file', requestParameters['file'] as any); + } + + if (requestParameters['fileUrl'] != null) { + formParams.append('fileUrl', requestParameters['fileUrl'] as any); + } + + if (requestParameters['fileName'] != null) { + formParams.append('fileName', requestParameters['fileName'] as any); + } + + const response = await this.request({ + path: `/api/apps/{app}/image`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); + } + + /** + * Upload the app image. + */ + async uploadImage(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.uploadImageRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/AssetsApi.ts b/src/generated/apis/AssetsApi.ts new file mode 100644 index 0000000..5a76a6f --- /dev/null +++ b/src/generated/apis/AssetsApi.ts @@ -0,0 +1,1564 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AnnotateAssetDto, + AssetDto, + AssetFolderDto, + AssetFolderScope, + AssetFoldersDto, + AssetsDto, + BulkResultDto, + BulkUpdateAssetsDto, + CreateAssetFolderDto, + ErrorDto, + ImageFormat, + MoveAssetDto, + MoveAssetFolderDto, + QueryDto, + RenameAssetFolderDto, + RenameTagDto, + ResizeMode, +} from '../models/index'; +import { + AnnotateAssetDtoFromJSON, + AnnotateAssetDtoToJSON, + AssetDtoFromJSON, + AssetDtoToJSON, + AssetFolderDtoFromJSON, + AssetFolderDtoToJSON, + AssetFolderScopeFromJSON, + AssetFolderScopeToJSON, + AssetFoldersDtoFromJSON, + AssetFoldersDtoToJSON, + AssetsDtoFromJSON, + AssetsDtoToJSON, + BulkResultDtoFromJSON, + BulkResultDtoToJSON, + BulkUpdateAssetsDtoFromJSON, + BulkUpdateAssetsDtoToJSON, + CreateAssetFolderDtoFromJSON, + CreateAssetFolderDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + ImageFormatFromJSON, + ImageFormatToJSON, + MoveAssetDtoFromJSON, + MoveAssetDtoToJSON, + MoveAssetFolderDtoFromJSON, + MoveAssetFolderDtoToJSON, + QueryDtoFromJSON, + QueryDtoToJSON, + RenameAssetFolderDtoFromJSON, + RenameAssetFolderDtoToJSON, + RenameTagDtoFromJSON, + RenameTagDtoToJSON, + ResizeModeFromJSON, + ResizeModeToJSON, +} from '../models/index'; + +export interface AssetContentGetAssetContentRequest { + id: string; + version?: number; + cache?: number; + download?: number; + width?: number | null; + height?: number | null; + quality?: number | null; + mode?: ResizeMode; + bg?: string | null; + focusX?: number | null; + focusY?: number | null; + nofocus?: boolean; + auto?: boolean; + force?: boolean; + deleted?: boolean; + format?: ImageFormat; +} + +export interface AssetContentGetAssetContentBySlugRequest { + idOrSlug: string; + more: string; + version?: number; + cache?: number; + download?: number; + width?: number | null; + height?: number | null; + quality?: number | null; + mode?: ResizeMode; + bg?: string | null; + focusX?: number | null; + focusY?: number | null; + nofocus?: boolean; + auto?: boolean; + force?: boolean; + deleted?: boolean; + format?: ImageFormat; +} + +export interface AssetFoldersDeleteAssetFolderRequest { + id: string; +} + +export interface AssetFoldersGetAssetFoldersRequest { + parentId?: string | null; + scope?: AssetFolderScope; +} + +export interface AssetFoldersPostAssetFolderRequest { + createAssetFolderDto: CreateAssetFolderDto; +} + +export interface AssetFoldersPutAssetFolderRequest { + id: string; + renameAssetFolderDto: RenameAssetFolderDto; +} + +export interface AssetFoldersPutAssetFolderParentRequest { + id: string; + moveAssetFolderDto: MoveAssetFolderDto; +} + +export interface AssetsBulkUpdateAssetsRequest { + bulkUpdateAssetsDto: BulkUpdateAssetsDto; +} + +export interface AssetsDeleteAssetRequest { + id: string; + checkReferrers?: boolean; + permanent?: boolean; +} + +export interface AssetsGetAssetRequest { + id: string; +} + +export interface AssetsGetAssetsRequest { + parentId?: string | null; + ids?: string | null; + q?: string | null; + $top?: number; + $skip?: number; + $orderby?: string; + $filter?: string; + xNoTotal?: boolean; + xNoSlowTotal?: boolean; +} + +export interface AssetsGetAssetsPostRequest { + queryDto: QueryDto; + xNoTotal?: boolean; + xNoSlowTotal?: boolean; +} + +export interface AssetsGetTagsRequest { +} + +export interface AssetsPostAssetRequest { + parentId?: string; + id?: string | null; + duplicate?: boolean; + file?: Blob; + fileUrl?: string; + fileName?: string; +} + +export interface AssetsPostUpsertAssetRequest { + id: string; + parentId?: string; + duplicate?: boolean; + file?: Blob; + fileUrl?: string; + fileName?: string; +} + +export interface AssetsPutAssetRequest { + id: string; + annotateAssetDto: AnnotateAssetDto; +} + +export interface AssetsPutAssetContentRequest { + id: string; + file?: Blob; + fileUrl?: string; + fileName?: string; +} + +export interface AssetsPutAssetParentRequest { + id: string; + moveAssetDto: MoveAssetDto; +} + +export interface AssetsPutTagRequest { + name: string; + renameTagDto: RenameTagDto; +} + +/** + * AssetsApi - interface + * + * @export + * @interface AssetsApiInterface + */ +export interface AssetsApiInterface { + /** + * + * @summary Get the asset content. + * @param {string} id The ID of the asset. + * @param {number} [version] The optional version of the asset. + * @param {number} [cache] The cache duration in seconds. + * @param {number} [download] Set it to 0 to prevent download. + * @param {number} [width] The target width of the asset, if it is an image. + * @param {number} [height] The target height of the asset, if it is an image. + * @param {number} [quality] Optional image quality, it is is an jpeg image. + * @param {ResizeMode} [mode] The resize mode when the width and height is defined. + * @param {string} [bg] Optional background color. + * @param {number} [focusX] Override the y focus point. + * @param {number} [focusY] Override the x focus point. + * @param {boolean} [nofocus] True to ignore the asset focus point if any. + * @param {boolean} [auto] True to use auto format. + * @param {boolean} [force] True to force a new resize even if it already stored. + * @param {boolean} [deleted] Also return deleted content items. + * @param {ImageFormat} [format] True to force a new resize even if it already stored. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + getAssetContentRaw(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the asset content. + * @deprecated + */ + getAssetContent(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get the asset content. + * @param {string} idOrSlug The id or slug of the asset. + * @param {string} more Optional suffix that can be used to seo-optimize the link to the image Has not effect. + * @param {number} [version] The optional version of the asset. + * @param {number} [cache] The cache duration in seconds. + * @param {number} [download] Set it to 0 to prevent download. + * @param {number} [width] The target width of the asset, if it is an image. + * @param {number} [height] The target height of the asset, if it is an image. + * @param {number} [quality] Optional image quality, it is is an jpeg image. + * @param {ResizeMode} [mode] The resize mode when the width and height is defined. + * @param {string} [bg] Optional background color. + * @param {number} [focusX] Override the y focus point. + * @param {number} [focusY] Override the x focus point. + * @param {boolean} [nofocus] True to ignore the asset focus point if any. + * @param {boolean} [auto] True to use auto format. + * @param {boolean} [force] True to force a new resize even if it already stored. + * @param {boolean} [deleted] Also return deleted content items. + * @param {ImageFormat} [format] True to force a new resize even if it already stored. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + getAssetContentBySlugRaw(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the asset content. + */ + getAssetContentBySlug(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete an asset folder. + * @param {string} id The ID of the asset folder to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + deleteAssetFolderRaw(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete an asset folder. + */ + deleteAssetFolder(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Get all asset folders for the app. + * @summary Get asset folders. + * @param {string} [parentId] The optional parent folder id. + * @param {AssetFolderScope} [scope] The scope of the query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + getAssetFoldersRaw(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all asset folders for the app. + * Get asset folders. + */ + getAssetFolders(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Create an asset folder. + * @param {CreateAssetFolderDto} createAssetFolderDto The asset folder object that needs to be added to the App. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + postAssetFolderRaw(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Create an asset folder. + */ + postAssetFolder(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update an asset folder. + * @param {string} id The ID of the asset folder. + * @param {RenameAssetFolderDto} renameAssetFolderDto The asset folder object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + putAssetFolderRaw(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update an asset folder. + */ + putAssetFolder(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Move an asset folder. + * @param {string} id The ID of the asset folder. + * @param {MoveAssetFolderDto} moveAssetFolderDto The asset folder object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + putAssetFolderParentRaw(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Move an asset folder. + */ + putAssetFolderParent(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Bulk update assets. + * @param {BulkUpdateAssetsDto} bulkUpdateAssetsDto The bulk update request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + bulkUpdateAssetsRaw(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Bulk update assets. + */ + bulkUpdateAssets(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * + * @summary Delete an asset. + * @param {string} id The ID of the asset to delete. + * @param {boolean} [checkReferrers] True to check referrers of this asset. + * @param {boolean} [permanent] True to delete the asset permanently. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + deleteAssetRaw(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete an asset. + */ + deleteAsset(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get an asset by id. + * @param {string} id The ID of the asset to retrieve. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + getAssetRaw(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get an asset by id. + */ + getAsset(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Get all assets for the app. + * @summary Get assets. + * @param {string} [parentId] The optional parent folder id. + * @param {string} [ids] The optional asset ids. + * @param {string} [q] The optional json query. + * @param {number} [$top] Optional number of items to take. + * @param {number} [$skip] Optional number of items to skip. + * @param {string} [$orderby] Optional OData order definition. + * @param {string} [$filter] Optional OData filter. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + getAssetsRaw(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all assets for the app. + * Get assets. + */ + getAssets(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Get all assets for the app. + * @summary Get assets. + * @param {QueryDto} queryDto The required query object. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + getAssetsPostRaw(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all assets for the app. + * Get assets. + */ + getAssetsPost(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Get all tags for assets. + * @summary Get assets tags. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + getTagsRaw(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all tags for assets. + * Get assets tags. + */ + getTags(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }>; + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * @summary Upload a new asset. + * @param {string} [parentId] The optional parent folder id. + * @param {string} [id] The optional custom asset id. + * @param {boolean} [duplicate] True to duplicate the asset, event if the file has been uploaded. + * @param {Blob} [file] + * @param {string} [fileUrl] + * @param {string} [fileName] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + postAssetRaw(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * Upload a new asset. + */ + postAsset(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * @summary Upsert an asset. + * @param {string} id The optional custom asset id. + * @param {string} [parentId] The optional parent folder id. + * @param {boolean} [duplicate] True to duplicate the asset, event if the file has been uploaded. + * @param {Blob} [file] + * @param {string} [fileUrl] + * @param {string} [fileName] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + postUpsertAssetRaw(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * Upsert an asset. + */ + postUpsertAsset(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update an asset. + * @param {string} id The ID of the asset. + * @param {AnnotateAssetDto} annotateAssetDto The asset object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + putAssetRaw(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update an asset. + */ + putAsset(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Use multipart request to upload an asset. + * @summary Replace asset content. + * @param {string} id The ID of the asset. + * @param {Blob} [file] + * @param {string} [fileUrl] + * @param {string} [fileName] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + putAssetContentRaw(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Use multipart request to upload an asset. + * Replace asset content. + */ + putAssetContent(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Moves the asset. + * @param {string} id The ID of the asset. + * @param {MoveAssetDto} moveAssetDto The asset object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + putAssetParentRaw(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Moves the asset. + */ + putAssetParent(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Rename an asset tag. + * @param {string} name The tag to return. + * @param {RenameTagDto} renameTagDto The required request object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AssetsApiInterface + */ + putTagRaw(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Rename an asset tag. + */ + putTag(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }>; + +} + +/** + * + */ +export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { + + /** + * Get the asset content. + * @deprecated + */ + async getAssetContentRaw(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; + } + + if (requestParameters['cache'] != null) { + queryParameters['cache'] = requestParameters['cache']; + } + + if (requestParameters['download'] != null) { + queryParameters['download'] = requestParameters['download']; + } + + if (requestParameters['width'] != null) { + queryParameters['width'] = requestParameters['width']; + } + + if (requestParameters['height'] != null) { + queryParameters['height'] = requestParameters['height']; + } + + if (requestParameters['quality'] != null) { + queryParameters['quality'] = requestParameters['quality']; + } + + if (requestParameters['mode'] != null) { + queryParameters['mode'] = requestParameters['mode']; + } + + if (requestParameters['bg'] != null) { + queryParameters['bg'] = requestParameters['bg']; + } + + if (requestParameters['focusX'] != null) { + queryParameters['focusX'] = requestParameters['focusX']; + } + + if (requestParameters['focusY'] != null) { + queryParameters['focusY'] = requestParameters['focusY']; + } + + if (requestParameters['nofocus'] != null) { + queryParameters['nofocus'] = requestParameters['nofocus']; + } + + if (requestParameters['auto'] != null) { + queryParameters['auto'] = requestParameters['auto']; + } + + if (requestParameters['force'] != null) { + queryParameters['force'] = requestParameters['force']; + } + + if (requestParameters['deleted'] != null) { + queryParameters['deleted'] = requestParameters['deleted']; + } + + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get the asset content. + * @deprecated + */ + async getAssetContent(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get the asset content. + */ + async getAssetContentBySlugRaw(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['idOrSlug'] == null) { + throw new runtime.RequiredError( + 'idOrSlug', + 'Required parameter "idOrSlug" was null or undefined when calling ().' + ); + } + + if (requestParameters['more'] == null) { + throw new runtime.RequiredError( + 'more', + 'Required parameter "more" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; + } + + if (requestParameters['cache'] != null) { + queryParameters['cache'] = requestParameters['cache']; + } + + if (requestParameters['download'] != null) { + queryParameters['download'] = requestParameters['download']; + } + + if (requestParameters['width'] != null) { + queryParameters['width'] = requestParameters['width']; + } + + if (requestParameters['height'] != null) { + queryParameters['height'] = requestParameters['height']; + } + + if (requestParameters['quality'] != null) { + queryParameters['quality'] = requestParameters['quality']; + } + + if (requestParameters['mode'] != null) { + queryParameters['mode'] = requestParameters['mode']; + } + + if (requestParameters['bg'] != null) { + queryParameters['bg'] = requestParameters['bg']; + } + + if (requestParameters['focusX'] != null) { + queryParameters['focusX'] = requestParameters['focusX']; + } + + if (requestParameters['focusY'] != null) { + queryParameters['focusY'] = requestParameters['focusY']; + } + + if (requestParameters['nofocus'] != null) { + queryParameters['nofocus'] = requestParameters['nofocus']; + } + + if (requestParameters['auto'] != null) { + queryParameters['auto'] = requestParameters['auto']; + } + + if (requestParameters['force'] != null) { + queryParameters['force'] = requestParameters['force']; + } + + if (requestParameters['deleted'] != null) { + queryParameters['deleted'] = requestParameters['deleted']; + } + + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/assets/{app}/{idOrSlug}/{more}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"idOrSlug"}}`, encodeURIComponent(String((requestParameters as any)['idOrSlug']))).replace(`{${"more"}}`, encodeURIComponent(String((requestParameters as any)['more']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get the asset content. + */ + async getAssetContentBySlug(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetContentBySlugRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete an asset folder. + */ + async deleteAssetFolderRaw(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/assets/folders/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete an asset folder. + */ + async deleteAssetFolder(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteAssetFolderRaw(requestParameters, initOverrides); + } + + /** + * Get all asset folders for the app. + * Get asset folders. + */ + async getAssetFoldersRaw(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['parentId'] != null) { + queryParameters['parentId'] = requestParameters['parentId']; + } + + if (requestParameters['scope'] != null) { + queryParameters['scope'] = requestParameters['scope']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/assets/folders`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetFoldersDtoFromJSON(jsonValue)); + } + + /** + * Get all asset folders for the app. + * Get asset folders. + */ + async getAssetFolders(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetFoldersRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create an asset folder. + */ + async postAssetFolderRaw(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createAssetFolderDto'] == null) { + throw new runtime.RequiredError( + 'createAssetFolderDto', + 'Required parameter "createAssetFolderDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/folders`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateAssetFolderDtoToJSON(requestParameters['createAssetFolderDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetFolderDtoFromJSON(jsonValue)); + } + + /** + * Create an asset folder. + */ + async postAssetFolder(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postAssetFolderRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update an asset folder. + */ + async putAssetFolderRaw(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['renameAssetFolderDto'] == null) { + throw new runtime.RequiredError( + 'renameAssetFolderDto', + 'Required parameter "renameAssetFolderDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/folders/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: RenameAssetFolderDtoToJSON(requestParameters['renameAssetFolderDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetFolderDtoFromJSON(jsonValue)); + } + + /** + * Update an asset folder. + */ + async putAssetFolder(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetFolderRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Move an asset folder. + */ + async putAssetFolderParentRaw(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['moveAssetFolderDto'] == null) { + throw new runtime.RequiredError( + 'moveAssetFolderDto', + 'Required parameter "moveAssetFolderDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/folders/{id}/parent`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: MoveAssetFolderDtoToJSON(requestParameters['moveAssetFolderDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetFolderDtoFromJSON(jsonValue)); + } + + /** + * Move an asset folder. + */ + async putAssetFolderParent(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetFolderParentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Bulk update assets. + */ + async bulkUpdateAssetsRaw(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['bulkUpdateAssetsDto'] == null) { + throw new runtime.RequiredError( + 'bulkUpdateAssetsDto', + 'Required parameter "bulkUpdateAssetsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/bulk`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: BulkUpdateAssetsDtoToJSON(requestParameters['bulkUpdateAssetsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); + } + + /** + * Bulk update assets. + */ + async bulkUpdateAssets(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.bulkUpdateAssetsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete an asset. + */ + async deleteAssetRaw(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['checkReferrers'] != null) { + queryParameters['checkReferrers'] = requestParameters['checkReferrers']; + } + + if (requestParameters['permanent'] != null) { + queryParameters['permanent'] = requestParameters['permanent']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete an asset. + */ + async deleteAsset(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteAssetRaw(requestParameters, initOverrides); + } + + /** + * Get an asset by id. + */ + async getAssetRaw(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); + } + + /** + * Get an asset by id. + */ + async getAsset(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all assets for the app. + * Get assets. + */ + async getAssetsRaw(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['parentId'] != null) { + queryParameters['parentId'] = requestParameters['parentId']; + } + + if (requestParameters['ids'] != null) { + queryParameters['ids'] = requestParameters['ids']; + } + + if (requestParameters['q'] != null) { + queryParameters['q'] = requestParameters['q']; + } + + if (requestParameters['$top'] != null) { + queryParameters['$top'] = requestParameters['$top']; + } + + if (requestParameters['$skip'] != null) { + queryParameters['$skip'] = requestParameters['$skip']; + } + + if (requestParameters['$orderby'] != null) { + queryParameters['$orderby'] = requestParameters['$orderby']; + } + + if (requestParameters['$filter'] != null) { + queryParameters['$filter'] = requestParameters['$filter']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + const response = await this.request({ + path: `/api/apps/{app}/assets`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetsDtoFromJSON(jsonValue)); + } + + /** + * Get all assets for the app. + * Get assets. + */ + async getAssets(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all assets for the app. + * Get assets. + */ + async getAssetsPostRaw(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['queryDto'] == null) { + throw new runtime.RequiredError( + 'queryDto', + 'Required parameter "queryDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + const response = await this.request({ + path: `/api/apps/{app}/assets/query`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: QueryDtoToJSON(requestParameters['queryDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetsDtoFromJSON(jsonValue)); + } + + /** + * Get all assets for the app. + * Get assets. + */ + async getAssetsPost(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetsPostRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all tags for assets. + * Get assets tags. + */ + async getTagsRaw(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/assets/tags`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response); + } + + /** + * Get all tags for assets. + * Get assets tags. + */ + async getTags(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }> { + const response = await this.getTagsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * Upload a new asset. + */ + async postAssetRaw(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['parentId'] != null) { + queryParameters['ParentId'] = requestParameters['parentId']; + } + + if (requestParameters['id'] != null) { + queryParameters['id'] = requestParameters['id']; + } + + if (requestParameters['duplicate'] != null) { + queryParameters['duplicate'] = requestParameters['duplicate']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const consumes: runtime.Consume[] = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): any }; + let useForm = false; + // use FormData to transmit files using content-type "multipart/form-data" + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new URLSearchParams(); + } + + if (requestParameters['file'] != null) { + formParams.append('file', requestParameters['file'] as any); + } + + if (requestParameters['fileUrl'] != null) { + formParams.append('fileUrl', requestParameters['fileUrl'] as any); + } + + if (requestParameters['fileName'] != null) { + formParams.append('fileName', requestParameters['fileName'] as any); + } + + const response = await this.request({ + path: `/api/apps/{app}/assets`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); + } + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * Upload a new asset. + */ + async postAsset(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postAssetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * Upsert an asset. + */ + async postUpsertAssetRaw(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['parentId'] != null) { + queryParameters['parentId'] = requestParameters['parentId']; + } + + if (requestParameters['duplicate'] != null) { + queryParameters['duplicate'] = requestParameters['duplicate']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const consumes: runtime.Consume[] = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): any }; + let useForm = false; + // use FormData to transmit files using content-type "multipart/form-data" + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new URLSearchParams(); + } + + if (requestParameters['file'] != null) { + formParams.append('file', requestParameters['file'] as any); + } + + if (requestParameters['fileUrl'] != null) { + formParams.append('fileUrl', requestParameters['fileUrl'] as any); + } + + if (requestParameters['fileName'] != null) { + formParams.append('fileName', requestParameters['fileName'] as any); + } + + const response = await this.request({ + path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); + } + + /** + * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. + * Upsert an asset. + */ + async postUpsertAsset(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postUpsertAssetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update an asset. + */ + async putAssetRaw(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['annotateAssetDto'] == null) { + throw new runtime.RequiredError( + 'annotateAssetDto', + 'Required parameter "annotateAssetDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: AnnotateAssetDtoToJSON(requestParameters['annotateAssetDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); + } + + /** + * Update an asset. + */ + async putAsset(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Use multipart request to upload an asset. + * Replace asset content. + */ + async putAssetContentRaw(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const consumes: runtime.Consume[] = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): any }; + let useForm = false; + // use FormData to transmit files using content-type "multipart/form-data" + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new URLSearchParams(); + } + + if (requestParameters['file'] != null) { + formParams.append('file', requestParameters['file'] as any); + } + + if (requestParameters['fileUrl'] != null) { + formParams.append('fileUrl', requestParameters['fileUrl'] as any); + } + + if (requestParameters['fileName'] != null) { + formParams.append('fileName', requestParameters['fileName'] as any); + } + + const response = await this.request({ + path: `/api/apps/{app}/assets/{id}/content`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); + } + + /** + * Use multipart request to upload an asset. + * Replace asset content. + */ + async putAssetContent(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Moves the asset. + */ + async putAssetParentRaw(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['moveAssetDto'] == null) { + throw new runtime.RequiredError( + 'moveAssetDto', + 'Required parameter "moveAssetDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/{id}/parent`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: MoveAssetDtoToJSON(requestParameters['moveAssetDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); + } + + /** + * Moves the asset. + */ + async putAssetParent(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetParentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Rename an asset tag. + */ + async putTagRaw(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ().' + ); + } + + if (requestParameters['renameTagDto'] == null) { + throw new runtime.RequiredError( + 'renameTagDto', + 'Required parameter "renameTagDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/assets/tags/{name}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: RenameTagDtoToJSON(requestParameters['renameTagDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response); + } + + /** + * Rename an asset tag. + */ + async putTag(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }> { + const response = await this.putTagRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/BackupsApi.ts b/src/generated/apis/BackupsApi.ts new file mode 100644 index 0000000..d9b5ffe --- /dev/null +++ b/src/generated/apis/BackupsApi.ts @@ -0,0 +1,416 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + BackupJobsDto, + ErrorDto, + RestoreJobDto, + RestoreRequestDto, +} from '../models/index'; +import { + BackupJobsDtoFromJSON, + BackupJobsDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + RestoreJobDtoFromJSON, + RestoreJobDtoToJSON, + RestoreRequestDtoFromJSON, + RestoreRequestDtoToJSON, +} from '../models/index'; + +export interface BackupContentGetBackupContentRequest { + id: string; +} + +export interface BackupContentGetBackupContentV2Request { + id: string; + appId?: string; + app?: string; +} + +export interface BackupsDeleteBackupRequest { + id: string; +} + +export interface BackupsGetBackupsRequest { +} + +export interface BackupsPostBackupRequest { +} + +export interface RestorePostRestoreJobRequest { + restoreRequestDto: RestoreRequestDto; +} + +/** + * BackupsApi - interface + * + * @export + * @interface BackupsApiInterface + */ +export interface BackupsApiInterface { + /** + * + * @summary Get the backup content. + * @param {string} id The ID of the backup. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof BackupsApiInterface + */ + getBackupContentRaw(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the backup content. + * @deprecated + */ + getBackupContent(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get the backup content. + * @param {string} id The ID of the backup. + * @param {string} [appId] The ID of the app. + * @param {string} [app] The name of the app. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof BackupsApiInterface + */ + getBackupContentV2Raw(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the backup content. + * @deprecated + */ + getBackupContentV2(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete a backup. + * @param {string} id The ID of the backup to delete. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof BackupsApiInterface + */ + deleteBackupRaw(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a backup. + * @deprecated + */ + deleteBackup(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get all backup jobs. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof BackupsApiInterface + */ + getBackupsRaw(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all backup jobs. + * @deprecated + */ + getBackups(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Start a new backup. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BackupsApiInterface + */ + postBackupRaw(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Start a new backup. + */ + postBackup(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get current restore status. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BackupsApiInterface + */ + getRestoreJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get current restore status. + */ + getRestoreJob(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Restore a backup. + * @param {RestoreRequestDto} restoreRequestDto The backup to restore. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BackupsApiInterface + */ + postRestoreJobRaw(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Restore a backup. + */ + postRestoreJob(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { + + /** + * Get the backup content. + * @deprecated + */ + async getBackupContentRaw(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/backups/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get the backup content. + * @deprecated + */ + async getBackupContent(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getBackupContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get the backup content. + * @deprecated + */ + async getBackupContentV2Raw(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['appId'] != null) { + queryParameters['appId'] = requestParameters['appId']; + } + + if (requestParameters['app'] != null) { + queryParameters['app'] = requestParameters['app']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get the backup content. + * @deprecated + */ + async getBackupContentV2(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getBackupContentV2Raw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a backup. + * @deprecated + */ + async deleteBackupRaw(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/backups/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a backup. + * @deprecated + */ + async deleteBackup(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteBackupRaw(requestParameters, initOverrides); + } + + /** + * Get all backup jobs. + * @deprecated + */ + async getBackupsRaw(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/backups`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => BackupJobsDtoFromJSON(jsonValue)); + } + + /** + * Get all backup jobs. + * @deprecated + */ + async getBackups(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getBackupsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Start a new backup. + */ + async postBackupRaw(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/backups`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Start a new backup. + */ + async postBackup(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.postBackupRaw(requestParameters, initOverrides); + } + + /** + * Get current restore status. + */ + async getRestoreJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/restore`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RestoreJobDtoFromJSON(jsonValue)); + } + + /** + * Get current restore status. + */ + async getRestoreJob(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getRestoreJobRaw(initOverrides); + return await response.value(); + } + + /** + * Restore a backup. + */ + async postRestoreJobRaw(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['restoreRequestDto'] == null) { + throw new runtime.RequiredError( + 'restoreRequestDto', + 'Required parameter "restoreRequestDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/restore`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RestoreRequestDtoToJSON(requestParameters['restoreRequestDto']), + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Restore a backup. + */ + async postRestoreJob(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.postRestoreJobRaw(requestParameters, initOverrides); + } + +} diff --git a/src/generated/apis/ContentsApi.ts b/src/generated/apis/ContentsApi.ts new file mode 100644 index 0000000..f05dde0 --- /dev/null +++ b/src/generated/apis/ContentsApi.ts @@ -0,0 +1,2331 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AllContentsByPostDto, + BulkResultDto, + BulkUpdateContentsDto, + ChangeStatusDto, + ContentDto, + ContentsDto, + ErrorDto, + ImportContentsDto, + QueryDto, +} from '../models/index'; +import { + AllContentsByPostDtoFromJSON, + AllContentsByPostDtoToJSON, + BulkResultDtoFromJSON, + BulkResultDtoToJSON, + BulkUpdateContentsDtoFromJSON, + BulkUpdateContentsDtoToJSON, + ChangeStatusDtoFromJSON, + ChangeStatusDtoToJSON, + ContentDtoFromJSON, + ContentDtoToJSON, + ContentsDtoFromJSON, + ContentsDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + ImportContentsDtoFromJSON, + ImportContentsDtoToJSON, + QueryDtoFromJSON, + QueryDtoToJSON, +} from '../models/index'; + +export interface ContentsBulkUpdateContentsRequest { + schema: string; + bulkUpdateContentsDto: BulkUpdateContentsDto; +} + +export interface ContentsCreateDraftRequest { + schema: string; + id: string; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsDeleteContentRequest { + schema: string; + id: string; + checkReferrers?: boolean; + permanent?: boolean; +} + +export interface ContentsDeleteContentStatusRequest { + schema: string; + id: string; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsDeleteVersionRequest { + schema: string; + id: string; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsGetContentRequest { + schema: string; + id: string; + version?: number; + xFields?: string; + xFlatten?: boolean; + xLanguages?: string; + xUnpublished?: boolean; +} + +export interface ContentsGetContentValidityRequest { + schema: string; + id: string; +} + +export interface ContentsGetContentVersionRequest { + schema: string; + id: string; + version: number; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsGetContentsRequest { + schema: string; + ids?: string | null; + q?: string | null; + $search?: string; + $top?: number; + $skip?: number; + $orderby?: string; + $filter?: string; + xFields?: string; + xFlatten?: boolean; + xLanguages?: string; + xNoSlowTotal?: boolean; + xNoTotal?: boolean; + xUnpublished?: boolean; +} + +export interface ContentsGetContentsPostRequest { + schema: string; + queryDto: QueryDto; + xFields?: string; + xFlatten?: boolean; + xLanguages?: string; + xNoSlowTotal?: boolean; + xNoTotal?: boolean; + xUnpublished?: boolean; +} + +export interface ContentsGetReferencesRequest { + schema: string; + id: string; + q?: string | null; + xFields?: string; + xFlatten?: boolean; + xLanguages?: string; + xUnpublished?: boolean; + xNoSlowTotal?: boolean; + xNoTotal?: boolean; +} + +export interface ContentsGetReferencingRequest { + schema: string; + id: string; + q?: string | null; + xFields?: string; + xFlatten?: boolean; + xLanguages?: string; + xUnpublished?: boolean; + xNoSlowTotal?: boolean; + xNoTotal?: boolean; +} + +export interface ContentsPatchContentRequest { + schema: string; + id: string; + requestBody: { [key: string]: { [key: string]: any; }; }; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsPostContentRequest { + schema: string; + requestBody: { [key: string]: { [key: string]: any; }; }; + status?: string | null; + id?: string | null; + publish?: boolean; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsPostContentsRequest { + schema: string; + importContentsDto: ImportContentsDto; +} + +export interface ContentsPostUpsertContentRequest { + schema: string; + id: string; + requestBody: { [key: string]: { [key: string]: any; }; }; + status?: string | null; + patch?: boolean; + enrichDefaults?: boolean; + publish?: boolean; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsPutContentRequest { + schema: string; + id: string; + requestBody: { [key: string]: { [key: string]: any; }; }; + enrichDefaults?: boolean; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsPutContentDefaultsRequest { + schema: string; + id: string; + enrichRequiredFields?: boolean; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsPutContentStatusRequest { + schema: string; + id: string; + changeStatusDto: ChangeStatusDto; + xUnpublished?: boolean; + xLanguages?: string; +} + +export interface ContentsSharedBulkUpdateAllContentsRequest { + bulkUpdateContentsDto: BulkUpdateContentsDto; + schema?: string; +} + +export interface ContentsSharedGetAllContentsRequest { + ids?: string | null; + scheduleFrom?: Date | null; + scheduleTo?: Date | null; + referencing?: string | null; + references?: string | null; + q?: string | null; + xFields?: string; + xFlatten?: boolean; + xLanguages?: string; + xNoSlowTotal?: boolean; + xNoTotal?: boolean; + xUnpublished?: boolean; +} + +export interface ContentsSharedGetAllContentsPostRequest { + allContentsByPostDto: AllContentsByPostDto; + xFields?: string; + xFlatten?: boolean; + xLanguages?: string; + xNoSlowTotal?: boolean; + xNoTotal?: boolean; + xUnpublished?: boolean; +} + +export interface ContentsSharedGetGraphQLRequest { + theQueryString?: string; + variables?: string | null; + operationName?: string | null; + xUnpublished?: boolean; +} + +export interface ContentsSharedGetGraphQLBatchRequest { + theQueryString?: string; + variables?: string | null; + operationName?: string | null; + xUnpublished?: boolean; +} + +export interface ContentsSharedPostGraphQLRequest { + xUnpublished?: boolean; + body?: any | null; +} + +export interface ContentsSharedPostGraphQLBatchRequest { + xUnpublished?: boolean; + body?: any | null; +} + +/** + * ContentsApi - interface + * + * @export + * @interface ContentsApiInterface + */ +export interface ContentsApiInterface { + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Bulk update content items. + * @param {string} schema The name of the schema. + * @param {BulkUpdateContentsDto} bulkUpdateContentsDto The bulk update request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + bulkUpdateContentsRaw(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Bulk update content items. + */ + bulkUpdateContents(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Create a new draft version. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to create the draft for. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + createDraftRaw(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Create a new draft version. + */ + createDraft(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can create an generated documentation for your app at /api/content/{appName}/docs. + * @summary Delete a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to delete. + * @param {boolean} [checkReferrers] True to check referrers of this content. + * @param {boolean} [permanent] True to delete the content permanently. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + deleteContentRaw(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can create an generated documentation for your app at /api/content/{appName}/docs. + * Delete a content item. + */ + deleteContent(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Cancel status change of a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to cancel. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + deleteContentStatusRaw(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Cancel status change of a content item. + */ + deleteContentStatus(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Delete the draft version. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to delete the draft from. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + deleteVersionRaw(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Delete the draft version. + */ + deleteVersion(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Get a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content to fetch. + * @param {number} [version] The optional version. + * @param {string} [xFields] The list of content fields (comma-separated). + * @param {boolean} [xFlatten] Provide the data as flat object. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getContentRaw(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content item. + */ + getContent(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Get a content item validity. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content to fetch. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getContentValidityRaw(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content item validity. + */ + getContentValidity(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Get a content by version. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content to fetch. + * @param {number} version The version fo the content to fetch. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getContentVersionRaw(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content by version. + * @deprecated + */ + getContentVersion(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Queries contents. + * @param {string} schema The name of the schema. + * @param {string} [ids] The optional ids of the content to fetch. + * @param {string} [q] The optional json query. + * @param {string} [$search] Optional number of items to skip. + * @param {number} [$top] Optional number of items to take. + * @param {number} [$skip] Optional number of items to skip. + * @param {string} [$orderby] Optional OData order definition. + * @param {string} [$filter] Optional OData filter. + * @param {string} [xFields] The list of content fields (comma-separated). + * @param {boolean} [xFlatten] Provide the data as flat object. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getContentsRaw(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + getContents(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Queries contents. + * @param {string} schema The name of the schema. + * @param {QueryDto} queryDto The required query object. + * @param {string} [xFields] The list of content fields (comma-separated). + * @param {boolean} [xFlatten] Provide the data as flat object. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getContentsPostRaw(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + getContentsPost(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Get all references of a content. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content to fetch. + * @param {string} [q] The optional json query. + * @param {string} [xFields] The list of content fields (comma-separated). + * @param {boolean} [xFlatten] Provide the data as flat object. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getReferencesRaw(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get all references of a content. + */ + getReferences(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Get a referencing contents of a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content to fetch. + * @param {string} [q] The optional json query. + * @param {string} [xFields] The list of content fields (comma-separated). + * @param {boolean} [xFlatten] Provide the data as flat object. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getReferencingRaw(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a referencing contents of a content item. + */ + getReferencing(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Patchs a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to patch. + * @param {{ [key: string]: { [key: string]: any; }; }} requestBody The patch for the content item. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + patchContentRaw(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Patchs a content item. + */ + patchContent(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Create a content item. + * @param {string} schema The name of the schema. + * @param {{ [key: string]: { [key: string]: any; }; }} requestBody The full data for the content item. + * @param {string} [status] The initial status. + * @param {string} [id] The optional custom content id. + * @param {boolean} [publish] True to automatically publish the content. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + postContentRaw(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Create a content item. + */ + postContent(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Import content items. + * @param {string} schema The name of the schema. + * @param {ImportContentsDto} importContentsDto The import request. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + postContentsRaw(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Import content items. + * @deprecated + */ + postContents(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Upsert a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to update. + * @param {{ [key: string]: { [key: string]: any; }; }} requestBody The full data for the content item. + * @param {string} [status] The initial status. + * @param {boolean} [patch] Makes the update as patch. + * @param {boolean} [enrichDefaults] Enrich the content with defaults. + * @param {boolean} [publish] True to automatically publish the content. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + postUpsertContentRaw(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Upsert a content item. + */ + postUpsertContent(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Update a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to update. + * @param {{ [key: string]: { [key: string]: any; }; }} requestBody The full data for the content item. + * @param {boolean} [enrichDefaults] Enrich the content with defaults. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + putContentRaw(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Update a content item. + */ + putContent(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Enrich a content item with defaults. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to update. + * @param {boolean} [enrichRequiredFields] True, to also enrich required fields. Default: false. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + putContentDefaultsRaw(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Enrich a content item with defaults. + */ + putContentDefaults(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Change status of a content item. + * @param {string} schema The name of the schema. + * @param {string} id The ID of the content item to change. + * @param {ChangeStatusDto} changeStatusDto The status request. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + putContentStatusRaw(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Change status of a content item. + */ + putContentStatus(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Bulk update content items. + * @param {BulkUpdateContentsDto} bulkUpdateContentsDto The bulk update request. + * @param {string} [schema] The name of the schema. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + bulkUpdateAllContentsRaw(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Bulk update content items. + */ + bulkUpdateAllContents(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Queries contents. + * @param {string} [ids] The list of ids to query. + * @param {Date} [scheduleFrom] The start of the schedule. + * @param {Date} [scheduleTo] The end of the schedule. + * @param {string} [referencing] The ID of the referencing content item. + * @param {string} [references] The ID of the reference content item. + * @param {string} [q] The optional json query. + * @param {string} [xFields] The list of content fields (comma-separated). + * @param {boolean} [xFlatten] Provide the data as flat object. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getAllContentsRaw(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + getAllContents(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary Queries contents. + * @param {AllContentsByPostDto} allContentsByPostDto The required query object. + * @param {string} [xFields] The list of content fields (comma-separated). + * @param {boolean} [xFlatten] Provide the data as flat object. + * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getAllContentsPostRaw(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + getAllContentsPost(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary GraphQL endpoint. + * @param {string} [theQueryString] The optional version of the asset. + * @param {string} [variables] The optional operation variables. + * @param {string} [operationName] The optional operation name. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getGraphQLRaw(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL endpoint. + */ + getGraphQL(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary GraphQL batch endpoint. + * @param {string} [theQueryString] The optional version of the asset. + * @param {string} [variables] The optional operation variables. + * @param {string} [operationName] The optional operation name. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + getGraphQLBatchRaw(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL batch endpoint. + */ + getGraphQLBatch(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary GraphQL endpoint. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {any} [body] The graphql request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + postGraphQLRaw(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL endpoint. + */ + postGraphQL(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * @summary GraphQL batch endpoint. + * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {any} [body] The graphql request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ContentsApiInterface + */ + postGraphQLBatchRaw(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL batch endpoint. + */ + postGraphQLBatch(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface { + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Bulk update content items. + */ + async bulkUpdateContentsRaw(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['bulkUpdateContentsDto'] == null) { + throw new runtime.RequiredError( + 'bulkUpdateContentsDto', + 'Required parameter "bulkUpdateContentsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/content/{app}/{schema}/bulk`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: BulkUpdateContentsDtoToJSON(requestParameters['bulkUpdateContentsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Bulk update content items. + */ + async bulkUpdateContents(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.bulkUpdateContentsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Create a new draft version. + */ + async createDraftRaw(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/draft`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Create a new draft version. + */ + async createDraft(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createDraftRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can create an generated documentation for your app at /api/content/{appName}/docs. + * Delete a content item. + */ + async deleteContentRaw(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['checkReferrers'] != null) { + queryParameters['checkReferrers'] = requestParameters['checkReferrers']; + } + + if (requestParameters['permanent'] != null) { + queryParameters['permanent'] = requestParameters['permanent']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * You can create an generated documentation for your app at /api/content/{appName}/docs. + * Delete a content item. + */ + async deleteContent(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteContentRaw(requestParameters, initOverrides); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Cancel status change of a content item. + */ + async deleteContentStatusRaw(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/status`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Cancel status change of a content item. + */ + async deleteContentStatus(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteContentStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Delete the draft version. + */ + async deleteVersionRaw(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/draft`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Delete the draft version. + */ + async deleteVersion(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteVersionRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content item. + */ + async getContentRaw(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xFields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['xFields']); + } + + if (requestParameters['xFlatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content item. + */ + async getContent(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content item validity. + */ + async getContentValidityRaw(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/validity`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content item validity. + */ + async getContentValidity(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.getContentValidityRaw(requestParameters, initOverrides); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content by version. + * @deprecated + */ + async getContentVersionRaw(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['version'] == null) { + throw new runtime.RequiredError( + 'version', + 'Required parameter "version" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/{version}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace(`{${"version"}}`, encodeURIComponent(String((requestParameters as any)['version']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a content by version. + * @deprecated + */ + async getContentVersion(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentVersionRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getContentsRaw(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['ids'] != null) { + queryParameters['ids'] = requestParameters['ids']; + } + + if (requestParameters['q'] != null) { + queryParameters['q'] = requestParameters['q']; + } + + if (requestParameters['$search'] != null) { + queryParameters['$search'] = requestParameters['$search']; + } + + if (requestParameters['$top'] != null) { + queryParameters['$top'] = requestParameters['$top']; + } + + if (requestParameters['$skip'] != null) { + queryParameters['$skip'] = requestParameters['$skip']; + } + + if (requestParameters['$orderby'] != null) { + queryParameters['$orderby'] = requestParameters['$orderby']; + } + + if (requestParameters['$filter'] != null) { + queryParameters['$filter'] = requestParameters['$filter']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xFields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['xFields']); + } + + if (requestParameters['xFlatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getContents(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getContentsPostRaw(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['queryDto'] == null) { + throw new runtime.RequiredError( + 'queryDto', + 'Required parameter "queryDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xFields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['xFields']); + } + + if (requestParameters['xFlatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/query`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: QueryDtoToJSON(requestParameters['queryDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getContentsPost(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentsPostRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get all references of a content. + */ + async getReferencesRaw(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['q'] != null) { + queryParameters['q'] = requestParameters['q']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xFields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['xFields']); + } + + if (requestParameters['xFlatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/references`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get all references of a content. + */ + async getReferences(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getReferencesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a referencing contents of a content item. + */ + async getReferencingRaw(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['q'] != null) { + queryParameters['q'] = requestParameters['q']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xFields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['xFields']); + } + + if (requestParameters['xFlatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/referencing`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Get a referencing contents of a content item. + */ + async getReferencing(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getReferencingRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Patchs a content item. + */ + async patchContentRaw(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Patchs a content item. + */ + async patchContent(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Create a content item. + */ + async postContentRaw(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['status'] != null) { + queryParameters['status'] = requestParameters['status']; + } + + if (requestParameters['id'] != null) { + queryParameters['id'] = requestParameters['id']; + } + + if (requestParameters['publish'] != null) { + queryParameters['publish'] = requestParameters['publish']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Create a content item. + */ + async postContent(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Import content items. + * @deprecated + */ + async postContentsRaw(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['importContentsDto'] == null) { + throw new runtime.RequiredError( + 'importContentsDto', + 'Required parameter "importContentsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/content/{app}/{schema}/import`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ImportContentsDtoToJSON(requestParameters['importContentsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Import content items. + * @deprecated + */ + async postContents(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.postContentsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Upsert a content item. + */ + async postUpsertContentRaw(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['status'] != null) { + queryParameters['status'] = requestParameters['status']; + } + + if (requestParameters['patch'] != null) { + queryParameters['patch'] = requestParameters['patch']; + } + + if (requestParameters['enrichDefaults'] != null) { + queryParameters['enrichDefaults'] = requestParameters['enrichDefaults']; + } + + if (requestParameters['publish'] != null) { + queryParameters['publish'] = requestParameters['publish']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Upsert a content item. + */ + async postUpsertContent(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postUpsertContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Update a content item. + */ + async putContentRaw(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['enrichDefaults'] != null) { + queryParameters['enrichDefaults'] = requestParameters['enrichDefaults']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Update a content item. + */ + async putContent(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Enrich a content item with defaults. + */ + async putContentDefaultsRaw(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['enrichRequiredFields'] != null) { + queryParameters['enrichRequiredFields'] = requestParameters['enrichRequiredFields']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/defaults`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Enrich a content item with defaults. + */ + async putContentDefaults(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putContentDefaultsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Change status of a content item. + */ + async putContentStatusRaw(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['changeStatusDto'] == null) { + throw new runtime.RequiredError( + 'changeStatusDto', + 'Required parameter "changeStatusDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + const response = await this.request({ + path: `/api/content/{app}/{schema}/{id}/status`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ChangeStatusDtoToJSON(requestParameters['changeStatusDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Change status of a content item. + */ + async putContentStatus(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putContentStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Bulk update content items. + */ + async bulkUpdateAllContentsRaw(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['bulkUpdateContentsDto'] == null) { + throw new runtime.RequiredError( + 'bulkUpdateContentsDto', + 'Required parameter "bulkUpdateContentsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['schema'] != null) { + queryParameters['schema'] = requestParameters['schema']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/content/{app}/bulk`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: BulkUpdateContentsDtoToJSON(requestParameters['bulkUpdateContentsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Bulk update content items. + */ + async bulkUpdateAllContents(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.bulkUpdateAllContentsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getAllContentsRaw(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['ids'] != null) { + queryParameters['ids'] = requestParameters['ids']; + } + + if (requestParameters['scheduleFrom'] != null) { + queryParameters['scheduleFrom'] = (requestParameters['scheduleFrom'] as any).toISOString(); + } + + if (requestParameters['scheduleTo'] != null) { + queryParameters['scheduleTo'] = (requestParameters['scheduleTo'] as any).toISOString(); + } + + if (requestParameters['referencing'] != null) { + queryParameters['referencing'] = requestParameters['referencing']; + } + + if (requestParameters['references'] != null) { + queryParameters['references'] = requestParameters['references']; + } + + if (requestParameters['q'] != null) { + queryParameters['q'] = requestParameters['q']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xFields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['xFields']); + } + + if (requestParameters['xFlatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getAllContents(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAllContentsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getAllContentsPostRaw(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['allContentsByPostDto'] == null) { + throw new runtime.RequiredError( + 'allContentsByPostDto', + 'Required parameter "allContentsByPostDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xFields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['xFields']); + } + + if (requestParameters['xFlatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + } + + if (requestParameters['xLanguages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + } + + if (requestParameters['xNoSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + } + + if (requestParameters['xNoTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + } + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AllContentsByPostDtoToJSON(requestParameters['allContentsByPostDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * Queries contents. + */ + async getAllContentsPost(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAllContentsPostRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL endpoint. + */ + async getGraphQLRaw(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['theQueryString'] != null) { + queryParameters['The query string'] = requestParameters['theQueryString']; + } + + if (requestParameters['variables'] != null) { + queryParameters['variables'] = requestParameters['variables']; + } + + if (requestParameters['operationName'] != null) { + queryParameters['operationName'] = requestParameters['operationName']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}/graphql`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL endpoint. + */ + async getGraphQL(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getGraphQLRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL batch endpoint. + */ + async getGraphQLBatchRaw(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['theQueryString'] != null) { + queryParameters['The query string'] = requestParameters['theQueryString']; + } + + if (requestParameters['variables'] != null) { + queryParameters['variables'] = requestParameters['variables']; + } + + if (requestParameters['operationName'] != null) { + queryParameters['operationName'] = requestParameters['operationName']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}/graphql/batch`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL batch endpoint. + */ + async getGraphQLBatch(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getGraphQLBatchRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL endpoint. + */ + async postGraphQLRaw(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}/graphql`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'] as any, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL endpoint. + */ + async postGraphQL(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postGraphQLRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL batch endpoint. + */ + async postGraphQLBatchRaw(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (requestParameters['xUnpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + } + + const response = await this.request({ + path: `/api/content/{app}/graphql/batch`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'] as any, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + * GraphQL batch endpoint. + */ + async postGraphQLBatch(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postGraphQLBatchRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/DiagnosticsApi.ts b/src/generated/apis/DiagnosticsApi.ts new file mode 100644 index 0000000..38f3642 --- /dev/null +++ b/src/generated/apis/DiagnosticsApi.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, +} from '../models/index'; + +/** + * DiagnosticsApi - interface + * + * @export + * @interface DiagnosticsApiInterface + */ +export interface DiagnosticsApiInterface { + /** + * + * @summary Creates a dump and writes it into storage.. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DiagnosticsApiInterface + */ + getDumpRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Creates a dump and writes it into storage.. + */ + getDump(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Creates a gc dump and writes it into storage. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DiagnosticsApiInterface + */ + getGCDumpRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Creates a gc dump and writes it into storage. + */ + getGCDump(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class DiagnosticsApi extends runtime.BaseAPI implements DiagnosticsApiInterface { + + /** + * Creates a dump and writes it into storage.. + */ + async getDumpRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/diagnostics/dump`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Creates a dump and writes it into storage.. + */ + async getDump(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.getDumpRaw(initOverrides); + } + + /** + * Creates a gc dump and writes it into storage. + */ + async getGCDumpRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/diagnostics/gcdump`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Creates a gc dump and writes it into storage. + */ + async getGCDump(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.getGCDumpRaw(initOverrides); + } + +} diff --git a/src/generated/apis/EventConsumersApi.ts b/src/generated/apis/EventConsumersApi.ts new file mode 100644 index 0000000..7806aae --- /dev/null +++ b/src/generated/apis/EventConsumersApi.ts @@ -0,0 +1,244 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + EventConsumerDto, + EventConsumersDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + EventConsumerDtoFromJSON, + EventConsumerDtoToJSON, + EventConsumersDtoFromJSON, + EventConsumersDtoToJSON, +} from '../models/index'; + +export interface EventConsumersResetEventConsumerRequest { + consumerName: string; +} + +export interface EventConsumersStartEventConsumerRequest { + consumerName: string; +} + +export interface EventConsumersStopEventConsumerRequest { + consumerName: string; +} + +/** + * EventConsumersApi - interface + * + * @export + * @interface EventConsumersApiInterface + */ +export interface EventConsumersApiInterface { + /** + * + * @summary Get event consumers. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventConsumersApiInterface + */ + getEventConsumersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get event consumers. + */ + getEventConsumers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Reset an event consumer. + * @param {string} consumerName The name of the event consumer. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventConsumersApiInterface + */ + resetEventConsumerRaw(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Reset an event consumer. + */ + resetEventConsumer(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Start an event consumer. + * @param {string} consumerName The name of the event consumer. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventConsumersApiInterface + */ + startEventConsumerRaw(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Start an event consumer. + */ + startEventConsumer(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Stop an event consumer. + * @param {string} consumerName The name of the event consumer. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventConsumersApiInterface + */ + stopEventConsumerRaw(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Stop an event consumer. + */ + stopEventConsumer(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class EventConsumersApi extends runtime.BaseAPI implements EventConsumersApiInterface { + + /** + * Get event consumers. + */ + async getEventConsumersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/event-consumers`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => EventConsumersDtoFromJSON(jsonValue)); + } + + /** + * Get event consumers. + */ + async getEventConsumers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getEventConsumersRaw(initOverrides); + return await response.value(); + } + + /** + * Reset an event consumer. + */ + async resetEventConsumerRaw(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['consumerName'] == null) { + throw new runtime.RequiredError( + 'consumerName', + 'Required parameter "consumerName" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/event-consumers/{consumerName}/reset`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => EventConsumerDtoFromJSON(jsonValue)); + } + + /** + * Reset an event consumer. + */ + async resetEventConsumer(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.resetEventConsumerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Start an event consumer. + */ + async startEventConsumerRaw(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['consumerName'] == null) { + throw new runtime.RequiredError( + 'consumerName', + 'Required parameter "consumerName" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/event-consumers/{consumerName}/start`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => EventConsumerDtoFromJSON(jsonValue)); + } + + /** + * Start an event consumer. + */ + async startEventConsumer(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.startEventConsumerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Stop an event consumer. + */ + async stopEventConsumerRaw(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['consumerName'] == null) { + throw new runtime.RequiredError( + 'consumerName', + 'Required parameter "consumerName" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/event-consumers/{consumerName}/stop`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => EventConsumerDtoFromJSON(jsonValue)); + } + + /** + * Stop an event consumer. + */ + async stopEventConsumer(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.stopEventConsumerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/HistoryApi.ts b/src/generated/apis/HistoryApi.ts new file mode 100644 index 0000000..adfdb71 --- /dev/null +++ b/src/generated/apis/HistoryApi.ts @@ -0,0 +1,151 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + HistoryEventDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + HistoryEventDtoFromJSON, + HistoryEventDtoToJSON, +} from '../models/index'; + +export interface HistoryGetAppHistoryRequest { + channel?: string; +} + +export interface HistoryGetTeamHistoryRequest { + team: string; + channel?: string; +} + +/** + * HistoryApi - interface + * + * @export + * @interface HistoryApiInterface + */ +export interface HistoryApiInterface { + /** + * + * @summary Get the app history. + * @param {string} [channel] The name of the channel. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HistoryApiInterface + */ + getAppHistoryRaw(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Get the app history. + */ + getAppHistory(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * + * @summary Get the team history. + * @param {string} team The ID of the team. + * @param {string} [channel] The name of the channel. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HistoryApiInterface + */ + getTeamHistoryRaw(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Get the team history. + */ + getTeamHistory(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + +} + +/** + * + */ +export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { + + /** + * Get the app history. + */ + async getAppHistoryRaw(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['channel'] != null) { + queryParameters['channel'] = requestParameters['channel']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/history`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(HistoryEventDtoFromJSON)); + } + + /** + * Get the app history. + */ + async getAppHistory(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getAppHistoryRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get the team history. + */ + async getTeamHistoryRaw(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['channel'] != null) { + queryParameters['channel'] = requestParameters['channel']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/history`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(HistoryEventDtoFromJSON)); + } + + /** + * Get the team history. + */ + async getTeamHistory(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getTeamHistoryRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/JobsApi.ts b/src/generated/apis/JobsApi.ts new file mode 100644 index 0000000..dd9927a --- /dev/null +++ b/src/generated/apis/JobsApi.ts @@ -0,0 +1,197 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + JobsDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + JobsDtoFromJSON, + JobsDtoToJSON, +} from '../models/index'; + +export interface JobsContentGetJobContentRequest { + id: string; + appId?: string; +} + +export interface JobsDeleteJobRequest { + id: string; +} + +export interface JobsGetJobsRequest { +} + +/** + * JobsApi - interface + * + * @export + * @interface JobsApiInterface + */ +export interface JobsApiInterface { + /** + * + * @summary Get the job content. + * @param {string} id The ID of the job. + * @param {string} [appId] The ID of the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof JobsApiInterface + */ + getJobContentRaw(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the job content. + */ + getJobContent(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete a job. + * @param {string} id The ID of the jobs to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof JobsApiInterface + */ + deleteJobRaw(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a job. + */ + deleteJob(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get all jobs. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof JobsApiInterface + */ + getJobsRaw(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all jobs. + */ + getJobs(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { + + /** + * Get the job content. + */ + async getJobContentRaw(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['appId'] != null) { + queryParameters['appId'] = requestParameters['appId']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get the job content. + */ + async getJobContent(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getJobContentRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a job. + */ + async deleteJobRaw(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/jobs/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a job. + */ + async deleteJob(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteJobRaw(requestParameters, initOverrides); + } + + /** + * Get all jobs. + */ + async getJobsRaw(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/jobs`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => JobsDtoFromJSON(jsonValue)); + } + + /** + * Get all jobs. + */ + async getJobs(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getJobsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/LanguagesApi.ts b/src/generated/apis/LanguagesApi.ts new file mode 100644 index 0000000..96fdbec --- /dev/null +++ b/src/generated/apis/LanguagesApi.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + LanguageDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + LanguageDtoFromJSON, + LanguageDtoToJSON, +} from '../models/index'; + +/** + * LanguagesApi - interface + * + * @export + * @interface LanguagesApiInterface + */ +export interface LanguagesApiInterface { + /** + * Provide a list of supported language codes, following the ISO2Code standard. + * @summary Get supported languages. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LanguagesApiInterface + */ + getLanguagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Provide a list of supported language codes, following the ISO2Code standard. + * Get supported languages. + */ + getLanguages(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + +} + +/** + * + */ +export class LanguagesApi extends runtime.BaseAPI implements LanguagesApiInterface { + + /** + * Provide a list of supported language codes, following the ISO2Code standard. + * Get supported languages. + */ + async getLanguagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/languages`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(LanguageDtoFromJSON)); + } + + /** + * Provide a list of supported language codes, following the ISO2Code standard. + * Get supported languages. + */ + async getLanguages(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getLanguagesRaw(initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/NewsApi.ts b/src/generated/apis/NewsApi.ts new file mode 100644 index 0000000..2b57aef --- /dev/null +++ b/src/generated/apis/NewsApi.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + FeaturesDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + FeaturesDtoFromJSON, + FeaturesDtoToJSON, +} from '../models/index'; + +export interface NewsGetNewsRequest { + version?: number; +} + +/** + * NewsApi - interface + * + * @export + * @interface NewsApiInterface + */ +export interface NewsApiInterface { + /** + * + * @summary Get features since version. + * @param {number} [version] The latest received version. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NewsApiInterface + */ + getNewsRaw(requestParameters: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get features since version. + */ + getNews(requestParameters: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class NewsApi extends runtime.BaseAPI implements NewsApiInterface { + + /** + * Get features since version. + */ + async getNewsRaw(requestParameters: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/news/features`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesDtoFromJSON(jsonValue)); + } + + /** + * Get features since version. + */ + async getNews(requestParameters: NewsGetNewsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getNewsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/PingApi.ts b/src/generated/apis/PingApi.ts new file mode 100644 index 0000000..09441bb --- /dev/null +++ b/src/generated/apis/PingApi.ts @@ -0,0 +1,167 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, +} from '../models/index'; + +export interface PingGetAppPingRequest { +} + +/** + * PingApi - interface + * + * @export + * @interface PingApiInterface + */ +export interface PingApiInterface { + /** + * Can be used to test, if the Squidex API is alive and responding. + * @summary Get ping status. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PingApiInterface + */ + getAppPingRaw(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Can be used to test, if the Squidex API is alive and responding. + * Get ping status. + */ + getAppPing(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get API information. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PingApiInterface + */ + getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get API information. + */ + getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: string; }>; + + /** + * Can be used to test, if the Squidex API is alive and responding. + * @summary Get ping status of the API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PingApiInterface + */ + getPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Can be used to test, if the Squidex API is alive and responding. + * Get ping status of the API. + */ + getPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class PingApi extends runtime.BaseAPI implements PingApiInterface { + + /** + * Can be used to test, if the Squidex API is alive and responding. + * Get ping status. + */ + async getAppPingRaw(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/ping/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Can be used to test, if the Squidex API is alive and responding. + * Get ping status. + */ + async getAppPing(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.getAppPingRaw(requestParameters, initOverrides); + } + + /** + * Get API information. + */ + async getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/info`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response); + } + + /** + * Get API information. + */ + async getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: string; }> { + const response = await this.getInfoRaw(initOverrides); + return await response.value(); + } + + /** + * Can be used to test, if the Squidex API is alive and responding. + * Get ping status of the API. + */ + async getPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/ping`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Can be used to test, if the Squidex API is alive and responding. + * Get ping status of the API. + */ + async getPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.getPingRaw(initOverrides); + } + +} diff --git a/src/generated/apis/PlansApi.ts b/src/generated/apis/PlansApi.ts new file mode 100644 index 0000000..9fa3225 --- /dev/null +++ b/src/generated/apis/PlansApi.ts @@ -0,0 +1,266 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ChangePlanDto, + ErrorDto, + PlanChangedDto, + PlansDto, +} from '../models/index'; +import { + ChangePlanDtoFromJSON, + ChangePlanDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + PlanChangedDtoFromJSON, + PlanChangedDtoToJSON, + PlansDtoFromJSON, + PlansDtoToJSON, +} from '../models/index'; + +export interface AppPlansGetPlansRequest { +} + +export interface AppPlansPutPlanRequest { + changePlanDto: ChangePlanDto; +} + +export interface TeamPlansGetTeamPlansRequest { + team: string; +} + +export interface TeamPlansPutTeamPlanRequest { + team: string; + changePlanDto: ChangePlanDto; +} + +/** + * PlansApi - interface + * + * @export + * @interface PlansApiInterface + */ +export interface PlansApiInterface { + /** + * + * @summary Get app plan information. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlansApiInterface + */ + getPlansRaw(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get app plan information. + */ + getPlans(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Change the app plan. + * @param {ChangePlanDto} changePlanDto Plan object that needs to be changed. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlansApiInterface + */ + putPlanRaw(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Change the app plan. + */ + putPlan(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get team plan information. + * @param {string} team The name of the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlansApiInterface + */ + getTeamPlansRaw(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get team plan information. + */ + getTeamPlans(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Change the team plan. + * @param {string} team The name of the team. + * @param {ChangePlanDto} changePlanDto Plan object that needs to be changed. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlansApiInterface + */ + putTeamPlanRaw(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Change the team plan. + */ + putTeamPlan(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { + + /** + * Get app plan information. + */ + async getPlansRaw(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/plans`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PlansDtoFromJSON(jsonValue)); + } + + /** + * Get app plan information. + */ + async getPlans(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getPlansRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Change the app plan. + */ + async putPlanRaw(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['changePlanDto'] == null) { + throw new runtime.RequiredError( + 'changePlanDto', + 'Required parameter "changePlanDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/plan`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ChangePlanDtoToJSON(requestParameters['changePlanDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PlanChangedDtoFromJSON(jsonValue)); + } + + /** + * Change the app plan. + */ + async putPlan(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putPlanRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get team plan information. + */ + async getTeamPlansRaw(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/plans`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PlansDtoFromJSON(jsonValue)); + } + + /** + * Get team plan information. + */ + async getTeamPlans(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamPlansRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Change the team plan. + */ + async putTeamPlanRaw(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + if (requestParameters['changePlanDto'] == null) { + throw new runtime.RequiredError( + 'changePlanDto', + 'Required parameter "changePlanDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/teams/{team}/plan`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ChangePlanDtoToJSON(requestParameters['changePlanDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PlanChangedDtoFromJSON(jsonValue)); + } + + /** + * Change the team plan. + */ + async putTeamPlan(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putTeamPlanRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/RulesApi.ts b/src/generated/apis/RulesApi.ts new file mode 100644 index 0000000..4d63fe8 --- /dev/null +++ b/src/generated/apis/RulesApi.ts @@ -0,0 +1,1043 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + CreateRuleDto, + ErrorDto, + RuleDto, + RuleElementDto, + RuleEventsDto, + RulesDto, + SimulatedRuleEventsDto, + UpdateRuleDto, +} from '../models/index'; +import { + CreateRuleDtoFromJSON, + CreateRuleDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + RuleDtoFromJSON, + RuleDtoToJSON, + RuleElementDtoFromJSON, + RuleElementDtoToJSON, + RuleEventsDtoFromJSON, + RuleEventsDtoToJSON, + RulesDtoFromJSON, + RulesDtoToJSON, + SimulatedRuleEventsDtoFromJSON, + SimulatedRuleEventsDtoToJSON, + UpdateRuleDtoFromJSON, + UpdateRuleDtoToJSON, +} from '../models/index'; + +export interface RulesDeleteEventRequest { + id: string; +} + +export interface RulesDeleteEventsRequest { +} + +export interface RulesDeleteRuleRequest { + id: string; +} + +export interface RulesDeleteRuleEventsRequest { + id: string; +} + +export interface RulesDeleteRuleRunRequest { +} + +export interface RulesDisableRuleRequest { + id: string; +} + +export interface RulesEnableRuleRequest { + id: string; +} + +export interface RulesGetEventSchemaRequest { + type: string; +} + +export interface RulesGetEventsRequest { + ruleId?: string | null; + skip?: number; + take?: number; +} + +export interface RulesGetRulesRequest { +} + +export interface RulesPostRuleRequest { + createRuleDto: CreateRuleDto; +} + +export interface RulesPutEventRequest { + id: string; +} + +export interface RulesPutRuleRequest { + id: string; + updateRuleDto: UpdateRuleDto; +} + +export interface RulesPutRuleRunRequest { + id: string; + fromSnapshots?: boolean; +} + +export interface RulesSimulateGETRequest { + id: string; +} + +export interface RulesSimulatePOSTRequest { + createRuleDto: CreateRuleDto; +} + +export interface RulesTriggerRuleRequest { + id: string; +} + +/** + * RulesApi - interface + * + * @export + * @interface RulesApiInterface + */ +export interface RulesApiInterface { + /** + * + * @summary Cancels an event. + * @param {string} id The event to cancel. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + deleteEventRaw(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Cancels an event. + */ + deleteEvent(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Cancels all events. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + deleteEventsRaw(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Cancels all events. + */ + deleteEvents(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete a rule. + * @param {string} id The ID of the rule to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + deleteRuleRaw(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a rule. + */ + deleteRule(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Cancels all rule events. + * @param {string} id The ID of the rule to cancel. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + deleteRuleEventsRaw(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Cancels all rule events. + */ + deleteRuleEvents(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Cancel the current run. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + deleteRuleRunRaw(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Cancel the current run. + */ + deleteRuleRun(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Disable a rule. + * @param {string} id The ID of the rule to disable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + disableRuleRaw(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Disable a rule. + */ + disableRule(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Enable a rule. + * @param {string} id The ID of the rule to enable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + enableRuleRaw(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Enable a rule. + */ + enableRule(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get supported rule actions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + getActionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get supported rule actions. + */ + getActions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: RuleElementDto; }>; + + /** + * + * @summary Provide the json schema for the event with the specified name. + * @param {string} type The type name of the event. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + getEventSchemaRaw(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Provide the json schema for the event with the specified name. + */ + getEventSchema(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Provide a list of all event types that are used in rules. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + getEventTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Provide a list of all event types that are used in rules. + */ + getEventTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * + * @summary Get rule events. + * @param {string} [ruleId] The optional rule id to filter to events. + * @param {number} [skip] The number of events to skip. + * @param {number} [take] The number of events to take. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + getEventsRaw(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get rule events. + */ + getEvents(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get rules. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + getRulesRaw(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get rules. + */ + getRules(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Create a new rule. + * @param {CreateRuleDto} createRuleDto The rule object that needs to be added to the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + postRuleRaw(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Create a new rule. + */ + postRule(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Retry the event immediately. + * @param {string} id The event to enqueue. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + putEventRaw(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Retry the event immediately. + */ + putEvent(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update a rule. + * @param {string} id The ID of the rule to update. + * @param {UpdateRuleDto} updateRuleDto The rule object that needs to be added to the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + putRuleRaw(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update a rule. + */ + putRule(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Run a rule. + * @param {string} id The ID of the rule to run. + * @param {boolean} [fromSnapshots] Runs the rule from snapeshots if possible. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + putRuleRunRaw(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Run a rule. + */ + putRuleRun(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Simulate a rule. + * @param {string} id The ID of the rule to simulate. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + simulateGETRaw(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Simulate a rule. + */ + simulateGET(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Simulate a rule. + * @param {CreateRuleDto} createRuleDto The rule to simulate. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + simulatePOSTRaw(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Simulate a rule. + */ + simulatePOST(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Trigger a rule. + * @param {string} id The ID of the rule to disable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RulesApiInterface + */ + triggerRuleRaw(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Trigger a rule. + */ + triggerRule(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { + + /** + * Cancels an event. + */ + async deleteEventRaw(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/events/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Cancels an event. + */ + async deleteEvent(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteEventRaw(requestParameters, initOverrides); + } + + /** + * Cancels all events. + */ + async deleteEventsRaw(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/events`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Cancels all events. + */ + async deleteEvents(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteEventsRaw(requestParameters, initOverrides); + } + + /** + * Delete a rule. + */ + async deleteRuleRaw(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a rule. + */ + async deleteRule(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteRuleRaw(requestParameters, initOverrides); + } + + /** + * Cancels all rule events. + */ + async deleteRuleEventsRaw(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}/events`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Cancels all rule events. + */ + async deleteRuleEvents(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteRuleEventsRaw(requestParameters, initOverrides); + } + + /** + * Cancel the current run. + */ + async deleteRuleRunRaw(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/run`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Cancel the current run. + */ + async deleteRuleRun(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteRuleRunRaw(requestParameters, initOverrides); + } + + /** + * Disable a rule. + */ + async disableRuleRaw(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}/disable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RuleDtoFromJSON(jsonValue)); + } + + /** + * Disable a rule. + */ + async disableRule(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.disableRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Enable a rule. + */ + async enableRuleRaw(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}/enable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RuleDtoFromJSON(jsonValue)); + } + + /** + * Enable a rule. + */ + async enableRule(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.enableRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get supported rule actions. + */ + async getActionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/rules/actions`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, RuleElementDtoFromJSON)); + } + + /** + * Get supported rule actions. + */ + async getActions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: RuleElementDto; }> { + const response = await this.getActionsRaw(initOverrides); + return await response.value(); + } + + /** + * Provide the json schema for the event with the specified name. + */ + async getEventSchemaRaw(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/rules/eventtypes/{type}`.replace(`{${"type"}}`, encodeURIComponent(String((requestParameters as any)['type']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Provide the json schema for the event with the specified name. + */ + async getEventSchema(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getEventSchemaRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Provide a list of all event types that are used in rules. + */ + async getEventTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/rules/eventtypes`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response); + } + + /** + * Provide a list of all event types that are used in rules. + */ + async getEventTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getEventTypesRaw(initOverrides); + return await response.value(); + } + + /** + * Get rule events. + */ + async getEventsRaw(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['ruleId'] != null) { + queryParameters['ruleId'] = requestParameters['ruleId']; + } + + if (requestParameters['skip'] != null) { + queryParameters['skip'] = requestParameters['skip']; + } + + if (requestParameters['take'] != null) { + queryParameters['take'] = requestParameters['take']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/events`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RuleEventsDtoFromJSON(jsonValue)); + } + + /** + * Get rule events. + */ + async getEvents(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getEventsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get rules. + */ + async getRulesRaw(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RulesDtoFromJSON(jsonValue)); + } + + /** + * Get rules. + */ + async getRules(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getRulesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create a new rule. + */ + async postRuleRaw(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createRuleDto'] == null) { + throw new runtime.RequiredError( + 'createRuleDto', + 'Required parameter "createRuleDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/rules`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateRuleDtoToJSON(requestParameters['createRuleDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RuleDtoFromJSON(jsonValue)); + } + + /** + * Create a new rule. + */ + async postRule(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retry the event immediately. + */ + async putEventRaw(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/events/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Retry the event immediately. + */ + async putEvent(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.putEventRaw(requestParameters, initOverrides); + } + + /** + * Update a rule. + */ + async putRuleRaw(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateRuleDto'] == null) { + throw new runtime.RequiredError( + 'updateRuleDto', + 'Required parameter "updateRuleDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateRuleDtoToJSON(requestParameters['updateRuleDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RuleDtoFromJSON(jsonValue)); + } + + /** + * Update a rule. + */ + async putRule(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putRuleRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Run a rule. + */ + async putRuleRunRaw(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['fromSnapshots'] != null) { + queryParameters['fromSnapshots'] = requestParameters['fromSnapshots']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}/run`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Run a rule. + */ + async putRuleRun(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.putRuleRunRaw(requestParameters, initOverrides); + } + + /** + * Simulate a rule. + */ + async simulateGETRaw(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}/simulate`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SimulatedRuleEventsDtoFromJSON(jsonValue)); + } + + /** + * Simulate a rule. + */ + async simulateGET(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.simulateGETRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Simulate a rule. + */ + async simulatePOSTRaw(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createRuleDto'] == null) { + throw new runtime.RequiredError( + 'createRuleDto', + 'Required parameter "createRuleDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/rules/simulate`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateRuleDtoToJSON(requestParameters['createRuleDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SimulatedRuleEventsDtoFromJSON(jsonValue)); + } + + /** + * Simulate a rule. + */ + async simulatePOST(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.simulatePOSTRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Trigger a rule. + */ + async triggerRuleRaw(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/rules/{id}/trigger`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Trigger a rule. + */ + async triggerRule(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.triggerRuleRaw(requestParameters, initOverrides); + } + +} diff --git a/src/generated/apis/SchemasApi.ts b/src/generated/apis/SchemasApi.ts new file mode 100644 index 0000000..e5c4f59 --- /dev/null +++ b/src/generated/apis/SchemasApi.ts @@ -0,0 +1,2104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AddFieldDto, + ChangeCategoryDto, + ConfigureFieldRulesDto, + ConfigureUIFieldsDto, + CreateSchemaDto, + ErrorDto, + ReorderFieldsDto, + SchemaDto, + SchemaScriptsDto, + SchemasDto, + SynchronizeSchemaDto, + UpdateFieldDto, + UpdateSchemaDto, +} from '../models/index'; +import { + AddFieldDtoFromJSON, + AddFieldDtoToJSON, + ChangeCategoryDtoFromJSON, + ChangeCategoryDtoToJSON, + ConfigureFieldRulesDtoFromJSON, + ConfigureFieldRulesDtoToJSON, + ConfigureUIFieldsDtoFromJSON, + ConfigureUIFieldsDtoToJSON, + CreateSchemaDtoFromJSON, + CreateSchemaDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + ReorderFieldsDtoFromJSON, + ReorderFieldsDtoToJSON, + SchemaDtoFromJSON, + SchemaDtoToJSON, + SchemaScriptsDtoFromJSON, + SchemaScriptsDtoToJSON, + SchemasDtoFromJSON, + SchemasDtoToJSON, + SynchronizeSchemaDtoFromJSON, + SynchronizeSchemaDtoToJSON, + UpdateFieldDtoFromJSON, + UpdateFieldDtoToJSON, + UpdateSchemaDtoFromJSON, + UpdateSchemaDtoToJSON, +} from '../models/index'; + +export interface SchemaFieldsDeleteFieldRequest { + schema: string; + id: number; +} + +export interface SchemaFieldsDeleteNestedFieldRequest { + schema: string; + parentId: number; + id: number; +} + +export interface SchemaFieldsDisableFieldRequest { + schema: string; + id: number; +} + +export interface SchemaFieldsDisableNestedFieldRequest { + schema: string; + parentId: number; + id: number; +} + +export interface SchemaFieldsEnableFieldRequest { + schema: string; + id: number; +} + +export interface SchemaFieldsEnableNestedFieldRequest { + schema: string; + parentId: number; + id: number; +} + +export interface SchemaFieldsHideFieldRequest { + schema: string; + id: number; +} + +export interface SchemaFieldsHideNestedFieldRequest { + schema: string; + parentId: number; + id: number; +} + +export interface SchemaFieldsLockFieldRequest { + schema: string; + id: number; +} + +export interface SchemaFieldsLockNestedFieldRequest { + schema: string; + parentId: number; + id: number; +} + +export interface SchemaFieldsPostFieldRequest { + schema: string; + addFieldDto: AddFieldDto; +} + +export interface SchemaFieldsPostNestedFieldRequest { + schema: string; + parentId: number; + addFieldDto: AddFieldDto; +} + +export interface SchemaFieldsPutFieldRequest { + schema: string; + id: number; + updateFieldDto: UpdateFieldDto; +} + +export interface SchemaFieldsPutNestedFieldRequest { + schema: string; + parentId: number; + id: number; + updateFieldDto: UpdateFieldDto; +} + +export interface SchemaFieldsPutNestedFieldOrderingRequest { + schema: string; + parentId: number; + reorderFieldsDto: ReorderFieldsDto; +} + +export interface SchemaFieldsPutSchemaFieldOrderingRequest { + schema: string; + reorderFieldsDto: ReorderFieldsDto; +} + +export interface SchemaFieldsPutSchemaUIFieldsRequest { + schema: string; + configureUIFieldsDto: ConfigureUIFieldsDto; +} + +export interface SchemaFieldsShowFieldRequest { + schema: string; + id: number; +} + +export interface SchemaFieldsShowNestedFieldRequest { + schema: string; + parentId: number; + id: number; +} + +export interface SchemasDeleteSchemaRequest { + schema: string; +} + +export interface SchemasGetSchemaRequest { + schema: string; +} + +export interface SchemasGetSchemasRequest { +} + +export interface SchemasPostSchemaRequest { + createSchemaDto: CreateSchemaDto; +} + +export interface SchemasPublishSchemaRequest { + schema: string; +} + +export interface SchemasPutCategoryRequest { + schema: string; + changeCategoryDto: ChangeCategoryDto; +} + +export interface SchemasPutPreviewUrlsRequest { + schema: string; + requestBody: { [key: string]: string; }; +} + +export interface SchemasPutRulesRequest { + schema: string; + configureFieldRulesDto: ConfigureFieldRulesDto; +} + +export interface SchemasPutSchemaRequest { + schema: string; + updateSchemaDto: UpdateSchemaDto; +} + +export interface SchemasPutSchemaSyncRequest { + schema: string; + synchronizeSchemaDto: SynchronizeSchemaDto; +} + +export interface SchemasPutScriptsRequest { + schema: string; + schemaScriptsDto: SchemaScriptsDto; +} + +export interface SchemasUnpublishSchemaRequest { + schema: string; +} + +/** + * SchemasApi - interface + * + * @export + * @interface SchemasApiInterface + */ +export interface SchemasApiInterface { + /** + * + * @summary Delete a schema field. + * @param {string} schema The name of the schema. + * @param {number} id The ID of the field to disable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + deleteFieldRaw(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a schema field. + */ + deleteField(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {number} id The ID of the field to disable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + deleteNestedFieldRaw(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a nested field. + */ + deleteNestedField(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * @summary Disable a schema field. + * @param {string} schema The name of the schema. + * @param {number} id The ID of the field to disable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + disableFieldRaw(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Disable a schema field. + */ + disableField(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * @summary Disable a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {number} id The ID of the field to disable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + disableNestedFieldRaw(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Disable a nested field. + */ + disableNestedField(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * @summary Enable a schema field. + * @param {string} schema The name of the schema. + * @param {number} id The ID of the field to enable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + enableFieldRaw(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Enable a schema field. + */ + enableField(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * @summary Enable a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {number} id The ID of the field to enable. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + enableNestedFieldRaw(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Enable a nested field. + */ + enableNestedField(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * @summary Hide a schema field. + * @param {string} schema The name of the schema. + * @param {number} id The ID of the field to hide. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + hideFieldRaw(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Hide a schema field. + */ + hideField(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * @summary Hide a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {number} id The ID of the field to hide. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + hideNestedFieldRaw(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Hide a nested field. + */ + hideNestedField(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A locked field cannot be updated or deleted. + * @summary Lock a schema field. + * @param {string} schema The name of the schema. + * @param {number} id The ID of the field to lock. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + lockFieldRaw(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A locked field cannot be updated or deleted. + * Lock a schema field. + */ + lockField(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A locked field cannot be edited or deleted. + * @summary Lock a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {number} id The ID of the field to lock. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + lockNestedFieldRaw(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A locked field cannot be edited or deleted. + * Lock a nested field. + */ + lockNestedField(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Add a schema field. + * @param {string} schema The name of the schema. + * @param {AddFieldDto} addFieldDto The field object that needs to be added to the schema. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + postFieldRaw(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Add a schema field. + */ + postField(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Add a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {AddFieldDto} addFieldDto The field object that needs to be added to the schema. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + postNestedFieldRaw(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Add a nested field. + */ + postNestedField(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update a schema field. + * @param {string} schema The name of the schema. + * @param {number} id The ID of the field to update. + * @param {UpdateFieldDto} updateFieldDto The field object that needs to be added to the schema. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putFieldRaw(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update a schema field. + */ + putField(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {number} id The ID of the field to update. + * @param {UpdateFieldDto} updateFieldDto The field object that needs to be added to the schema. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putNestedFieldRaw(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update a nested field. + */ + putNestedField(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Reorder all nested fields. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {ReorderFieldsDto} reorderFieldsDto The request that contains the field ids. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putNestedFieldOrderingRaw(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Reorder all nested fields. + */ + putNestedFieldOrdering(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Reorder all fields. + * @param {string} schema The name of the schema. + * @param {ReorderFieldsDto} reorderFieldsDto The request that contains the field ids. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putSchemaFieldOrderingRaw(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Reorder all fields. + */ + putSchemaFieldOrdering(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Configure UI fields. + * @param {string} schema The name of the schema. + * @param {ConfigureUIFieldsDto} configureUIFieldsDto The request that contains the field names. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putSchemaUIFieldsRaw(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Configure UI fields. + */ + putSchemaUIFields(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * @summary Show a schema field. + * @param {string} schema The name of the schema. + * @param {number} id The ID of the field to show. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + showFieldRaw(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Show a schema field. + */ + showField(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * @summary Show a nested field. + * @param {string} schema The name of the schema. + * @param {number} parentId The parent field id. + * @param {number} id The ID of the field to show. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + showNestedFieldRaw(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Show a nested field. + */ + showNestedField(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete a schema. + * @param {string} schema The name of the schema to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + deleteSchemaRaw(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a schema. + */ + deleteSchema(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get a schema by name. + * @param {string} schema The name of the schema to retrieve. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + getSchemaRaw(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get a schema by name. + */ + getSchema(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get schemas. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + getSchemasRaw(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get schemas. + */ + getSchemas(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Create a new schema. + * @param {CreateSchemaDto} createSchemaDto The schema object that needs to be added to the app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + postSchemaRaw(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Create a new schema. + */ + postSchema(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Publish a schema. + * @param {string} schema The name of the schema to publish. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + publishSchemaRaw(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Publish a schema. + */ + publishSchema(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update a schema category. + * @param {string} schema The name of the schema. + * @param {ChangeCategoryDto} changeCategoryDto The schema object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putCategoryRaw(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update a schema category. + */ + putCategory(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the preview urls. + * @param {string} schema The name of the schema. + * @param {{ [key: string]: string; }} requestBody The preview urls for the schema. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putPreviewUrlsRaw(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the preview urls. + */ + putPreviewUrls(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the rules. + * @param {string} schema The name of the schema. + * @param {ConfigureFieldRulesDto} configureFieldRulesDto The schema rules object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putRulesRaw(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the rules. + */ + putRules(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update a schema. + * @param {string} schema The name of the schema. + * @param {UpdateSchemaDto} updateSchemaDto The schema object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putSchemaRaw(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update a schema. + */ + putSchema(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Synchronize a schema. + * @param {string} schema The name of the schema. + * @param {SynchronizeSchemaDto} synchronizeSchemaDto The schema object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putSchemaSyncRaw(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Synchronize a schema. + */ + putSchemaSync(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the scripts. + * @param {string} schema The name of the schema. + * @param {SchemaScriptsDto} schemaScriptsDto The schema scripts object that needs to updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + putScriptsRaw(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the scripts. + */ + putScripts(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Unpublish a schema. + * @param {string} schema The name of the schema to unpublish. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchemasApiInterface + */ + unpublishSchemaRaw(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Unpublish a schema. + */ + unpublishSchema(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { + + /** + * Delete a schema field. + */ + async deleteFieldRaw(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Delete a schema field. + */ + async deleteField(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a nested field. + */ + async deleteNestedFieldRaw(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Delete a nested field. + */ + async deleteNestedField(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Disable a schema field. + */ + async disableFieldRaw(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{id}/disable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Disable a schema field. + */ + async disableField(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.disableFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Disable a nested field. + */ + async disableNestedFieldRaw(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/disable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Disable a nested field. + */ + async disableNestedField(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.disableNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Enable a schema field. + */ + async enableFieldRaw(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{id}/enable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Enable a schema field. + */ + async enableField(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.enableFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Enable a nested field. + */ + async enableNestedFieldRaw(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/enable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. + * Enable a nested field. + */ + async enableNestedField(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.enableNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Hide a schema field. + */ + async hideFieldRaw(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{id}/hide`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Hide a schema field. + */ + async hideField(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.hideFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Hide a nested field. + */ + async hideNestedFieldRaw(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/hide`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Hide a nested field. + */ + async hideNestedField(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.hideNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A locked field cannot be updated or deleted. + * Lock a schema field. + */ + async lockFieldRaw(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{id}/lock`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A locked field cannot be updated or deleted. + * Lock a schema field. + */ + async lockField(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.lockFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A locked field cannot be edited or deleted. + * Lock a nested field. + */ + async lockNestedFieldRaw(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/lock`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A locked field cannot be edited or deleted. + * Lock a nested field. + */ + async lockNestedField(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.lockNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Add a schema field. + */ + async postFieldRaw(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['addFieldDto'] == null) { + throw new runtime.RequiredError( + 'addFieldDto', + 'Required parameter "addFieldDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddFieldDtoToJSON(requestParameters['addFieldDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Add a schema field. + */ + async postField(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Add a nested field. + */ + async postNestedFieldRaw(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['addFieldDto'] == null) { + throw new runtime.RequiredError( + 'addFieldDto', + 'Required parameter "addFieldDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddFieldDtoToJSON(requestParameters['addFieldDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Add a nested field. + */ + async postNestedField(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a schema field. + */ + async putFieldRaw(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateFieldDto'] == null) { + throw new runtime.RequiredError( + 'updateFieldDto', + 'Required parameter "updateFieldDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateFieldDtoToJSON(requestParameters['updateFieldDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Update a schema field. + */ + async putField(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a nested field. + */ + async putNestedFieldRaw(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateFieldDto'] == null) { + throw new runtime.RequiredError( + 'updateFieldDto', + 'Required parameter "updateFieldDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateFieldDtoToJSON(requestParameters['updateFieldDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Update a nested field. + */ + async putNestedField(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Reorder all nested fields. + */ + async putNestedFieldOrderingRaw(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['reorderFieldsDto'] == null) { + throw new runtime.RequiredError( + 'reorderFieldsDto', + 'Required parameter "reorderFieldsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/ordering`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ReorderFieldsDtoToJSON(requestParameters['reorderFieldsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Reorder all nested fields. + */ + async putNestedFieldOrdering(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putNestedFieldOrderingRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Reorder all fields. + */ + async putSchemaFieldOrderingRaw(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['reorderFieldsDto'] == null) { + throw new runtime.RequiredError( + 'reorderFieldsDto', + 'Required parameter "reorderFieldsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/ordering`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ReorderFieldsDtoToJSON(requestParameters['reorderFieldsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Reorder all fields. + */ + async putSchemaFieldOrdering(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaFieldOrderingRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Configure UI fields. + */ + async putSchemaUIFieldsRaw(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['configureUIFieldsDto'] == null) { + throw new runtime.RequiredError( + 'configureUIFieldsDto', + 'Required parameter "configureUIFieldsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/ui`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ConfigureUIFieldsDtoToJSON(requestParameters['configureUIFieldsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Configure UI fields. + */ + async putSchemaUIFields(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaUIFieldsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Show a schema field. + */ + async showFieldRaw(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{id}/show`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Show a schema field. + */ + async showField(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.showFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Show a nested field. + */ + async showNestedFieldRaw(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['parentId'] == null) { + throw new runtime.RequiredError( + 'parentId', + 'Required parameter "parentId" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/show`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * A hidden field is not part of the API response, but can still be edited in the portal. + * Show a nested field. + */ + async showNestedField(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.showNestedFieldRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a schema. + */ + async deleteSchemaRaw(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a schema. + */ + async deleteSchema(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteSchemaRaw(requestParameters, initOverrides); + } + + /** + * Get a schema by name. + */ + async getSchemaRaw(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Get a schema by name. + */ + async getSchema(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSchemaRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get schemas. + */ + async getSchemasRaw(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemasDtoFromJSON(jsonValue)); + } + + /** + * Get schemas. + */ + async getSchemas(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSchemasRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create a new schema. + */ + async postSchemaRaw(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createSchemaDto'] == null) { + throw new runtime.RequiredError( + 'createSchemaDto', + 'Required parameter "createSchemaDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateSchemaDtoToJSON(requestParameters['createSchemaDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Create a new schema. + */ + async postSchema(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postSchemaRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Publish a schema. + */ + async publishSchemaRaw(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/publish`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Publish a schema. + */ + async publishSchema(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.publishSchemaRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a schema category. + */ + async putCategoryRaw(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['changeCategoryDto'] == null) { + throw new runtime.RequiredError( + 'changeCategoryDto', + 'Required parameter "changeCategoryDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/category`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ChangeCategoryDtoToJSON(requestParameters['changeCategoryDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Update a schema category. + */ + async putCategory(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putCategoryRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the preview urls. + */ + async putPreviewUrlsRaw(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/preview-urls`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Update the preview urls. + */ + async putPreviewUrls(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putPreviewUrlsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the rules. + */ + async putRulesRaw(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['configureFieldRulesDto'] == null) { + throw new runtime.RequiredError( + 'configureFieldRulesDto', + 'Required parameter "configureFieldRulesDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/rules`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: ConfigureFieldRulesDtoToJSON(requestParameters['configureFieldRulesDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Update the rules. + */ + async putRules(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putRulesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a schema. + */ + async putSchemaRaw(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateSchemaDto'] == null) { + throw new runtime.RequiredError( + 'updateSchemaDto', + 'Required parameter "updateSchemaDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateSchemaDtoToJSON(requestParameters['updateSchemaDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Update a schema. + */ + async putSchema(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Synchronize a schema. + */ + async putSchemaSyncRaw(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['synchronizeSchemaDto'] == null) { + throw new runtime.RequiredError( + 'synchronizeSchemaDto', + 'Required parameter "synchronizeSchemaDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/sync`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: SynchronizeSchemaDtoToJSON(requestParameters['synchronizeSchemaDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Synchronize a schema. + */ + async putSchemaSync(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaSyncRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the scripts. + */ + async putScriptsRaw(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + if (requestParameters['schemaScriptsDto'] == null) { + throw new runtime.RequiredError( + 'schemaScriptsDto', + 'Required parameter "schemaScriptsDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/scripts`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: SchemaScriptsDtoToJSON(requestParameters['schemaScriptsDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Update the scripts. + */ + async putScripts(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putScriptsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Unpublish a schema. + */ + async unpublishSchemaRaw(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['schema'] == null) { + throw new runtime.RequiredError( + 'schema', + 'Required parameter "schema" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/schemas/{schema}/unpublish`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); + } + + /** + * Unpublish a schema. + */ + async unpublishSchema(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.unpublishSchemaRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/SearchApi.ts b/src/generated/apis/SearchApi.ts new file mode 100644 index 0000000..4234c60 --- /dev/null +++ b/src/generated/apis/SearchApi.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + SearchResultDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + SearchResultDtoFromJSON, + SearchResultDtoToJSON, +} from '../models/index'; + +export interface SearchGetSearchResultsRequest { + query?: string | null; +} + +/** + * SearchApi - interface + * + * @export + * @interface SearchApiInterface + */ +export interface SearchApiInterface { + /** + * + * @summary Get search results. + * @param {string} [query] The search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SearchApiInterface + */ + getSearchResultsRaw(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Get search results. + */ + getSearchResults(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + +} + +/** + * + */ +export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { + + /** + * Get search results. + */ + async getSearchResultsRaw(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['query'] != null) { + queryParameters['query'] = requestParameters['query']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/search`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SearchResultDtoFromJSON)); + } + + /** + * Get search results. + */ + async getSearchResults(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getSearchResultsRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/StatisticsApi.ts b/src/generated/apis/StatisticsApi.ts new file mode 100644 index 0000000..7265060 --- /dev/null +++ b/src/generated/apis/StatisticsApi.ts @@ -0,0 +1,458 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + CallsUsageDtoDto, + CurrentStorageDto, + ErrorDto, + LogDownloadDto, + StorageUsagePerDateDto, +} from '../models/index'; +import { + CallsUsageDtoDtoFromJSON, + CallsUsageDtoDtoToJSON, + CurrentStorageDtoFromJSON, + CurrentStorageDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + LogDownloadDtoFromJSON, + LogDownloadDtoToJSON, + StorageUsagePerDateDtoFromJSON, + StorageUsagePerDateDtoToJSON, +} from '../models/index'; + +export interface UsagesGetCurrentStorageSizeRequest { +} + +export interface UsagesGetLogRequest { +} + +export interface UsagesGetStorageSizesRequest { + fromDate: Date; + toDate: Date; +} + +export interface UsagesGetStorageSizesForTeamRequest { + team: string; + fromDate: Date; + toDate: Date; +} + +export interface UsagesGetTeamCurrentStorageSizeForTeamRequest { + team: string; +} + +export interface UsagesGetUsagesRequest { + fromDate: Date; + toDate: Date; +} + +export interface UsagesGetUsagesForTeamRequest { + team: string; + fromDate: Date; + toDate: Date; +} + +/** + * StatisticsApi - interface + * + * @export + * @interface StatisticsApiInterface + */ +export interface StatisticsApiInterface { + /** + * + * @summary Get total asset size for app. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatisticsApiInterface + */ + getCurrentStorageSizeRaw(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get total asset size for app. + */ + getCurrentStorageSize(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get api calls as log file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatisticsApiInterface + */ + getLogRaw(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get api calls as log file. + */ + getLog(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get asset usage by date for app. + * @param {Date} fromDate The from date. + * @param {Date} toDate The to date. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatisticsApiInterface + */ + getStorageSizesRaw(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Get asset usage by date for app. + */ + getStorageSizes(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * + * @summary Get asset usage by date for team. + * @param {string} team The ID of the team. + * @param {Date} fromDate The from date. + * @param {Date} toDate The to date. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatisticsApiInterface + */ + getStorageSizesForTeamRaw(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Get asset usage by date for team. + */ + getStorageSizesForTeam(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * + * @summary Get total asset size for team. + * @param {string} team The ID of the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatisticsApiInterface + */ + getTeamCurrentStorageSizeForTeamRaw(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get total asset size for team. + */ + getTeamCurrentStorageSizeForTeam(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get api calls in date range for app. + * @param {Date} fromDate The from date. + * @param {Date} toDate The to date. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatisticsApiInterface + */ + getUsagesRaw(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get api calls in date range for app. + */ + getUsages(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get api calls in date range for team. + * @param {string} team The name of the team. + * @param {Date} fromDate The from date. + * @param {Date} toDate The to date. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatisticsApiInterface + */ + getUsagesForTeamRaw(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get api calls in date range for team. + */ + getUsagesForTeam(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInterface { + + /** + * Get total asset size for app. + */ + async getCurrentStorageSizeRaw(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/usages/storage/today`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CurrentStorageDtoFromJSON(jsonValue)); + } + + /** + * Get total asset size for app. + */ + async getCurrentStorageSize(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCurrentStorageSizeRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get api calls as log file. + */ + async getLogRaw(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/usages/log`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LogDownloadDtoFromJSON(jsonValue)); + } + + /** + * Get api calls as log file. + */ + async getLog(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getLogRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get asset usage by date for app. + */ + async getStorageSizesRaw(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['fromDate'] == null) { + throw new runtime.RequiredError( + 'fromDate', + 'Required parameter "fromDate" was null or undefined when calling ().' + ); + } + + if (requestParameters['toDate'] == null) { + throw new runtime.RequiredError( + 'toDate', + 'Required parameter "toDate" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/usages/storage/{fromDate}/{toDate}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StorageUsagePerDateDtoFromJSON)); + } + + /** + * Get asset usage by date for app. + */ + async getStorageSizes(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getStorageSizesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get asset usage by date for team. + */ + async getStorageSizesForTeamRaw(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + if (requestParameters['fromDate'] == null) { + throw new runtime.RequiredError( + 'fromDate', + 'Required parameter "fromDate" was null or undefined when calling ().' + ); + } + + if (requestParameters['toDate'] == null) { + throw new runtime.RequiredError( + 'toDate', + 'Required parameter "toDate" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/usages/storage/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StorageUsagePerDateDtoFromJSON)); + } + + /** + * Get asset usage by date for team. + */ + async getStorageSizesForTeam(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getStorageSizesForTeamRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get total asset size for team. + */ + async getTeamCurrentStorageSizeForTeamRaw(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/usages/storage/today`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CurrentStorageDtoFromJSON(jsonValue)); + } + + /** + * Get total asset size for team. + */ + async getTeamCurrentStorageSizeForTeam(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamCurrentStorageSizeForTeamRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get api calls in date range for app. + */ + async getUsagesRaw(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['fromDate'] == null) { + throw new runtime.RequiredError( + 'fromDate', + 'Required parameter "fromDate" was null or undefined when calling ().' + ); + } + + if (requestParameters['toDate'] == null) { + throw new runtime.RequiredError( + 'toDate', + 'Required parameter "toDate" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/apps/{app}/usages/calls/{fromDate}/{toDate}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CallsUsageDtoDtoFromJSON(jsonValue)); + } + + /** + * Get api calls in date range for app. + */ + async getUsages(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUsagesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get api calls in date range for team. + */ + async getUsagesForTeamRaw(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + if (requestParameters['fromDate'] == null) { + throw new runtime.RequiredError( + 'fromDate', + 'Required parameter "fromDate" was null or undefined when calling ().' + ); + } + + if (requestParameters['toDate'] == null) { + throw new runtime.RequiredError( + 'toDate', + 'Required parameter "toDate" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/usages/calls/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CallsUsageDtoDtoFromJSON(jsonValue)); + } + + /** + * Get api calls in date range for team. + */ + async getUsagesForTeam(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUsagesForTeamRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/TeamsApi.ts b/src/generated/apis/TeamsApi.ts new file mode 100644 index 0000000..8e4261b --- /dev/null +++ b/src/generated/apis/TeamsApi.ts @@ -0,0 +1,683 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AssignContributorDto, + AuthSchemeResponseDto, + AuthSchemeValueDto, + ContributorsDto, + CreateTeamDto, + ErrorDto, + TeamDto, + UpdateTeamDto, +} from '../models/index'; +import { + AssignContributorDtoFromJSON, + AssignContributorDtoToJSON, + AuthSchemeResponseDtoFromJSON, + AuthSchemeResponseDtoToJSON, + AuthSchemeValueDtoFromJSON, + AuthSchemeValueDtoToJSON, + ContributorsDtoFromJSON, + ContributorsDtoToJSON, + CreateTeamDtoFromJSON, + CreateTeamDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + TeamDtoFromJSON, + TeamDtoToJSON, + UpdateTeamDtoFromJSON, + UpdateTeamDtoToJSON, +} from '../models/index'; + +export interface TeamContributorsDeleteContributorRequest { + team: string; + id: string; +} + +export interface TeamContributorsDeleteMyselfRequest { + team: string; +} + +export interface TeamContributorsGetContributorsRequest { + team: string; +} + +export interface TeamContributorsPostContributorRequest { + team: string; + assignContributorDto: AssignContributorDto; +} + +export interface TeamsDeleteTeamRequest { + team: string; +} + +export interface TeamsGetTeamRequest { + team: string; +} + +export interface TeamsGetTeamAuthRequest { + team: string; +} + +export interface TeamsPostTeamRequest { + createTeamDto: CreateTeamDto; +} + +export interface TeamsPutTeamRequest { + team: string; + updateTeamDto: UpdateTeamDto; +} + +export interface TeamsPutTeamAuthRequest { + team: string; + authSchemeValueDto: AuthSchemeValueDto; +} + +/** + * TeamsApi - interface + * + * @export + * @interface TeamsApiInterface + */ +export interface TeamsApiInterface { + /** + * + * @summary Remove contributor. + * @param {string} team The ID of the team. + * @param {string} id The ID of the contributor. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + deleteContributorRaw(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Remove contributor. + */ + deleteContributor(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Remove yourself. + * @param {string} team The ID of the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + deleteMyselfRaw(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Remove yourself. + */ + deleteMyself(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get team contributors. + * @param {string} team The ID of the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + getContributorsRaw(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get team contributors. + */ + getContributors(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Assign contributor to team. + * @param {string} team The ID of the team. + * @param {AssignContributorDto} assignContributorDto Contributor object that needs to be added to the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + postContributorRaw(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Assign contributor to team. + */ + postContributor(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Delete the team. + * @param {string} team The ID of the team to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + deleteTeamRaw(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete the team. + */ + deleteTeam(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get an team by ID. + * @param {string} team The ID of the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + getTeamRaw(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get an team by ID. + */ + getTeam(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get the team auth settings. + * @param {string} team The ID of the team. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + getTeamAuthRaw(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the team auth settings. + */ + getTeamAuth(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * You can only retrieve the list of teams when you are authenticated as a user (OpenID implicit flow). You will retrieve all teams, where you are assigned as a contributor. + * @summary Get your teams. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + getTeamsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * You can only retrieve the list of teams when you are authenticated as a user (OpenID implicit flow). You will retrieve all teams, where you are assigned as a contributor. + * Get your teams. + */ + getTeams(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can only create an team when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new team automatically. + * @summary Create a new team. + * @param {CreateTeamDto} createTeamDto The team object that needs to be added to Squidex. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + postTeamRaw(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * You can only create an team when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new team automatically. + * Create a new team. + */ + postTeam(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the team. + * @param {string} team The ID of the team to update. + * @param {UpdateTeamDto} updateTeamDto The values to update. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + putTeamRaw(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the team. + */ + putTeam(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update the team auth. + * @param {string} team The ID of the team to update. + * @param {AuthSchemeValueDto} authSchemeValueDto The values to update. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TeamsApiInterface + */ + putTeamAuthRaw(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the team auth. + */ + putTeamAuth(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { + + /** + * Remove contributor. + */ + async deleteContributorRaw(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/contributors/{id}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Remove contributor. + */ + async deleteContributor(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteContributorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Remove yourself. + */ + async deleteMyselfRaw(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/contributors/me`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Remove yourself. + */ + async deleteMyself(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteMyselfRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get team contributors. + */ + async getContributorsRaw(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Get team contributors. + */ + async getContributors(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContributorsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Assign contributor to team. + */ + async postContributorRaw(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + if (requestParameters['assignContributorDto'] == null) { + throw new runtime.RequiredError( + 'assignContributorDto', + 'Required parameter "assignContributorDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AssignContributorDtoToJSON(requestParameters['assignContributorDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); + } + + /** + * Assign contributor to team. + */ + async postContributor(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postContributorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete the team. + */ + async deleteTeamRaw(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the team. + */ + async deleteTeam(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteTeamRaw(requestParameters, initOverrides); + } + + /** + * Get an team by ID. + */ + async getTeamRaw(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TeamDtoFromJSON(jsonValue)); + } + + /** + * Get an team by ID. + */ + async getTeam(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get the team auth settings. + */ + async getTeamAuthRaw(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AuthSchemeResponseDtoFromJSON(jsonValue)); + } + + /** + * Get the team auth settings. + */ + async getTeamAuth(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamAuthRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * You can only retrieve the list of teams when you are authenticated as a user (OpenID implicit flow). You will retrieve all teams, where you are assigned as a contributor. + * Get your teams. + */ + async getTeamsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/teams`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TeamDtoFromJSON)); + } + + /** + * You can only retrieve the list of teams when you are authenticated as a user (OpenID implicit flow). You will retrieve all teams, where you are assigned as a contributor. + * Get your teams. + */ + async getTeams(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getTeamsRaw(initOverrides); + return await response.value(); + } + + /** + * You can only create an team when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new team automatically. + * Create a new team. + */ + async postTeamRaw(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createTeamDto'] == null) { + throw new runtime.RequiredError( + 'createTeamDto', + 'Required parameter "createTeamDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/teams`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateTeamDtoToJSON(requestParameters['createTeamDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TeamDtoFromJSON(jsonValue)); + } + + /** + * You can only create an team when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new team automatically. + * Create a new team. + */ + async postTeam(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postTeamRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the team. + */ + async putTeamRaw(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateTeamDto'] == null) { + throw new runtime.RequiredError( + 'updateTeamDto', + 'Required parameter "updateTeamDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateTeamDtoToJSON(requestParameters['updateTeamDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TeamDtoFromJSON(jsonValue)); + } + + /** + * Update the team. + */ + async putTeam(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putTeamRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the team auth. + */ + async putTeamAuthRaw(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['team'] == null) { + throw new runtime.RequiredError( + 'team', + 'Required parameter "team" was null or undefined when calling ().' + ); + } + + if (requestParameters['authSchemeValueDto'] == null) { + throw new runtime.RequiredError( + 'authSchemeValueDto', + 'Required parameter "authSchemeValueDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: AuthSchemeValueDtoToJSON(requestParameters['authSchemeValueDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AuthSchemeResponseDtoFromJSON(jsonValue)); + } + + /** + * Update the team auth. + */ + async putTeamAuth(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putTeamAuthRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/TemplatesApi.ts b/src/generated/apis/TemplatesApi.ts new file mode 100644 index 0000000..8751363 --- /dev/null +++ b/src/generated/apis/TemplatesApi.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + TemplateDetailsDto, + TemplatesDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + TemplateDetailsDtoFromJSON, + TemplateDetailsDtoToJSON, + TemplatesDtoFromJSON, + TemplatesDtoToJSON, +} from '../models/index'; + +export interface TemplatesGetTemplateRequest { + name: string; +} + +/** + * TemplatesApi - interface + * + * @export + * @interface TemplatesApiInterface + */ +export interface TemplatesApiInterface { + /** + * + * @summary Get template details. + * @param {string} name The name of the template. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TemplatesApiInterface + */ + getTemplateRaw(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get template details. + */ + getTemplate(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get all templates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TemplatesApiInterface + */ + getTemplatesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get all templates. + */ + getTemplates(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterface { + + /** + * Get template details. + */ + async getTemplateRaw(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/templates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TemplateDetailsDtoFromJSON(jsonValue)); + } + + /** + * Get template details. + */ + async getTemplate(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTemplateRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all templates. + */ + async getTemplatesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/templates`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TemplatesDtoFromJSON(jsonValue)); + } + + /** + * Get all templates. + */ + async getTemplates(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTemplatesRaw(initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/TranslationsApi.ts b/src/generated/apis/TranslationsApi.ts new file mode 100644 index 0000000..0d48cf8 --- /dev/null +++ b/src/generated/apis/TranslationsApi.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + TranslateDto, + TranslationDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + TranslateDtoFromJSON, + TranslateDtoToJSON, + TranslationDtoFromJSON, + TranslationDtoToJSON, +} from '../models/index'; + +export interface TranslationsPostTranslationRequest { + translateDto: TranslateDto; +} + +/** + * TranslationsApi - interface + * + * @export + * @interface TranslationsApiInterface + */ +export interface TranslationsApiInterface { + /** + * + * @summary Translate a text. + * @param {TranslateDto} translateDto The translation request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TranslationsApiInterface + */ + postTranslationRaw(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Translate a text. + */ + postTranslation(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class TranslationsApi extends runtime.BaseAPI implements TranslationsApiInterface { + + /** + * Translate a text. + */ + async postTranslationRaw(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['translateDto'] == null) { + throw new runtime.RequiredError( + 'translateDto', + 'Required parameter "translateDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/apps/{app}/translations`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TranslateDtoToJSON(requestParameters['translateDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TranslationDtoFromJSON(jsonValue)); + } + + /** + * Translate a text. + */ + async postTranslation(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postTranslationRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/UserManagementApi.ts b/src/generated/apis/UserManagementApi.ts new file mode 100644 index 0000000..553da6f --- /dev/null +++ b/src/generated/apis/UserManagementApi.ts @@ -0,0 +1,445 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + CreateUserDto, + ErrorDto, + UpdateUserDto, + UserDto, + UsersDto, +} from '../models/index'; +import { + CreateUserDtoFromJSON, + CreateUserDtoToJSON, + ErrorDtoFromJSON, + ErrorDtoToJSON, + UpdateUserDtoFromJSON, + UpdateUserDtoToJSON, + UserDtoFromJSON, + UserDtoToJSON, + UsersDtoFromJSON, + UsersDtoToJSON, +} from '../models/index'; + +export interface UserManagementDeleteUserRequest { + id: string; +} + +export interface UserManagementGetUserRequest { + id: string; +} + +export interface UserManagementGetUsersRequest { + query?: string | null; + skip?: number; + take?: number; +} + +export interface UserManagementLockUserRequest { + id: string; +} + +export interface UserManagementPostUserRequest { + createUserDto: CreateUserDto; +} + +export interface UserManagementPutUserRequest { + id: string; + updateUserDto: UpdateUserDto; +} + +export interface UserManagementUnlockUserRequest { + id: string; +} + +/** + * UserManagementApi - interface + * + * @export + * @interface UserManagementApiInterface + */ +export interface UserManagementApiInterface { + /** + * + * @summary Delete a User. + * @param {string} id The ID of the user to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserManagementApiInterface + */ + deleteUserRaw(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Delete a User. + */ + deleteUser(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get a user by ID. + * @param {string} id The ID of the user. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserManagementApiInterface + */ + getUserRaw(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get a user by ID. + */ + getUser(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get users by query. + * @param {string} [query] Optional query to search by email address or username. + * @param {number} [skip] The number of users to skip. + * @param {number} [take] The number of users to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserManagementApiInterface + */ + getUsersRaw(requestParameters: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get users by query. + */ + getUsers(requestParameters: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Lock a user. + * @param {string} id The ID of the user to lock. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserManagementApiInterface + */ + lockUserRaw(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Lock a user. + */ + lockUser(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Create a new user. + * @param {CreateUserDto} createUserDto The user object that needs to be added. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserManagementApiInterface + */ + postUserRaw(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Create a new user. + */ + postUser(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Update a user. + * @param {string} id The ID of the user. + * @param {UpdateUserDto} updateUserDto The user object that needs to be updated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserManagementApiInterface + */ + putUserRaw(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update a user. + */ + putUser(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Unlock a user. + * @param {string} id The ID of the user to unlock. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserManagementApiInterface + */ + unlockUserRaw(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Unlock a user. + */ + unlockUser(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class UserManagementApi extends runtime.BaseAPI implements UserManagementApiInterface { + + /** + * Delete a User. + */ + async deleteUserRaw(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a User. + */ + async deleteUser(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteUserRaw(requestParameters, initOverrides); + } + + /** + * Get a user by ID. + */ + async getUserRaw(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); + } + + /** + * Get a user by ID. + */ + async getUser(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get users by query. + */ + async getUsersRaw(requestParameters: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['query'] != null) { + queryParameters['query'] = requestParameters['query']; + } + + if (requestParameters['skip'] != null) { + queryParameters['skip'] = requestParameters['skip']; + } + + if (requestParameters['take'] != null) { + queryParameters['take'] = requestParameters['take']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/user-management`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UsersDtoFromJSON(jsonValue)); + } + + /** + * Get users by query. + */ + async getUsers(requestParameters: UserManagementGetUsersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUsersRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Lock a user. + */ + async lockUserRaw(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/user-management/{id}/lock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); + } + + /** + * Lock a user. + */ + async lockUser(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.lockUserRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create a new user. + */ + async postUserRaw(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['createUserDto'] == null) { + throw new runtime.RequiredError( + 'createUserDto', + 'Required parameter "createUserDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/user-management`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateUserDtoToJSON(requestParameters['createUserDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); + } + + /** + * Create a new user. + */ + async postUser(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postUserRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a user. + */ + async putUserRaw(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + if (requestParameters['updateUserDto'] == null) { + throw new runtime.RequiredError( + 'updateUserDto', + 'Required parameter "updateUserDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: UpdateUserDtoToJSON(requestParameters['updateUserDto']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); + } + + /** + * Update a user. + */ + async putUser(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putUserRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Unlock a user. + */ + async unlockUserRaw(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/user-management/{id}/unlock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); + } + + /** + * Unlock a user. + */ + async unlockUser(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.unlockUserRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/generated/apis/UsersApi.ts b/src/generated/apis/UsersApi.ts new file mode 100644 index 0000000..709bf85 --- /dev/null +++ b/src/generated/apis/UsersApi.ts @@ -0,0 +1,302 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ErrorDto, + ResourcesDto, + UpdateProfileDto, + UserDto, +} from '../models/index'; +import { + ErrorDtoFromJSON, + ErrorDtoToJSON, + ResourcesDtoFromJSON, + ResourcesDtoToJSON, + UpdateProfileDtoFromJSON, + UpdateProfileDtoToJSON, + UserDtoFromJSON, + UserDtoToJSON, +} from '../models/index'; + +export interface UsersGetUserRequest { + id: string; +} + +export interface UsersGetUserPictureRequest { + id: string; +} + +export interface UsersGetUsersRequest { + query?: string; +} + +export interface UsersPostUserRequest { + updateProfileDto: UpdateProfileDto; +} + +/** + * UsersApi - interface + * + * @export + * @interface UsersApiInterface + */ +export interface UsersApiInterface { + /** + * + * @summary Get user by id. + * @param {string} id The ID of the user (GUID). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApiInterface + */ + getUserRaw(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get user by id. + */ + getUser(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get user picture by id. + * @param {string} id The ID of the user (GUID). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApiInterface + */ + getUserPictureRaw(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get user picture by id. + */ + getUserPicture(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * + * @summary Get the user resources. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApiInterface + */ + getUserResourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Get the user resources. + */ + getUserResources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Search the user by query that contains the email address or the part of the email address. + * @summary Get users by query. + * @param {string} [query] The query to search the user by email address. Case invariant. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApiInterface + */ + getUsersRaw(requestParameters: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Search the user by query that contains the email address or the part of the email address. + * Get users by query. + */ + getUsers(requestParameters: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * + * @summary Update the user profile. + * @param {UpdateProfileDto} updateProfileDto The values to update. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApiInterface + */ + postUserRaw(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Update the user profile. + */ + postUser(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + +} + +/** + * + */ +export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { + + /** + * Get user by id. + */ + async getUserRaw(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); + } + + /** + * Get user by id. + */ + async getUser(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get user picture by id. + */ + async getUserPictureRaw(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/users/{id}/picture`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get user picture by id. + */ + async getUserPicture(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserPictureRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get the user resources. + */ + async getUserResourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ResourcesDtoFromJSON(jsonValue)); + } + + /** + * Get the user resources. + */ + async getUserResources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserResourcesRaw(initOverrides); + return await response.value(); + } + + /** + * Search the user by query that contains the email address or the part of the email address. + * Get users by query. + */ + async getUsersRaw(requestParameters: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + if (requestParameters['query'] != null) { + queryParameters['query'] = requestParameters['query']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/api/users`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserDtoFromJSON)); + } + + /** + * Search the user by query that contains the email address or the part of the email address. + * Get users by query. + */ + async getUsers(requestParameters: UsersGetUsersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getUsersRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update the user profile. + */ + async postUserRaw(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['updateProfileDto'] == null) { + throw new runtime.RequiredError( + 'updateProfileDto', + 'Required parameter "updateProfileDto" was null or undefined when calling ().' + ); + } + + (requestParameters as any)['app'] = this.appName; + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/api/user`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UpdateProfileDtoToJSON(requestParameters['updateProfileDto']), + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the user profile. + */ + async postUser(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.postUserRaw(requestParameters, initOverrides); + } + +} diff --git a/src/generated/apis/index.ts b/src/generated/apis/index.ts new file mode 100644 index 0000000..3db5ee7 --- /dev/null +++ b/src/generated/apis/index.ts @@ -0,0 +1,23 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AppsApi'; +export * from './AssetsApi'; +export * from './BackupsApi'; +export * from './ContentsApi'; +export * from './DiagnosticsApi'; +export * from './EventConsumersApi'; +export * from './HistoryApi'; +export * from './JobsApi'; +export * from './LanguagesApi'; +export * from './NewsApi'; +export * from './PingApi'; +export * from './PlansApi'; +export * from './RulesApi'; +export * from './SchemasApi'; +export * from './SearchApi'; +export * from './StatisticsApi'; +export * from './TeamsApi'; +export * from './TemplatesApi'; +export * from './TranslationsApi'; +export * from './UserManagementApi'; +export * from './UsersApi'; diff --git a/src/generated/index.ts b/src/generated/index.ts new file mode 100644 index 0000000..bebe8bb --- /dev/null +++ b/src/generated/index.ts @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/src/generated/models/ActionTypeEnum.ts b/src/generated/models/ActionTypeEnum.ts new file mode 100644 index 0000000..1e75277 --- /dev/null +++ b/src/generated/models/ActionTypeEnum.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ActionTypeEnum = { + Broadcast: 'Broadcast', + User: 'User', + Group: 'Group' +} as const; +export type ActionTypeEnum = typeof ActionTypeEnum[keyof typeof ActionTypeEnum]; + + +export function instanceOfActionTypeEnum(value: any): boolean { + for (const key in ActionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ActionTypeEnum, key)) { + if (ActionTypeEnum[key as keyof typeof ActionTypeEnum] === value) { + return true; + } + } + } + return false; +} + +export function ActionTypeEnumFromJSON(json: any): ActionTypeEnum { + return ActionTypeEnumFromJSONTyped(json, false); +} + +export function ActionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionTypeEnum { + return json as ActionTypeEnum; +} + +export function ActionTypeEnumToJSON(value?: ActionTypeEnum | null): any { + return value as any; +} + diff --git a/src/generated/models/AddFieldDto.ts b/src/generated/models/AddFieldDto.ts new file mode 100644 index 0000000..9d89b98 --- /dev/null +++ b/src/generated/models/AddFieldDto.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; + +/** + * + * @export + * @interface AddFieldDto + */ +export interface AddFieldDto { + /** + * The name of the field. Must be unique within the schema. + * @type {string} + * @memberof AddFieldDto + */ + name: string; + /** + * Determines the optional partitioning of the field. + * @type {string} + * @memberof AddFieldDto + */ + partitioning?: string | null; + /** + * + * @type {FieldPropertiesDto} + * @memberof AddFieldDto + */ + properties: FieldPropertiesDto; +} + +/** + * Check if a given object implements the AddFieldDto interface. + */ +export function instanceOfAddFieldDto(value: object): value is AddFieldDto { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function AddFieldDtoFromJSON(json: any): AddFieldDto { + return AddFieldDtoFromJSONTyped(json, false); +} + +export function AddFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddFieldDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'partitioning': json['partitioning'] == null ? undefined : json['partitioning'], + 'properties': FieldPropertiesDtoFromJSON(json['properties']), + }; +} + +export function AddFieldDtoToJSON(value?: AddFieldDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'partitioning': value['partitioning'], + 'properties': FieldPropertiesDtoToJSON(value['properties']), + }; +} diff --git a/src/generated/models/AddLanguageDto.ts b/src/generated/models/AddLanguageDto.ts new file mode 100644 index 0000000..8e1bb14 --- /dev/null +++ b/src/generated/models/AddLanguageDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AddLanguageDto + */ +export interface AddLanguageDto { + /** + * The language to add. + * @type {string} + * @memberof AddLanguageDto + */ + language: string; +} + +/** + * Check if a given object implements the AddLanguageDto interface. + */ +export function instanceOfAddLanguageDto(value: object): value is AddLanguageDto { + if (!('language' in value) || value['language'] === undefined) return false; + return true; +} + +export function AddLanguageDtoFromJSON(json: any): AddLanguageDto { + return AddLanguageDtoFromJSONTyped(json, false); +} + +export function AddLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddLanguageDto { + if (json == null) { + return json; + } + return { + + 'language': json['language'], + }; +} + +export function AddLanguageDtoToJSON(value?: AddLanguageDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'language': value['language'], + }; +} diff --git a/src/generated/models/AddRoleDto.ts b/src/generated/models/AddRoleDto.ts new file mode 100644 index 0000000..361e121 --- /dev/null +++ b/src/generated/models/AddRoleDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AddRoleDto + */ +export interface AddRoleDto { + /** + * The role name. + * @type {string} + * @memberof AddRoleDto + */ + name: string; +} + +/** + * Check if a given object implements the AddRoleDto interface. + */ +export function instanceOfAddRoleDto(value: object): value is AddRoleDto { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function AddRoleDtoFromJSON(json: any): AddRoleDto { + return AddRoleDtoFromJSONTyped(json, false); +} + +export function AddRoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddRoleDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function AddRoleDtoToJSON(value?: AddRoleDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + }; +} diff --git a/src/generated/models/AddWorkflowDto.ts b/src/generated/models/AddWorkflowDto.ts new file mode 100644 index 0000000..1da2c3d --- /dev/null +++ b/src/generated/models/AddWorkflowDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AddWorkflowDto + */ +export interface AddWorkflowDto { + /** + * The name of the workflow. + * @type {string} + * @memberof AddWorkflowDto + */ + name: string; +} + +/** + * Check if a given object implements the AddWorkflowDto interface. + */ +export function instanceOfAddWorkflowDto(value: object): value is AddWorkflowDto { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function AddWorkflowDtoFromJSON(json: any): AddWorkflowDto { + return AddWorkflowDtoFromJSONTyped(json, false); +} + +export function AddWorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddWorkflowDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function AddWorkflowDtoToJSON(value?: AddWorkflowDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + }; +} diff --git a/src/generated/models/AlgoliaRuleActionDto.ts b/src/generated/models/AlgoliaRuleActionDto.ts new file mode 100644 index 0000000..13f7b80 --- /dev/null +++ b/src/generated/models/AlgoliaRuleActionDto.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface AlgoliaRuleActionDto + */ +export interface AlgoliaRuleActionDto extends RuleActionDto { + /** + * The application ID. + * @type {string} + * @memberof AlgoliaRuleActionDto + */ + appId: string; + /** + * The API key to grant access to Squidex. + * @type {string} + * @memberof AlgoliaRuleActionDto + */ + apiKey: string; + /** + * The name of the index. + * @type {string} + * @memberof AlgoliaRuleActionDto + */ + indexName: string; + /** + * The optional custom document. + * @type {string} + * @memberof AlgoliaRuleActionDto + */ + document?: string | null; + /** + * The condition when to delete the entry. + * @type {string} + * @memberof AlgoliaRuleActionDto + */ + _delete?: string | null; +} + +/** + * Check if a given object implements the AlgoliaRuleActionDto interface. + */ +export function instanceOfAlgoliaRuleActionDto(value: object): value is AlgoliaRuleActionDto { + if (!('appId' in value) || value['appId'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + if (!('indexName' in value) || value['indexName'] === undefined) return false; + return true; +} + +export function AlgoliaRuleActionDtoFromJSON(json: any): AlgoliaRuleActionDto { + return AlgoliaRuleActionDtoFromJSONTyped(json, false); +} + +export function AlgoliaRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlgoliaRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'appId': json['appId'], + 'apiKey': json['apiKey'], + 'indexName': json['indexName'], + 'document': json['document'] == null ? undefined : json['document'], + '_delete': json['delete'] == null ? undefined : json['delete'], + }; +} + +export function AlgoliaRuleActionDtoToJSON(value?: AlgoliaRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'appId': value['appId'], + 'apiKey': value['apiKey'], + 'indexName': value['indexName'], + 'document': value['document'], + 'delete': value['_delete'], + }; +} diff --git a/src/generated/models/AllContentsByPostDto.ts b/src/generated/models/AllContentsByPostDto.ts new file mode 100644 index 0000000..5660d3d --- /dev/null +++ b/src/generated/models/AllContentsByPostDto.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AllContentsByPostDto + */ +export interface AllContentsByPostDto { + /** + * The list of ids to query. + * @type {Array} + * @memberof AllContentsByPostDto + */ + ids?: Array | null; + /** + * The start of the schedule. + * @type {Date} + * @memberof AllContentsByPostDto + */ + scheduledFrom?: Date | null; + /** + * The end of the schedule. + * @type {Date} + * @memberof AllContentsByPostDto + */ + scheduledTo?: Date | null; + /** + * The ID of the referencing content item. + * @type {string} + * @memberof AllContentsByPostDto + */ + referencing?: string | null; + /** + * The ID of the reference content item. + * @type {string} + * @memberof AllContentsByPostDto + */ + references?: string | null; + /** + * The optional odata query. + * @type {string} + * @memberof AllContentsByPostDto + */ + oData?: string | null; + /** + * The optional json query. + * @type {any} + * @memberof AllContentsByPostDto + */ + q?: any | null; +} + +/** + * Check if a given object implements the AllContentsByPostDto interface. + */ +export function instanceOfAllContentsByPostDto(value: object): value is AllContentsByPostDto { + return true; +} + +export function AllContentsByPostDtoFromJSON(json: any): AllContentsByPostDto { + return AllContentsByPostDtoFromJSONTyped(json, false); +} + +export function AllContentsByPostDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllContentsByPostDto { + if (json == null) { + return json; + } + return { + + 'ids': json['ids'] == null ? undefined : json['ids'], + 'scheduledFrom': json['scheduledFrom'] == null ? undefined : (new Date(json['scheduledFrom'])), + 'scheduledTo': json['scheduledTo'] == null ? undefined : (new Date(json['scheduledTo'])), + 'referencing': json['referencing'] == null ? undefined : json['referencing'], + 'references': json['references'] == null ? undefined : json['references'], + 'oData': json['oData'] == null ? undefined : json['oData'], + 'q': json['q'] == null ? undefined : json['q'], + }; +} + +export function AllContentsByPostDtoToJSON(value?: AllContentsByPostDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'ids': value['ids'], + 'scheduledFrom': value['scheduledFrom'] == null ? undefined : ((value['scheduledFrom'] as any).toISOString()), + 'scheduledTo': value['scheduledTo'] == null ? undefined : ((value['scheduledTo'] as any).toISOString()), + 'referencing': value['referencing'], + 'references': value['references'], + 'oData': value['oData'], + 'q': value['q'], + }; +} diff --git a/src/generated/models/AnnotateAssetDto.ts b/src/generated/models/AnnotateAssetDto.ts new file mode 100644 index 0000000..ea26a5a --- /dev/null +++ b/src/generated/models/AnnotateAssetDto.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AnnotateAssetDto + */ +export interface AnnotateAssetDto { + /** + * The new name of the asset. + * @type {string} + * @memberof AnnotateAssetDto + */ + fileName?: string | null; + /** + * The new slug of the asset. + * @type {string} + * @memberof AnnotateAssetDto + */ + slug?: string | null; + /** + * True, when the asset is not public. + * @type {boolean} + * @memberof AnnotateAssetDto + */ + isProtected?: boolean | null; + /** + * The new asset tags. + * @type {Array} + * @memberof AnnotateAssetDto + */ + tags?: Array | null; + /** + * The asset metadata. + * @type {{ [key: string]: any; }} + * @memberof AnnotateAssetDto + */ + metadata?: { [key: string]: any; } | null; +} + +/** + * Check if a given object implements the AnnotateAssetDto interface. + */ +export function instanceOfAnnotateAssetDto(value: object): value is AnnotateAssetDto { + return true; +} + +export function AnnotateAssetDtoFromJSON(json: any): AnnotateAssetDto { + return AnnotateAssetDtoFromJSONTyped(json, false); +} + +export function AnnotateAssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnotateAssetDto { + if (json == null) { + return json; + } + return { + + 'fileName': json['fileName'] == null ? undefined : json['fileName'], + 'slug': json['slug'] == null ? undefined : json['slug'], + 'isProtected': json['isProtected'] == null ? undefined : json['isProtected'], + 'tags': json['tags'] == null ? undefined : json['tags'], + 'metadata': json['metadata'] == null ? undefined : json['metadata'], + }; +} + +export function AnnotateAssetDtoToJSON(value?: AnnotateAssetDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'fileName': value['fileName'], + 'slug': value['slug'], + 'isProtected': value['isProtected'], + 'tags': value['tags'], + 'metadata': value['metadata'], + }; +} diff --git a/src/generated/models/AppDto.ts b/src/generated/models/AppDto.ts new file mode 100644 index 0000000..be79906 --- /dev/null +++ b/src/generated/models/AppDto.ts @@ -0,0 +1,181 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface AppDto + */ +export interface AppDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AppDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the app. + * @type {string} + * @memberof AppDto + */ + id: string; + /** + * The name of the app. + * @type {string} + * @memberof AppDto + */ + name: string; + /** + * The optional label of the app. + * @type {string} + * @memberof AppDto + */ + label?: string | null; + /** + * The optional description of the app. + * @type {string} + * @memberof AppDto + */ + description?: string | null; + /** + * The version of the app. + * @type {number} + * @memberof AppDto + */ + version: number; + /** + * The timestamp when the app has been created. + * @type {Date} + * @memberof AppDto + */ + created: Date; + /** + * The timestamp when the app has been modified last. + * @type {Date} + * @memberof AppDto + */ + lastModified: Date; + /** + * The ID of the team. + * @type {string} + * @memberof AppDto + */ + teamId?: string | null; + /** + * The permission level of the user. + * @type {Array} + * @memberof AppDto + */ + permissions: Array; + /** + * Indicates if the user can access the api. + * @type {boolean} + * @memberof AppDto + * @deprecated + */ + canAccessApi: boolean; + /** + * Indicates if the user can access at least one content. + * @type {boolean} + * @memberof AppDto + */ + canAccessContent: boolean; + /** + * The role name of the user. + * @type {string} + * @memberof AppDto + */ + roleName?: string | null; + /** + * The properties from the role. + * @type {{ [key: string]: any; }} + * @memberof AppDto + */ + roleProperties: { [key: string]: any; }; +} + +/** + * Check if a given object implements the AppDto interface. + */ +export function instanceOfAppDto(value: object): value is AppDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('lastModified' in value) || value['lastModified'] === undefined) return false; + if (!('permissions' in value) || value['permissions'] === undefined) return false; + if (!('canAccessApi' in value) || value['canAccessApi'] === undefined) return false; + if (!('canAccessContent' in value) || value['canAccessContent'] === undefined) return false; + if (!('roleProperties' in value) || value['roleProperties'] === undefined) return false; + return true; +} + +export function AppDtoFromJSON(json: any): AppDto { + return AppDtoFromJSONTyped(json, false); +} + +export function AppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'name': json['name'], + 'label': json['label'] == null ? undefined : json['label'], + 'description': json['description'] == null ? undefined : json['description'], + 'version': json['version'], + 'created': (new Date(json['created'])), + 'lastModified': (new Date(json['lastModified'])), + 'teamId': json['teamId'] == null ? undefined : json['teamId'], + 'permissions': json['permissions'], + 'canAccessApi': json['canAccessApi'], + 'canAccessContent': json['canAccessContent'], + 'roleName': json['roleName'] == null ? undefined : json['roleName'], + 'roleProperties': json['roleProperties'], + }; +} + +export function AppDtoToJSON(value?: AppDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'name': value['name'], + 'label': value['label'], + 'description': value['description'], + 'version': value['version'], + 'created': ((value['created']).toISOString()), + 'lastModified': ((value['lastModified']).toISOString()), + 'teamId': value['teamId'], + 'permissions': value['permissions'], + 'canAccessApi': value['canAccessApi'], + 'canAccessContent': value['canAccessContent'], + 'roleName': value['roleName'], + 'roleProperties': value['roleProperties'], + }; +} diff --git a/src/generated/models/AppLanguageDto.ts b/src/generated/models/AppLanguageDto.ts new file mode 100644 index 0000000..4779c7f --- /dev/null +++ b/src/generated/models/AppLanguageDto.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface AppLanguageDto + */ +export interface AppLanguageDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AppLanguageDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The iso code of the language. + * @type {string} + * @memberof AppLanguageDto + */ + iso2Code: string; + /** + * The english name of the language. + * @type {string} + * @memberof AppLanguageDto + */ + englishName: string; + /** + * The fallback languages. + * @type {Array} + * @memberof AppLanguageDto + */ + fallback: Array; + /** + * Indicates if the language is the master language. + * @type {boolean} + * @memberof AppLanguageDto + */ + isMaster: boolean; + /** + * Indicates if the language is optional. + * @type {boolean} + * @memberof AppLanguageDto + */ + isOptional: boolean; +} + +/** + * Check if a given object implements the AppLanguageDto interface. + */ +export function instanceOfAppLanguageDto(value: object): value is AppLanguageDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; + if (!('englishName' in value) || value['englishName'] === undefined) return false; + if (!('fallback' in value) || value['fallback'] === undefined) return false; + if (!('isMaster' in value) || value['isMaster'] === undefined) return false; + if (!('isOptional' in value) || value['isOptional'] === undefined) return false; + return true; +} + +export function AppLanguageDtoFromJSON(json: any): AppLanguageDto { + return AppLanguageDtoFromJSONTyped(json, false); +} + +export function AppLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppLanguageDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'iso2Code': json['iso2Code'], + 'englishName': json['englishName'], + 'fallback': json['fallback'], + 'isMaster': json['isMaster'], + 'isOptional': json['isOptional'], + }; +} + +export function AppLanguageDtoToJSON(value?: AppLanguageDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'iso2Code': value['iso2Code'], + 'englishName': value['englishName'], + 'fallback': value['fallback'], + 'isMaster': value['isMaster'], + 'isOptional': value['isOptional'], + }; +} diff --git a/src/generated/models/AppLanguagesDto.ts b/src/generated/models/AppLanguagesDto.ts new file mode 100644 index 0000000..f93e242 --- /dev/null +++ b/src/generated/models/AppLanguagesDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { AppLanguageDto } from './AppLanguageDto'; +import { + AppLanguageDtoFromJSON, + AppLanguageDtoFromJSONTyped, + AppLanguageDtoToJSON, +} from './AppLanguageDto'; + +/** + * + * @export + * @interface AppLanguagesDto + */ +export interface AppLanguagesDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AppLanguagesDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The languages. + * @type {Array} + * @memberof AppLanguagesDto + */ + items: Array; +} + +/** + * Check if a given object implements the AppLanguagesDto interface. + */ +export function instanceOfAppLanguagesDto(value: object): value is AppLanguagesDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function AppLanguagesDtoFromJSON(json: any): AppLanguagesDto { + return AppLanguagesDtoFromJSONTyped(json, false); +} + +export function AppLanguagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppLanguagesDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(AppLanguageDtoFromJSON)), + }; +} + +export function AppLanguagesDtoToJSON(value?: AppLanguagesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(AppLanguageDtoToJSON)), + }; +} diff --git a/src/generated/models/AppSettingsDto.ts b/src/generated/models/AppSettingsDto.ts new file mode 100644 index 0000000..1c40aab --- /dev/null +++ b/src/generated/models/AppSettingsDto.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { PatternDto } from './PatternDto'; +import { + PatternDtoFromJSON, + PatternDtoFromJSONTyped, + PatternDtoToJSON, +} from './PatternDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { EditorDto } from './EditorDto'; +import { + EditorDtoFromJSON, + EditorDtoFromJSONTyped, + EditorDtoToJSON, +} from './EditorDto'; + +/** + * + * @export + * @interface AppSettingsDto + */ +export interface AppSettingsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AppSettingsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The configured app patterns. + * @type {Array} + * @memberof AppSettingsDto + */ + patterns: Array; + /** + * The configured UI editors. + * @type {Array} + * @memberof AppSettingsDto + */ + editors: Array; + /** + * Hide the scheduler for content items. + * @type {boolean} + * @memberof AppSettingsDto + */ + hideScheduler: boolean; + /** + * Hide the datetime mode button. + * @type {boolean} + * @memberof AppSettingsDto + */ + hideDateTimeModeButton: boolean; + /** + * The version of the app. + * @type {number} + * @memberof AppSettingsDto + */ + version: number; +} + +/** + * Check if a given object implements the AppSettingsDto interface. + */ +export function instanceOfAppSettingsDto(value: object): value is AppSettingsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('patterns' in value) || value['patterns'] === undefined) return false; + if (!('editors' in value) || value['editors'] === undefined) return false; + if (!('hideScheduler' in value) || value['hideScheduler'] === undefined) return false; + if (!('hideDateTimeModeButton' in value) || value['hideDateTimeModeButton'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + return true; +} + +export function AppSettingsDtoFromJSON(json: any): AppSettingsDto { + return AppSettingsDtoFromJSONTyped(json, false); +} + +export function AppSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppSettingsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'patterns': ((json['patterns'] as Array).map(PatternDtoFromJSON)), + 'editors': ((json['editors'] as Array).map(EditorDtoFromJSON)), + 'hideScheduler': json['hideScheduler'], + 'hideDateTimeModeButton': json['hideDateTimeModeButton'], + 'version': json['version'], + }; +} + +export function AppSettingsDtoToJSON(value?: AppSettingsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'patterns': ((value['patterns'] as Array).map(PatternDtoToJSON)), + 'editors': ((value['editors'] as Array).map(EditorDtoToJSON)), + 'hideScheduler': value['hideScheduler'], + 'hideDateTimeModeButton': value['hideDateTimeModeButton'], + 'version': value['version'], + }; +} diff --git a/src/generated/models/ArrayCalculatedDefaultValue.ts b/src/generated/models/ArrayCalculatedDefaultValue.ts new file mode 100644 index 0000000..7d4e932 --- /dev/null +++ b/src/generated/models/ArrayCalculatedDefaultValue.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ArrayCalculatedDefaultValue = { + EmptyArray: 'EmptyArray', + Null: 'Null' +} as const; +export type ArrayCalculatedDefaultValue = typeof ArrayCalculatedDefaultValue[keyof typeof ArrayCalculatedDefaultValue]; + + +export function instanceOfArrayCalculatedDefaultValue(value: any): boolean { + for (const key in ArrayCalculatedDefaultValue) { + if (Object.prototype.hasOwnProperty.call(ArrayCalculatedDefaultValue, key)) { + if (ArrayCalculatedDefaultValue[key as keyof typeof ArrayCalculatedDefaultValue] === value) { + return true; + } + } + } + return false; +} + +export function ArrayCalculatedDefaultValueFromJSON(json: any): ArrayCalculatedDefaultValue { + return ArrayCalculatedDefaultValueFromJSONTyped(json, false); +} + +export function ArrayCalculatedDefaultValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrayCalculatedDefaultValue { + return json as ArrayCalculatedDefaultValue; +} + +export function ArrayCalculatedDefaultValueToJSON(value?: ArrayCalculatedDefaultValue | null): any { + return value as any; +} + diff --git a/src/generated/models/ArrayFieldPropertiesDto.ts b/src/generated/models/ArrayFieldPropertiesDto.ts new file mode 100644 index 0000000..6a4ee84 --- /dev/null +++ b/src/generated/models/ArrayFieldPropertiesDto.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { ArrayCalculatedDefaultValue } from './ArrayCalculatedDefaultValue'; +import { + ArrayCalculatedDefaultValueFromJSON, + ArrayCalculatedDefaultValueFromJSONTyped, + ArrayCalculatedDefaultValueToJSON, +} from './ArrayCalculatedDefaultValue'; + +/** + * + * @export + * @interface ArrayFieldPropertiesDto + */ +export interface ArrayFieldPropertiesDto extends FieldPropertiesDto { + /** + * The minimum allowed items for the field value. + * @type {number} + * @memberof ArrayFieldPropertiesDto + */ + minItems?: number | null; + /** + * The maximum allowed items for the field value. + * @type {number} + * @memberof ArrayFieldPropertiesDto + */ + maxItems?: number | null; + /** + * + * @type {ArrayCalculatedDefaultValue} + * @memberof ArrayFieldPropertiesDto + */ + calculatedDefaultValue?: ArrayCalculatedDefaultValue; + /** + * The fields that must be unique. + * @type {Array} + * @memberof ArrayFieldPropertiesDto + */ + uniqueFields?: Array | null; +} + + + +/** + * Check if a given object implements the ArrayFieldPropertiesDto interface. + */ +export function instanceOfArrayFieldPropertiesDto(value: object): value is ArrayFieldPropertiesDto { + return true; +} + +export function ArrayFieldPropertiesDtoFromJSON(json: any): ArrayFieldPropertiesDto { + return ArrayFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function ArrayFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrayFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'minItems': json['minItems'] == null ? undefined : json['minItems'], + 'maxItems': json['maxItems'] == null ? undefined : json['maxItems'], + 'calculatedDefaultValue': json['calculatedDefaultValue'] == null ? undefined : ArrayCalculatedDefaultValueFromJSON(json['calculatedDefaultValue']), + 'uniqueFields': json['uniqueFields'] == null ? undefined : json['uniqueFields'], + }; +} + +export function ArrayFieldPropertiesDtoToJSON(value?: ArrayFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'minItems': value['minItems'], + 'maxItems': value['maxItems'], + 'calculatedDefaultValue': ArrayCalculatedDefaultValueToJSON(value['calculatedDefaultValue']), + 'uniqueFields': value['uniqueFields'], + }; +} diff --git a/src/generated/models/AssetChangedRuleTriggerDto.ts b/src/generated/models/AssetChangedRuleTriggerDto.ts new file mode 100644 index 0000000..ee7638e --- /dev/null +++ b/src/generated/models/AssetChangedRuleTriggerDto.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface AssetChangedRuleTriggerDto + */ +export interface AssetChangedRuleTriggerDto extends RuleTriggerDto { + /** + * Javascript condition when to trigger. + * @type {string} + * @memberof AssetChangedRuleTriggerDto + */ + condition?: string | null; +} + +/** + * Check if a given object implements the AssetChangedRuleTriggerDto interface. + */ +export function instanceOfAssetChangedRuleTriggerDto(value: object): value is AssetChangedRuleTriggerDto { + return true; +} + +export function AssetChangedRuleTriggerDtoFromJSON(json: any): AssetChangedRuleTriggerDto { + return AssetChangedRuleTriggerDtoFromJSONTyped(json, false); +} + +export function AssetChangedRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetChangedRuleTriggerDto { + if (json == null) { + return json; + } + return { + ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + 'condition': json['condition'] == null ? undefined : json['condition'], + }; +} + +export function AssetChangedRuleTriggerDtoToJSON(value?: AssetChangedRuleTriggerDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleTriggerDtoToJSON(value, true), + 'condition': value['condition'], + }; +} diff --git a/src/generated/models/AssetDto.ts b/src/generated/models/AssetDto.ts new file mode 100644 index 0000000..41d344b --- /dev/null +++ b/src/generated/models/AssetDto.ts @@ -0,0 +1,294 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { AssetMeta } from './AssetMeta'; +import { + AssetMetaFromJSON, + AssetMetaFromJSONTyped, + AssetMetaToJSON, +} from './AssetMeta'; +import type { AssetType } from './AssetType'; +import { + AssetTypeFromJSON, + AssetTypeFromJSONTyped, + AssetTypeToJSON, +} from './AssetType'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface AssetDto + */ +export interface AssetDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AssetDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the asset. + * @type {string} + * @memberof AssetDto + */ + id: string; + /** + * The ID of the parent folder. Empty for files without parent. + * @type {string} + * @memberof AssetDto + */ + parentId: string; + /** + * The file name. + * @type {string} + * @memberof AssetDto + */ + fileName: string; + /** + * The file hash. + * @type {string} + * @memberof AssetDto + */ + fileHash?: string | null; + /** + * True, when the asset is not public. + * @type {boolean} + * @memberof AssetDto + */ + isProtected: boolean; + /** + * The slug. + * @type {string} + * @memberof AssetDto + */ + slug: string; + /** + * The mime type. + * @type {string} + * @memberof AssetDto + */ + mimeType: string; + /** + * The file type. + * @type {string} + * @memberof AssetDto + */ + fileType: string; + /** + * The formatted text representation of the metadata. + * @type {string} + * @memberof AssetDto + */ + metadataText: string; + /** + * The UI token. + * @type {string} + * @memberof AssetDto + */ + editToken?: string | null; + /** + * The asset metadata. + * @type {{ [key: string]: any; }} + * @memberof AssetDto + */ + metadata: { [key: string]: any; }; + /** + * The asset tags. + * @type {Array} + * @memberof AssetDto + */ + tags?: Array | null; + /** + * The size of the file in bytes. + * @type {number} + * @memberof AssetDto + */ + fileSize: number; + /** + * The version of the file. + * @type {number} + * @memberof AssetDto + */ + fileVersion: number; + /** + * + * @type {AssetType} + * @memberof AssetDto + */ + type: AssetType; + /** + * The user that has created the schema. + * @type {string} + * @memberof AssetDto + */ + createdBy: string; + /** + * The user that has updated the asset. + * @type {string} + * @memberof AssetDto + */ + lastModifiedBy: string; + /** + * The date and time when the asset has been created. + * @type {Date} + * @memberof AssetDto + */ + created: Date; + /** + * The date and time when the asset has been modified last. + * @type {Date} + * @memberof AssetDto + */ + lastModified: Date; + /** + * The version of the asset. + * @type {number} + * @memberof AssetDto + */ + version: number; + /** + * + * @type {AssetMeta} + * @memberof AssetDto + */ + meta?: AssetMeta; + /** + * Determines of the created file is an image. + * @type {boolean} + * @memberof AssetDto + * @deprecated + */ + isImage: boolean; + /** + * The width of the image in pixels if the asset is an image. + * @type {number} + * @memberof AssetDto + * @deprecated + */ + pixelWidth?: number | null; + /** + * The height of the image in pixels if the asset is an image. + * @type {number} + * @memberof AssetDto + * @deprecated + */ + pixelHeight?: number | null; +} + + + +/** + * Check if a given object implements the AssetDto interface. + */ +export function instanceOfAssetDto(value: object): value is AssetDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('parentId' in value) || value['parentId'] === undefined) return false; + if (!('fileName' in value) || value['fileName'] === undefined) return false; + if (!('isProtected' in value) || value['isProtected'] === undefined) return false; + if (!('slug' in value) || value['slug'] === undefined) return false; + if (!('mimeType' in value) || value['mimeType'] === undefined) return false; + if (!('fileType' in value) || value['fileType'] === undefined) return false; + if (!('metadataText' in value) || value['metadataText'] === undefined) return false; + if (!('metadata' in value) || value['metadata'] === undefined) return false; + if (!('fileSize' in value) || value['fileSize'] === undefined) return false; + if (!('fileVersion' in value) || value['fileVersion'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('createdBy' in value) || value['createdBy'] === undefined) return false; + if (!('lastModifiedBy' in value) || value['lastModifiedBy'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('lastModified' in value) || value['lastModified'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + if (!('isImage' in value) || value['isImage'] === undefined) return false; + return true; +} + +export function AssetDtoFromJSON(json: any): AssetDto { + return AssetDtoFromJSONTyped(json, false); +} + +export function AssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'parentId': json['parentId'], + 'fileName': json['fileName'], + 'fileHash': json['fileHash'] == null ? undefined : json['fileHash'], + 'isProtected': json['isProtected'], + 'slug': json['slug'], + 'mimeType': json['mimeType'], + 'fileType': json['fileType'], + 'metadataText': json['metadataText'], + 'editToken': json['editToken'] == null ? undefined : json['editToken'], + 'metadata': json['metadata'], + 'tags': json['tags'] == null ? undefined : json['tags'], + 'fileSize': json['fileSize'], + 'fileVersion': json['fileVersion'], + 'type': AssetTypeFromJSON(json['type']), + 'createdBy': json['createdBy'], + 'lastModifiedBy': json['lastModifiedBy'], + 'created': (new Date(json['created'])), + 'lastModified': (new Date(json['lastModified'])), + 'version': json['version'], + 'meta': json['_meta'] == null ? undefined : AssetMetaFromJSON(json['_meta']), + 'isImage': json['isImage'], + 'pixelWidth': json['pixelWidth'] == null ? undefined : json['pixelWidth'], + 'pixelHeight': json['pixelHeight'] == null ? undefined : json['pixelHeight'], + }; +} + +export function AssetDtoToJSON(value?: AssetDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'parentId': value['parentId'], + 'fileName': value['fileName'], + 'fileHash': value['fileHash'], + 'isProtected': value['isProtected'], + 'slug': value['slug'], + 'mimeType': value['mimeType'], + 'fileType': value['fileType'], + 'metadataText': value['metadataText'], + 'editToken': value['editToken'], + 'metadata': value['metadata'], + 'tags': value['tags'], + 'fileSize': value['fileSize'], + 'fileVersion': value['fileVersion'], + 'type': AssetTypeToJSON(value['type']), + 'createdBy': value['createdBy'], + 'lastModifiedBy': value['lastModifiedBy'], + 'created': ((value['created']).toISOString()), + 'lastModified': ((value['lastModified']).toISOString()), + 'version': value['version'], + '_meta': AssetMetaToJSON(value['meta']), + 'isImage': value['isImage'], + 'pixelWidth': value['pixelWidth'], + 'pixelHeight': value['pixelHeight'], + }; +} diff --git a/src/generated/models/AssetFolderDto.ts b/src/generated/models/AssetFolderDto.ts new file mode 100644 index 0000000..6e77ff0 --- /dev/null +++ b/src/generated/models/AssetFolderDto.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface AssetFolderDto + */ +export interface AssetFolderDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AssetFolderDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the asset. + * @type {string} + * @memberof AssetFolderDto + */ + id: string; + /** + * The ID of the parent folder. Empty for files without parent. + * @type {string} + * @memberof AssetFolderDto + */ + parentId: string; + /** + * The folder name. + * @type {string} + * @memberof AssetFolderDto + */ + folderName: string; + /** + * The version of the asset folder. + * @type {number} + * @memberof AssetFolderDto + */ + version: number; +} + +/** + * Check if a given object implements the AssetFolderDto interface. + */ +export function instanceOfAssetFolderDto(value: object): value is AssetFolderDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('parentId' in value) || value['parentId'] === undefined) return false; + if (!('folderName' in value) || value['folderName'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + return true; +} + +export function AssetFolderDtoFromJSON(json: any): AssetFolderDto { + return AssetFolderDtoFromJSONTyped(json, false); +} + +export function AssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFolderDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'parentId': json['parentId'], + 'folderName': json['folderName'], + 'version': json['version'], + }; +} + +export function AssetFolderDtoToJSON(value?: AssetFolderDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'parentId': value['parentId'], + 'folderName': value['folderName'], + 'version': value['version'], + }; +} diff --git a/src/generated/models/AssetFolderScope.ts b/src/generated/models/AssetFolderScope.ts new file mode 100644 index 0000000..5c0f910 --- /dev/null +++ b/src/generated/models/AssetFolderScope.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const AssetFolderScope = { + PathAndItems: 'PathAndItems', + Path: 'Path', + Items: 'Items' +} as const; +export type AssetFolderScope = typeof AssetFolderScope[keyof typeof AssetFolderScope]; + + +export function instanceOfAssetFolderScope(value: any): boolean { + for (const key in AssetFolderScope) { + if (Object.prototype.hasOwnProperty.call(AssetFolderScope, key)) { + if (AssetFolderScope[key as keyof typeof AssetFolderScope] === value) { + return true; + } + } + } + return false; +} + +export function AssetFolderScopeFromJSON(json: any): AssetFolderScope { + return AssetFolderScopeFromJSONTyped(json, false); +} + +export function AssetFolderScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFolderScope { + return json as AssetFolderScope; +} + +export function AssetFolderScopeToJSON(value?: AssetFolderScope | null): any { + return value as any; +} + diff --git a/src/generated/models/AssetFoldersDto.ts b/src/generated/models/AssetFoldersDto.ts new file mode 100644 index 0000000..de947b0 --- /dev/null +++ b/src/generated/models/AssetFoldersDto.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { AssetFolderDto } from './AssetFolderDto'; +import { + AssetFolderDtoFromJSON, + AssetFolderDtoFromJSONTyped, + AssetFolderDtoToJSON, +} from './AssetFolderDto'; + +/** + * + * @export + * @interface AssetFoldersDto + */ +export interface AssetFoldersDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AssetFoldersDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The total number of assets. + * @type {number} + * @memberof AssetFoldersDto + */ + total: number; + /** + * The assets folders. + * @type {Array} + * @memberof AssetFoldersDto + */ + items: Array; + /** + * The path to the current folder. + * @type {Array} + * @memberof AssetFoldersDto + */ + path: Array; +} + +/** + * Check if a given object implements the AssetFoldersDto interface. + */ +export function instanceOfAssetFoldersDto(value: object): value is AssetFoldersDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('total' in value) || value['total'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + if (!('path' in value) || value['path'] === undefined) return false; + return true; +} + +export function AssetFoldersDtoFromJSON(json: any): AssetFoldersDto { + return AssetFoldersDtoFromJSONTyped(json, false); +} + +export function AssetFoldersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFoldersDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'total': json['total'], + 'items': ((json['items'] as Array).map(AssetFolderDtoFromJSON)), + 'path': ((json['path'] as Array).map(AssetFolderDtoFromJSON)), + }; +} + +export function AssetFoldersDtoToJSON(value?: AssetFoldersDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'total': value['total'], + 'items': ((value['items'] as Array).map(AssetFolderDtoToJSON)), + 'path': ((value['path'] as Array).map(AssetFolderDtoToJSON)), + }; +} diff --git a/src/generated/models/AssetMeta.ts b/src/generated/models/AssetMeta.ts new file mode 100644 index 0000000..ff668c6 --- /dev/null +++ b/src/generated/models/AssetMeta.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AssetMeta + */ +export interface AssetMeta { + /** + * Indicates whether the asset is a duplicate. + * @type {string} + * @memberof AssetMeta + */ + isDuplicate: string; +} + +/** + * Check if a given object implements the AssetMeta interface. + */ +export function instanceOfAssetMeta(value: object): value is AssetMeta { + if (!('isDuplicate' in value) || value['isDuplicate'] === undefined) return false; + return true; +} + +export function AssetMetaFromJSON(json: any): AssetMeta { + return AssetMetaFromJSONTyped(json, false); +} + +export function AssetMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetMeta { + if (json == null) { + return json; + } + return { + + 'isDuplicate': json['isDuplicate'], + }; +} + +export function AssetMetaToJSON(value?: AssetMeta | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'isDuplicate': value['isDuplicate'], + }; +} diff --git a/src/generated/models/AssetPreviewMode.ts b/src/generated/models/AssetPreviewMode.ts new file mode 100644 index 0000000..75052f9 --- /dev/null +++ b/src/generated/models/AssetPreviewMode.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const AssetPreviewMode = { + ImageAndFileName: 'ImageAndFileName', + Image: 'Image', + FileName: 'FileName' +} as const; +export type AssetPreviewMode = typeof AssetPreviewMode[keyof typeof AssetPreviewMode]; + + +export function instanceOfAssetPreviewMode(value: any): boolean { + for (const key in AssetPreviewMode) { + if (Object.prototype.hasOwnProperty.call(AssetPreviewMode, key)) { + if (AssetPreviewMode[key as keyof typeof AssetPreviewMode] === value) { + return true; + } + } + } + return false; +} + +export function AssetPreviewModeFromJSON(json: any): AssetPreviewMode { + return AssetPreviewModeFromJSONTyped(json, false); +} + +export function AssetPreviewModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetPreviewMode { + return json as AssetPreviewMode; +} + +export function AssetPreviewModeToJSON(value?: AssetPreviewMode | null): any { + return value as any; +} + diff --git a/src/generated/models/AssetScriptsDto.ts b/src/generated/models/AssetScriptsDto.ts new file mode 100644 index 0000000..6e5fbfb --- /dev/null +++ b/src/generated/models/AssetScriptsDto.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface AssetScriptsDto + */ +export interface AssetScriptsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AssetScriptsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The script that is executed for each asset when querying assets. + * @type {string} + * @memberof AssetScriptsDto + */ + query?: string | null; + /** + * The script that is executed for all assets when querying assets. + * @type {string} + * @memberof AssetScriptsDto + */ + queryPre?: string | null; + /** + * The script that is executed when creating an asset. + * @type {string} + * @memberof AssetScriptsDto + */ + create?: string | null; + /** + * The script that is executed when updating a content. + * @type {string} + * @memberof AssetScriptsDto + */ + update?: string | null; + /** + * The script that is executed when annotating a content. + * @type {string} + * @memberof AssetScriptsDto + */ + annotate?: string | null; + /** + * The script that is executed when moving a content. + * @type {string} + * @memberof AssetScriptsDto + */ + move?: string | null; + /** + * The script that is executed when deleting a content. + * @type {string} + * @memberof AssetScriptsDto + */ + _delete?: string | null; + /** + * The version of the app. + * @type {number} + * @memberof AssetScriptsDto + */ + version: number; +} + +/** + * Check if a given object implements the AssetScriptsDto interface. + */ +export function instanceOfAssetScriptsDto(value: object): value is AssetScriptsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + return true; +} + +export function AssetScriptsDtoFromJSON(json: any): AssetScriptsDto { + return AssetScriptsDtoFromJSONTyped(json, false); +} + +export function AssetScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetScriptsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'query': json['query'] == null ? undefined : json['query'], + 'queryPre': json['queryPre'] == null ? undefined : json['queryPre'], + 'create': json['create'] == null ? undefined : json['create'], + 'update': json['update'] == null ? undefined : json['update'], + 'annotate': json['annotate'] == null ? undefined : json['annotate'], + 'move': json['move'] == null ? undefined : json['move'], + '_delete': json['delete'] == null ? undefined : json['delete'], + 'version': json['version'], + }; +} + +export function AssetScriptsDtoToJSON(value?: AssetScriptsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'query': value['query'], + 'queryPre': value['queryPre'], + 'create': value['create'], + 'update': value['update'], + 'annotate': value['annotate'], + 'move': value['move'], + 'delete': value['_delete'], + 'version': value['version'], + }; +} diff --git a/src/generated/models/AssetType.ts b/src/generated/models/AssetType.ts new file mode 100644 index 0000000..329a886 --- /dev/null +++ b/src/generated/models/AssetType.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const AssetType = { + Unknown: 'Unknown', + Image: 'Image', + Audio: 'Audio', + Video: 'Video' +} as const; +export type AssetType = typeof AssetType[keyof typeof AssetType]; + + +export function instanceOfAssetType(value: any): boolean { + for (const key in AssetType) { + if (Object.prototype.hasOwnProperty.call(AssetType, key)) { + if (AssetType[key as keyof typeof AssetType] === value) { + return true; + } + } + } + return false; +} + +export function AssetTypeFromJSON(json: any): AssetType { + return AssetTypeFromJSONTyped(json, false); +} + +export function AssetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetType { + return json as AssetType; +} + +export function AssetTypeToJSON(value?: AssetType | null): any { + return value as any; +} + diff --git a/src/generated/models/AssetsDto.ts b/src/generated/models/AssetsDto.ts new file mode 100644 index 0000000..1e8bf63 --- /dev/null +++ b/src/generated/models/AssetsDto.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { AssetDto } from './AssetDto'; +import { + AssetDtoFromJSON, + AssetDtoFromJSONTyped, + AssetDtoToJSON, +} from './AssetDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface AssetsDto + */ +export interface AssetsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AssetsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The total number of assets. + * @type {number} + * @memberof AssetsDto + */ + total: number; + /** + * The assets. + * @type {Array} + * @memberof AssetsDto + */ + items: Array; +} + +/** + * Check if a given object implements the AssetsDto interface. + */ +export function instanceOfAssetsDto(value: object): value is AssetsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('total' in value) || value['total'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function AssetsDtoFromJSON(json: any): AssetsDto { + return AssetsDtoFromJSONTyped(json, false); +} + +export function AssetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'total': json['total'], + 'items': ((json['items'] as Array).map(AssetDtoFromJSON)), + }; +} + +export function AssetsDtoToJSON(value?: AssetsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'total': value['total'], + 'items': ((value['items'] as Array).map(AssetDtoToJSON)), + }; +} diff --git a/src/generated/models/AssetsFieldPropertiesDto.ts b/src/generated/models/AssetsFieldPropertiesDto.ts new file mode 100644 index 0000000..9509fee --- /dev/null +++ b/src/generated/models/AssetsFieldPropertiesDto.ts @@ -0,0 +1,242 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { AssetType } from './AssetType'; +import { + AssetTypeFromJSON, + AssetTypeFromJSONTyped, + AssetTypeToJSON, +} from './AssetType'; +import type { AssetPreviewMode } from './AssetPreviewMode'; +import { + AssetPreviewModeFromJSON, + AssetPreviewModeFromJSONTyped, + AssetPreviewModeToJSON, +} from './AssetPreviewMode'; + +/** + * + * @export + * @interface AssetsFieldPropertiesDto + */ +export interface AssetsFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {AssetPreviewMode} + * @memberof AssetsFieldPropertiesDto + */ + previewMode?: AssetPreviewMode; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof AssetsFieldPropertiesDto + */ + defaultValues?: { [key: string]: Array; }; + /** + * The default value as a list of asset ids. + * @type {Array} + * @memberof AssetsFieldPropertiesDto + */ + defaultValue?: Array | null; + /** + * The initial id to the folder. + * @type {string} + * @memberof AssetsFieldPropertiesDto + */ + folderId?: string | null; + /** + * The preview format. + * @type {string} + * @memberof AssetsFieldPropertiesDto + */ + previewFormat?: string | null; + /** + * The minimum allowed items for the field value. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + minItems?: number | null; + /** + * The maximum allowed items for the field value. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + maxItems?: number | null; + /** + * The minimum file size in bytes. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + minSize?: number | null; + /** + * The maximum file size in bytes. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + maxSize?: number | null; + /** + * The minimum image width in pixels. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + minWidth?: number | null; + /** + * The maximum image width in pixels. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + maxWidth?: number | null; + /** + * The minimum image height in pixels. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + minHeight?: number | null; + /** + * The maximum image height in pixels. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + maxHeight?: number | null; + /** + * The image aspect width in pixels. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + aspectWidth?: number | null; + /** + * The image aspect height in pixels. + * @type {number} + * @memberof AssetsFieldPropertiesDto + */ + aspectHeight?: number | null; + /** + * + * @type {AssetType} + * @memberof AssetsFieldPropertiesDto + */ + expectedType?: AssetType; + /** + * True to resolve first asset in the content list. + * @type {boolean} + * @memberof AssetsFieldPropertiesDto + */ + resolveFirst?: boolean; + /** + * True to resolve first image in the content list. + * @type {boolean} + * @memberof AssetsFieldPropertiesDto + * @deprecated + */ + mustBeImage?: boolean; + /** + * True to resolve first image in the content list. + * @type {boolean} + * @memberof AssetsFieldPropertiesDto + * @deprecated + */ + resolveImage?: boolean; + /** + * The allowed file extensions. + * @type {Array} + * @memberof AssetsFieldPropertiesDto + */ + allowedExtensions?: Array | null; + /** + * True, if duplicate values are allowed. + * @type {boolean} + * @memberof AssetsFieldPropertiesDto + */ + allowDuplicates?: boolean; +} + + + +/** + * Check if a given object implements the AssetsFieldPropertiesDto interface. + */ +export function instanceOfAssetsFieldPropertiesDto(value: object): value is AssetsFieldPropertiesDto { + return true; +} + +export function AssetsFieldPropertiesDtoFromJSON(json: any): AssetsFieldPropertiesDto { + return AssetsFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function AssetsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetsFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'previewMode': json['previewMode'] == null ? undefined : AssetPreviewModeFromJSON(json['previewMode']), + 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], + 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], + 'folderId': json['folderId'] == null ? undefined : json['folderId'], + 'previewFormat': json['previewFormat'] == null ? undefined : json['previewFormat'], + 'minItems': json['minItems'] == null ? undefined : json['minItems'], + 'maxItems': json['maxItems'] == null ? undefined : json['maxItems'], + 'minSize': json['minSize'] == null ? undefined : json['minSize'], + 'maxSize': json['maxSize'] == null ? undefined : json['maxSize'], + 'minWidth': json['minWidth'] == null ? undefined : json['minWidth'], + 'maxWidth': json['maxWidth'] == null ? undefined : json['maxWidth'], + 'minHeight': json['minHeight'] == null ? undefined : json['minHeight'], + 'maxHeight': json['maxHeight'] == null ? undefined : json['maxHeight'], + 'aspectWidth': json['aspectWidth'] == null ? undefined : json['aspectWidth'], + 'aspectHeight': json['aspectHeight'] == null ? undefined : json['aspectHeight'], + 'expectedType': json['expectedType'] == null ? undefined : AssetTypeFromJSON(json['expectedType']), + 'resolveFirst': json['resolveFirst'] == null ? undefined : json['resolveFirst'], + 'mustBeImage': json['mustBeImage'] == null ? undefined : json['mustBeImage'], + 'resolveImage': json['resolveImage'] == null ? undefined : json['resolveImage'], + 'allowedExtensions': json['allowedExtensions'] == null ? undefined : json['allowedExtensions'], + 'allowDuplicates': json['allowDuplicates'] == null ? undefined : json['allowDuplicates'], + }; +} + +export function AssetsFieldPropertiesDtoToJSON(value?: AssetsFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'previewMode': AssetPreviewModeToJSON(value['previewMode']), + 'defaultValues': value['defaultValues'], + 'defaultValue': value['defaultValue'], + 'folderId': value['folderId'], + 'previewFormat': value['previewFormat'], + 'minItems': value['minItems'], + 'maxItems': value['maxItems'], + 'minSize': value['minSize'], + 'maxSize': value['maxSize'], + 'minWidth': value['minWidth'], + 'maxWidth': value['maxWidth'], + 'minHeight': value['minHeight'], + 'maxHeight': value['maxHeight'], + 'aspectWidth': value['aspectWidth'], + 'aspectHeight': value['aspectHeight'], + 'expectedType': AssetTypeToJSON(value['expectedType']), + 'resolveFirst': value['resolveFirst'], + 'mustBeImage': value['mustBeImage'], + 'resolveImage': value['resolveImage'], + 'allowedExtensions': value['allowedExtensions'], + 'allowDuplicates': value['allowDuplicates'], + }; +} diff --git a/src/generated/models/AssignContributorDto.ts b/src/generated/models/AssignContributorDto.ts new file mode 100644 index 0000000..bf3b46e --- /dev/null +++ b/src/generated/models/AssignContributorDto.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AssignContributorDto + */ +export interface AssignContributorDto { + /** + * The id or email of the user to add to the app. + * @type {string} + * @memberof AssignContributorDto + */ + contributorId: string; + /** + * The role of the contributor. + * @type {string} + * @memberof AssignContributorDto + */ + role?: string | null; + /** + * Set to true to invite the user if he does not exist. + * @type {boolean} + * @memberof AssignContributorDto + */ + invite?: boolean; +} + +/** + * Check if a given object implements the AssignContributorDto interface. + */ +export function instanceOfAssignContributorDto(value: object): value is AssignContributorDto { + if (!('contributorId' in value) || value['contributorId'] === undefined) return false; + return true; +} + +export function AssignContributorDtoFromJSON(json: any): AssignContributorDto { + return AssignContributorDtoFromJSONTyped(json, false); +} + +export function AssignContributorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignContributorDto { + if (json == null) { + return json; + } + return { + + 'contributorId': json['contributorId'], + 'role': json['role'] == null ? undefined : json['role'], + 'invite': json['invite'] == null ? undefined : json['invite'], + }; +} + +export function AssignContributorDtoToJSON(value?: AssignContributorDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'contributorId': value['contributorId'], + 'role': value['role'], + 'invite': value['invite'], + }; +} diff --git a/src/generated/models/AuthSchemeDto.ts b/src/generated/models/AuthSchemeDto.ts new file mode 100644 index 0000000..df85b66 --- /dev/null +++ b/src/generated/models/AuthSchemeDto.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuthSchemeDto + */ +export interface AuthSchemeDto { + /** + * The domain name of your user accounts. + * @type {string} + * @memberof AuthSchemeDto + */ + domain: string; + /** + * The display name for buttons. + * @type {string} + * @memberof AuthSchemeDto + */ + displayName: string; + /** + * The client ID. + * @type {string} + * @memberof AuthSchemeDto + */ + clientId: string; + /** + * The client secret. + * @type {string} + * @memberof AuthSchemeDto + */ + clientSecret: string; + /** + * The authority URL. + * @type {string} + * @memberof AuthSchemeDto + */ + authority: string; + /** + * The URL to redirect after a signout. + * @type {string} + * @memberof AuthSchemeDto + */ + signoutRedirectUrl?: string | null; +} + +/** + * Check if a given object implements the AuthSchemeDto interface. + */ +export function instanceOfAuthSchemeDto(value: object): value is AuthSchemeDto { + if (!('domain' in value) || value['domain'] === undefined) return false; + if (!('displayName' in value) || value['displayName'] === undefined) return false; + if (!('clientId' in value) || value['clientId'] === undefined) return false; + if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false; + if (!('authority' in value) || value['authority'] === undefined) return false; + return true; +} + +export function AuthSchemeDtoFromJSON(json: any): AuthSchemeDto { + return AuthSchemeDtoFromJSONTyped(json, false); +} + +export function AuthSchemeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSchemeDto { + if (json == null) { + return json; + } + return { + + 'domain': json['domain'], + 'displayName': json['displayName'], + 'clientId': json['clientId'], + 'clientSecret': json['clientSecret'], + 'authority': json['authority'], + 'signoutRedirectUrl': json['signoutRedirectUrl'] == null ? undefined : json['signoutRedirectUrl'], + }; +} + +export function AuthSchemeDtoToJSON(value?: AuthSchemeDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'domain': value['domain'], + 'displayName': value['displayName'], + 'clientId': value['clientId'], + 'clientSecret': value['clientSecret'], + 'authority': value['authority'], + 'signoutRedirectUrl': value['signoutRedirectUrl'], + }; +} diff --git a/src/generated/models/AuthSchemeResponseDto.ts b/src/generated/models/AuthSchemeResponseDto.ts new file mode 100644 index 0000000..ef1baf3 --- /dev/null +++ b/src/generated/models/AuthSchemeResponseDto.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { AuthSchemeDto } from './AuthSchemeDto'; +import { + AuthSchemeDtoFromJSON, + AuthSchemeDtoFromJSONTyped, + AuthSchemeDtoToJSON, +} from './AuthSchemeDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface AuthSchemeResponseDto + */ +export interface AuthSchemeResponseDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof AuthSchemeResponseDto + */ + links: { [key: string]: ResourceLink; }; + /** + * + * @type {AuthSchemeDto} + * @memberof AuthSchemeResponseDto + */ + scheme?: AuthSchemeDto; +} + +/** + * Check if a given object implements the AuthSchemeResponseDto interface. + */ +export function instanceOfAuthSchemeResponseDto(value: object): value is AuthSchemeResponseDto { + if (!('links' in value) || value['links'] === undefined) return false; + return true; +} + +export function AuthSchemeResponseDtoFromJSON(json: any): AuthSchemeResponseDto { + return AuthSchemeResponseDtoFromJSONTyped(json, false); +} + +export function AuthSchemeResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSchemeResponseDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'scheme': json['scheme'] == null ? undefined : AuthSchemeDtoFromJSON(json['scheme']), + }; +} + +export function AuthSchemeResponseDtoToJSON(value?: AuthSchemeResponseDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'scheme': AuthSchemeDtoToJSON(value['scheme']), + }; +} diff --git a/src/generated/models/AuthSchemeValueDto.ts b/src/generated/models/AuthSchemeValueDto.ts new file mode 100644 index 0000000..d426e33 --- /dev/null +++ b/src/generated/models/AuthSchemeValueDto.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { AuthSchemeDto } from './AuthSchemeDto'; +import { + AuthSchemeDtoFromJSON, + AuthSchemeDtoFromJSONTyped, + AuthSchemeDtoToJSON, +} from './AuthSchemeDto'; + +/** + * + * @export + * @interface AuthSchemeValueDto + */ +export interface AuthSchemeValueDto { + /** + * + * @type {AuthSchemeDto} + * @memberof AuthSchemeValueDto + */ + scheme?: AuthSchemeDto; +} + +/** + * Check if a given object implements the AuthSchemeValueDto interface. + */ +export function instanceOfAuthSchemeValueDto(value: object): value is AuthSchemeValueDto { + return true; +} + +export function AuthSchemeValueDtoFromJSON(json: any): AuthSchemeValueDto { + return AuthSchemeValueDtoFromJSONTyped(json, false); +} + +export function AuthSchemeValueDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSchemeValueDto { + if (json == null) { + return json; + } + return { + + 'scheme': json['scheme'] == null ? undefined : AuthSchemeDtoFromJSON(json['scheme']), + }; +} + +export function AuthSchemeValueDtoToJSON(value?: AuthSchemeValueDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'scheme': AuthSchemeDtoToJSON(value['scheme']), + }; +} diff --git a/src/generated/models/AzureQueueRuleActionDto.ts b/src/generated/models/AzureQueueRuleActionDto.ts new file mode 100644 index 0000000..37be93a --- /dev/null +++ b/src/generated/models/AzureQueueRuleActionDto.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface AzureQueueRuleActionDto + */ +export interface AzureQueueRuleActionDto extends RuleActionDto { + /** + * The connection string to the storage account. + * @type {string} + * @memberof AzureQueueRuleActionDto + */ + connectionString: string; + /** + * The name of the queue. + * @type {string} + * @memberof AzureQueueRuleActionDto + */ + queue: string; + /** + * Leave it empty to use the full event as body. + * @type {string} + * @memberof AzureQueueRuleActionDto + */ + payload?: string | null; +} + +/** + * Check if a given object implements the AzureQueueRuleActionDto interface. + */ +export function instanceOfAzureQueueRuleActionDto(value: object): value is AzureQueueRuleActionDto { + if (!('connectionString' in value) || value['connectionString'] === undefined) return false; + if (!('queue' in value) || value['queue'] === undefined) return false; + return true; +} + +export function AzureQueueRuleActionDtoFromJSON(json: any): AzureQueueRuleActionDto { + return AzureQueueRuleActionDtoFromJSONTyped(json, false); +} + +export function AzureQueueRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AzureQueueRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'connectionString': json['connectionString'], + 'queue': json['queue'], + 'payload': json['payload'] == null ? undefined : json['payload'], + }; +} + +export function AzureQueueRuleActionDtoToJSON(value?: AzureQueueRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'connectionString': value['connectionString'], + 'queue': value['queue'], + 'payload': value['payload'], + }; +} diff --git a/src/generated/models/BackupJobDto.ts b/src/generated/models/BackupJobDto.ts new file mode 100644 index 0000000..a41fe88 --- /dev/null +++ b/src/generated/models/BackupJobDto.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { JobStatus } from './JobStatus'; +import { + JobStatusFromJSON, + JobStatusFromJSONTyped, + JobStatusToJSON, +} from './JobStatus'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface BackupJobDto + */ +export interface BackupJobDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof BackupJobDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the backup job. + * @type {string} + * @memberof BackupJobDto + */ + id: string; + /** + * The time when the job has been started. + * @type {Date} + * @memberof BackupJobDto + */ + started: Date; + /** + * The time when the job has been stopped. + * @type {Date} + * @memberof BackupJobDto + */ + stopped?: Date | null; + /** + * The number of handled events. + * @type {number} + * @memberof BackupJobDto + */ + handledEvents: number; + /** + * The number of handled assets. + * @type {number} + * @memberof BackupJobDto + */ + handledAssets: number; + /** + * + * @type {JobStatus} + * @memberof BackupJobDto + */ + status: JobStatus; +} + + + +/** + * Check if a given object implements the BackupJobDto interface. + */ +export function instanceOfBackupJobDto(value: object): value is BackupJobDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('started' in value) || value['started'] === undefined) return false; + if (!('handledEvents' in value) || value['handledEvents'] === undefined) return false; + if (!('handledAssets' in value) || value['handledAssets'] === undefined) return false; + if (!('status' in value) || value['status'] === undefined) return false; + return true; +} + +export function BackupJobDtoFromJSON(json: any): BackupJobDto { + return BackupJobDtoFromJSONTyped(json, false); +} + +export function BackupJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupJobDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'started': (new Date(json['started'])), + 'stopped': json['stopped'] == null ? undefined : (new Date(json['stopped'])), + 'handledEvents': json['handledEvents'], + 'handledAssets': json['handledAssets'], + 'status': JobStatusFromJSON(json['status']), + }; +} + +export function BackupJobDtoToJSON(value?: BackupJobDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'started': ((value['started']).toISOString()), + 'stopped': value['stopped'] == null ? undefined : ((value['stopped'] as any).toISOString()), + 'handledEvents': value['handledEvents'], + 'handledAssets': value['handledAssets'], + 'status': JobStatusToJSON(value['status']), + }; +} diff --git a/src/generated/models/BackupJobsDto.ts b/src/generated/models/BackupJobsDto.ts new file mode 100644 index 0000000..45b206b --- /dev/null +++ b/src/generated/models/BackupJobsDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { BackupJobDto } from './BackupJobDto'; +import { + BackupJobDtoFromJSON, + BackupJobDtoFromJSONTyped, + BackupJobDtoToJSON, +} from './BackupJobDto'; + +/** + * + * @export + * @interface BackupJobsDto + */ +export interface BackupJobsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof BackupJobsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The backups. + * @type {Array} + * @memberof BackupJobsDto + */ + items: Array; +} + +/** + * Check if a given object implements the BackupJobsDto interface. + */ +export function instanceOfBackupJobsDto(value: object): value is BackupJobsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function BackupJobsDtoFromJSON(json: any): BackupJobsDto { + return BackupJobsDtoFromJSONTyped(json, false); +} + +export function BackupJobsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupJobsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(BackupJobDtoFromJSON)), + }; +} + +export function BackupJobsDtoToJSON(value?: BackupJobsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(BackupJobDtoToJSON)), + }; +} diff --git a/src/generated/models/BooleanFieldEditor.ts b/src/generated/models/BooleanFieldEditor.ts new file mode 100644 index 0000000..2e25362 --- /dev/null +++ b/src/generated/models/BooleanFieldEditor.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const BooleanFieldEditor = { + Checkbox: 'Checkbox', + Toggle: 'Toggle' +} as const; +export type BooleanFieldEditor = typeof BooleanFieldEditor[keyof typeof BooleanFieldEditor]; + + +export function instanceOfBooleanFieldEditor(value: any): boolean { + for (const key in BooleanFieldEditor) { + if (Object.prototype.hasOwnProperty.call(BooleanFieldEditor, key)) { + if (BooleanFieldEditor[key as keyof typeof BooleanFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function BooleanFieldEditorFromJSON(json: any): BooleanFieldEditor { + return BooleanFieldEditorFromJSONTyped(json, false); +} + +export function BooleanFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): BooleanFieldEditor { + return json as BooleanFieldEditor; +} + +export function BooleanFieldEditorToJSON(value?: BooleanFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/BooleanFieldPropertiesDto.ts b/src/generated/models/BooleanFieldPropertiesDto.ts new file mode 100644 index 0000000..f2ee75b --- /dev/null +++ b/src/generated/models/BooleanFieldPropertiesDto.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { BooleanFieldEditor } from './BooleanFieldEditor'; +import { + BooleanFieldEditorFromJSON, + BooleanFieldEditorFromJSONTyped, + BooleanFieldEditorToJSON, +} from './BooleanFieldEditor'; + +/** + * + * @export + * @interface BooleanFieldPropertiesDto + */ +export interface BooleanFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {{ [key: string]: boolean | null; }} + * @memberof BooleanFieldPropertiesDto + */ + defaultValues?: { [key: string]: boolean | null; }; + /** + * The default value for the field value. + * @type {boolean} + * @memberof BooleanFieldPropertiesDto + */ + defaultValue?: boolean | null; + /** + * Indicates that the inline editor is enabled for this field. + * @type {boolean} + * @memberof BooleanFieldPropertiesDto + */ + inlineEditable?: boolean; + /** + * + * @type {BooleanFieldEditor} + * @memberof BooleanFieldPropertiesDto + */ + editor?: BooleanFieldEditor; +} + + + +/** + * Check if a given object implements the BooleanFieldPropertiesDto interface. + */ +export function instanceOfBooleanFieldPropertiesDto(value: object): value is BooleanFieldPropertiesDto { + return true; +} + +export function BooleanFieldPropertiesDtoFromJSON(json: any): BooleanFieldPropertiesDto { + return BooleanFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function BooleanFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BooleanFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], + 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], + 'inlineEditable': json['inlineEditable'] == null ? undefined : json['inlineEditable'], + 'editor': json['editor'] == null ? undefined : BooleanFieldEditorFromJSON(json['editor']), + }; +} + +export function BooleanFieldPropertiesDtoToJSON(value?: BooleanFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'defaultValues': value['defaultValues'], + 'defaultValue': value['defaultValue'], + 'inlineEditable': value['inlineEditable'], + 'editor': BooleanFieldEditorToJSON(value['editor']), + }; +} diff --git a/src/generated/models/BulkResultDto.ts b/src/generated/models/BulkResultDto.ts new file mode 100644 index 0000000..c7f2a03 --- /dev/null +++ b/src/generated/models/BulkResultDto.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ErrorDto } from './ErrorDto'; +import { + ErrorDtoFromJSON, + ErrorDtoFromJSONTyped, + ErrorDtoToJSON, +} from './ErrorDto'; + +/** + * + * @export + * @interface BulkResultDto + */ +export interface BulkResultDto { + /** + * + * @type {ErrorDto} + * @memberof BulkResultDto + */ + error?: ErrorDto; + /** + * The index of the bulk job where the result belongs to. The order can change. + * @type {number} + * @memberof BulkResultDto + */ + jobIndex: number; + /** + * The ID of the entity that has been handled successfully or not. + * @type {string} + * @memberof BulkResultDto + */ + id?: string | null; + /** + * The ID of the entity that has been handled successfully or not. + * @type {string} + * @memberof BulkResultDto + * @deprecated + */ + contentId?: string | null; +} + +/** + * Check if a given object implements the BulkResultDto interface. + */ +export function instanceOfBulkResultDto(value: object): value is BulkResultDto { + if (!('jobIndex' in value) || value['jobIndex'] === undefined) return false; + return true; +} + +export function BulkResultDtoFromJSON(json: any): BulkResultDto { + return BulkResultDtoFromJSONTyped(json, false); +} + +export function BulkResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResultDto { + if (json == null) { + return json; + } + return { + + 'error': json['error'] == null ? undefined : ErrorDtoFromJSON(json['error']), + 'jobIndex': json['jobIndex'], + 'id': json['id'] == null ? undefined : json['id'], + 'contentId': json['contentId'] == null ? undefined : json['contentId'], + }; +} + +export function BulkResultDtoToJSON(value?: BulkResultDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'error': ErrorDtoToJSON(value['error']), + 'jobIndex': value['jobIndex'], + 'id': value['id'], + 'contentId': value['contentId'], + }; +} diff --git a/src/generated/models/BulkUpdateAssetType.ts b/src/generated/models/BulkUpdateAssetType.ts new file mode 100644 index 0000000..3b8ced9 --- /dev/null +++ b/src/generated/models/BulkUpdateAssetType.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const BulkUpdateAssetType = { + Annotate: 'Annotate', + Move: 'Move', + Delete: 'Delete' +} as const; +export type BulkUpdateAssetType = typeof BulkUpdateAssetType[keyof typeof BulkUpdateAssetType]; + + +export function instanceOfBulkUpdateAssetType(value: any): boolean { + for (const key in BulkUpdateAssetType) { + if (Object.prototype.hasOwnProperty.call(BulkUpdateAssetType, key)) { + if (BulkUpdateAssetType[key as keyof typeof BulkUpdateAssetType] === value) { + return true; + } + } + } + return false; +} + +export function BulkUpdateAssetTypeFromJSON(json: any): BulkUpdateAssetType { + return BulkUpdateAssetTypeFromJSONTyped(json, false); +} + +export function BulkUpdateAssetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateAssetType { + return json as BulkUpdateAssetType; +} + +export function BulkUpdateAssetTypeToJSON(value?: BulkUpdateAssetType | null): any { + return value as any; +} + diff --git a/src/generated/models/BulkUpdateAssetsDto.ts b/src/generated/models/BulkUpdateAssetsDto.ts new file mode 100644 index 0000000..7b5c4a6 --- /dev/null +++ b/src/generated/models/BulkUpdateAssetsDto.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { BulkUpdateAssetsJobDto } from './BulkUpdateAssetsJobDto'; +import { + BulkUpdateAssetsJobDtoFromJSON, + BulkUpdateAssetsJobDtoFromJSONTyped, + BulkUpdateAssetsJobDtoToJSON, +} from './BulkUpdateAssetsJobDto'; + +/** + * + * @export + * @interface BulkUpdateAssetsDto + */ +export interface BulkUpdateAssetsDto { + /** + * The contents to update or insert. + * @type {Array} + * @memberof BulkUpdateAssetsDto + */ + jobs?: Array | null; + /** + * True to check referrers of deleted assets. + * @type {boolean} + * @memberof BulkUpdateAssetsDto + */ + checkReferrers?: boolean; + /** + * True to turn off costly validation: Folder checks. Default: true. + * @type {boolean} + * @memberof BulkUpdateAssetsDto + */ + optimizeValidation?: boolean; + /** + * True to turn off scripting for faster inserts. Default: true. + * @type {boolean} + * @memberof BulkUpdateAssetsDto + */ + doNotScript?: boolean; +} + +/** + * Check if a given object implements the BulkUpdateAssetsDto interface. + */ +export function instanceOfBulkUpdateAssetsDto(value: object): value is BulkUpdateAssetsDto { + return true; +} + +export function BulkUpdateAssetsDtoFromJSON(json: any): BulkUpdateAssetsDto { + return BulkUpdateAssetsDtoFromJSONTyped(json, false); +} + +export function BulkUpdateAssetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateAssetsDto { + if (json == null) { + return json; + } + return { + + 'jobs': json['jobs'] == null ? undefined : ((json['jobs'] as Array).map(BulkUpdateAssetsJobDtoFromJSON)), + 'checkReferrers': json['checkReferrers'] == null ? undefined : json['checkReferrers'], + 'optimizeValidation': json['optimizeValidation'] == null ? undefined : json['optimizeValidation'], + 'doNotScript': json['doNotScript'] == null ? undefined : json['doNotScript'], + }; +} + +export function BulkUpdateAssetsDtoToJSON(value?: BulkUpdateAssetsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'jobs': value['jobs'] == null ? undefined : ((value['jobs'] as Array).map(BulkUpdateAssetsJobDtoToJSON)), + 'checkReferrers': value['checkReferrers'], + 'optimizeValidation': value['optimizeValidation'], + 'doNotScript': value['doNotScript'], + }; +} diff --git a/src/generated/models/BulkUpdateAssetsJobDto.ts b/src/generated/models/BulkUpdateAssetsJobDto.ts new file mode 100644 index 0000000..bce1e43 --- /dev/null +++ b/src/generated/models/BulkUpdateAssetsJobDto.ts @@ -0,0 +1,140 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { BulkUpdateAssetType } from './BulkUpdateAssetType'; +import { + BulkUpdateAssetTypeFromJSON, + BulkUpdateAssetTypeFromJSONTyped, + BulkUpdateAssetTypeToJSON, +} from './BulkUpdateAssetType'; + +/** + * + * @export + * @interface BulkUpdateAssetsJobDto + */ +export interface BulkUpdateAssetsJobDto { + /** + * An optional ID of the asset to update. + * @type {string} + * @memberof BulkUpdateAssetsJobDto + */ + id?: string; + /** + * + * @type {BulkUpdateAssetType} + * @memberof BulkUpdateAssetsJobDto + */ + type?: BulkUpdateAssetType; + /** + * The parent folder id. + * @type {string} + * @memberof BulkUpdateAssetsJobDto + */ + parentId?: string; + /** + * The new name of the asset. + * @type {string} + * @memberof BulkUpdateAssetsJobDto + */ + fileName?: string | null; + /** + * The new slug of the asset. + * @type {string} + * @memberof BulkUpdateAssetsJobDto + */ + slug?: string | null; + /** + * True, when the asset is not public. + * @type {boolean} + * @memberof BulkUpdateAssetsJobDto + */ + isProtected?: boolean | null; + /** + * The new asset tags. + * @type {Array} + * @memberof BulkUpdateAssetsJobDto + */ + tags?: Array | null; + /** + * The asset metadata. + * @type {{ [key: string]: any; }} + * @memberof BulkUpdateAssetsJobDto + */ + metadata?: { [key: string]: any; } | null; + /** + * True to delete the asset permanently. + * @type {boolean} + * @memberof BulkUpdateAssetsJobDto + */ + permanent?: boolean; + /** + * The expected version. + * @type {number} + * @memberof BulkUpdateAssetsJobDto + */ + expectedVersion?: number; +} + + + +/** + * Check if a given object implements the BulkUpdateAssetsJobDto interface. + */ +export function instanceOfBulkUpdateAssetsJobDto(value: object): value is BulkUpdateAssetsJobDto { + return true; +} + +export function BulkUpdateAssetsJobDtoFromJSON(json: any): BulkUpdateAssetsJobDto { + return BulkUpdateAssetsJobDtoFromJSONTyped(json, false); +} + +export function BulkUpdateAssetsJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateAssetsJobDto { + if (json == null) { + return json; + } + return { + + 'id': json['id'] == null ? undefined : json['id'], + 'type': json['type'] == null ? undefined : BulkUpdateAssetTypeFromJSON(json['type']), + 'parentId': json['parentId'] == null ? undefined : json['parentId'], + 'fileName': json['fileName'] == null ? undefined : json['fileName'], + 'slug': json['slug'] == null ? undefined : json['slug'], + 'isProtected': json['isProtected'] == null ? undefined : json['isProtected'], + 'tags': json['tags'] == null ? undefined : json['tags'], + 'metadata': json['metadata'] == null ? undefined : json['metadata'], + 'permanent': json['permanent'] == null ? undefined : json['permanent'], + 'expectedVersion': json['expectedVersion'] == null ? undefined : json['expectedVersion'], + }; +} + +export function BulkUpdateAssetsJobDtoToJSON(value?: BulkUpdateAssetsJobDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'id': value['id'], + 'type': BulkUpdateAssetTypeToJSON(value['type']), + 'parentId': value['parentId'], + 'fileName': value['fileName'], + 'slug': value['slug'], + 'isProtected': value['isProtected'], + 'tags': value['tags'], + 'metadata': value['metadata'], + 'permanent': value['permanent'], + 'expectedVersion': value['expectedVersion'], + }; +} diff --git a/src/generated/models/BulkUpdateContentType.ts b/src/generated/models/BulkUpdateContentType.ts new file mode 100644 index 0000000..61bef8c --- /dev/null +++ b/src/generated/models/BulkUpdateContentType.ts @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const BulkUpdateContentType = { + Upsert: 'Upsert', + ChangeStatus: 'ChangeStatus', + Create: 'Create', + Delete: 'Delete', + Patch: 'Patch', + Update: 'Update', + Validate: 'Validate', + EnrichDefaults: 'EnrichDefaults' +} as const; +export type BulkUpdateContentType = typeof BulkUpdateContentType[keyof typeof BulkUpdateContentType]; + + +export function instanceOfBulkUpdateContentType(value: any): boolean { + for (const key in BulkUpdateContentType) { + if (Object.prototype.hasOwnProperty.call(BulkUpdateContentType, key)) { + if (BulkUpdateContentType[key as keyof typeof BulkUpdateContentType] === value) { + return true; + } + } + } + return false; +} + +export function BulkUpdateContentTypeFromJSON(json: any): BulkUpdateContentType { + return BulkUpdateContentTypeFromJSONTyped(json, false); +} + +export function BulkUpdateContentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateContentType { + return json as BulkUpdateContentType; +} + +export function BulkUpdateContentTypeToJSON(value?: BulkUpdateContentType | null): any { + return value as any; +} + diff --git a/src/generated/models/BulkUpdateContentsDto.ts b/src/generated/models/BulkUpdateContentsDto.ts new file mode 100644 index 0000000..fd07e57 --- /dev/null +++ b/src/generated/models/BulkUpdateContentsDto.ts @@ -0,0 +1,125 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { BulkUpdateContentsJobDto } from './BulkUpdateContentsJobDto'; +import { + BulkUpdateContentsJobDtoFromJSON, + BulkUpdateContentsJobDtoFromJSONTyped, + BulkUpdateContentsJobDtoToJSON, +} from './BulkUpdateContentsJobDto'; + +/** + * + * @export + * @interface BulkUpdateContentsDto + */ +export interface BulkUpdateContentsDto { + /** + * The contents to update or insert. + * @type {Array} + * @memberof BulkUpdateContentsDto + */ + jobs: Array; + /** + * True to automatically publish the content. + * @type {boolean} + * @memberof BulkUpdateContentsDto + * @deprecated + */ + publish?: boolean; + /** + * True to turn off scripting for faster inserts. Default: true. + * @type {boolean} + * @memberof BulkUpdateContentsDto + */ + doNotScript?: boolean; + /** + * True, to also enrich required fields. Default: false. + * + * @type {boolean} + * @memberof BulkUpdateContentsDto + */ + enrichRequiredFields?: boolean; + /** + * True to turn off validation for faster inserts. Default: false. + * @type {boolean} + * @memberof BulkUpdateContentsDto + */ + doNotValidate?: boolean; + /** + * True to turn off validation of workflow rules. Default: false. + * @type {boolean} + * @memberof BulkUpdateContentsDto + */ + doNotValidateWorkflow?: boolean; + /** + * True to check referrers of deleted contents. + * @type {boolean} + * @memberof BulkUpdateContentsDto + */ + checkReferrers?: boolean; + /** + * True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true. + * @type {boolean} + * @memberof BulkUpdateContentsDto + */ + optimizeValidation?: boolean; +} + +/** + * Check if a given object implements the BulkUpdateContentsDto interface. + */ +export function instanceOfBulkUpdateContentsDto(value: object): value is BulkUpdateContentsDto { + if (!('jobs' in value) || value['jobs'] === undefined) return false; + return true; +} + +export function BulkUpdateContentsDtoFromJSON(json: any): BulkUpdateContentsDto { + return BulkUpdateContentsDtoFromJSONTyped(json, false); +} + +export function BulkUpdateContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateContentsDto { + if (json == null) { + return json; + } + return { + + 'jobs': ((json['jobs'] as Array).map(BulkUpdateContentsJobDtoFromJSON)), + 'publish': json['publish'] == null ? undefined : json['publish'], + 'doNotScript': json['doNotScript'] == null ? undefined : json['doNotScript'], + 'enrichRequiredFields': json['enrichRequiredFields'] == null ? undefined : json['enrichRequiredFields'], + 'doNotValidate': json['doNotValidate'] == null ? undefined : json['doNotValidate'], + 'doNotValidateWorkflow': json['doNotValidateWorkflow'] == null ? undefined : json['doNotValidateWorkflow'], + 'checkReferrers': json['checkReferrers'] == null ? undefined : json['checkReferrers'], + 'optimizeValidation': json['optimizeValidation'] == null ? undefined : json['optimizeValidation'], + }; +} + +export function BulkUpdateContentsDtoToJSON(value?: BulkUpdateContentsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'jobs': ((value['jobs'] as Array).map(BulkUpdateContentsJobDtoToJSON)), + 'publish': value['publish'], + 'doNotScript': value['doNotScript'], + 'enrichRequiredFields': value['enrichRequiredFields'], + 'doNotValidate': value['doNotValidate'], + 'doNotValidateWorkflow': value['doNotValidateWorkflow'], + 'checkReferrers': value['checkReferrers'], + 'optimizeValidation': value['optimizeValidation'], + }; +} diff --git a/src/generated/models/BulkUpdateContentsJobDto.ts b/src/generated/models/BulkUpdateContentsJobDto.ts new file mode 100644 index 0000000..f9593a6 --- /dev/null +++ b/src/generated/models/BulkUpdateContentsJobDto.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { QueryJsonDto } from './QueryJsonDto'; +import { + QueryJsonDtoFromJSON, + QueryJsonDtoFromJSONTyped, + QueryJsonDtoToJSON, +} from './QueryJsonDto'; +import type { BulkUpdateContentType } from './BulkUpdateContentType'; +import { + BulkUpdateContentTypeFromJSON, + BulkUpdateContentTypeFromJSONTyped, + BulkUpdateContentTypeToJSON, +} from './BulkUpdateContentType'; + +/** + * + * @export + * @interface BulkUpdateContentsJobDto + */ +export interface BulkUpdateContentsJobDto { + /** + * + * @type {QueryJsonDto} + * @memberof BulkUpdateContentsJobDto + */ + query?: QueryJsonDto; + /** + * An optional ID of the content to update. + * @type {string} + * @memberof BulkUpdateContentsJobDto + */ + id?: string | null; + /** + * + * @type {{ [key: string]: { [key: string]: any; }; }} + * @memberof BulkUpdateContentsJobDto + */ + data?: { [key: string]: { [key: string]: any; }; }; + /** + * The new status when the type is set to 'ChangeStatus' or 'Upsert'. + * @type {string} + * @memberof BulkUpdateContentsJobDto + */ + status?: string | null; + /** + * The due time. + * @type {Date} + * @memberof BulkUpdateContentsJobDto + */ + dueTime?: Date | null; + /** + * + * @type {BulkUpdateContentType} + * @memberof BulkUpdateContentsJobDto + */ + type?: BulkUpdateContentType; + /** + * The optional schema id or name. + * @type {string} + * @memberof BulkUpdateContentsJobDto + */ + schema?: string | null; + /** + * Makes the update as patch. + * @type {boolean} + * @memberof BulkUpdateContentsJobDto + */ + patch?: boolean; + /** + * True to delete the content permanently. + * @type {boolean} + * @memberof BulkUpdateContentsJobDto + */ + permanent?: boolean; + /** + * Enrich the data with the default values when updating a content item. + * @type {boolean} + * @memberof BulkUpdateContentsJobDto + */ + enrichDefaults?: boolean; + /** + * The number of expected items. Set it to a higher number to update multiple items when a query is defined. + * @type {number} + * @memberof BulkUpdateContentsJobDto + */ + expectedCount?: number; + /** + * The expected version. + * @type {number} + * @memberof BulkUpdateContentsJobDto + */ + expectedVersion?: number; +} + + + +/** + * Check if a given object implements the BulkUpdateContentsJobDto interface. + */ +export function instanceOfBulkUpdateContentsJobDto(value: object): value is BulkUpdateContentsJobDto { + return true; +} + +export function BulkUpdateContentsJobDtoFromJSON(json: any): BulkUpdateContentsJobDto { + return BulkUpdateContentsJobDtoFromJSONTyped(json, false); +} + +export function BulkUpdateContentsJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateContentsJobDto { + if (json == null) { + return json; + } + return { + + 'query': json['query'] == null ? undefined : QueryJsonDtoFromJSON(json['query']), + 'id': json['id'] == null ? undefined : json['id'], + 'data': json['data'] == null ? undefined : json['data'], + 'status': json['status'] == null ? undefined : json['status'], + 'dueTime': json['dueTime'] == null ? undefined : (new Date(json['dueTime'])), + 'type': json['type'] == null ? undefined : BulkUpdateContentTypeFromJSON(json['type']), + 'schema': json['schema'] == null ? undefined : json['schema'], + 'patch': json['patch'] == null ? undefined : json['patch'], + 'permanent': json['permanent'] == null ? undefined : json['permanent'], + 'enrichDefaults': json['enrichDefaults'] == null ? undefined : json['enrichDefaults'], + 'expectedCount': json['expectedCount'] == null ? undefined : json['expectedCount'], + 'expectedVersion': json['expectedVersion'] == null ? undefined : json['expectedVersion'], + }; +} + +export function BulkUpdateContentsJobDtoToJSON(value?: BulkUpdateContentsJobDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'query': QueryJsonDtoToJSON(value['query']), + 'id': value['id'], + 'data': value['data'], + 'status': value['status'], + 'dueTime': value['dueTime'] == null ? undefined : ((value['dueTime'] as any).toISOString()), + 'type': BulkUpdateContentTypeToJSON(value['type']), + 'schema': value['schema'], + 'patch': value['patch'], + 'permanent': value['permanent'], + 'enrichDefaults': value['enrichDefaults'], + 'expectedCount': value['expectedCount'], + 'expectedVersion': value['expectedVersion'], + }; +} diff --git a/src/generated/models/CallsUsageDtoDto.ts b/src/generated/models/CallsUsageDtoDto.ts new file mode 100644 index 0000000..fac1575 --- /dev/null +++ b/src/generated/models/CallsUsageDtoDto.ts @@ -0,0 +1,139 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { CallsUsagePerDateDto } from './CallsUsagePerDateDto'; +import { + CallsUsagePerDateDtoFromJSON, + CallsUsagePerDateDtoFromJSONTyped, + CallsUsagePerDateDtoToJSON, +} from './CallsUsagePerDateDto'; + +/** + * + * @export + * @interface CallsUsageDtoDto + */ +export interface CallsUsageDtoDto { + /** + * The total number of API calls. + * @type {number} + * @memberof CallsUsageDtoDto + */ + totalCalls: number; + /** + * The total number of bytes transferred. + * @type {number} + * @memberof CallsUsageDtoDto + */ + totalBytes: number; + /** + * The total number of API calls this month. + * @type {number} + * @memberof CallsUsageDtoDto + */ + monthCalls: number; + /** + * The total number of bytes transferred this month. + * @type {number} + * @memberof CallsUsageDtoDto + */ + monthBytes: number; + /** + * The amount of calls that will block the app. + * @type {number} + * @memberof CallsUsageDtoDto + */ + blockingApiCalls: number; + /** + * The included API traffic. + * @type {number} + * @memberof CallsUsageDtoDto + */ + allowedBytes: number; + /** + * The included API calls. + * @type {number} + * @memberof CallsUsageDtoDto + */ + allowedCalls: number; + /** + * The average duration in milliseconds. + * @type {number} + * @memberof CallsUsageDtoDto + */ + averageElapsedMs: number; + /** + * The statistics by date and group. + * @type {{ [key: string]: Array; }} + * @memberof CallsUsageDtoDto + */ + details: { [key: string]: Array; }; +} + +/** + * Check if a given object implements the CallsUsageDtoDto interface. + */ +export function instanceOfCallsUsageDtoDto(value: object): value is CallsUsageDtoDto { + if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; + if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; + if (!('monthCalls' in value) || value['monthCalls'] === undefined) return false; + if (!('monthBytes' in value) || value['monthBytes'] === undefined) return false; + if (!('blockingApiCalls' in value) || value['blockingApiCalls'] === undefined) return false; + if (!('allowedBytes' in value) || value['allowedBytes'] === undefined) return false; + if (!('allowedCalls' in value) || value['allowedCalls'] === undefined) return false; + if (!('averageElapsedMs' in value) || value['averageElapsedMs'] === undefined) return false; + if (!('details' in value) || value['details'] === undefined) return false; + return true; +} + +export function CallsUsageDtoDtoFromJSON(json: any): CallsUsageDtoDto { + return CallsUsageDtoDtoFromJSONTyped(json, false); +} + +export function CallsUsageDtoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallsUsageDtoDto { + if (json == null) { + return json; + } + return { + + 'totalCalls': json['totalCalls'], + 'totalBytes': json['totalBytes'], + 'monthCalls': json['monthCalls'], + 'monthBytes': json['monthBytes'], + 'blockingApiCalls': json['blockingApiCalls'], + 'allowedBytes': json['allowedBytes'], + 'allowedCalls': json['allowedCalls'], + 'averageElapsedMs': json['averageElapsedMs'], + 'details': json['details'], + }; +} + +export function CallsUsageDtoDtoToJSON(value?: CallsUsageDtoDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'totalCalls': value['totalCalls'], + 'totalBytes': value['totalBytes'], + 'monthCalls': value['monthCalls'], + 'monthBytes': value['monthBytes'], + 'blockingApiCalls': value['blockingApiCalls'], + 'allowedBytes': value['allowedBytes'], + 'allowedCalls': value['allowedCalls'], + 'averageElapsedMs': value['averageElapsedMs'], + 'details': value['details'], + }; +} diff --git a/src/generated/models/CallsUsagePerDateDto.ts b/src/generated/models/CallsUsagePerDateDto.ts new file mode 100644 index 0000000..96085a1 --- /dev/null +++ b/src/generated/models/CallsUsagePerDateDto.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CallsUsagePerDateDto + */ +export interface CallsUsagePerDateDto { + /** + * The date when the usage was tracked. + * @type {Date} + * @memberof CallsUsagePerDateDto + */ + date: Date; + /** + * The total number of API calls. + * @type {number} + * @memberof CallsUsagePerDateDto + */ + totalCalls: number; + /** + * The total number of bytes transferred. + * @type {number} + * @memberof CallsUsagePerDateDto + */ + totalBytes: number; + /** + * The average duration in milliseconds. + * @type {number} + * @memberof CallsUsagePerDateDto + */ + averageElapsedMs: number; +} + +/** + * Check if a given object implements the CallsUsagePerDateDto interface. + */ +export function instanceOfCallsUsagePerDateDto(value: object): value is CallsUsagePerDateDto { + if (!('date' in value) || value['date'] === undefined) return false; + if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; + if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; + if (!('averageElapsedMs' in value) || value['averageElapsedMs'] === undefined) return false; + return true; +} + +export function CallsUsagePerDateDtoFromJSON(json: any): CallsUsagePerDateDto { + return CallsUsagePerDateDtoFromJSONTyped(json, false); +} + +export function CallsUsagePerDateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallsUsagePerDateDto { + if (json == null) { + return json; + } + return { + + 'date': (new Date(json['date'])), + 'totalCalls': json['totalCalls'], + 'totalBytes': json['totalBytes'], + 'averageElapsedMs': json['averageElapsedMs'], + }; +} + +export function CallsUsagePerDateDtoToJSON(value?: CallsUsagePerDateDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'date': ((value['date']).toISOString().substring(0,10)), + 'totalCalls': value['totalCalls'], + 'totalBytes': value['totalBytes'], + 'averageElapsedMs': value['averageElapsedMs'], + }; +} diff --git a/src/generated/models/ChangeCategoryDto.ts b/src/generated/models/ChangeCategoryDto.ts new file mode 100644 index 0000000..bb869c5 --- /dev/null +++ b/src/generated/models/ChangeCategoryDto.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ChangeCategoryDto + */ +export interface ChangeCategoryDto { + /** + * The name of the category. + * @type {string} + * @memberof ChangeCategoryDto + */ + name?: string | null; +} + +/** + * Check if a given object implements the ChangeCategoryDto interface. + */ +export function instanceOfChangeCategoryDto(value: object): value is ChangeCategoryDto { + return true; +} + +export function ChangeCategoryDtoFromJSON(json: any): ChangeCategoryDto { + return ChangeCategoryDtoFromJSONTyped(json, false); +} + +export function ChangeCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeCategoryDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'] == null ? undefined : json['name'], + }; +} + +export function ChangeCategoryDtoToJSON(value?: ChangeCategoryDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + }; +} diff --git a/src/generated/models/ChangePlanDto.ts b/src/generated/models/ChangePlanDto.ts new file mode 100644 index 0000000..fcc92dd --- /dev/null +++ b/src/generated/models/ChangePlanDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ChangePlanDto + */ +export interface ChangePlanDto { + /** + * The new plan id. + * @type {string} + * @memberof ChangePlanDto + */ + planId: string; +} + +/** + * Check if a given object implements the ChangePlanDto interface. + */ +export function instanceOfChangePlanDto(value: object): value is ChangePlanDto { + if (!('planId' in value) || value['planId'] === undefined) return false; + return true; +} + +export function ChangePlanDtoFromJSON(json: any): ChangePlanDto { + return ChangePlanDtoFromJSONTyped(json, false); +} + +export function ChangePlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePlanDto { + if (json == null) { + return json; + } + return { + + 'planId': json['planId'], + }; +} + +export function ChangePlanDtoToJSON(value?: ChangePlanDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'planId': value['planId'], + }; +} diff --git a/src/generated/models/ChangeStatusDto.ts b/src/generated/models/ChangeStatusDto.ts new file mode 100644 index 0000000..f40e7c3 --- /dev/null +++ b/src/generated/models/ChangeStatusDto.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ChangeStatusDto + */ +export interface ChangeStatusDto { + /** + * The new status. + * @type {string} + * @memberof ChangeStatusDto + */ + status: string; + /** + * The due time. + * @type {Date} + * @memberof ChangeStatusDto + */ + dueTime?: Date | null; + /** + * True to check referrers of this content. + * @type {boolean} + * @memberof ChangeStatusDto + */ + checkReferrers?: boolean; +} + +/** + * Check if a given object implements the ChangeStatusDto interface. + */ +export function instanceOfChangeStatusDto(value: object): value is ChangeStatusDto { + if (!('status' in value) || value['status'] === undefined) return false; + return true; +} + +export function ChangeStatusDtoFromJSON(json: any): ChangeStatusDto { + return ChangeStatusDtoFromJSONTyped(json, false); +} + +export function ChangeStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeStatusDto { + if (json == null) { + return json; + } + return { + + 'status': json['status'], + 'dueTime': json['dueTime'] == null ? undefined : (new Date(json['dueTime'])), + 'checkReferrers': json['checkReferrers'] == null ? undefined : json['checkReferrers'], + }; +} + +export function ChangeStatusDtoToJSON(value?: ChangeStatusDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'status': value['status'], + 'dueTime': value['dueTime'] == null ? undefined : ((value['dueTime'] as any).toISOString()), + 'checkReferrers': value['checkReferrers'], + }; +} diff --git a/src/generated/models/ClientDto.ts b/src/generated/models/ClientDto.ts new file mode 100644 index 0000000..bfeb275 --- /dev/null +++ b/src/generated/models/ClientDto.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface ClientDto + */ +export interface ClientDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof ClientDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The client id. + * @type {string} + * @memberof ClientDto + */ + id: string; + /** + * The client secret. + * @type {string} + * @memberof ClientDto + */ + secret: string; + /** + * The client name. + * @type {string} + * @memberof ClientDto + */ + name: string; + /** + * The role of the client. + * @type {string} + * @memberof ClientDto + */ + role?: string | null; + /** + * The number of allowed api calls per month for this client. + * @type {number} + * @memberof ClientDto + */ + apiCallsLimit: number; + /** + * The number of allowed api traffic bytes per month for this client. + * @type {number} + * @memberof ClientDto + */ + apiTrafficLimit: number; + /** + * True to allow anonymous access without an access token for this client. + * @type {boolean} + * @memberof ClientDto + */ + allowAnonymous: boolean; +} + +/** + * Check if a given object implements the ClientDto interface. + */ +export function instanceOfClientDto(value: object): value is ClientDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('secret' in value) || value['secret'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('apiCallsLimit' in value) || value['apiCallsLimit'] === undefined) return false; + if (!('apiTrafficLimit' in value) || value['apiTrafficLimit'] === undefined) return false; + if (!('allowAnonymous' in value) || value['allowAnonymous'] === undefined) return false; + return true; +} + +export function ClientDtoFromJSON(json: any): ClientDto { + return ClientDtoFromJSONTyped(json, false); +} + +export function ClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'secret': json['secret'], + 'name': json['name'], + 'role': json['role'] == null ? undefined : json['role'], + 'apiCallsLimit': json['apiCallsLimit'], + 'apiTrafficLimit': json['apiTrafficLimit'], + 'allowAnonymous': json['allowAnonymous'], + }; +} + +export function ClientDtoToJSON(value?: ClientDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'secret': value['secret'], + 'name': value['name'], + 'role': value['role'], + 'apiCallsLimit': value['apiCallsLimit'], + 'apiTrafficLimit': value['apiTrafficLimit'], + 'allowAnonymous': value['allowAnonymous'], + }; +} diff --git a/src/generated/models/ClientsDto.ts b/src/generated/models/ClientsDto.ts new file mode 100644 index 0000000..682a6a2 --- /dev/null +++ b/src/generated/models/ClientsDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { ClientDto } from './ClientDto'; +import { + ClientDtoFromJSON, + ClientDtoFromJSONTyped, + ClientDtoToJSON, +} from './ClientDto'; + +/** + * + * @export + * @interface ClientsDto + */ +export interface ClientsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof ClientsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The clients. + * @type {Array} + * @memberof ClientsDto + */ + items: Array; +} + +/** + * Check if a given object implements the ClientsDto interface. + */ +export function instanceOfClientsDto(value: object): value is ClientsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function ClientsDtoFromJSON(json: any): ClientsDto { + return ClientsDtoFromJSONTyped(json, false); +} + +export function ClientsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(ClientDtoFromJSON)), + }; +} + +export function ClientsDtoToJSON(value?: ClientsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(ClientDtoToJSON)), + }; +} diff --git a/src/generated/models/CommentRuleActionDto.ts b/src/generated/models/CommentRuleActionDto.ts new file mode 100644 index 0000000..f916db6 --- /dev/null +++ b/src/generated/models/CommentRuleActionDto.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface CommentRuleActionDto + */ +export interface CommentRuleActionDto extends RuleActionDto { + /** + * The comment text. + * @type {string} + * @memberof CommentRuleActionDto + */ + text: string; + /** + * An optional client name. + * @type {string} + * @memberof CommentRuleActionDto + */ + client?: string | null; +} + +/** + * Check if a given object implements the CommentRuleActionDto interface. + */ +export function instanceOfCommentRuleActionDto(value: object): value is CommentRuleActionDto { + if (!('text' in value) || value['text'] === undefined) return false; + return true; +} + +export function CommentRuleActionDtoFromJSON(json: any): CommentRuleActionDto { + return CommentRuleActionDtoFromJSONTyped(json, false); +} + +export function CommentRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'text': json['text'], + 'client': json['client'] == null ? undefined : json['client'], + }; +} + +export function CommentRuleActionDtoToJSON(value?: CommentRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'text': value['text'], + 'client': value['client'], + }; +} diff --git a/src/generated/models/CommentRuleTriggerDto.ts b/src/generated/models/CommentRuleTriggerDto.ts new file mode 100644 index 0000000..a4a413e --- /dev/null +++ b/src/generated/models/CommentRuleTriggerDto.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface CommentRuleTriggerDto + */ +export interface CommentRuleTriggerDto extends RuleTriggerDto { + /** + * Javascript condition when to trigger. + * @type {string} + * @memberof CommentRuleTriggerDto + */ + condition?: string | null; +} + +/** + * Check if a given object implements the CommentRuleTriggerDto interface. + */ +export function instanceOfCommentRuleTriggerDto(value: object): value is CommentRuleTriggerDto { + return true; +} + +export function CommentRuleTriggerDtoFromJSON(json: any): CommentRuleTriggerDto { + return CommentRuleTriggerDtoFromJSONTyped(json, false); +} + +export function CommentRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentRuleTriggerDto { + if (json == null) { + return json; + } + return { + ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + 'condition': json['condition'] == null ? undefined : json['condition'], + }; +} + +export function CommentRuleTriggerDtoToJSON(value?: CommentRuleTriggerDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleTriggerDtoToJSON(value, true), + 'condition': value['condition'], + }; +} diff --git a/src/generated/models/ComponentFieldPropertiesDto.ts b/src/generated/models/ComponentFieldPropertiesDto.ts new file mode 100644 index 0000000..065dc0b --- /dev/null +++ b/src/generated/models/ComponentFieldPropertiesDto.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; + +/** + * + * @export + * @interface ComponentFieldPropertiesDto + */ +export interface ComponentFieldPropertiesDto extends FieldPropertiesDto { + /** + * The ID of the embedded schemas. + * @type {Array} + * @memberof ComponentFieldPropertiesDto + */ + schemaIds?: Array | null; +} + +/** + * Check if a given object implements the ComponentFieldPropertiesDto interface. + */ +export function instanceOfComponentFieldPropertiesDto(value: object): value is ComponentFieldPropertiesDto { + return true; +} + +export function ComponentFieldPropertiesDtoFromJSON(json: any): ComponentFieldPropertiesDto { + return ComponentFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function ComponentFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], + }; +} + +export function ComponentFieldPropertiesDtoToJSON(value?: ComponentFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'schemaIds': value['schemaIds'], + }; +} diff --git a/src/generated/models/ComponentsFieldPropertiesDto.ts b/src/generated/models/ComponentsFieldPropertiesDto.ts new file mode 100644 index 0000000..cf19832 --- /dev/null +++ b/src/generated/models/ComponentsFieldPropertiesDto.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { ArrayCalculatedDefaultValue } from './ArrayCalculatedDefaultValue'; +import { + ArrayCalculatedDefaultValueFromJSON, + ArrayCalculatedDefaultValueFromJSONTyped, + ArrayCalculatedDefaultValueToJSON, +} from './ArrayCalculatedDefaultValue'; + +/** + * + * @export + * @interface ComponentsFieldPropertiesDto + */ +export interface ComponentsFieldPropertiesDto extends FieldPropertiesDto { + /** + * The minimum allowed items for the field value. + * @type {number} + * @memberof ComponentsFieldPropertiesDto + */ + minItems?: number | null; + /** + * The maximum allowed items for the field value. + * @type {number} + * @memberof ComponentsFieldPropertiesDto + */ + maxItems?: number | null; + /** + * + * @type {ArrayCalculatedDefaultValue} + * @memberof ComponentsFieldPropertiesDto + */ + calculatedDefaultValue?: ArrayCalculatedDefaultValue; + /** + * The ID of the embedded schemas. + * @type {Array} + * @memberof ComponentsFieldPropertiesDto + */ + schemaIds?: Array | null; + /** + * The fields that must be unique. + * @type {Array} + * @memberof ComponentsFieldPropertiesDto + */ + uniqueFields?: Array | null; +} + + + +/** + * Check if a given object implements the ComponentsFieldPropertiesDto interface. + */ +export function instanceOfComponentsFieldPropertiesDto(value: object): value is ComponentsFieldPropertiesDto { + return true; +} + +export function ComponentsFieldPropertiesDtoFromJSON(json: any): ComponentsFieldPropertiesDto { + return ComponentsFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function ComponentsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentsFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'minItems': json['minItems'] == null ? undefined : json['minItems'], + 'maxItems': json['maxItems'] == null ? undefined : json['maxItems'], + 'calculatedDefaultValue': json['calculatedDefaultValue'] == null ? undefined : ArrayCalculatedDefaultValueFromJSON(json['calculatedDefaultValue']), + 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], + 'uniqueFields': json['uniqueFields'] == null ? undefined : json['uniqueFields'], + }; +} + +export function ComponentsFieldPropertiesDtoToJSON(value?: ComponentsFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'minItems': value['minItems'], + 'maxItems': value['maxItems'], + 'calculatedDefaultValue': ArrayCalculatedDefaultValueToJSON(value['calculatedDefaultValue']), + 'schemaIds': value['schemaIds'], + 'uniqueFields': value['uniqueFields'], + }; +} diff --git a/src/generated/models/ConfigureFieldRulesDto.ts b/src/generated/models/ConfigureFieldRulesDto.ts new file mode 100644 index 0000000..898d0d5 --- /dev/null +++ b/src/generated/models/ConfigureFieldRulesDto.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldRuleDto } from './FieldRuleDto'; +import { + FieldRuleDtoFromJSON, + FieldRuleDtoFromJSONTyped, + FieldRuleDtoToJSON, +} from './FieldRuleDto'; + +/** + * + * @export + * @interface ConfigureFieldRulesDto + */ +export interface ConfigureFieldRulesDto { + /** + * The field rules to configure. + * @type {Array} + * @memberof ConfigureFieldRulesDto + */ + fieldRules?: Array | null; +} + +/** + * Check if a given object implements the ConfigureFieldRulesDto interface. + */ +export function instanceOfConfigureFieldRulesDto(value: object): value is ConfigureFieldRulesDto { + return true; +} + +export function ConfigureFieldRulesDtoFromJSON(json: any): ConfigureFieldRulesDto { + return ConfigureFieldRulesDtoFromJSONTyped(json, false); +} + +export function ConfigureFieldRulesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigureFieldRulesDto { + if (json == null) { + return json; + } + return { + + 'fieldRules': json['fieldRules'] == null ? undefined : ((json['fieldRules'] as Array).map(FieldRuleDtoFromJSON)), + }; +} + +export function ConfigureFieldRulesDtoToJSON(value?: ConfigureFieldRulesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + }; +} diff --git a/src/generated/models/ConfigureUIFieldsDto.ts b/src/generated/models/ConfigureUIFieldsDto.ts new file mode 100644 index 0000000..9f00764 --- /dev/null +++ b/src/generated/models/ConfigureUIFieldsDto.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ConfigureUIFieldsDto + */ +export interface ConfigureUIFieldsDto { + /** + * The name of fields that are used in content lists. + * @type {Array} + * @memberof ConfigureUIFieldsDto + */ + fieldsInLists?: Array | null; + /** + * The name of fields that are used in content references. + * @type {Array} + * @memberof ConfigureUIFieldsDto + */ + fieldsInReferences?: Array | null; +} + +/** + * Check if a given object implements the ConfigureUIFieldsDto interface. + */ +export function instanceOfConfigureUIFieldsDto(value: object): value is ConfigureUIFieldsDto { + return true; +} + +export function ConfigureUIFieldsDtoFromJSON(json: any): ConfigureUIFieldsDto { + return ConfigureUIFieldsDtoFromJSONTyped(json, false); +} + +export function ConfigureUIFieldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigureUIFieldsDto { + if (json == null) { + return json; + } + return { + + 'fieldsInLists': json['fieldsInLists'] == null ? undefined : json['fieldsInLists'], + 'fieldsInReferences': json['fieldsInReferences'] == null ? undefined : json['fieldsInReferences'], + }; +} + +export function ConfigureUIFieldsDtoToJSON(value?: ConfigureUIFieldsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'fieldsInLists': value['fieldsInLists'], + 'fieldsInReferences': value['fieldsInReferences'], + }; +} diff --git a/src/generated/models/ContentChangedRuleTriggerDto.ts b/src/generated/models/ContentChangedRuleTriggerDto.ts new file mode 100644 index 0000000..c75f28c --- /dev/null +++ b/src/generated/models/ContentChangedRuleTriggerDto.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SchemaCondition } from './SchemaCondition'; +import { + SchemaConditionFromJSON, + SchemaConditionFromJSONTyped, + SchemaConditionToJSON, +} from './SchemaCondition'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface ContentChangedRuleTriggerDto + */ +export interface ContentChangedRuleTriggerDto extends RuleTriggerDto { + /** + * The schema settings. + * @type {Array} + * @memberof ContentChangedRuleTriggerDto + */ + schemas?: Array | null; + /** + * The schema references. + * @type {Array} + * @memberof ContentChangedRuleTriggerDto + */ + referencedSchemas?: Array | null; + /** + * Determines whether the trigger should handle all content changes events. + * @type {boolean} + * @memberof ContentChangedRuleTriggerDto + */ + handleAll: boolean; +} + +/** + * Check if a given object implements the ContentChangedRuleTriggerDto interface. + */ +export function instanceOfContentChangedRuleTriggerDto(value: object): value is ContentChangedRuleTriggerDto { + if (!('handleAll' in value) || value['handleAll'] === undefined) return false; + return true; +} + +export function ContentChangedRuleTriggerDtoFromJSON(json: any): ContentChangedRuleTriggerDto { + return ContentChangedRuleTriggerDtoFromJSONTyped(json, false); +} + +export function ContentChangedRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentChangedRuleTriggerDto { + if (json == null) { + return json; + } + return { + ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + 'schemas': json['schemas'] == null ? undefined : ((json['schemas'] as Array).map(SchemaConditionFromJSON)), + 'referencedSchemas': json['referencedSchemas'] == null ? undefined : ((json['referencedSchemas'] as Array).map(SchemaConditionFromJSON)), + 'handleAll': json['handleAll'], + }; +} + +export function ContentChangedRuleTriggerDtoToJSON(value?: ContentChangedRuleTriggerDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleTriggerDtoToJSON(value, true), + 'schemas': value['schemas'] == null ? undefined : ((value['schemas'] as Array).map(SchemaConditionToJSON)), + 'referencedSchemas': value['referencedSchemas'] == null ? undefined : ((value['referencedSchemas'] as Array).map(SchemaConditionToJSON)), + 'handleAll': value['handleAll'], + }; +} diff --git a/src/generated/models/ContentDto.ts b/src/generated/models/ContentDto.ts new file mode 100644 index 0000000..0b19f4b --- /dev/null +++ b/src/generated/models/ContentDto.ts @@ -0,0 +1,242 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { ScheduleJobDto } from './ScheduleJobDto'; +import { + ScheduleJobDtoFromJSON, + ScheduleJobDtoFromJSONTyped, + ScheduleJobDtoToJSON, +} from './ScheduleJobDto'; +import type { FieldDto } from './FieldDto'; +import { + FieldDtoFromJSON, + FieldDtoFromJSONTyped, + FieldDtoToJSON, +} from './FieldDto'; + +/** + * + * @export + * @interface ContentDto + */ +export interface ContentDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof ContentDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The if of the content item. + * @type {string} + * @memberof ContentDto + */ + id: string; + /** + * The user that has created the content item. + * @type {string} + * @memberof ContentDto + */ + createdBy: string; + /** + * The user that has updated the content item. + * @type {string} + * @memberof ContentDto + */ + lastModifiedBy: string; + /** + * The data of the content item. + * @type {any} + * @memberof ContentDto + */ + data: any | null; + /** + * + * @type {{ [key: string]: { [key: string]: any; }; }} + * @memberof ContentDto + */ + referenceData?: { [key: string]: { [key: string]: any; }; }; + /** + * The date and time when the content item has been created. + * @type {Date} + * @memberof ContentDto + */ + created: Date; + /** + * The date and time when the content item has been modified last. + * @type {Date} + * @memberof ContentDto + */ + lastModified: Date; + /** + * The status of the content. + * @type {string} + * @memberof ContentDto + */ + status: string; + /** + * The new status of the content. + * @type {string} + * @memberof ContentDto + */ + newStatus?: string | null; + /** + * The color of the status. + * @type {string} + * @memberof ContentDto + */ + statusColor: string; + /** + * The color of the new status. + * @type {string} + * @memberof ContentDto + */ + newStatusColor?: string | null; + /** + * The UI token. + * @type {string} + * @memberof ContentDto + */ + editToken?: string | null; + /** + * + * @type {ScheduleJobDto} + * @memberof ContentDto + */ + scheduleJob?: ScheduleJobDto; + /** + * The ID of the schema. + * @type {string} + * @memberof ContentDto + */ + schemaId: string; + /** + * The name of the schema. + * @type {string} + * @memberof ContentDto + */ + schemaName?: string | null; + /** + * The display name of the schema. + * @type {string} + * @memberof ContentDto + */ + schemaDisplayName?: string | null; + /** + * The reference fields. + * @type {Array} + * @memberof ContentDto + */ + referenceFields?: Array | null; + /** + * Indicates whether the content is deleted. + * @type {boolean} + * @memberof ContentDto + */ + isDeleted: boolean; + /** + * The version of the content. + * @type {number} + * @memberof ContentDto + */ + version: number; +} + +/** + * Check if a given object implements the ContentDto interface. + */ +export function instanceOfContentDto(value: object): value is ContentDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('createdBy' in value) || value['createdBy'] === undefined) return false; + if (!('lastModifiedBy' in value) || value['lastModifiedBy'] === undefined) return false; + if (!('data' in value) || value['data'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('lastModified' in value) || value['lastModified'] === undefined) return false; + if (!('status' in value) || value['status'] === undefined) return false; + if (!('statusColor' in value) || value['statusColor'] === undefined) return false; + if (!('schemaId' in value) || value['schemaId'] === undefined) return false; + if (!('isDeleted' in value) || value['isDeleted'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + return true; +} + +export function ContentDtoFromJSON(json: any): ContentDto { + return ContentDtoFromJSONTyped(json, false); +} + +export function ContentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'createdBy': json['createdBy'], + 'lastModifiedBy': json['lastModifiedBy'], + 'data': json['data'], + 'referenceData': json['referenceData'] == null ? undefined : json['referenceData'], + 'created': (new Date(json['created'])), + 'lastModified': (new Date(json['lastModified'])), + 'status': json['status'], + 'newStatus': json['newStatus'] == null ? undefined : json['newStatus'], + 'statusColor': json['statusColor'], + 'newStatusColor': json['newStatusColor'] == null ? undefined : json['newStatusColor'], + 'editToken': json['editToken'] == null ? undefined : json['editToken'], + 'scheduleJob': json['scheduleJob'] == null ? undefined : ScheduleJobDtoFromJSON(json['scheduleJob']), + 'schemaId': json['schemaId'], + 'schemaName': json['schemaName'] == null ? undefined : json['schemaName'], + 'schemaDisplayName': json['schemaDisplayName'] == null ? undefined : json['schemaDisplayName'], + 'referenceFields': json['referenceFields'] == null ? undefined : ((json['referenceFields'] as Array).map(FieldDtoFromJSON)), + 'isDeleted': json['isDeleted'], + 'version': json['version'], + }; +} + +export function ContentDtoToJSON(value?: ContentDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'createdBy': value['createdBy'], + 'lastModifiedBy': value['lastModifiedBy'], + 'data': value['data'], + 'referenceData': value['referenceData'], + 'created': ((value['created']).toISOString()), + 'lastModified': ((value['lastModified']).toISOString()), + 'status': value['status'], + 'newStatus': value['newStatus'], + 'statusColor': value['statusColor'], + 'newStatusColor': value['newStatusColor'], + 'editToken': value['editToken'], + 'scheduleJob': ScheduleJobDtoToJSON(value['scheduleJob']), + 'schemaId': value['schemaId'], + 'schemaName': value['schemaName'], + 'schemaDisplayName': value['schemaDisplayName'], + 'referenceFields': value['referenceFields'] == null ? undefined : ((value['referenceFields'] as Array).map(FieldDtoToJSON)), + 'isDeleted': value['isDeleted'], + 'version': value['version'], + }; +} diff --git a/src/generated/models/ContentsDto.ts b/src/generated/models/ContentsDto.ts new file mode 100644 index 0000000..336df02 --- /dev/null +++ b/src/generated/models/ContentsDto.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ContentDto } from './ContentDto'; +import { + ContentDtoFromJSON, + ContentDtoFromJSONTyped, + ContentDtoToJSON, +} from './ContentDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { StatusInfoDto } from './StatusInfoDto'; +import { + StatusInfoDtoFromJSON, + StatusInfoDtoFromJSONTyped, + StatusInfoDtoToJSON, +} from './StatusInfoDto'; + +/** + * + * @export + * @interface ContentsDto + */ +export interface ContentsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof ContentsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The total number of content items. + * @type {number} + * @memberof ContentsDto + */ + total: number; + /** + * The content items. + * @type {Array} + * @memberof ContentsDto + */ + items: Array; + /** + * The possible statuses. + * @type {Array} + * @memberof ContentsDto + */ + statuses: Array; +} + +/** + * Check if a given object implements the ContentsDto interface. + */ +export function instanceOfContentsDto(value: object): value is ContentsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('total' in value) || value['total'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + if (!('statuses' in value) || value['statuses'] === undefined) return false; + return true; +} + +export function ContentsDtoFromJSON(json: any): ContentsDto { + return ContentsDtoFromJSONTyped(json, false); +} + +export function ContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'total': json['total'], + 'items': ((json['items'] as Array).map(ContentDtoFromJSON)), + 'statuses': ((json['statuses'] as Array).map(StatusInfoDtoFromJSON)), + }; +} + +export function ContentsDtoToJSON(value?: ContentsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'total': value['total'], + 'items': ((value['items'] as Array).map(ContentDtoToJSON)), + 'statuses': ((value['statuses'] as Array).map(StatusInfoDtoToJSON)), + }; +} diff --git a/src/generated/models/ContributorDto.ts b/src/generated/models/ContributorDto.ts new file mode 100644 index 0000000..89f3631 --- /dev/null +++ b/src/generated/models/ContributorDto.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface ContributorDto + */ +export interface ContributorDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof ContributorDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the user that contributes to the app. + * @type {string} + * @memberof ContributorDto + */ + contributorId: string; + /** + * The display name. + * @type {string} + * @memberof ContributorDto + */ + contributorName: string; + /** + * The email address. + * @type {string} + * @memberof ContributorDto + */ + contributorEmail: string; + /** + * The role of the contributor. + * @type {string} + * @memberof ContributorDto + */ + role?: string | null; +} + +/** + * Check if a given object implements the ContributorDto interface. + */ +export function instanceOfContributorDto(value: object): value is ContributorDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('contributorId' in value) || value['contributorId'] === undefined) return false; + if (!('contributorName' in value) || value['contributorName'] === undefined) return false; + if (!('contributorEmail' in value) || value['contributorEmail'] === undefined) return false; + return true; +} + +export function ContributorDtoFromJSON(json: any): ContributorDto { + return ContributorDtoFromJSONTyped(json, false); +} + +export function ContributorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContributorDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'contributorId': json['contributorId'], + 'contributorName': json['contributorName'], + 'contributorEmail': json['contributorEmail'], + 'role': json['role'] == null ? undefined : json['role'], + }; +} + +export function ContributorDtoToJSON(value?: ContributorDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'contributorId': value['contributorId'], + 'contributorName': value['contributorName'], + 'contributorEmail': value['contributorEmail'], + 'role': value['role'], + }; +} diff --git a/src/generated/models/ContributorsDto.ts b/src/generated/models/ContributorsDto.ts new file mode 100644 index 0000000..8e5fdf3 --- /dev/null +++ b/src/generated/models/ContributorsDto.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ContributorDto } from './ContributorDto'; +import { + ContributorDtoFromJSON, + ContributorDtoFromJSONTyped, + ContributorDtoToJSON, +} from './ContributorDto'; +import type { ContributorsMetadata } from './ContributorsMetadata'; +import { + ContributorsMetadataFromJSON, + ContributorsMetadataFromJSONTyped, + ContributorsMetadataToJSON, +} from './ContributorsMetadata'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface ContributorsDto + */ +export interface ContributorsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof ContributorsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The contributors. + * @type {Array} + * @memberof ContributorsDto + */ + items: Array; + /** + * The maximum number of allowed contributors. + * @type {number} + * @memberof ContributorsDto + */ + maxContributors: number; + /** + * + * @type {ContributorsMetadata} + * @memberof ContributorsDto + */ + meta?: ContributorsMetadata; +} + +/** + * Check if a given object implements the ContributorsDto interface. + */ +export function instanceOfContributorsDto(value: object): value is ContributorsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + if (!('maxContributors' in value) || value['maxContributors'] === undefined) return false; + return true; +} + +export function ContributorsDtoFromJSON(json: any): ContributorsDto { + return ContributorsDtoFromJSONTyped(json, false); +} + +export function ContributorsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContributorsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(ContributorDtoFromJSON)), + 'maxContributors': json['maxContributors'], + 'meta': json['_meta'] == null ? undefined : ContributorsMetadataFromJSON(json['_meta']), + }; +} + +export function ContributorsDtoToJSON(value?: ContributorsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(ContributorDtoToJSON)), + 'maxContributors': value['maxContributors'], + '_meta': ContributorsMetadataToJSON(value['meta']), + }; +} diff --git a/src/generated/models/ContributorsMetadata.ts b/src/generated/models/ContributorsMetadata.ts new file mode 100644 index 0000000..609beff --- /dev/null +++ b/src/generated/models/ContributorsMetadata.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ContributorsMetadata + */ +export interface ContributorsMetadata { + /** + * Indicates whether the user has been invited. + * @type {string} + * @memberof ContributorsMetadata + */ + isInvited: string; +} + +/** + * Check if a given object implements the ContributorsMetadata interface. + */ +export function instanceOfContributorsMetadata(value: object): value is ContributorsMetadata { + if (!('isInvited' in value) || value['isInvited'] === undefined) return false; + return true; +} + +export function ContributorsMetadataFromJSON(json: any): ContributorsMetadata { + return ContributorsMetadataFromJSONTyped(json, false); +} + +export function ContributorsMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContributorsMetadata { + if (json == null) { + return json; + } + return { + + 'isInvited': json['isInvited'], + }; +} + +export function ContributorsMetadataToJSON(value?: ContributorsMetadata | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'isInvited': value['isInvited'], + }; +} diff --git a/src/generated/models/CreateAppDto.ts b/src/generated/models/CreateAppDto.ts new file mode 100644 index 0000000..d3cb6de --- /dev/null +++ b/src/generated/models/CreateAppDto.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateAppDto + */ +export interface CreateAppDto { + /** + * The name of the app. + * @type {string} + * @memberof CreateAppDto + */ + name: string; + /** + * Initialize the app with the inbuilt template. + * @type {string} + * @memberof CreateAppDto + */ + template?: string | null; +} + +/** + * Check if a given object implements the CreateAppDto interface. + */ +export function instanceOfCreateAppDto(value: object): value is CreateAppDto { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function CreateAppDtoFromJSON(json: any): CreateAppDto { + return CreateAppDtoFromJSONTyped(json, false); +} + +export function CreateAppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAppDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'template': json['template'] == null ? undefined : json['template'], + }; +} + +export function CreateAppDtoToJSON(value?: CreateAppDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'template': value['template'], + }; +} diff --git a/src/generated/models/CreateAssetFolderDto.ts b/src/generated/models/CreateAssetFolderDto.ts new file mode 100644 index 0000000..9483788 --- /dev/null +++ b/src/generated/models/CreateAssetFolderDto.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateAssetFolderDto + */ +export interface CreateAssetFolderDto { + /** + * The name of the folder. + * @type {string} + * @memberof CreateAssetFolderDto + */ + folderName: string; + /** + * The ID of the parent folder. + * @type {string} + * @memberof CreateAssetFolderDto + */ + parentId?: string; +} + +/** + * Check if a given object implements the CreateAssetFolderDto interface. + */ +export function instanceOfCreateAssetFolderDto(value: object): value is CreateAssetFolderDto { + if (!('folderName' in value) || value['folderName'] === undefined) return false; + return true; +} + +export function CreateAssetFolderDtoFromJSON(json: any): CreateAssetFolderDto { + return CreateAssetFolderDtoFromJSONTyped(json, false); +} + +export function CreateAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAssetFolderDto { + if (json == null) { + return json; + } + return { + + 'folderName': json['folderName'], + 'parentId': json['parentId'] == null ? undefined : json['parentId'], + }; +} + +export function CreateAssetFolderDtoToJSON(value?: CreateAssetFolderDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'folderName': value['folderName'], + 'parentId': value['parentId'], + }; +} diff --git a/src/generated/models/CreateClientDto.ts b/src/generated/models/CreateClientDto.ts new file mode 100644 index 0000000..a2cf1a4 --- /dev/null +++ b/src/generated/models/CreateClientDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateClientDto + */ +export interface CreateClientDto { + /** + * The ID of the client. + * @type {string} + * @memberof CreateClientDto + */ + id: string; +} + +/** + * Check if a given object implements the CreateClientDto interface. + */ +export function instanceOfCreateClientDto(value: object): value is CreateClientDto { + if (!('id' in value) || value['id'] === undefined) return false; + return true; +} + +export function CreateClientDtoFromJSON(json: any): CreateClientDto { + return CreateClientDtoFromJSONTyped(json, false); +} + +export function CreateClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientDto { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + }; +} + +export function CreateClientDtoToJSON(value?: CreateClientDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'id': value['id'], + }; +} diff --git a/src/generated/models/CreateContentRuleActionDto.ts b/src/generated/models/CreateContentRuleActionDto.ts new file mode 100644 index 0000000..3978ade --- /dev/null +++ b/src/generated/models/CreateContentRuleActionDto.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface CreateContentRuleActionDto + */ +export interface CreateContentRuleActionDto extends RuleActionDto { + /** + * The content data. + * @type {string} + * @memberof CreateContentRuleActionDto + */ + data: string; + /** + * The name of the schema. + * @type {string} + * @memberof CreateContentRuleActionDto + */ + schema: string; + /** + * An optional client name. + * @type {string} + * @memberof CreateContentRuleActionDto + */ + client: string; + /** + * Publish the content. + * @type {boolean} + * @memberof CreateContentRuleActionDto + */ + publish: boolean; +} + +/** + * Check if a given object implements the CreateContentRuleActionDto interface. + */ +export function instanceOfCreateContentRuleActionDto(value: object): value is CreateContentRuleActionDto { + if (!('data' in value) || value['data'] === undefined) return false; + if (!('schema' in value) || value['schema'] === undefined) return false; + if (!('client' in value) || value['client'] === undefined) return false; + if (!('publish' in value) || value['publish'] === undefined) return false; + return true; +} + +export function CreateContentRuleActionDtoFromJSON(json: any): CreateContentRuleActionDto { + return CreateContentRuleActionDtoFromJSONTyped(json, false); +} + +export function CreateContentRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateContentRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'data': json['data'], + 'schema': json['schema'], + 'client': json['client'], + 'publish': json['publish'], + }; +} + +export function CreateContentRuleActionDtoToJSON(value?: CreateContentRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'data': value['data'], + 'schema': value['schema'], + 'client': value['client'], + 'publish': value['publish'], + }; +} diff --git a/src/generated/models/CreateRuleDto.ts b/src/generated/models/CreateRuleDto.ts new file mode 100644 index 0000000..24ec27d --- /dev/null +++ b/src/generated/models/CreateRuleDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface CreateRuleDto + */ +export interface CreateRuleDto { + /** + * + * @type {RuleTriggerDto} + * @memberof CreateRuleDto + */ + trigger: RuleTriggerDto; + /** + * + * @type {RuleActionDto} + * @memberof CreateRuleDto + */ + action: RuleActionDto; +} + +/** + * Check if a given object implements the CreateRuleDto interface. + */ +export function instanceOfCreateRuleDto(value: object): value is CreateRuleDto { + if (!('trigger' in value) || value['trigger'] === undefined) return false; + if (!('action' in value) || value['action'] === undefined) return false; + return true; +} + +export function CreateRuleDtoFromJSON(json: any): CreateRuleDto { + return CreateRuleDtoFromJSONTyped(json, false); +} + +export function CreateRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRuleDto { + if (json == null) { + return json; + } + return { + + 'trigger': RuleTriggerDtoFromJSON(json['trigger']), + 'action': RuleActionDtoFromJSON(json['action']), + }; +} + +export function CreateRuleDtoToJSON(value?: CreateRuleDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'trigger': RuleTriggerDtoToJSON(value['trigger']), + 'action': RuleActionDtoToJSON(value['action']), + }; +} diff --git a/src/generated/models/CreateSchemaDto.ts b/src/generated/models/CreateSchemaDto.ts new file mode 100644 index 0000000..80c8cd1 --- /dev/null +++ b/src/generated/models/CreateSchemaDto.ts @@ -0,0 +1,182 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; +import { + SchemaPropertiesDtoFromJSON, + SchemaPropertiesDtoFromJSONTyped, + SchemaPropertiesDtoToJSON, +} from './SchemaPropertiesDto'; +import type { SchemaScriptsDto } from './SchemaScriptsDto'; +import { + SchemaScriptsDtoFromJSON, + SchemaScriptsDtoFromJSONTyped, + SchemaScriptsDtoToJSON, +} from './SchemaScriptsDto'; +import type { UpsertSchemaFieldDto } from './UpsertSchemaFieldDto'; +import { + UpsertSchemaFieldDtoFromJSON, + UpsertSchemaFieldDtoFromJSONTyped, + UpsertSchemaFieldDtoToJSON, +} from './UpsertSchemaFieldDto'; +import type { FieldRuleDto } from './FieldRuleDto'; +import { + FieldRuleDtoFromJSON, + FieldRuleDtoFromJSONTyped, + FieldRuleDtoToJSON, +} from './FieldRuleDto'; +import type { SchemaType } from './SchemaType'; +import { + SchemaTypeFromJSON, + SchemaTypeFromJSONTyped, + SchemaTypeToJSON, +} from './SchemaType'; + +/** + * + * @export + * @interface CreateSchemaDto + */ +export interface CreateSchemaDto { + /** + * + * @type {SchemaPropertiesDto} + * @memberof CreateSchemaDto + */ + properties?: SchemaPropertiesDto; + /** + * + * @type {SchemaScriptsDto} + * @memberof CreateSchemaDto + */ + scripts?: SchemaScriptsDto; + /** + * The names of the fields that should be used in references. + * @type {Array} + * @memberof CreateSchemaDto + */ + fieldsInReferences?: Array | null; + /** + * The names of the fields that should be shown in lists, including meta fields. + * @type {Array} + * @memberof CreateSchemaDto + */ + fieldsInLists?: Array | null; + /** + * Optional fields. + * @type {Array} + * @memberof CreateSchemaDto + */ + fields?: Array | null; + /** + * The optional preview urls. + * @type {{ [key: string]: string; }} + * @memberof CreateSchemaDto + */ + previewUrls?: { [key: string]: string; } | null; + /** + * The optional field Rules. + * @type {Array} + * @memberof CreateSchemaDto + */ + fieldRules?: Array | null; + /** + * The category. + * @type {string} + * @memberof CreateSchemaDto + */ + category?: string | null; + /** + * Set it to true to autopublish the schema. + * @type {boolean} + * @memberof CreateSchemaDto + */ + isPublished?: boolean; + /** + * The name of the schema. + * @type {string} + * @memberof CreateSchemaDto + */ + name: string; + /** + * + * @type {SchemaType} + * @memberof CreateSchemaDto + */ + type?: SchemaType; + /** + * Set to true to allow a single content item only. + * @type {boolean} + * @memberof CreateSchemaDto + * @deprecated + */ + isSingleton?: boolean; +} + + + +/** + * Check if a given object implements the CreateSchemaDto interface. + */ +export function instanceOfCreateSchemaDto(value: object): value is CreateSchemaDto { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function CreateSchemaDtoFromJSON(json: any): CreateSchemaDto { + return CreateSchemaDtoFromJSONTyped(json, false); +} + +export function CreateSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSchemaDto { + if (json == null) { + return json; + } + return { + + 'properties': json['properties'] == null ? undefined : SchemaPropertiesDtoFromJSON(json['properties']), + 'scripts': json['scripts'] == null ? undefined : SchemaScriptsDtoFromJSON(json['scripts']), + 'fieldsInReferences': json['fieldsInReferences'] == null ? undefined : json['fieldsInReferences'], + 'fieldsInLists': json['fieldsInLists'] == null ? undefined : json['fieldsInLists'], + 'fields': json['fields'] == null ? undefined : ((json['fields'] as Array).map(UpsertSchemaFieldDtoFromJSON)), + 'previewUrls': json['previewUrls'] == null ? undefined : json['previewUrls'], + 'fieldRules': json['fieldRules'] == null ? undefined : ((json['fieldRules'] as Array).map(FieldRuleDtoFromJSON)), + 'category': json['category'] == null ? undefined : json['category'], + 'isPublished': json['isPublished'] == null ? undefined : json['isPublished'], + 'name': json['name'], + 'type': json['type'] == null ? undefined : SchemaTypeFromJSON(json['type']), + 'isSingleton': json['isSingleton'] == null ? undefined : json['isSingleton'], + }; +} + +export function CreateSchemaDtoToJSON(value?: CreateSchemaDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'properties': SchemaPropertiesDtoToJSON(value['properties']), + 'scripts': SchemaScriptsDtoToJSON(value['scripts']), + 'fieldsInReferences': value['fieldsInReferences'], + 'fieldsInLists': value['fieldsInLists'], + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'previewUrls': value['previewUrls'], + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'category': value['category'], + 'isPublished': value['isPublished'], + 'name': value['name'], + 'type': SchemaTypeToJSON(value['type']), + 'isSingleton': value['isSingleton'], + }; +} diff --git a/src/generated/models/CreateTeamDto.ts b/src/generated/models/CreateTeamDto.ts new file mode 100644 index 0000000..acbc329 --- /dev/null +++ b/src/generated/models/CreateTeamDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateTeamDto + */ +export interface CreateTeamDto { + /** + * The name of the team. + * @type {string} + * @memberof CreateTeamDto + */ + name: string; +} + +/** + * Check if a given object implements the CreateTeamDto interface. + */ +export function instanceOfCreateTeamDto(value: object): value is CreateTeamDto { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function CreateTeamDtoFromJSON(json: any): CreateTeamDto { + return CreateTeamDtoFromJSONTyped(json, false); +} + +export function CreateTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTeamDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function CreateTeamDtoToJSON(value?: CreateTeamDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + }; +} diff --git a/src/generated/models/CreateUserDto.ts b/src/generated/models/CreateUserDto.ts new file mode 100644 index 0000000..03cc4d6 --- /dev/null +++ b/src/generated/models/CreateUserDto.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateUserDto + */ +export interface CreateUserDto { + /** + * The email of the user. Unique value. + * @type {string} + * @memberof CreateUserDto + */ + email: string; + /** + * The display name (usually first name and last name) of the user. + * @type {string} + * @memberof CreateUserDto + */ + displayName: string; + /** + * The password of the user. + * @type {string} + * @memberof CreateUserDto + */ + password: string; + /** + * Additional permissions for the user. + * @type {Array} + * @memberof CreateUserDto + */ + permissions: Array; +} + +/** + * Check if a given object implements the CreateUserDto interface. + */ +export function instanceOfCreateUserDto(value: object): value is CreateUserDto { + if (!('email' in value) || value['email'] === undefined) return false; + if (!('displayName' in value) || value['displayName'] === undefined) return false; + if (!('password' in value) || value['password'] === undefined) return false; + if (!('permissions' in value) || value['permissions'] === undefined) return false; + return true; +} + +export function CreateUserDtoFromJSON(json: any): CreateUserDto { + return CreateUserDtoFromJSONTyped(json, false); +} + +export function CreateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserDto { + if (json == null) { + return json; + } + return { + + 'email': json['email'], + 'displayName': json['displayName'], + 'password': json['password'], + 'permissions': json['permissions'], + }; +} + +export function CreateUserDtoToJSON(value?: CreateUserDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'email': value['email'], + 'displayName': value['displayName'], + 'password': value['password'], + 'permissions': value['permissions'], + }; +} diff --git a/src/generated/models/CurrentStorageDto.ts b/src/generated/models/CurrentStorageDto.ts new file mode 100644 index 0000000..04dafdf --- /dev/null +++ b/src/generated/models/CurrentStorageDto.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CurrentStorageDto + */ +export interface CurrentStorageDto { + /** + * The size in bytes. + * @type {number} + * @memberof CurrentStorageDto + */ + size: number; + /** + * The maximum allowed asset size. + * @type {number} + * @memberof CurrentStorageDto + */ + maxAllowed: number; +} + +/** + * Check if a given object implements the CurrentStorageDto interface. + */ +export function instanceOfCurrentStorageDto(value: object): value is CurrentStorageDto { + if (!('size' in value) || value['size'] === undefined) return false; + if (!('maxAllowed' in value) || value['maxAllowed'] === undefined) return false; + return true; +} + +export function CurrentStorageDtoFromJSON(json: any): CurrentStorageDto { + return CurrentStorageDtoFromJSONTyped(json, false); +} + +export function CurrentStorageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentStorageDto { + if (json == null) { + return json; + } + return { + + 'size': json['size'], + 'maxAllowed': json['maxAllowed'], + }; +} + +export function CurrentStorageDtoToJSON(value?: CurrentStorageDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'size': value['size'], + 'maxAllowed': value['maxAllowed'], + }; +} diff --git a/src/generated/models/DateTimeCalculatedDefaultValue.ts b/src/generated/models/DateTimeCalculatedDefaultValue.ts new file mode 100644 index 0000000..ff2426a --- /dev/null +++ b/src/generated/models/DateTimeCalculatedDefaultValue.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const DateTimeCalculatedDefaultValue = { + Now: 'Now', + Today: 'Today' +} as const; +export type DateTimeCalculatedDefaultValue = typeof DateTimeCalculatedDefaultValue[keyof typeof DateTimeCalculatedDefaultValue]; + + +export function instanceOfDateTimeCalculatedDefaultValue(value: any): boolean { + for (const key in DateTimeCalculatedDefaultValue) { + if (Object.prototype.hasOwnProperty.call(DateTimeCalculatedDefaultValue, key)) { + if (DateTimeCalculatedDefaultValue[key as keyof typeof DateTimeCalculatedDefaultValue] === value) { + return true; + } + } + } + return false; +} + +export function DateTimeCalculatedDefaultValueFromJSON(json: any): DateTimeCalculatedDefaultValue { + return DateTimeCalculatedDefaultValueFromJSONTyped(json, false); +} + +export function DateTimeCalculatedDefaultValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTimeCalculatedDefaultValue { + return json as DateTimeCalculatedDefaultValue; +} + +export function DateTimeCalculatedDefaultValueToJSON(value?: DateTimeCalculatedDefaultValue | null): any { + return value as any; +} + diff --git a/src/generated/models/DateTimeFieldEditor.ts b/src/generated/models/DateTimeFieldEditor.ts new file mode 100644 index 0000000..87eb2ae --- /dev/null +++ b/src/generated/models/DateTimeFieldEditor.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const DateTimeFieldEditor = { + Date: 'Date', + DateTime: 'DateTime' +} as const; +export type DateTimeFieldEditor = typeof DateTimeFieldEditor[keyof typeof DateTimeFieldEditor]; + + +export function instanceOfDateTimeFieldEditor(value: any): boolean { + for (const key in DateTimeFieldEditor) { + if (Object.prototype.hasOwnProperty.call(DateTimeFieldEditor, key)) { + if (DateTimeFieldEditor[key as keyof typeof DateTimeFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function DateTimeFieldEditorFromJSON(json: any): DateTimeFieldEditor { + return DateTimeFieldEditorFromJSONTyped(json, false); +} + +export function DateTimeFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTimeFieldEditor { + return json as DateTimeFieldEditor; +} + +export function DateTimeFieldEditorToJSON(value?: DateTimeFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/DateTimeFieldPropertiesDto.ts b/src/generated/models/DateTimeFieldPropertiesDto.ts new file mode 100644 index 0000000..7909052 --- /dev/null +++ b/src/generated/models/DateTimeFieldPropertiesDto.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { DateTimeFieldEditor } from './DateTimeFieldEditor'; +import { + DateTimeFieldEditorFromJSON, + DateTimeFieldEditorFromJSONTyped, + DateTimeFieldEditorToJSON, +} from './DateTimeFieldEditor'; +import type { DateTimeCalculatedDefaultValue } from './DateTimeCalculatedDefaultValue'; +import { + DateTimeCalculatedDefaultValueFromJSON, + DateTimeCalculatedDefaultValueFromJSONTyped, + DateTimeCalculatedDefaultValueToJSON, +} from './DateTimeCalculatedDefaultValue'; + +/** + * + * @export + * @interface DateTimeFieldPropertiesDto + */ +export interface DateTimeFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {{ [key: string]: Date | null; }} + * @memberof DateTimeFieldPropertiesDto + */ + defaultValues?: { [key: string]: Date | null; }; + /** + * The default value for the field value. + * @type {Date} + * @memberof DateTimeFieldPropertiesDto + */ + defaultValue?: Date | null; + /** + * The maximum allowed value for the field value. + * @type {Date} + * @memberof DateTimeFieldPropertiesDto + */ + maxValue?: Date | null; + /** + * The minimum allowed value for the field value. + * @type {Date} + * @memberof DateTimeFieldPropertiesDto + */ + minValue?: Date | null; + /** + * The format pattern when displayed in the UI. + * @type {string} + * @memberof DateTimeFieldPropertiesDto + */ + format?: string | null; + /** + * + * @type {DateTimeFieldEditor} + * @memberof DateTimeFieldPropertiesDto + */ + editor?: DateTimeFieldEditor; + /** + * + * @type {DateTimeCalculatedDefaultValue} + * @memberof DateTimeFieldPropertiesDto + */ + calculatedDefaultValue?: DateTimeCalculatedDefaultValue; +} + + + +/** + * Check if a given object implements the DateTimeFieldPropertiesDto interface. + */ +export function instanceOfDateTimeFieldPropertiesDto(value: object): value is DateTimeFieldPropertiesDto { + return true; +} + +export function DateTimeFieldPropertiesDtoFromJSON(json: any): DateTimeFieldPropertiesDto { + return DateTimeFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function DateTimeFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTimeFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], + 'defaultValue': json['defaultValue'] == null ? undefined : (new Date(json['defaultValue'])), + 'maxValue': json['maxValue'] == null ? undefined : (new Date(json['maxValue'])), + 'minValue': json['minValue'] == null ? undefined : (new Date(json['minValue'])), + 'format': json['format'] == null ? undefined : json['format'], + 'editor': json['editor'] == null ? undefined : DateTimeFieldEditorFromJSON(json['editor']), + 'calculatedDefaultValue': json['calculatedDefaultValue'] == null ? undefined : DateTimeCalculatedDefaultValueFromJSON(json['calculatedDefaultValue']), + }; +} + +export function DateTimeFieldPropertiesDtoToJSON(value?: DateTimeFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'defaultValues': value['defaultValues'], + 'defaultValue': value['defaultValue'] == null ? undefined : ((value['defaultValue'] as any).toISOString()), + 'maxValue': value['maxValue'] == null ? undefined : ((value['maxValue'] as any).toISOString()), + 'minValue': value['minValue'] == null ? undefined : ((value['minValue'] as any).toISOString()), + 'format': value['format'], + 'editor': DateTimeFieldEditorToJSON(value['editor']), + 'calculatedDefaultValue': DateTimeCalculatedDefaultValueToJSON(value['calculatedDefaultValue']), + }; +} diff --git a/src/generated/models/DiscourseRuleActionDto.ts b/src/generated/models/DiscourseRuleActionDto.ts new file mode 100644 index 0000000..1c75d4d --- /dev/null +++ b/src/generated/models/DiscourseRuleActionDto.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface DiscourseRuleActionDto + */ +export interface DiscourseRuleActionDto extends RuleActionDto { + /** + * The url to the discourse server. + * @type {string} + * @memberof DiscourseRuleActionDto + */ + url: string; + /** + * The api key to authenticate to your discourse server. + * @type {string} + * @memberof DiscourseRuleActionDto + */ + apiKey: string; + /** + * The api username to authenticate to your discourse server. + * @type {string} + * @memberof DiscourseRuleActionDto + */ + apiUsername: string; + /** + * The text as markdown. + * @type {string} + * @memberof DiscourseRuleActionDto + */ + text: string; + /** + * The optional title when creating new topics. + * @type {string} + * @memberof DiscourseRuleActionDto + */ + title?: string | null; + /** + * The optional topic id. + * @type {number} + * @memberof DiscourseRuleActionDto + */ + topic?: number | null; + /** + * The optional category id. + * @type {number} + * @memberof DiscourseRuleActionDto + */ + category?: number | null; +} + +/** + * Check if a given object implements the DiscourseRuleActionDto interface. + */ +export function instanceOfDiscourseRuleActionDto(value: object): value is DiscourseRuleActionDto { + if (!('url' in value) || value['url'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + if (!('apiUsername' in value) || value['apiUsername'] === undefined) return false; + if (!('text' in value) || value['text'] === undefined) return false; + return true; +} + +export function DiscourseRuleActionDtoFromJSON(json: any): DiscourseRuleActionDto { + return DiscourseRuleActionDtoFromJSONTyped(json, false); +} + +export function DiscourseRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscourseRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'url': json['url'], + 'apiKey': json['apiKey'], + 'apiUsername': json['apiUsername'], + 'text': json['text'], + 'title': json['title'] == null ? undefined : json['title'], + 'topic': json['topic'] == null ? undefined : json['topic'], + 'category': json['category'] == null ? undefined : json['category'], + }; +} + +export function DiscourseRuleActionDtoToJSON(value?: DiscourseRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'url': value['url'], + 'apiKey': value['apiKey'], + 'apiUsername': value['apiUsername'], + 'text': value['text'], + 'title': value['title'], + 'topic': value['topic'], + 'category': value['category'], + }; +} diff --git a/src/generated/models/EditorDto.ts b/src/generated/models/EditorDto.ts new file mode 100644 index 0000000..cdcf6d5 --- /dev/null +++ b/src/generated/models/EditorDto.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EditorDto + */ +export interface EditorDto { + /** + * The name of the editor. + * @type {string} + * @memberof EditorDto + */ + name: string; + /** + * The url to the editor. + * @type {string} + * @memberof EditorDto + */ + url: string; +} + +/** + * Check if a given object implements the EditorDto interface. + */ +export function instanceOfEditorDto(value: object): value is EditorDto { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('url' in value) || value['url'] === undefined) return false; + return true; +} + +export function EditorDtoFromJSON(json: any): EditorDto { + return EditorDtoFromJSONTyped(json, false); +} + +export function EditorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EditorDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'url': json['url'], + }; +} + +export function EditorDtoToJSON(value?: EditorDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'url': value['url'], + }; +} diff --git a/src/generated/models/ElasticSearchRuleActionDto.ts b/src/generated/models/ElasticSearchRuleActionDto.ts new file mode 100644 index 0000000..0f57590 --- /dev/null +++ b/src/generated/models/ElasticSearchRuleActionDto.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface ElasticSearchRuleActionDto + */ +export interface ElasticSearchRuleActionDto extends RuleActionDto { + /** + * The url to the instance or cluster. + * @type {string} + * @memberof ElasticSearchRuleActionDto + */ + host: string; + /** + * The name of the index. + * @type {string} + * @memberof ElasticSearchRuleActionDto + */ + indexName: string; + /** + * The optional username. + * @type {string} + * @memberof ElasticSearchRuleActionDto + */ + username?: string | null; + /** + * The optional password. + * @type {string} + * @memberof ElasticSearchRuleActionDto + */ + password?: string | null; + /** + * The optional custom document. + * @type {string} + * @memberof ElasticSearchRuleActionDto + */ + document?: string | null; + /** + * The condition when to delete the document. + * @type {string} + * @memberof ElasticSearchRuleActionDto + */ + _delete?: string | null; +} + +/** + * Check if a given object implements the ElasticSearchRuleActionDto interface. + */ +export function instanceOfElasticSearchRuleActionDto(value: object): value is ElasticSearchRuleActionDto { + if (!('host' in value) || value['host'] === undefined) return false; + if (!('indexName' in value) || value['indexName'] === undefined) return false; + return true; +} + +export function ElasticSearchRuleActionDtoFromJSON(json: any): ElasticSearchRuleActionDto { + return ElasticSearchRuleActionDtoFromJSONTyped(json, false); +} + +export function ElasticSearchRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ElasticSearchRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'host': json['host'], + 'indexName': json['indexName'], + 'username': json['username'] == null ? undefined : json['username'], + 'password': json['password'] == null ? undefined : json['password'], + 'document': json['document'] == null ? undefined : json['document'], + '_delete': json['delete'] == null ? undefined : json['delete'], + }; +} + +export function ElasticSearchRuleActionDtoToJSON(value?: ElasticSearchRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'host': value['host'], + 'indexName': value['indexName'], + 'username': value['username'], + 'password': value['password'], + 'document': value['document'], + 'delete': value['_delete'], + }; +} diff --git a/src/generated/models/EmailRuleActionDto.ts b/src/generated/models/EmailRuleActionDto.ts new file mode 100644 index 0000000..da03e95 --- /dev/null +++ b/src/generated/models/EmailRuleActionDto.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface EmailRuleActionDto + */ +export interface EmailRuleActionDto extends RuleActionDto { + /** + * The IP address or host to the SMTP server. + * @type {string} + * @memberof EmailRuleActionDto + */ + serverHost: string; + /** + * The port to the SMTP server. + * @type {number} + * @memberof EmailRuleActionDto + */ + serverPort: number; + /** + * The username for the SMTP server. + * @type {string} + * @memberof EmailRuleActionDto + */ + serverUsername: string; + /** + * The password for the SMTP server. + * @type {string} + * @memberof EmailRuleActionDto + */ + serverPassword: string; + /** + * The email sending address. + * @type {string} + * @memberof EmailRuleActionDto + */ + messageFrom: string; + /** + * The email message will be sent to. + * @type {string} + * @memberof EmailRuleActionDto + */ + messageTo: string; + /** + * The subject line for this email message. + * @type {string} + * @memberof EmailRuleActionDto + */ + messageSubject: string; + /** + * The message body. + * @type {string} + * @memberof EmailRuleActionDto + */ + messageBody: string; +} + +/** + * Check if a given object implements the EmailRuleActionDto interface. + */ +export function instanceOfEmailRuleActionDto(value: object): value is EmailRuleActionDto { + if (!('serverHost' in value) || value['serverHost'] === undefined) return false; + if (!('serverPort' in value) || value['serverPort'] === undefined) return false; + if (!('serverUsername' in value) || value['serverUsername'] === undefined) return false; + if (!('serverPassword' in value) || value['serverPassword'] === undefined) return false; + if (!('messageFrom' in value) || value['messageFrom'] === undefined) return false; + if (!('messageTo' in value) || value['messageTo'] === undefined) return false; + if (!('messageSubject' in value) || value['messageSubject'] === undefined) return false; + if (!('messageBody' in value) || value['messageBody'] === undefined) return false; + return true; +} + +export function EmailRuleActionDtoFromJSON(json: any): EmailRuleActionDto { + return EmailRuleActionDtoFromJSONTyped(json, false); +} + +export function EmailRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'serverHost': json['serverHost'], + 'serverPort': json['serverPort'], + 'serverUsername': json['serverUsername'], + 'serverPassword': json['serverPassword'], + 'messageFrom': json['messageFrom'], + 'messageTo': json['messageTo'], + 'messageSubject': json['messageSubject'], + 'messageBody': json['messageBody'], + }; +} + +export function EmailRuleActionDtoToJSON(value?: EmailRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'serverHost': value['serverHost'], + 'serverPort': value['serverPort'], + 'serverUsername': value['serverUsername'], + 'serverPassword': value['serverPassword'], + 'messageFrom': value['messageFrom'], + 'messageTo': value['messageTo'], + 'messageSubject': value['messageSubject'], + 'messageBody': value['messageBody'], + }; +} diff --git a/src/generated/models/ErrorDto.ts b/src/generated/models/ErrorDto.ts new file mode 100644 index 0000000..edb6c18 --- /dev/null +++ b/src/generated/models/ErrorDto.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ErrorDto + */ +export interface ErrorDto { + /** + * Error message. + * @type {string} + * @memberof ErrorDto + */ + message: string; + /** + * The error code. + * @type {string} + * @memberof ErrorDto + */ + errorCode?: string | null; + /** + * The optional trace id. + * @type {string} + * @memberof ErrorDto + */ + traceId?: string | null; + /** + * Link to the error details. + * @type {string} + * @memberof ErrorDto + */ + type?: string | null; + /** + * Detailed error messages. + * @type {Array} + * @memberof ErrorDto + */ + details?: Array | null; + /** + * Status code of the http response. + * @type {number} + * @memberof ErrorDto + */ + statusCode: number; +} + +/** + * Check if a given object implements the ErrorDto interface. + */ +export function instanceOfErrorDto(value: object): value is ErrorDto { + if (!('message' in value) || value['message'] === undefined) return false; + if (!('statusCode' in value) || value['statusCode'] === undefined) return false; + return true; +} + +export function ErrorDtoFromJSON(json: any): ErrorDto { + return ErrorDtoFromJSONTyped(json, false); +} + +export function ErrorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDto { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + 'errorCode': json['errorCode'] == null ? undefined : json['errorCode'], + 'traceId': json['traceId'] == null ? undefined : json['traceId'], + 'type': json['type'] == null ? undefined : json['type'], + 'details': json['details'] == null ? undefined : json['details'], + 'statusCode': json['statusCode'], + }; +} + +export function ErrorDtoToJSON(value?: ErrorDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'message': value['message'], + 'errorCode': value['errorCode'], + 'traceId': value['traceId'], + 'type': value['type'], + 'details': value['details'], + 'statusCode': value['statusCode'], + }; +} diff --git a/src/generated/models/EventConsumerDto.ts b/src/generated/models/EventConsumerDto.ts new file mode 100644 index 0000000..78f6361 --- /dev/null +++ b/src/generated/models/EventConsumerDto.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface EventConsumerDto + */ +export interface EventConsumerDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof EventConsumerDto + */ + links: { [key: string]: ResourceLink; }; + /** + * Indicates if the event consumer has been started. + * @type {boolean} + * @memberof EventConsumerDto + */ + isStopped: boolean; + /** + * Indicates if the event consumer is resetting at the moment. + * @type {boolean} + * @memberof EventConsumerDto + */ + isResetting: boolean; + /** + * The number of handled events. + * @type {number} + * @memberof EventConsumerDto + */ + count: number; + /** + * The name of the event consumer. + * @type {string} + * @memberof EventConsumerDto + */ + name: string; + /** + * The error details if the event consumer has been stopped after a failure. + * @type {string} + * @memberof EventConsumerDto + */ + error?: string | null; + /** + * The position within the vent stream. + * @type {string} + * @memberof EventConsumerDto + */ + position?: string | null; +} + +/** + * Check if a given object implements the EventConsumerDto interface. + */ +export function instanceOfEventConsumerDto(value: object): value is EventConsumerDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('isStopped' in value) || value['isStopped'] === undefined) return false; + if (!('isResetting' in value) || value['isResetting'] === undefined) return false; + if (!('count' in value) || value['count'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function EventConsumerDtoFromJSON(json: any): EventConsumerDto { + return EventConsumerDtoFromJSONTyped(json, false); +} + +export function EventConsumerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventConsumerDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'isStopped': json['isStopped'], + 'isResetting': json['isResetting'], + 'count': json['count'], + 'name': json['name'], + 'error': json['error'] == null ? undefined : json['error'], + 'position': json['position'] == null ? undefined : json['position'], + }; +} + +export function EventConsumerDtoToJSON(value?: EventConsumerDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'isStopped': value['isStopped'], + 'isResetting': value['isResetting'], + 'count': value['count'], + 'name': value['name'], + 'error': value['error'], + 'position': value['position'], + }; +} diff --git a/src/generated/models/EventConsumersDto.ts b/src/generated/models/EventConsumersDto.ts new file mode 100644 index 0000000..7bf0c2c --- /dev/null +++ b/src/generated/models/EventConsumersDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { EventConsumerDto } from './EventConsumerDto'; +import { + EventConsumerDtoFromJSON, + EventConsumerDtoFromJSONTyped, + EventConsumerDtoToJSON, +} from './EventConsumerDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface EventConsumersDto + */ +export interface EventConsumersDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof EventConsumersDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The event consumers. + * @type {Array} + * @memberof EventConsumersDto + */ + items: Array; +} + +/** + * Check if a given object implements the EventConsumersDto interface. + */ +export function instanceOfEventConsumersDto(value: object): value is EventConsumersDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function EventConsumersDtoFromJSON(json: any): EventConsumersDto { + return EventConsumersDtoFromJSONTyped(json, false); +} + +export function EventConsumersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventConsumersDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(EventConsumerDtoFromJSON)), + }; +} + +export function EventConsumersDtoToJSON(value?: EventConsumersDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(EventConsumerDtoToJSON)), + }; +} diff --git a/src/generated/models/FastlyRuleActionDto.ts b/src/generated/models/FastlyRuleActionDto.ts new file mode 100644 index 0000000..837e01f --- /dev/null +++ b/src/generated/models/FastlyRuleActionDto.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface FastlyRuleActionDto + */ +export interface FastlyRuleActionDto extends RuleActionDto { + /** + * The API key to grant access to Squidex. + * @type {string} + * @memberof FastlyRuleActionDto + */ + apiKey: string; + /** + * The ID of the fastly service. + * @type {string} + * @memberof FastlyRuleActionDto + */ + serviceId: string; +} + +/** + * Check if a given object implements the FastlyRuleActionDto interface. + */ +export function instanceOfFastlyRuleActionDto(value: object): value is FastlyRuleActionDto { + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + if (!('serviceId' in value) || value['serviceId'] === undefined) return false; + return true; +} + +export function FastlyRuleActionDtoFromJSON(json: any): FastlyRuleActionDto { + return FastlyRuleActionDtoFromJSONTyped(json, false); +} + +export function FastlyRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FastlyRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'apiKey': json['apiKey'], + 'serviceId': json['serviceId'], + }; +} + +export function FastlyRuleActionDtoToJSON(value?: FastlyRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'apiKey': value['apiKey'], + 'serviceId': value['serviceId'], + }; +} diff --git a/src/generated/models/FeatureDto.ts b/src/generated/models/FeatureDto.ts new file mode 100644 index 0000000..bda6ade --- /dev/null +++ b/src/generated/models/FeatureDto.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface FeatureDto + */ +export interface FeatureDto { + /** + * The name of the feature. + * @type {string} + * @memberof FeatureDto + */ + name: string; + /** + * The description text. + * @type {string} + * @memberof FeatureDto + */ + text: string; +} + +/** + * Check if a given object implements the FeatureDto interface. + */ +export function instanceOfFeatureDto(value: object): value is FeatureDto { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('text' in value) || value['text'] === undefined) return false; + return true; +} + +export function FeatureDtoFromJSON(json: any): FeatureDto { + return FeatureDtoFromJSONTyped(json, false); +} + +export function FeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'text': json['text'], + }; +} + +export function FeatureDtoToJSON(value?: FeatureDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'text': value['text'], + }; +} diff --git a/src/generated/models/FeaturesDto.ts b/src/generated/models/FeaturesDto.ts new file mode 100644 index 0000000..e50c55a --- /dev/null +++ b/src/generated/models/FeaturesDto.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FeatureDto } from './FeatureDto'; +import { + FeatureDtoFromJSON, + FeatureDtoFromJSONTyped, + FeatureDtoToJSON, +} from './FeatureDto'; + +/** + * + * @export + * @interface FeaturesDto + */ +export interface FeaturesDto { + /** + * The latest features. + * @type {Array} + * @memberof FeaturesDto + */ + features: Array; + /** + * The recent version. + * @type {number} + * @memberof FeaturesDto + */ + version: number; +} + +/** + * Check if a given object implements the FeaturesDto interface. + */ +export function instanceOfFeaturesDto(value: object): value is FeaturesDto { + if (!('features' in value) || value['features'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + return true; +} + +export function FeaturesDtoFromJSON(json: any): FeaturesDto { + return FeaturesDtoFromJSONTyped(json, false); +} + +export function FeaturesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesDto { + if (json == null) { + return json; + } + return { + + 'features': ((json['features'] as Array).map(FeatureDtoFromJSON)), + 'version': json['version'], + }; +} + +export function FeaturesDtoToJSON(value?: FeaturesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'features': ((value['features'] as Array).map(FeatureDtoToJSON)), + 'version': value['version'], + }; +} diff --git a/src/generated/models/FieldDto.ts b/src/generated/models/FieldDto.ts new file mode 100644 index 0000000..fdc2119 --- /dev/null +++ b/src/generated/models/FieldDto.ts @@ -0,0 +1,150 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { NestedFieldDto } from './NestedFieldDto'; +import { + NestedFieldDtoFromJSON, + NestedFieldDtoFromJSONTyped, + NestedFieldDtoToJSON, +} from './NestedFieldDto'; + +/** + * + * @export + * @interface FieldDto + */ +export interface FieldDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof FieldDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the field. + * @type {number} + * @memberof FieldDto + */ + fieldId: number; + /** + * The name of the field. Must be unique within the schema. + * @type {string} + * @memberof FieldDto + */ + name: string; + /** + * Defines if the field is hidden. + * @type {boolean} + * @memberof FieldDto + */ + isHidden: boolean; + /** + * Defines if the field is locked. + * @type {boolean} + * @memberof FieldDto + */ + isLocked: boolean; + /** + * Defines if the field is disabled. + * @type {boolean} + * @memberof FieldDto + */ + isDisabled: boolean; + /** + * Defines the partitioning of the field. + * @type {string} + * @memberof FieldDto + */ + partitioning: string; + /** + * + * @type {FieldPropertiesDto} + * @memberof FieldDto + */ + properties: FieldPropertiesDto; + /** + * The nested fields. + * @type {Array} + * @memberof FieldDto + */ + nested?: Array | null; +} + +/** + * Check if a given object implements the FieldDto interface. + */ +export function instanceOfFieldDto(value: object): value is FieldDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('fieldId' in value) || value['fieldId'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('isHidden' in value) || value['isHidden'] === undefined) return false; + if (!('isLocked' in value) || value['isLocked'] === undefined) return false; + if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false; + if (!('partitioning' in value) || value['partitioning'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function FieldDtoFromJSON(json: any): FieldDto { + return FieldDtoFromJSONTyped(json, false); +} + +export function FieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'fieldId': json['fieldId'], + 'name': json['name'], + 'isHidden': json['isHidden'], + 'isLocked': json['isLocked'], + 'isDisabled': json['isDisabled'], + 'partitioning': json['partitioning'], + 'properties': FieldPropertiesDtoFromJSON(json['properties']), + 'nested': json['nested'] == null ? undefined : ((json['nested'] as Array).map(NestedFieldDtoFromJSON)), + }; +} + +export function FieldDtoToJSON(value?: FieldDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'fieldId': value['fieldId'], + 'name': value['name'], + 'isHidden': value['isHidden'], + 'isLocked': value['isLocked'], + 'isDisabled': value['isDisabled'], + 'partitioning': value['partitioning'], + 'properties': FieldPropertiesDtoToJSON(value['properties']), + 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(NestedFieldDtoToJSON)), + }; +} diff --git a/src/generated/models/FieldPropertiesDto.ts b/src/generated/models/FieldPropertiesDto.ts new file mode 100644 index 0000000..af1f076 --- /dev/null +++ b/src/generated/models/FieldPropertiesDto.ts @@ -0,0 +1,226 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import { ArrayFieldPropertiesDto, ArrayFieldPropertiesDtoFromJSONTyped, ArrayFieldPropertiesDtoToJSON } from './ArrayFieldPropertiesDto'; +import { AssetsFieldPropertiesDto, AssetsFieldPropertiesDtoFromJSONTyped, AssetsFieldPropertiesDtoToJSON } from './AssetsFieldPropertiesDto'; +import { BooleanFieldPropertiesDto, BooleanFieldPropertiesDtoFromJSONTyped, BooleanFieldPropertiesDtoToJSON } from './BooleanFieldPropertiesDto'; +import { ComponentFieldPropertiesDto, ComponentFieldPropertiesDtoFromJSONTyped, ComponentFieldPropertiesDtoToJSON } from './ComponentFieldPropertiesDto'; +import { ComponentsFieldPropertiesDto, ComponentsFieldPropertiesDtoFromJSONTyped, ComponentsFieldPropertiesDtoToJSON } from './ComponentsFieldPropertiesDto'; +import { DateTimeFieldPropertiesDto, DateTimeFieldPropertiesDtoFromJSONTyped, DateTimeFieldPropertiesDtoToJSON } from './DateTimeFieldPropertiesDto'; +import { GeolocationFieldPropertiesDto, GeolocationFieldPropertiesDtoFromJSONTyped, GeolocationFieldPropertiesDtoToJSON } from './GeolocationFieldPropertiesDto'; +import { JsonFieldPropertiesDto, JsonFieldPropertiesDtoFromJSONTyped, JsonFieldPropertiesDtoToJSON } from './JsonFieldPropertiesDto'; +import { NumberFieldPropertiesDto, NumberFieldPropertiesDtoFromJSONTyped, NumberFieldPropertiesDtoToJSON } from './NumberFieldPropertiesDto'; +import { ReferencesFieldPropertiesDto, ReferencesFieldPropertiesDtoFromJSONTyped, ReferencesFieldPropertiesDtoToJSON } from './ReferencesFieldPropertiesDto'; +import { RichTextFieldPropertiesDto, RichTextFieldPropertiesDtoFromJSONTyped, RichTextFieldPropertiesDtoToJSON } from './RichTextFieldPropertiesDto'; +import { StringFieldPropertiesDto, StringFieldPropertiesDtoFromJSONTyped, StringFieldPropertiesDtoToJSON } from './StringFieldPropertiesDto'; +import { TagsFieldPropertiesDto, TagsFieldPropertiesDtoFromJSONTyped, TagsFieldPropertiesDtoToJSON } from './TagsFieldPropertiesDto'; +import { UIFieldPropertiesDto, UIFieldPropertiesDtoFromJSONTyped, UIFieldPropertiesDtoToJSON } from './UIFieldPropertiesDto'; +/** + * + * @export + * @interface FieldPropertiesDto + */ +export interface FieldPropertiesDto { + /** + * Optional label for the editor. + * @type {string} + * @memberof FieldPropertiesDto + */ + label?: string | null; + /** + * Hints to describe the field. + * @type {string} + * @memberof FieldPropertiesDto + */ + hints?: string | null; + /** + * Placeholder to show when no value has been entered. + * @type {string} + * @memberof FieldPropertiesDto + */ + placeholder?: string | null; + /** + * Indicates if the field is required. + * @type {boolean} + * @memberof FieldPropertiesDto + */ + isRequired?: boolean; + /** + * Indicates if the field is required when publishing. + * @type {boolean} + * @memberof FieldPropertiesDto + */ + isRequiredOnPublish?: boolean; + /** + * Indicates if the field should be rendered with half width only. + * @type {boolean} + * @memberof FieldPropertiesDto + */ + isHalfWidth?: boolean; + /** + * Optional url to the editor. + * @type {string} + * @memberof FieldPropertiesDto + */ + editorUrl?: string | null; + /** + * Tags for automation processes. + * @type {Array} + * @memberof FieldPropertiesDto + */ + tags?: Array | null; + /** + * + * @type {string} + * @memberof FieldPropertiesDto + */ + fieldType: string; +} + +/** + * Check if a given object implements the FieldPropertiesDto interface. + */ +export function instanceOfFieldPropertiesDto(value: object): value is FieldPropertiesDto { + if (!('fieldType' in value) || value['fieldType'] === undefined) return false; + return true; +} + +export function FieldPropertiesDtoFromJSON(json: any): FieldPropertiesDto { + return FieldPropertiesDtoFromJSONTyped(json, false); +} + +export function FieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldPropertiesDto { + if (json == null) { + return json; + } + if (!ignoreDiscriminator) { + if (json['fieldType'] === 'Array') { + return ArrayFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Assets') { + return AssetsFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Boolean') { + return BooleanFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Component') { + return ComponentFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Components') { + return ComponentsFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'DateTime') { + return DateTimeFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Geolocation') { + return GeolocationFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Json') { + return JsonFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Number') { + return NumberFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'References') { + return ReferencesFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'RichText') { + return RichTextFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'String') { + return StringFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'Tags') { + return TagsFieldPropertiesDtoFromJSONTyped(json, true); + } + if (json['fieldType'] === 'UI') { + return UIFieldPropertiesDtoFromJSONTyped(json, true); + } + } + return { + + 'label': json['label'] == null ? undefined : json['label'], + 'hints': json['hints'] == null ? undefined : json['hints'], + 'placeholder': json['placeholder'] == null ? undefined : json['placeholder'], + 'isRequired': json['isRequired'] == null ? undefined : json['isRequired'], + 'isRequiredOnPublish': json['isRequiredOnPublish'] == null ? undefined : json['isRequiredOnPublish'], + 'isHalfWidth': json['isHalfWidth'] == null ? undefined : json['isHalfWidth'], + 'editorUrl': json['editorUrl'] == null ? undefined : json['editorUrl'], + 'tags': json['tags'] == null ? undefined : json['tags'], + 'fieldType': json['fieldType'], + }; +} + +export function FieldPropertiesDtoToJSON(value?: FieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + if (!ignoreDiscriminator) { + if (value['fieldType'] === 'Array') { + return ArrayFieldPropertiesDtoToJSON(value as ArrayFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Assets') { + return AssetsFieldPropertiesDtoToJSON(value as AssetsFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Boolean') { + return BooleanFieldPropertiesDtoToJSON(value as BooleanFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Component') { + return ComponentFieldPropertiesDtoToJSON(value as ComponentFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Components') { + return ComponentsFieldPropertiesDtoToJSON(value as ComponentsFieldPropertiesDto, true); + } + if (value['fieldType'] === 'DateTime') { + return DateTimeFieldPropertiesDtoToJSON(value as DateTimeFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Geolocation') { + return GeolocationFieldPropertiesDtoToJSON(value as GeolocationFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Json') { + return JsonFieldPropertiesDtoToJSON(value as JsonFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Number') { + return NumberFieldPropertiesDtoToJSON(value as NumberFieldPropertiesDto, true); + } + if (value['fieldType'] === 'References') { + return ReferencesFieldPropertiesDtoToJSON(value as ReferencesFieldPropertiesDto, true); + } + if (value['fieldType'] === 'RichText') { + return RichTextFieldPropertiesDtoToJSON(value as RichTextFieldPropertiesDto, true); + } + if (value['fieldType'] === 'String') { + return StringFieldPropertiesDtoToJSON(value as StringFieldPropertiesDto, true); + } + if (value['fieldType'] === 'Tags') { + return TagsFieldPropertiesDtoToJSON(value as TagsFieldPropertiesDto, true); + } + if (value['fieldType'] === 'UI') { + return UIFieldPropertiesDtoToJSON(value as UIFieldPropertiesDto, true); + } + } + return { + + 'label': value['label'], + 'hints': value['hints'], + 'placeholder': value['placeholder'], + 'isRequired': value['isRequired'], + 'isRequiredOnPublish': value['isRequiredOnPublish'], + 'isHalfWidth': value['isHalfWidth'], + 'editorUrl': value['editorUrl'], + 'tags': value['tags'], + 'fieldType': value['fieldType'], + }; +} diff --git a/src/generated/models/FieldRuleAction.ts b/src/generated/models/FieldRuleAction.ts new file mode 100644 index 0000000..b470bdf --- /dev/null +++ b/src/generated/models/FieldRuleAction.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const FieldRuleAction = { + Disable: 'Disable', + Hide: 'Hide', + Require: 'Require' +} as const; +export type FieldRuleAction = typeof FieldRuleAction[keyof typeof FieldRuleAction]; + + +export function instanceOfFieldRuleAction(value: any): boolean { + for (const key in FieldRuleAction) { + if (Object.prototype.hasOwnProperty.call(FieldRuleAction, key)) { + if (FieldRuleAction[key as keyof typeof FieldRuleAction] === value) { + return true; + } + } + } + return false; +} + +export function FieldRuleActionFromJSON(json: any): FieldRuleAction { + return FieldRuleActionFromJSONTyped(json, false); +} + +export function FieldRuleActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldRuleAction { + return json as FieldRuleAction; +} + +export function FieldRuleActionToJSON(value?: FieldRuleAction | null): any { + return value as any; +} + diff --git a/src/generated/models/FieldRuleDto.ts b/src/generated/models/FieldRuleDto.ts new file mode 100644 index 0000000..4c14d06 --- /dev/null +++ b/src/generated/models/FieldRuleDto.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldRuleAction } from './FieldRuleAction'; +import { + FieldRuleActionFromJSON, + FieldRuleActionFromJSONTyped, + FieldRuleActionToJSON, +} from './FieldRuleAction'; + +/** + * + * @export + * @interface FieldRuleDto + */ +export interface FieldRuleDto { + /** + * + * @type {FieldRuleAction} + * @memberof FieldRuleDto + */ + action: FieldRuleAction; + /** + * The field to update. + * @type {string} + * @memberof FieldRuleDto + */ + field: string; + /** + * The condition. + * @type {string} + * @memberof FieldRuleDto + */ + condition?: string | null; +} + + + +/** + * Check if a given object implements the FieldRuleDto interface. + */ +export function instanceOfFieldRuleDto(value: object): value is FieldRuleDto { + if (!('action' in value) || value['action'] === undefined) return false; + if (!('field' in value) || value['field'] === undefined) return false; + return true; +} + +export function FieldRuleDtoFromJSON(json: any): FieldRuleDto { + return FieldRuleDtoFromJSONTyped(json, false); +} + +export function FieldRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldRuleDto { + if (json == null) { + return json; + } + return { + + 'action': FieldRuleActionFromJSON(json['action']), + 'field': json['field'], + 'condition': json['condition'] == null ? undefined : json['condition'], + }; +} + +export function FieldRuleDtoToJSON(value?: FieldRuleDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'action': FieldRuleActionToJSON(value['action']), + 'field': value['field'], + 'condition': value['condition'], + }; +} diff --git a/src/generated/models/GeolocationFieldEditor.ts b/src/generated/models/GeolocationFieldEditor.ts new file mode 100644 index 0000000..65e843d --- /dev/null +++ b/src/generated/models/GeolocationFieldEditor.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GeolocationFieldEditor = { + Map: 'Map' +} as const; +export type GeolocationFieldEditor = typeof GeolocationFieldEditor[keyof typeof GeolocationFieldEditor]; + + +export function instanceOfGeolocationFieldEditor(value: any): boolean { + for (const key in GeolocationFieldEditor) { + if (Object.prototype.hasOwnProperty.call(GeolocationFieldEditor, key)) { + if (GeolocationFieldEditor[key as keyof typeof GeolocationFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function GeolocationFieldEditorFromJSON(json: any): GeolocationFieldEditor { + return GeolocationFieldEditorFromJSONTyped(json, false); +} + +export function GeolocationFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeolocationFieldEditor { + return json as GeolocationFieldEditor; +} + +export function GeolocationFieldEditorToJSON(value?: GeolocationFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/GeolocationFieldPropertiesDto.ts b/src/generated/models/GeolocationFieldPropertiesDto.ts new file mode 100644 index 0000000..cebfc50 --- /dev/null +++ b/src/generated/models/GeolocationFieldPropertiesDto.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { GeolocationFieldEditor } from './GeolocationFieldEditor'; +import { + GeolocationFieldEditorFromJSON, + GeolocationFieldEditorFromJSONTyped, + GeolocationFieldEditorToJSON, +} from './GeolocationFieldEditor'; + +/** + * + * @export + * @interface GeolocationFieldPropertiesDto + */ +export interface GeolocationFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {GeolocationFieldEditor} + * @memberof GeolocationFieldPropertiesDto + */ + editor?: GeolocationFieldEditor; +} + + + +/** + * Check if a given object implements the GeolocationFieldPropertiesDto interface. + */ +export function instanceOfGeolocationFieldPropertiesDto(value: object): value is GeolocationFieldPropertiesDto { + return true; +} + +export function GeolocationFieldPropertiesDtoFromJSON(json: any): GeolocationFieldPropertiesDto { + return GeolocationFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function GeolocationFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeolocationFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'editor': json['editor'] == null ? undefined : GeolocationFieldEditorFromJSON(json['editor']), + }; +} + +export function GeolocationFieldPropertiesDtoToJSON(value?: GeolocationFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'editor': GeolocationFieldEditorToJSON(value['editor']), + }; +} diff --git a/src/generated/models/HistoryEventDto.ts b/src/generated/models/HistoryEventDto.ts new file mode 100644 index 0000000..de70b4a --- /dev/null +++ b/src/generated/models/HistoryEventDto.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface HistoryEventDto + */ +export interface HistoryEventDto { + /** + * The message for the event. + * @type {string} + * @memberof HistoryEventDto + */ + message: string; + /** + * The type of the original event. + * @type {string} + * @memberof HistoryEventDto + */ + eventType: string; + /** + * The user who called the action. + * @type {string} + * @memberof HistoryEventDto + */ + actor: string; + /** + * Gets a unique id for the event. + * @type {string} + * @memberof HistoryEventDto + */ + eventId: string; + /** + * The time when the event happened. + * @type {Date} + * @memberof HistoryEventDto + */ + created: Date; + /** + * The version identifier. + * @type {number} + * @memberof HistoryEventDto + */ + version: number; +} + +/** + * Check if a given object implements the HistoryEventDto interface. + */ +export function instanceOfHistoryEventDto(value: object): value is HistoryEventDto { + if (!('message' in value) || value['message'] === undefined) return false; + if (!('eventType' in value) || value['eventType'] === undefined) return false; + if (!('actor' in value) || value['actor'] === undefined) return false; + if (!('eventId' in value) || value['eventId'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + return true; +} + +export function HistoryEventDtoFromJSON(json: any): HistoryEventDto { + return HistoryEventDtoFromJSONTyped(json, false); +} + +export function HistoryEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistoryEventDto { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + 'eventType': json['eventType'], + 'actor': json['actor'], + 'eventId': json['eventId'], + 'created': (new Date(json['created'])), + 'version': json['version'], + }; +} + +export function HistoryEventDtoToJSON(value?: HistoryEventDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'message': value['message'], + 'eventType': value['eventType'], + 'actor': value['actor'], + 'eventId': value['eventId'], + 'created': ((value['created']).toISOString()), + 'version': value['version'], + }; +} diff --git a/src/generated/models/ImageFormat.ts b/src/generated/models/ImageFormat.ts new file mode 100644 index 0000000..6840a37 --- /dev/null +++ b/src/generated/models/ImageFormat.ts @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ImageFormat = { + Avif: 'AVIF', + Bmp: 'BMP', + Gif: 'GIF', + Jpeg: 'JPEG', + Png: 'PNG', + Tga: 'TGA', + Tiff: 'TIFF', + Webp: 'WEBP' +} as const; +export type ImageFormat = typeof ImageFormat[keyof typeof ImageFormat]; + + +export function instanceOfImageFormat(value: any): boolean { + for (const key in ImageFormat) { + if (Object.prototype.hasOwnProperty.call(ImageFormat, key)) { + if (ImageFormat[key as keyof typeof ImageFormat] === value) { + return true; + } + } + } + return false; +} + +export function ImageFormatFromJSON(json: any): ImageFormat { + return ImageFormatFromJSONTyped(json, false); +} + +export function ImageFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageFormat { + return json as ImageFormat; +} + +export function ImageFormatToJSON(value?: ImageFormat | null): any { + return value as any; +} + diff --git a/src/generated/models/ImportContentsDto.ts b/src/generated/models/ImportContentsDto.ts new file mode 100644 index 0000000..ebeb515 --- /dev/null +++ b/src/generated/models/ImportContentsDto.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ImportContentsDto + */ +export interface ImportContentsDto { + /** + * The data to import. + * @type {Array<{ [key: string]: { [key: string]: any; }; }>} + * @memberof ImportContentsDto + */ + datas: Array<{ [key: string]: { [key: string]: any; }; }>; + /** + * True to automatically publish the content. + * @type {boolean} + * @memberof ImportContentsDto + * @deprecated + */ + publish?: boolean; + /** + * True to turn off scripting for faster inserts. Default: true. + * @type {boolean} + * @memberof ImportContentsDto + */ + doNotScript?: boolean; + /** + * True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true. + * @type {boolean} + * @memberof ImportContentsDto + */ + optimizeValidation?: boolean; +} + +/** + * Check if a given object implements the ImportContentsDto interface. + */ +export function instanceOfImportContentsDto(value: object): value is ImportContentsDto { + if (!('datas' in value) || value['datas'] === undefined) return false; + return true; +} + +export function ImportContentsDtoFromJSON(json: any): ImportContentsDto { + return ImportContentsDtoFromJSONTyped(json, false); +} + +export function ImportContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportContentsDto { + if (json == null) { + return json; + } + return { + + 'datas': json['datas'], + 'publish': json['publish'] == null ? undefined : json['publish'], + 'doNotScript': json['doNotScript'] == null ? undefined : json['doNotScript'], + 'optimizeValidation': json['optimizeValidation'] == null ? undefined : json['optimizeValidation'], + }; +} + +export function ImportContentsDtoToJSON(value?: ImportContentsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'datas': value['datas'], + 'publish': value['publish'], + 'doNotScript': value['doNotScript'], + 'optimizeValidation': value['optimizeValidation'], + }; +} diff --git a/src/generated/models/JobDto.ts b/src/generated/models/JobDto.ts new file mode 100644 index 0000000..1d96f7a --- /dev/null +++ b/src/generated/models/JobDto.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { JobStatus } from './JobStatus'; +import { + JobStatusFromJSON, + JobStatusFromJSONTyped, + JobStatusToJSON, +} from './JobStatus'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { JobLogMessageDto } from './JobLogMessageDto'; +import { + JobLogMessageDtoFromJSON, + JobLogMessageDtoFromJSONTyped, + JobLogMessageDtoToJSON, +} from './JobLogMessageDto'; + +/** + * + * @export + * @interface JobDto + */ +export interface JobDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof JobDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the job. + * @type {string} + * @memberof JobDto + */ + id: string; + /** + * The time when the job has been started. + * @type {Date} + * @memberof JobDto + */ + started: Date; + /** + * The time when the job has been stopped. + * @type {Date} + * @memberof JobDto + */ + stopped?: Date | null; + /** + * + * @type {JobStatus} + * @memberof JobDto + */ + status: JobStatus; + /** + * The name of the task. + * @type {string} + * @memberof JobDto + */ + taskName: string; + /** + * The description of the job. + * @type {string} + * @memberof JobDto + */ + description: string; + /** + * The arguments for the job. + * @type {{ [key: string]: string; }} + * @memberof JobDto + */ + taskArguments: { [key: string]: string; }; + /** + * The list of log items. + * @type {Array} + * @memberof JobDto + */ + log: Array; + /** + * Indicates whether the job can be downloaded. + * @type {boolean} + * @memberof JobDto + */ + canDownload: boolean; +} + + + +/** + * Check if a given object implements the JobDto interface. + */ +export function instanceOfJobDto(value: object): value is JobDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('started' in value) || value['started'] === undefined) return false; + if (!('status' in value) || value['status'] === undefined) return false; + if (!('taskName' in value) || value['taskName'] === undefined) return false; + if (!('description' in value) || value['description'] === undefined) return false; + if (!('taskArguments' in value) || value['taskArguments'] === undefined) return false; + if (!('log' in value) || value['log'] === undefined) return false; + if (!('canDownload' in value) || value['canDownload'] === undefined) return false; + return true; +} + +export function JobDtoFromJSON(json: any): JobDto { + return JobDtoFromJSONTyped(json, false); +} + +export function JobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'started': (new Date(json['started'])), + 'stopped': json['stopped'] == null ? undefined : (new Date(json['stopped'])), + 'status': JobStatusFromJSON(json['status']), + 'taskName': json['taskName'], + 'description': json['description'], + 'taskArguments': json['taskArguments'], + 'log': ((json['log'] as Array).map(JobLogMessageDtoFromJSON)), + 'canDownload': json['canDownload'], + }; +} + +export function JobDtoToJSON(value?: JobDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'started': ((value['started']).toISOString()), + 'stopped': value['stopped'] == null ? undefined : ((value['stopped'] as any).toISOString()), + 'status': JobStatusToJSON(value['status']), + 'taskName': value['taskName'], + 'description': value['description'], + 'taskArguments': value['taskArguments'], + 'log': ((value['log'] as Array).map(JobLogMessageDtoToJSON)), + 'canDownload': value['canDownload'], + }; +} diff --git a/src/generated/models/JobLogMessageDto.ts b/src/generated/models/JobLogMessageDto.ts new file mode 100644 index 0000000..08ff348 --- /dev/null +++ b/src/generated/models/JobLogMessageDto.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface JobLogMessageDto + */ +export interface JobLogMessageDto { + /** + * The timestamp. + * @type {Date} + * @memberof JobLogMessageDto + */ + timestamp: Date; + /** + * The log message. + * @type {string} + * @memberof JobLogMessageDto + */ + message: string; +} + +/** + * Check if a given object implements the JobLogMessageDto interface. + */ +export function instanceOfJobLogMessageDto(value: object): value is JobLogMessageDto { + if (!('timestamp' in value) || value['timestamp'] === undefined) return false; + if (!('message' in value) || value['message'] === undefined) return false; + return true; +} + +export function JobLogMessageDtoFromJSON(json: any): JobLogMessageDto { + return JobLogMessageDtoFromJSONTyped(json, false); +} + +export function JobLogMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobLogMessageDto { + if (json == null) { + return json; + } + return { + + 'timestamp': (new Date(json['timestamp'])), + 'message': json['message'], + }; +} + +export function JobLogMessageDtoToJSON(value?: JobLogMessageDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'timestamp': ((value['timestamp']).toISOString()), + 'message': value['message'], + }; +} diff --git a/src/generated/models/JobStatus.ts b/src/generated/models/JobStatus.ts new file mode 100644 index 0000000..d1e55cf --- /dev/null +++ b/src/generated/models/JobStatus.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const JobStatus = { + Created: 'Created', + Started: 'Started', + Completed: 'Completed', + Cancelled: 'Cancelled', + Failed: 'Failed' +} as const; +export type JobStatus = typeof JobStatus[keyof typeof JobStatus]; + + +export function instanceOfJobStatus(value: any): boolean { + for (const key in JobStatus) { + if (Object.prototype.hasOwnProperty.call(JobStatus, key)) { + if (JobStatus[key as keyof typeof JobStatus] === value) { + return true; + } + } + } + return false; +} + +export function JobStatusFromJSON(json: any): JobStatus { + return JobStatusFromJSONTyped(json, false); +} + +export function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus { + return json as JobStatus; +} + +export function JobStatusToJSON(value?: JobStatus | null): any { + return value as any; +} + diff --git a/src/generated/models/JobsDto.ts b/src/generated/models/JobsDto.ts new file mode 100644 index 0000000..0b0b739 --- /dev/null +++ b/src/generated/models/JobsDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { JobDto } from './JobDto'; +import { + JobDtoFromJSON, + JobDtoFromJSONTyped, + JobDtoToJSON, +} from './JobDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface JobsDto + */ +export interface JobsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof JobsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The jobs. + * @type {Array} + * @memberof JobsDto + */ + items: Array; +} + +/** + * Check if a given object implements the JobsDto interface. + */ +export function instanceOfJobsDto(value: object): value is JobsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function JobsDtoFromJSON(json: any): JobsDto { + return JobsDtoFromJSONTyped(json, false); +} + +export function JobsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(JobDtoFromJSON)), + }; +} + +export function JobsDtoToJSON(value?: JobsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(JobDtoToJSON)), + }; +} diff --git a/src/generated/models/JsonFieldPropertiesDto.ts b/src/generated/models/JsonFieldPropertiesDto.ts new file mode 100644 index 0000000..50c4c1c --- /dev/null +++ b/src/generated/models/JsonFieldPropertiesDto.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; + +/** + * + * @export + * @interface JsonFieldPropertiesDto + */ +export interface JsonFieldPropertiesDto extends FieldPropertiesDto { + /** + * The GraphQL schema. + * @type {string} + * @memberof JsonFieldPropertiesDto + */ + graphQLSchema?: string | null; +} + +/** + * Check if a given object implements the JsonFieldPropertiesDto interface. + */ +export function instanceOfJsonFieldPropertiesDto(value: object): value is JsonFieldPropertiesDto { + return true; +} + +export function JsonFieldPropertiesDtoFromJSON(json: any): JsonFieldPropertiesDto { + return JsonFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function JsonFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'graphQLSchema': json['graphQLSchema'] == null ? undefined : json['graphQLSchema'], + }; +} + +export function JsonFieldPropertiesDtoToJSON(value?: JsonFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'graphQLSchema': value['graphQLSchema'], + }; +} diff --git a/src/generated/models/LanguageDto.ts b/src/generated/models/LanguageDto.ts new file mode 100644 index 0000000..4717e41 --- /dev/null +++ b/src/generated/models/LanguageDto.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LanguageDto + */ +export interface LanguageDto { + /** + * The iso code of the language. + * @type {string} + * @memberof LanguageDto + */ + iso2Code: string; + /** + * The english name of the language. + * @type {string} + * @memberof LanguageDto + */ + englishName: string; + /** + * The native name of the language. + * @type {string} + * @memberof LanguageDto + */ + nativeName: string; +} + +/** + * Check if a given object implements the LanguageDto interface. + */ +export function instanceOfLanguageDto(value: object): value is LanguageDto { + if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; + if (!('englishName' in value) || value['englishName'] === undefined) return false; + if (!('nativeName' in value) || value['nativeName'] === undefined) return false; + return true; +} + +export function LanguageDtoFromJSON(json: any): LanguageDto { + return LanguageDtoFromJSONTyped(json, false); +} + +export function LanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LanguageDto { + if (json == null) { + return json; + } + return { + + 'iso2Code': json['iso2Code'], + 'englishName': json['englishName'], + 'nativeName': json['nativeName'], + }; +} + +export function LanguageDtoToJSON(value?: LanguageDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'iso2Code': value['iso2Code'], + 'englishName': value['englishName'], + 'nativeName': value['nativeName'], + }; +} diff --git a/src/generated/models/LogDownloadDto.ts b/src/generated/models/LogDownloadDto.ts new file mode 100644 index 0000000..07124d1 --- /dev/null +++ b/src/generated/models/LogDownloadDto.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LogDownloadDto + */ +export interface LogDownloadDto { + /** + * The url to download the log. + * @type {string} + * @memberof LogDownloadDto + */ + downloadUrl?: string | null; +} + +/** + * Check if a given object implements the LogDownloadDto interface. + */ +export function instanceOfLogDownloadDto(value: object): value is LogDownloadDto { + return true; +} + +export function LogDownloadDtoFromJSON(json: any): LogDownloadDto { + return LogDownloadDtoFromJSONTyped(json, false); +} + +export function LogDownloadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogDownloadDto { + if (json == null) { + return json; + } + return { + + 'downloadUrl': json['downloadUrl'] == null ? undefined : json['downloadUrl'], + }; +} + +export function LogDownloadDtoToJSON(value?: LogDownloadDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'downloadUrl': value['downloadUrl'], + }; +} diff --git a/src/generated/models/ManualRuleTriggerDto.ts b/src/generated/models/ManualRuleTriggerDto.ts new file mode 100644 index 0000000..7334ea9 --- /dev/null +++ b/src/generated/models/ManualRuleTriggerDto.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface ManualRuleTriggerDto + */ +export interface ManualRuleTriggerDto extends RuleTriggerDto { +} + +/** + * Check if a given object implements the ManualRuleTriggerDto interface. + */ +export function instanceOfManualRuleTriggerDto(value: object): value is ManualRuleTriggerDto { + return true; +} + +export function ManualRuleTriggerDtoFromJSON(json: any): ManualRuleTriggerDto { + return ManualRuleTriggerDtoFromJSONTyped(json, false); +} + +export function ManualRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualRuleTriggerDto { + return json; +} + +export function ManualRuleTriggerDtoToJSON(value?: ManualRuleTriggerDto | null, ignoreDiscriminator = false): any { + return value; +} diff --git a/src/generated/models/MediumRuleActionDto.ts b/src/generated/models/MediumRuleActionDto.ts new file mode 100644 index 0000000..78b9b7d --- /dev/null +++ b/src/generated/models/MediumRuleActionDto.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface MediumRuleActionDto + */ +export interface MediumRuleActionDto extends RuleActionDto { + /** + * The self issued access token. + * @type {string} + * @memberof MediumRuleActionDto + */ + accessToken: string; + /** + * The title, used for the url. + * @type {string} + * @memberof MediumRuleActionDto + */ + title: string; + /** + * The content, either html or markdown. + * @type {string} + * @memberof MediumRuleActionDto + */ + content: string; + /** + * The original home of this content, if it was originally published elsewhere. + * @type {string} + * @memberof MediumRuleActionDto + */ + canonicalUrl?: string | null; + /** + * The optional comma separated list of tags. + * @type {string} + * @memberof MediumRuleActionDto + */ + tags?: string | null; + /** + * Optional publication id. + * @type {string} + * @memberof MediumRuleActionDto + */ + publicationId?: string | null; + /** + * Indicates whether the content is markdown or html. + * @type {boolean} + * @memberof MediumRuleActionDto + */ + isHtml: boolean; +} + +/** + * Check if a given object implements the MediumRuleActionDto interface. + */ +export function instanceOfMediumRuleActionDto(value: object): value is MediumRuleActionDto { + if (!('accessToken' in value) || value['accessToken'] === undefined) return false; + if (!('title' in value) || value['title'] === undefined) return false; + if (!('content' in value) || value['content'] === undefined) return false; + if (!('isHtml' in value) || value['isHtml'] === undefined) return false; + return true; +} + +export function MediumRuleActionDtoFromJSON(json: any): MediumRuleActionDto { + return MediumRuleActionDtoFromJSONTyped(json, false); +} + +export function MediumRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MediumRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'accessToken': json['accessToken'], + 'title': json['title'], + 'content': json['content'], + 'canonicalUrl': json['canonicalUrl'] == null ? undefined : json['canonicalUrl'], + 'tags': json['tags'] == null ? undefined : json['tags'], + 'publicationId': json['publicationId'] == null ? undefined : json['publicationId'], + 'isHtml': json['isHtml'], + }; +} + +export function MediumRuleActionDtoToJSON(value?: MediumRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'accessToken': value['accessToken'], + 'title': value['title'], + 'content': value['content'], + 'canonicalUrl': value['canonicalUrl'], + 'tags': value['tags'], + 'publicationId': value['publicationId'], + 'isHtml': value['isHtml'], + }; +} diff --git a/src/generated/models/MoveAssetDto.ts b/src/generated/models/MoveAssetDto.ts new file mode 100644 index 0000000..bc73b98 --- /dev/null +++ b/src/generated/models/MoveAssetDto.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MoveAssetDto + */ +export interface MoveAssetDto { + /** + * The parent folder id. + * @type {string} + * @memberof MoveAssetDto + */ + parentId?: string; +} + +/** + * Check if a given object implements the MoveAssetDto interface. + */ +export function instanceOfMoveAssetDto(value: object): value is MoveAssetDto { + return true; +} + +export function MoveAssetDtoFromJSON(json: any): MoveAssetDto { + return MoveAssetDtoFromJSONTyped(json, false); +} + +export function MoveAssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveAssetDto { + if (json == null) { + return json; + } + return { + + 'parentId': json['parentId'] == null ? undefined : json['parentId'], + }; +} + +export function MoveAssetDtoToJSON(value?: MoveAssetDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'parentId': value['parentId'], + }; +} diff --git a/src/generated/models/MoveAssetFolderDto.ts b/src/generated/models/MoveAssetFolderDto.ts new file mode 100644 index 0000000..52b012f --- /dev/null +++ b/src/generated/models/MoveAssetFolderDto.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MoveAssetFolderDto + */ +export interface MoveAssetFolderDto { + /** + * The parent folder id. + * @type {string} + * @memberof MoveAssetFolderDto + */ + parentId?: string; +} + +/** + * Check if a given object implements the MoveAssetFolderDto interface. + */ +export function instanceOfMoveAssetFolderDto(value: object): value is MoveAssetFolderDto { + return true; +} + +export function MoveAssetFolderDtoFromJSON(json: any): MoveAssetFolderDto { + return MoveAssetFolderDtoFromJSONTyped(json, false); +} + +export function MoveAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveAssetFolderDto { + if (json == null) { + return json; + } + return { + + 'parentId': json['parentId'] == null ? undefined : json['parentId'], + }; +} + +export function MoveAssetFolderDtoToJSON(value?: MoveAssetFolderDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'parentId': value['parentId'], + }; +} diff --git a/src/generated/models/NestedFieldDto.ts b/src/generated/models/NestedFieldDto.ts new file mode 100644 index 0000000..8da0012 --- /dev/null +++ b/src/generated/models/NestedFieldDto.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface NestedFieldDto + */ +export interface NestedFieldDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof NestedFieldDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the field. + * @type {number} + * @memberof NestedFieldDto + */ + fieldId: number; + /** + * The name of the field. Must be unique within the schema. + * @type {string} + * @memberof NestedFieldDto + */ + name: string; + /** + * Defines if the field is hidden. + * @type {boolean} + * @memberof NestedFieldDto + */ + isHidden: boolean; + /** + * Defines if the field is locked. + * @type {boolean} + * @memberof NestedFieldDto + */ + isLocked: boolean; + /** + * Defines if the field is disabled. + * @type {boolean} + * @memberof NestedFieldDto + */ + isDisabled: boolean; + /** + * + * @type {FieldPropertiesDto} + * @memberof NestedFieldDto + */ + properties: FieldPropertiesDto; +} + +/** + * Check if a given object implements the NestedFieldDto interface. + */ +export function instanceOfNestedFieldDto(value: object): value is NestedFieldDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('fieldId' in value) || value['fieldId'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('isHidden' in value) || value['isHidden'] === undefined) return false; + if (!('isLocked' in value) || value['isLocked'] === undefined) return false; + if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function NestedFieldDtoFromJSON(json: any): NestedFieldDto { + return NestedFieldDtoFromJSONTyped(json, false); +} + +export function NestedFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NestedFieldDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'fieldId': json['fieldId'], + 'name': json['name'], + 'isHidden': json['isHidden'], + 'isLocked': json['isLocked'], + 'isDisabled': json['isDisabled'], + 'properties': FieldPropertiesDtoFromJSON(json['properties']), + }; +} + +export function NestedFieldDtoToJSON(value?: NestedFieldDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'fieldId': value['fieldId'], + 'name': value['name'], + 'isHidden': value['isHidden'], + 'isLocked': value['isLocked'], + 'isDisabled': value['isDisabled'], + 'properties': FieldPropertiesDtoToJSON(value['properties']), + }; +} diff --git a/src/generated/models/NotificationRuleActionDto.ts b/src/generated/models/NotificationRuleActionDto.ts new file mode 100644 index 0000000..9c5936b --- /dev/null +++ b/src/generated/models/NotificationRuleActionDto.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface NotificationRuleActionDto + */ +export interface NotificationRuleActionDto extends RuleActionDto { + /** + * The user id or email. + * @type {string} + * @memberof NotificationRuleActionDto + */ + user: string; + /** + * The text to send. + * @type {string} + * @memberof NotificationRuleActionDto + */ + text: string; + /** + * The optional url to attach to the notification. + * @type {string} + * @memberof NotificationRuleActionDto + */ + url?: string | null; + /** + * An optional client name. + * @type {string} + * @memberof NotificationRuleActionDto + */ + client?: string | null; +} + +/** + * Check if a given object implements the NotificationRuleActionDto interface. + */ +export function instanceOfNotificationRuleActionDto(value: object): value is NotificationRuleActionDto { + if (!('user' in value) || value['user'] === undefined) return false; + if (!('text' in value) || value['text'] === undefined) return false; + return true; +} + +export function NotificationRuleActionDtoFromJSON(json: any): NotificationRuleActionDto { + return NotificationRuleActionDtoFromJSONTyped(json, false); +} + +export function NotificationRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'user': json['user'], + 'text': json['text'], + 'url': json['url'] == null ? undefined : json['url'], + 'client': json['client'] == null ? undefined : json['client'], + }; +} + +export function NotificationRuleActionDtoToJSON(value?: NotificationRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'user': value['user'], + 'text': value['text'], + 'url': value['url'], + 'client': value['client'], + }; +} diff --git a/src/generated/models/NumberFieldEditor.ts b/src/generated/models/NumberFieldEditor.ts new file mode 100644 index 0000000..f3d254c --- /dev/null +++ b/src/generated/models/NumberFieldEditor.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const NumberFieldEditor = { + Input: 'Input', + Radio: 'Radio', + Dropdown: 'Dropdown', + Stars: 'Stars' +} as const; +export type NumberFieldEditor = typeof NumberFieldEditor[keyof typeof NumberFieldEditor]; + + +export function instanceOfNumberFieldEditor(value: any): boolean { + for (const key in NumberFieldEditor) { + if (Object.prototype.hasOwnProperty.call(NumberFieldEditor, key)) { + if (NumberFieldEditor[key as keyof typeof NumberFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function NumberFieldEditorFromJSON(json: any): NumberFieldEditor { + return NumberFieldEditorFromJSONTyped(json, false); +} + +export function NumberFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NumberFieldEditor { + return json as NumberFieldEditor; +} + +export function NumberFieldEditorToJSON(value?: NumberFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/NumberFieldPropertiesDto.ts b/src/generated/models/NumberFieldPropertiesDto.ts new file mode 100644 index 0000000..17d0277 --- /dev/null +++ b/src/generated/models/NumberFieldPropertiesDto.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { NumberFieldEditor } from './NumberFieldEditor'; +import { + NumberFieldEditorFromJSON, + NumberFieldEditorFromJSONTyped, + NumberFieldEditorToJSON, +} from './NumberFieldEditor'; + +/** + * + * @export + * @interface NumberFieldPropertiesDto + */ +export interface NumberFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {{ [key: string]: number | null; }} + * @memberof NumberFieldPropertiesDto + */ + defaultValues?: { [key: string]: number | null; }; + /** + * The default value for the field value. + * @type {number} + * @memberof NumberFieldPropertiesDto + */ + defaultValue?: number | null; + /** + * The maximum allowed value for the field value. + * @type {number} + * @memberof NumberFieldPropertiesDto + */ + maxValue?: number | null; + /** + * The minimum allowed value for the field value. + * @type {number} + * @memberof NumberFieldPropertiesDto + */ + minValue?: number | null; + /** + * The allowed values for the field value. + * @type {Array} + * @memberof NumberFieldPropertiesDto + */ + allowedValues?: Array | null; + /** + * Indicates if the field value must be unique. Ignored for nested fields and localized fields. + * @type {boolean} + * @memberof NumberFieldPropertiesDto + */ + isUnique?: boolean; + /** + * Indicates that the inline editor is enabled for this field. + * @type {boolean} + * @memberof NumberFieldPropertiesDto + */ + inlineEditable?: boolean; + /** + * + * @type {NumberFieldEditor} + * @memberof NumberFieldPropertiesDto + */ + editor?: NumberFieldEditor; +} + + + +/** + * Check if a given object implements the NumberFieldPropertiesDto interface. + */ +export function instanceOfNumberFieldPropertiesDto(value: object): value is NumberFieldPropertiesDto { + return true; +} + +export function NumberFieldPropertiesDtoFromJSON(json: any): NumberFieldPropertiesDto { + return NumberFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function NumberFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NumberFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], + 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], + 'maxValue': json['maxValue'] == null ? undefined : json['maxValue'], + 'minValue': json['minValue'] == null ? undefined : json['minValue'], + 'allowedValues': json['allowedValues'] == null ? undefined : json['allowedValues'], + 'isUnique': json['isUnique'] == null ? undefined : json['isUnique'], + 'inlineEditable': json['inlineEditable'] == null ? undefined : json['inlineEditable'], + 'editor': json['editor'] == null ? undefined : NumberFieldEditorFromJSON(json['editor']), + }; +} + +export function NumberFieldPropertiesDtoToJSON(value?: NumberFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'defaultValues': value['defaultValues'], + 'defaultValue': value['defaultValue'], + 'maxValue': value['maxValue'], + 'minValue': value['minValue'], + 'allowedValues': value['allowedValues'], + 'isUnique': value['isUnique'], + 'inlineEditable': value['inlineEditable'], + 'editor': NumberFieldEditorToJSON(value['editor']), + }; +} diff --git a/src/generated/models/OpenSearchRuleActionDto.ts b/src/generated/models/OpenSearchRuleActionDto.ts new file mode 100644 index 0000000..21ab1d0 --- /dev/null +++ b/src/generated/models/OpenSearchRuleActionDto.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface OpenSearchRuleActionDto + */ +export interface OpenSearchRuleActionDto extends RuleActionDto { + /** + * The url to the instance or cluster. + * @type {string} + * @memberof OpenSearchRuleActionDto + */ + host: string; + /** + * The name of the index. + * @type {string} + * @memberof OpenSearchRuleActionDto + */ + indexName: string; + /** + * The optional username. + * @type {string} + * @memberof OpenSearchRuleActionDto + */ + username?: string | null; + /** + * The optional password. + * @type {string} + * @memberof OpenSearchRuleActionDto + */ + password?: string | null; + /** + * The optional custom document. + * @type {string} + * @memberof OpenSearchRuleActionDto + */ + document?: string | null; + /** + * The condition when to delete the document. + * @type {string} + * @memberof OpenSearchRuleActionDto + */ + _delete?: string | null; +} + +/** + * Check if a given object implements the OpenSearchRuleActionDto interface. + */ +export function instanceOfOpenSearchRuleActionDto(value: object): value is OpenSearchRuleActionDto { + if (!('host' in value) || value['host'] === undefined) return false; + if (!('indexName' in value) || value['indexName'] === undefined) return false; + return true; +} + +export function OpenSearchRuleActionDtoFromJSON(json: any): OpenSearchRuleActionDto { + return OpenSearchRuleActionDtoFromJSONTyped(json, false); +} + +export function OpenSearchRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenSearchRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'host': json['host'], + 'indexName': json['indexName'], + 'username': json['username'] == null ? undefined : json['username'], + 'password': json['password'] == null ? undefined : json['password'], + 'document': json['document'] == null ? undefined : json['document'], + '_delete': json['delete'] == null ? undefined : json['delete'], + }; +} + +export function OpenSearchRuleActionDtoToJSON(value?: OpenSearchRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'host': value['host'], + 'indexName': value['indexName'], + 'username': value['username'], + 'password': value['password'], + 'document': value['document'], + 'delete': value['_delete'], + }; +} diff --git a/src/generated/models/PatternDto.ts b/src/generated/models/PatternDto.ts new file mode 100644 index 0000000..3f3ffba --- /dev/null +++ b/src/generated/models/PatternDto.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PatternDto + */ +export interface PatternDto { + /** + * The name of the suggestion. + * @type {string} + * @memberof PatternDto + */ + name: string; + /** + * The regex pattern. + * @type {string} + * @memberof PatternDto + */ + regex: string; + /** + * The regex message. + * @type {string} + * @memberof PatternDto + */ + message?: string | null; +} + +/** + * Check if a given object implements the PatternDto interface. + */ +export function instanceOfPatternDto(value: object): value is PatternDto { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('regex' in value) || value['regex'] === undefined) return false; + return true; +} + +export function PatternDtoFromJSON(json: any): PatternDto { + return PatternDtoFromJSONTyped(json, false); +} + +export function PatternDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatternDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'regex': json['regex'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} + +export function PatternDtoToJSON(value?: PatternDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'regex': value['regex'], + 'message': value['message'], + }; +} diff --git a/src/generated/models/PlanChangedDto.ts b/src/generated/models/PlanChangedDto.ts new file mode 100644 index 0000000..3213482 --- /dev/null +++ b/src/generated/models/PlanChangedDto.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PlanChangedDto + */ +export interface PlanChangedDto { + /** + * Optional redirect uri. + * @type {string} + * @memberof PlanChangedDto + */ + redirectUri?: string | null; +} + +/** + * Check if a given object implements the PlanChangedDto interface. + */ +export function instanceOfPlanChangedDto(value: object): value is PlanChangedDto { + return true; +} + +export function PlanChangedDtoFromJSON(json: any): PlanChangedDto { + return PlanChangedDtoFromJSONTyped(json, false); +} + +export function PlanChangedDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanChangedDto { + if (json == null) { + return json; + } + return { + + 'redirectUri': json['redirectUri'] == null ? undefined : json['redirectUri'], + }; +} + +export function PlanChangedDtoToJSON(value?: PlanChangedDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'redirectUri': value['redirectUri'], + }; +} diff --git a/src/generated/models/PlanDto.ts b/src/generated/models/PlanDto.ts new file mode 100644 index 0000000..d1663c2 --- /dev/null +++ b/src/generated/models/PlanDto.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PlanDto + */ +export interface PlanDto { + /** + * The ID of the plan. + * @type {string} + * @memberof PlanDto + */ + id: string; + /** + * The name of the plan. + * @type {string} + * @memberof PlanDto + */ + name: string; + /** + * The monthly costs of the plan. + * @type {string} + * @memberof PlanDto + */ + costs: string; + /** + * An optional confirm text for the monthly subscription. + * @type {string} + * @memberof PlanDto + */ + confirmText?: string | null; + /** + * An optional confirm text for the yearly subscription. + * @type {string} + * @memberof PlanDto + */ + yearlyConfirmText?: string | null; + /** + * The yearly costs of the plan. + * @type {string} + * @memberof PlanDto + */ + yearlyCosts?: string | null; + /** + * The yearly ID of the plan. + * @type {string} + * @memberof PlanDto + */ + yearlyId?: string | null; + /** + * The maximum number of API traffic. + * @type {number} + * @memberof PlanDto + */ + maxApiBytes: number; + /** + * The maximum number of API calls. + * @type {number} + * @memberof PlanDto + */ + maxApiCalls: number; + /** + * The maximum allowed asset size. + * @type {number} + * @memberof PlanDto + */ + maxAssetSize: number; + /** + * The maximum number of contributors. + * @type {number} + * @memberof PlanDto + */ + maxContributors: number; +} + +/** + * Check if a given object implements the PlanDto interface. + */ +export function instanceOfPlanDto(value: object): value is PlanDto { + if (!('id' in value) || value['id'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('costs' in value) || value['costs'] === undefined) return false; + if (!('maxApiBytes' in value) || value['maxApiBytes'] === undefined) return false; + if (!('maxApiCalls' in value) || value['maxApiCalls'] === undefined) return false; + if (!('maxAssetSize' in value) || value['maxAssetSize'] === undefined) return false; + if (!('maxContributors' in value) || value['maxContributors'] === undefined) return false; + return true; +} + +export function PlanDtoFromJSON(json: any): PlanDto { + return PlanDtoFromJSONTyped(json, false); +} + +export function PlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanDto { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'name': json['name'], + 'costs': json['costs'], + 'confirmText': json['confirmText'] == null ? undefined : json['confirmText'], + 'yearlyConfirmText': json['yearlyConfirmText'] == null ? undefined : json['yearlyConfirmText'], + 'yearlyCosts': json['yearlyCosts'] == null ? undefined : json['yearlyCosts'], + 'yearlyId': json['yearlyId'] == null ? undefined : json['yearlyId'], + 'maxApiBytes': json['maxApiBytes'], + 'maxApiCalls': json['maxApiCalls'], + 'maxAssetSize': json['maxAssetSize'], + 'maxContributors': json['maxContributors'], + }; +} + +export function PlanDtoToJSON(value?: PlanDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'id': value['id'], + 'name': value['name'], + 'costs': value['costs'], + 'confirmText': value['confirmText'], + 'yearlyConfirmText': value['yearlyConfirmText'], + 'yearlyCosts': value['yearlyCosts'], + 'yearlyId': value['yearlyId'], + 'maxApiBytes': value['maxApiBytes'], + 'maxApiCalls': value['maxApiCalls'], + 'maxAssetSize': value['maxAssetSize'], + 'maxContributors': value['maxContributors'], + }; +} diff --git a/src/generated/models/PlansDto.ts b/src/generated/models/PlansDto.ts new file mode 100644 index 0000000..907c99e --- /dev/null +++ b/src/generated/models/PlansDto.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ReferralInfo } from './ReferralInfo'; +import { + ReferralInfoFromJSON, + ReferralInfoFromJSONTyped, + ReferralInfoToJSON, +} from './ReferralInfo'; +import type { PlanDto } from './PlanDto'; +import { + PlanDtoFromJSON, + PlanDtoFromJSONTyped, + PlanDtoToJSON, +} from './PlanDto'; +import type { PlansLockedReason } from './PlansLockedReason'; +import { + PlansLockedReasonFromJSON, + PlansLockedReasonFromJSONTyped, + PlansLockedReasonToJSON, +} from './PlansLockedReason'; + +/** + * + * @export + * @interface PlansDto + */ +export interface PlansDto { + /** + * The available plans. + * @type {Array} + * @memberof PlansDto + */ + plans: Array; + /** + * The current plan id. + * @type {string} + * @memberof PlansDto + */ + currentPlanId?: string | null; + /** + * The plan owner. + * @type {string} + * @memberof PlansDto + */ + planOwner?: string | null; + /** + * The link to the management portal. + * @type {string} + * @memberof PlansDto + */ + portalLink?: string | null; + /** + * + * @type {ReferralInfo} + * @memberof PlansDto + */ + referral?: ReferralInfo; + /** + * + * @type {PlansLockedReason} + * @memberof PlansDto + */ + locked: PlansLockedReason; +} + + + +/** + * Check if a given object implements the PlansDto interface. + */ +export function instanceOfPlansDto(value: object): value is PlansDto { + if (!('plans' in value) || value['plans'] === undefined) return false; + if (!('locked' in value) || value['locked'] === undefined) return false; + return true; +} + +export function PlansDtoFromJSON(json: any): PlansDto { + return PlansDtoFromJSONTyped(json, false); +} + +export function PlansDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansDto { + if (json == null) { + return json; + } + return { + + 'plans': ((json['plans'] as Array).map(PlanDtoFromJSON)), + 'currentPlanId': json['currentPlanId'] == null ? undefined : json['currentPlanId'], + 'planOwner': json['planOwner'] == null ? undefined : json['planOwner'], + 'portalLink': json['portalLink'] == null ? undefined : json['portalLink'], + 'referral': json['referral'] == null ? undefined : ReferralInfoFromJSON(json['referral']), + 'locked': PlansLockedReasonFromJSON(json['locked']), + }; +} + +export function PlansDtoToJSON(value?: PlansDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'plans': ((value['plans'] as Array).map(PlanDtoToJSON)), + 'currentPlanId': value['currentPlanId'], + 'planOwner': value['planOwner'], + 'portalLink': value['portalLink'], + 'referral': ReferralInfoToJSON(value['referral']), + 'locked': PlansLockedReasonToJSON(value['locked']), + }; +} diff --git a/src/generated/models/PlansLockedReason.ts b/src/generated/models/PlansLockedReason.ts new file mode 100644 index 0000000..cab6e0f --- /dev/null +++ b/src/generated/models/PlansLockedReason.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const PlansLockedReason = { + None: 'None', + NotOwner: 'NotOwner', + NoPermission: 'NoPermission', + ManagedByTeam: 'ManagedByTeam' +} as const; +export type PlansLockedReason = typeof PlansLockedReason[keyof typeof PlansLockedReason]; + + +export function instanceOfPlansLockedReason(value: any): boolean { + for (const key in PlansLockedReason) { + if (Object.prototype.hasOwnProperty.call(PlansLockedReason, key)) { + if (PlansLockedReason[key as keyof typeof PlansLockedReason] === value) { + return true; + } + } + } + return false; +} + +export function PlansLockedReasonFromJSON(json: any): PlansLockedReason { + return PlansLockedReasonFromJSONTyped(json, false); +} + +export function PlansLockedReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansLockedReason { + return json as PlansLockedReason; +} + +export function PlansLockedReasonToJSON(value?: PlansLockedReason | null): any { + return value as any; +} + diff --git a/src/generated/models/PrerenderRuleActionDto.ts b/src/generated/models/PrerenderRuleActionDto.ts new file mode 100644 index 0000000..a280e3a --- /dev/null +++ b/src/generated/models/PrerenderRuleActionDto.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface PrerenderRuleActionDto + */ +export interface PrerenderRuleActionDto extends RuleActionDto { + /** + * The prerender token from your account. + * @type {string} + * @memberof PrerenderRuleActionDto + */ + token: string; + /** + * The url to recache. + * @type {string} + * @memberof PrerenderRuleActionDto + */ + url: string; +} + +/** + * Check if a given object implements the PrerenderRuleActionDto interface. + */ +export function instanceOfPrerenderRuleActionDto(value: object): value is PrerenderRuleActionDto { + if (!('token' in value) || value['token'] === undefined) return false; + if (!('url' in value) || value['url'] === undefined) return false; + return true; +} + +export function PrerenderRuleActionDtoFromJSON(json: any): PrerenderRuleActionDto { + return PrerenderRuleActionDtoFromJSONTyped(json, false); +} + +export function PrerenderRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrerenderRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'token': json['token'], + 'url': json['url'], + }; +} + +export function PrerenderRuleActionDtoToJSON(value?: PrerenderRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'token': value['token'], + 'url': value['url'], + }; +} diff --git a/src/generated/models/QueryDto.ts b/src/generated/models/QueryDto.ts new file mode 100644 index 0000000..1e29744 --- /dev/null +++ b/src/generated/models/QueryDto.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface QueryDto + */ +export interface QueryDto { + /** + * The optional list of ids to query. + * @type {Array} + * @memberof QueryDto + */ + ids?: Array | null; + /** + * The optional odata query. + * @type {string} + * @memberof QueryDto + */ + oData?: string | null; + /** + * The optional json query. + * @type {any} + * @memberof QueryDto + */ + q?: any | null; + /** + * The parent id (for assets). + * @type {string} + * @memberof QueryDto + */ + parentId?: string | null; +} + +/** + * Check if a given object implements the QueryDto interface. + */ +export function instanceOfQueryDto(value: object): value is QueryDto { + return true; +} + +export function QueryDtoFromJSON(json: any): QueryDto { + return QueryDtoFromJSONTyped(json, false); +} + +export function QueryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueryDto { + if (json == null) { + return json; + } + return { + + 'ids': json['ids'] == null ? undefined : json['ids'], + 'oData': json['oData'] == null ? undefined : json['oData'], + 'q': json['q'] == null ? undefined : json['q'], + 'parentId': json['parentId'] == null ? undefined : json['parentId'], + }; +} + +export function QueryDtoToJSON(value?: QueryDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'ids': value['ids'], + 'oData': value['oData'], + 'q': value['q'], + 'parentId': value['parentId'], + }; +} diff --git a/src/generated/models/QueryJsonDto.ts b/src/generated/models/QueryJsonDto.ts new file mode 100644 index 0000000..e429b3e --- /dev/null +++ b/src/generated/models/QueryJsonDto.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SortNode } from './SortNode'; +import { + SortNodeFromJSON, + SortNodeFromJSONTyped, + SortNodeToJSON, +} from './SortNode'; + +/** + * + * @export + * @interface QueryJsonDto + */ +export interface QueryJsonDto { + /** + * + * @type {any} + * @memberof QueryJsonDto + */ + filter?: any | null; + /** + * + * @type {string} + * @memberof QueryJsonDto + */ + fullText?: string | null; + /** + * + * @type {number} + * @memberof QueryJsonDto + */ + skip: number; + /** + * + * @type {number} + * @memberof QueryJsonDto + */ + take: number; + /** + * + * @type {number} + * @memberof QueryJsonDto + */ + random: number; + /** + * + * @type {number} + * @memberof QueryJsonDto + */ + top: number; + /** + * + * @type {Array} + * @memberof QueryJsonDto + */ + sort?: Array | null; +} + +/** + * Check if a given object implements the QueryJsonDto interface. + */ +export function instanceOfQueryJsonDto(value: object): value is QueryJsonDto { + if (!('skip' in value) || value['skip'] === undefined) return false; + if (!('take' in value) || value['take'] === undefined) return false; + if (!('random' in value) || value['random'] === undefined) return false; + if (!('top' in value) || value['top'] === undefined) return false; + return true; +} + +export function QueryJsonDtoFromJSON(json: any): QueryJsonDto { + return QueryJsonDtoFromJSONTyped(json, false); +} + +export function QueryJsonDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueryJsonDto { + if (json == null) { + return json; + } + return { + + 'filter': json['filter'] == null ? undefined : json['filter'], + 'fullText': json['fullText'] == null ? undefined : json['fullText'], + 'skip': json['skip'], + 'take': json['take'], + 'random': json['random'], + 'top': json['top'], + 'sort': json['sort'] == null ? undefined : ((json['sort'] as Array).map(SortNodeFromJSON)), + }; +} + +export function QueryJsonDtoToJSON(value?: QueryJsonDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'filter': value['filter'], + 'fullText': value['fullText'], + 'skip': value['skip'], + 'take': value['take'], + 'random': value['random'], + 'top': value['top'], + 'sort': value['sort'] == null ? undefined : ((value['sort'] as Array).map(SortNodeToJSON)), + }; +} diff --git a/src/generated/models/ReferencesFieldEditor.ts b/src/generated/models/ReferencesFieldEditor.ts new file mode 100644 index 0000000..a1cefcd --- /dev/null +++ b/src/generated/models/ReferencesFieldEditor.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ReferencesFieldEditor = { + List: 'List', + Dropdown: 'Dropdown', + Tags: 'Tags', + Checkboxes: 'Checkboxes', + Input: 'Input', + Radio: 'Radio' +} as const; +export type ReferencesFieldEditor = typeof ReferencesFieldEditor[keyof typeof ReferencesFieldEditor]; + + +export function instanceOfReferencesFieldEditor(value: any): boolean { + for (const key in ReferencesFieldEditor) { + if (Object.prototype.hasOwnProperty.call(ReferencesFieldEditor, key)) { + if (ReferencesFieldEditor[key as keyof typeof ReferencesFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function ReferencesFieldEditorFromJSON(json: any): ReferencesFieldEditor { + return ReferencesFieldEditorFromJSONTyped(json, false); +} + +export function ReferencesFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferencesFieldEditor { + return json as ReferencesFieldEditor; +} + +export function ReferencesFieldEditorToJSON(value?: ReferencesFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/ReferencesFieldPropertiesDto.ts b/src/generated/models/ReferencesFieldPropertiesDto.ts new file mode 100644 index 0000000..03b39d3 --- /dev/null +++ b/src/generated/models/ReferencesFieldPropertiesDto.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { ReferencesFieldEditor } from './ReferencesFieldEditor'; +import { + ReferencesFieldEditorFromJSON, + ReferencesFieldEditorFromJSONTyped, + ReferencesFieldEditorToJSON, +} from './ReferencesFieldEditor'; + +/** + * + * @export + * @interface ReferencesFieldPropertiesDto + */ +export interface ReferencesFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {{ [key: string]: Array; }} + * @memberof ReferencesFieldPropertiesDto + */ + defaultValues?: { [key: string]: Array; }; + /** + * The default value as a list of content ids. + * @type {Array} + * @memberof ReferencesFieldPropertiesDto + */ + defaultValue?: Array | null; + /** + * The minimum allowed items for the field value. + * @type {number} + * @memberof ReferencesFieldPropertiesDto + */ + minItems?: number | null; + /** + * The maximum allowed items for the field value. + * @type {number} + * @memberof ReferencesFieldPropertiesDto + */ + maxItems?: number | null; + /** + * True, if duplicate values are allowed. + * @type {boolean} + * @memberof ReferencesFieldPropertiesDto + */ + allowDuplicates?: boolean; + /** + * True to resolve references in the content list. + * @type {boolean} + * @memberof ReferencesFieldPropertiesDto + */ + resolveReference?: boolean; + /** + * True when all references must be published. + * @type {boolean} + * @memberof ReferencesFieldPropertiesDto + */ + mustBePublished?: boolean; + /** + * The initial query that is applied in the UI. + * @type {string} + * @memberof ReferencesFieldPropertiesDto + */ + query?: string | null; + /** + * + * @type {ReferencesFieldEditor} + * @memberof ReferencesFieldPropertiesDto + */ + editor?: ReferencesFieldEditor; + /** + * The ID of the referenced schemas. + * @type {Array} + * @memberof ReferencesFieldPropertiesDto + */ + schemaIds?: Array | null; +} + + + +/** + * Check if a given object implements the ReferencesFieldPropertiesDto interface. + */ +export function instanceOfReferencesFieldPropertiesDto(value: object): value is ReferencesFieldPropertiesDto { + return true; +} + +export function ReferencesFieldPropertiesDtoFromJSON(json: any): ReferencesFieldPropertiesDto { + return ReferencesFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function ReferencesFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferencesFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], + 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], + 'minItems': json['minItems'] == null ? undefined : json['minItems'], + 'maxItems': json['maxItems'] == null ? undefined : json['maxItems'], + 'allowDuplicates': json['allowDuplicates'] == null ? undefined : json['allowDuplicates'], + 'resolveReference': json['resolveReference'] == null ? undefined : json['resolveReference'], + 'mustBePublished': json['mustBePublished'] == null ? undefined : json['mustBePublished'], + 'query': json['query'] == null ? undefined : json['query'], + 'editor': json['editor'] == null ? undefined : ReferencesFieldEditorFromJSON(json['editor']), + 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], + }; +} + +export function ReferencesFieldPropertiesDtoToJSON(value?: ReferencesFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'defaultValues': value['defaultValues'], + 'defaultValue': value['defaultValue'], + 'minItems': value['minItems'], + 'maxItems': value['maxItems'], + 'allowDuplicates': value['allowDuplicates'], + 'resolveReference': value['resolveReference'], + 'mustBePublished': value['mustBePublished'], + 'query': value['query'], + 'editor': ReferencesFieldEditorToJSON(value['editor']), + 'schemaIds': value['schemaIds'], + }; +} diff --git a/src/generated/models/ReferralInfo.ts b/src/generated/models/ReferralInfo.ts new file mode 100644 index 0000000..59b79bc --- /dev/null +++ b/src/generated/models/ReferralInfo.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ReferralInfo + */ +export interface ReferralInfo { + /** + * + * @type {string} + * @memberof ReferralInfo + */ + code: string; + /** + * + * @type {string} + * @memberof ReferralInfo + */ + earned: string; + /** + * + * @type {string} + * @memberof ReferralInfo + */ + condition: string; +} + +/** + * Check if a given object implements the ReferralInfo interface. + */ +export function instanceOfReferralInfo(value: object): value is ReferralInfo { + if (!('code' in value) || value['code'] === undefined) return false; + if (!('earned' in value) || value['earned'] === undefined) return false; + if (!('condition' in value) || value['condition'] === undefined) return false; + return true; +} + +export function ReferralInfoFromJSON(json: any): ReferralInfo { + return ReferralInfoFromJSONTyped(json, false); +} + +export function ReferralInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferralInfo { + if (json == null) { + return json; + } + return { + + 'code': json['code'], + 'earned': json['earned'], + 'condition': json['condition'], + }; +} + +export function ReferralInfoToJSON(value?: ReferralInfo | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'code': value['code'], + 'earned': value['earned'], + 'condition': value['condition'], + }; +} diff --git a/src/generated/models/RenameAssetFolderDto.ts b/src/generated/models/RenameAssetFolderDto.ts new file mode 100644 index 0000000..ef3bc11 --- /dev/null +++ b/src/generated/models/RenameAssetFolderDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RenameAssetFolderDto + */ +export interface RenameAssetFolderDto { + /** + * The name of the folder. + * @type {string} + * @memberof RenameAssetFolderDto + */ + folderName: string; +} + +/** + * Check if a given object implements the RenameAssetFolderDto interface. + */ +export function instanceOfRenameAssetFolderDto(value: object): value is RenameAssetFolderDto { + if (!('folderName' in value) || value['folderName'] === undefined) return false; + return true; +} + +export function RenameAssetFolderDtoFromJSON(json: any): RenameAssetFolderDto { + return RenameAssetFolderDtoFromJSONTyped(json, false); +} + +export function RenameAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameAssetFolderDto { + if (json == null) { + return json; + } + return { + + 'folderName': json['folderName'], + }; +} + +export function RenameAssetFolderDtoToJSON(value?: RenameAssetFolderDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'folderName': value['folderName'], + }; +} diff --git a/src/generated/models/RenameTagDto.ts b/src/generated/models/RenameTagDto.ts new file mode 100644 index 0000000..1d412bb --- /dev/null +++ b/src/generated/models/RenameTagDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RenameTagDto + */ +export interface RenameTagDto { + /** + * The new name for the tag. + * @type {string} + * @memberof RenameTagDto + */ + tagName: string; +} + +/** + * Check if a given object implements the RenameTagDto interface. + */ +export function instanceOfRenameTagDto(value: object): value is RenameTagDto { + if (!('tagName' in value) || value['tagName'] === undefined) return false; + return true; +} + +export function RenameTagDtoFromJSON(json: any): RenameTagDto { + return RenameTagDtoFromJSONTyped(json, false); +} + +export function RenameTagDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameTagDto { + if (json == null) { + return json; + } + return { + + 'tagName': json['tagName'], + }; +} + +export function RenameTagDtoToJSON(value?: RenameTagDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'tagName': value['tagName'], + }; +} diff --git a/src/generated/models/ReorderFieldsDto.ts b/src/generated/models/ReorderFieldsDto.ts new file mode 100644 index 0000000..1e973f5 --- /dev/null +++ b/src/generated/models/ReorderFieldsDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ReorderFieldsDto + */ +export interface ReorderFieldsDto { + /** + * The field ids in the target order. + * @type {Array} + * @memberof ReorderFieldsDto + */ + fieldIds: Array; +} + +/** + * Check if a given object implements the ReorderFieldsDto interface. + */ +export function instanceOfReorderFieldsDto(value: object): value is ReorderFieldsDto { + if (!('fieldIds' in value) || value['fieldIds'] === undefined) return false; + return true; +} + +export function ReorderFieldsDtoFromJSON(json: any): ReorderFieldsDto { + return ReorderFieldsDtoFromJSONTyped(json, false); +} + +export function ReorderFieldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReorderFieldsDto { + if (json == null) { + return json; + } + return { + + 'fieldIds': json['fieldIds'], + }; +} + +export function ReorderFieldsDtoToJSON(value?: ReorderFieldsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'fieldIds': value['fieldIds'], + }; +} diff --git a/src/generated/models/ResizeMode.ts b/src/generated/models/ResizeMode.ts new file mode 100644 index 0000000..c4da7e0 --- /dev/null +++ b/src/generated/models/ResizeMode.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ResizeMode = { + Crop: 'Crop', + CropUpsize: 'CropUpsize', + Pad: 'Pad', + BoxPad: 'BoxPad', + Max: 'Max', + Min: 'Min', + Stretch: 'Stretch' +} as const; +export type ResizeMode = typeof ResizeMode[keyof typeof ResizeMode]; + + +export function instanceOfResizeMode(value: any): boolean { + for (const key in ResizeMode) { + if (Object.prototype.hasOwnProperty.call(ResizeMode, key)) { + if (ResizeMode[key as keyof typeof ResizeMode] === value) { + return true; + } + } + } + return false; +} + +export function ResizeModeFromJSON(json: any): ResizeMode { + return ResizeModeFromJSONTyped(json, false); +} + +export function ResizeModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResizeMode { + return json as ResizeMode; +} + +export function ResizeModeToJSON(value?: ResizeMode | null): any { + return value as any; +} + diff --git a/src/generated/models/Resource.ts b/src/generated/models/Resource.ts new file mode 100644 index 0000000..a979bfa --- /dev/null +++ b/src/generated/models/Resource.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface Resource + */ +export interface Resource { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof Resource + */ + links: { [key: string]: ResourceLink; }; +} + +/** + * Check if a given object implements the Resource interface. + */ +export function instanceOfResource(value: object): value is Resource { + if (!('links' in value) || value['links'] === undefined) return false; + return true; +} + +export function ResourceFromJSON(json: any): Resource { + return ResourceFromJSONTyped(json, false); +} + +export function ResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resource { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + }; +} + +export function ResourceToJSON(value?: Resource | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + }; +} diff --git a/src/generated/models/ResourceLink.ts b/src/generated/models/ResourceLink.ts new file mode 100644 index 0000000..a0fd580 --- /dev/null +++ b/src/generated/models/ResourceLink.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ResourceLink + */ +export interface ResourceLink { + /** + * The link url. + * @type {string} + * @memberof ResourceLink + */ + href: string; + /** + * The link method. + * @type {string} + * @memberof ResourceLink + */ + method: string; + /** + * Additional data about the link. + * @type {string} + * @memberof ResourceLink + */ + metadata?: string | null; +} + +/** + * Check if a given object implements the ResourceLink interface. + */ +export function instanceOfResourceLink(value: object): value is ResourceLink { + if (!('href' in value) || value['href'] === undefined) return false; + if (!('method' in value) || value['method'] === undefined) return false; + return true; +} + +export function ResourceLinkFromJSON(json: any): ResourceLink { + return ResourceLinkFromJSONTyped(json, false); +} + +export function ResourceLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceLink { + if (json == null) { + return json; + } + return { + + 'href': json['href'], + 'method': json['method'], + 'metadata': json['metadata'] == null ? undefined : json['metadata'], + }; +} + +export function ResourceLinkToJSON(value?: ResourceLink | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'href': value['href'], + 'method': value['method'], + 'metadata': value['metadata'], + }; +} diff --git a/src/generated/models/ResourcesDto.ts b/src/generated/models/ResourcesDto.ts new file mode 100644 index 0000000..c1ee727 --- /dev/null +++ b/src/generated/models/ResourcesDto.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface ResourcesDto + */ +export interface ResourcesDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof ResourcesDto + */ + links: { [key: string]: ResourceLink; }; +} + +/** + * Check if a given object implements the ResourcesDto interface. + */ +export function instanceOfResourcesDto(value: object): value is ResourcesDto { + if (!('links' in value) || value['links'] === undefined) return false; + return true; +} + +export function ResourcesDtoFromJSON(json: any): ResourcesDto { + return ResourcesDtoFromJSONTyped(json, false); +} + +export function ResourcesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourcesDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + }; +} + +export function ResourcesDtoToJSON(value?: ResourcesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + }; +} diff --git a/src/generated/models/RestoreJobDto.ts b/src/generated/models/RestoreJobDto.ts new file mode 100644 index 0000000..1d63896 --- /dev/null +++ b/src/generated/models/RestoreJobDto.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { JobStatus } from './JobStatus'; +import { + JobStatusFromJSON, + JobStatusFromJSONTyped, + JobStatusToJSON, +} from './JobStatus'; + +/** + * + * @export + * @interface RestoreJobDto + */ +export interface RestoreJobDto { + /** + * The uri to load from. + * @type {string} + * @memberof RestoreJobDto + */ + url: string; + /** + * The status log. + * @type {Array} + * @memberof RestoreJobDto + */ + log: Array; + /** + * The time when the job has been started. + * @type {Date} + * @memberof RestoreJobDto + */ + started: Date; + /** + * The time when the job has been stopped. + * @type {Date} + * @memberof RestoreJobDto + */ + stopped?: Date | null; + /** + * + * @type {JobStatus} + * @memberof RestoreJobDto + */ + status: JobStatus; +} + + + +/** + * Check if a given object implements the RestoreJobDto interface. + */ +export function instanceOfRestoreJobDto(value: object): value is RestoreJobDto { + if (!('url' in value) || value['url'] === undefined) return false; + if (!('log' in value) || value['log'] === undefined) return false; + if (!('started' in value) || value['started'] === undefined) return false; + if (!('status' in value) || value['status'] === undefined) return false; + return true; +} + +export function RestoreJobDtoFromJSON(json: any): RestoreJobDto { + return RestoreJobDtoFromJSONTyped(json, false); +} + +export function RestoreJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestoreJobDto { + if (json == null) { + return json; + } + return { + + 'url': json['url'], + 'log': json['log'], + 'started': (new Date(json['started'])), + 'stopped': json['stopped'] == null ? undefined : (new Date(json['stopped'])), + 'status': JobStatusFromJSON(json['status']), + }; +} + +export function RestoreJobDtoToJSON(value?: RestoreJobDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'url': value['url'], + 'log': value['log'], + 'started': ((value['started']).toISOString()), + 'stopped': value['stopped'] == null ? undefined : ((value['stopped'] as any).toISOString()), + 'status': JobStatusToJSON(value['status']), + }; +} diff --git a/src/generated/models/RestoreRequestDto.ts b/src/generated/models/RestoreRequestDto.ts new file mode 100644 index 0000000..81e059b --- /dev/null +++ b/src/generated/models/RestoreRequestDto.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RestoreRequestDto + */ +export interface RestoreRequestDto { + /** + * The name of the app. + * @type {string} + * @memberof RestoreRequestDto + */ + name?: string | null; + /** + * The url to the restore file. + * @type {string} + * @memberof RestoreRequestDto + */ + url: string; +} + +/** + * Check if a given object implements the RestoreRequestDto interface. + */ +export function instanceOfRestoreRequestDto(value: object): value is RestoreRequestDto { + if (!('url' in value) || value['url'] === undefined) return false; + return true; +} + +export function RestoreRequestDtoFromJSON(json: any): RestoreRequestDto { + return RestoreRequestDtoFromJSONTyped(json, false); +} + +export function RestoreRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestoreRequestDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'] == null ? undefined : json['name'], + 'url': json['url'], + }; +} + +export function RestoreRequestDtoToJSON(value?: RestoreRequestDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'url': value['url'], + }; +} diff --git a/src/generated/models/RichTextFieldPropertiesDto.ts b/src/generated/models/RichTextFieldPropertiesDto.ts new file mode 100644 index 0000000..bf8daff --- /dev/null +++ b/src/generated/models/RichTextFieldPropertiesDto.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; + +/** + * + * @export + * @interface RichTextFieldPropertiesDto + */ +export interface RichTextFieldPropertiesDto extends FieldPropertiesDto { + /** + * The initial id to the folder when the control supports file uploads. + * @type {string} + * @memberof RichTextFieldPropertiesDto + */ + folderId?: string | null; + /** + * The minimum allowed length for the field value. + * @type {number} + * @memberof RichTextFieldPropertiesDto + */ + minLength?: number | null; + /** + * The maximum allowed length for the field value. + * @type {number} + * @memberof RichTextFieldPropertiesDto + */ + maxLength?: number | null; + /** + * The minimum allowed of normal characters for the field value. + * @type {number} + * @memberof RichTextFieldPropertiesDto + */ + minCharacters?: number | null; + /** + * The maximum allowed of normal characters for the field value. + * @type {number} + * @memberof RichTextFieldPropertiesDto + */ + maxCharacters?: number | null; + /** + * The minimum allowed number of words for the field value. + * @type {number} + * @memberof RichTextFieldPropertiesDto + */ + minWords?: number | null; + /** + * The maximum allowed number of words for the field value. + * @type {number} + * @memberof RichTextFieldPropertiesDto + */ + maxWords?: number | null; + /** + * The class names for the editor. + * @type {Array} + * @memberof RichTextFieldPropertiesDto + */ + classNames?: Array | null; + /** + * The allowed schema ids that can be embedded. + * @type {Array} + * @memberof RichTextFieldPropertiesDto + */ + schemaIds?: Array | null; +} + +/** + * Check if a given object implements the RichTextFieldPropertiesDto interface. + */ +export function instanceOfRichTextFieldPropertiesDto(value: object): value is RichTextFieldPropertiesDto { + return true; +} + +export function RichTextFieldPropertiesDtoFromJSON(json: any): RichTextFieldPropertiesDto { + return RichTextFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function RichTextFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'folderId': json['folderId'] == null ? undefined : json['folderId'], + 'minLength': json['minLength'] == null ? undefined : json['minLength'], + 'maxLength': json['maxLength'] == null ? undefined : json['maxLength'], + 'minCharacters': json['minCharacters'] == null ? undefined : json['minCharacters'], + 'maxCharacters': json['maxCharacters'] == null ? undefined : json['maxCharacters'], + 'minWords': json['minWords'] == null ? undefined : json['minWords'], + 'maxWords': json['maxWords'] == null ? undefined : json['maxWords'], + 'classNames': json['classNames'] == null ? undefined : json['classNames'], + 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], + }; +} + +export function RichTextFieldPropertiesDtoToJSON(value?: RichTextFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'folderId': value['folderId'], + 'minLength': value['minLength'], + 'maxLength': value['maxLength'], + 'minCharacters': value['minCharacters'], + 'maxCharacters': value['maxCharacters'], + 'minWords': value['minWords'], + 'maxWords': value['maxWords'], + 'classNames': value['classNames'], + 'schemaIds': value['schemaIds'], + }; +} diff --git a/src/generated/models/RoleDto.ts b/src/generated/models/RoleDto.ts new file mode 100644 index 0000000..378e00d --- /dev/null +++ b/src/generated/models/RoleDto.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface RoleDto + */ +export interface RoleDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof RoleDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The role name. + * @type {string} + * @memberof RoleDto + */ + name: string; + /** + * The number of clients with this role. + * @type {number} + * @memberof RoleDto + */ + numClients: number; + /** + * The number of contributors with this role. + * @type {number} + * @memberof RoleDto + */ + numContributors: number; + /** + * Indicates if the role is an builtin default role. + * @type {boolean} + * @memberof RoleDto + */ + isDefaultRole: boolean; + /** + * Associated list of permissions. + * @type {Array} + * @memberof RoleDto + */ + permissions: Array; + /** + * Associated list of UI properties. + * @type {{ [key: string]: any; }} + * @memberof RoleDto + */ + properties: { [key: string]: any; }; +} + +/** + * Check if a given object implements the RoleDto interface. + */ +export function instanceOfRoleDto(value: object): value is RoleDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('numClients' in value) || value['numClients'] === undefined) return false; + if (!('numContributors' in value) || value['numContributors'] === undefined) return false; + if (!('isDefaultRole' in value) || value['isDefaultRole'] === undefined) return false; + if (!('permissions' in value) || value['permissions'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function RoleDtoFromJSON(json: any): RoleDto { + return RoleDtoFromJSONTyped(json, false); +} + +export function RoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'name': json['name'], + 'numClients': json['numClients'], + 'numContributors': json['numContributors'], + 'isDefaultRole': json['isDefaultRole'], + 'permissions': json['permissions'], + 'properties': json['properties'], + }; +} + +export function RoleDtoToJSON(value?: RoleDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'name': value['name'], + 'numClients': value['numClients'], + 'numContributors': value['numContributors'], + 'isDefaultRole': value['isDefaultRole'], + 'permissions': value['permissions'], + 'properties': value['properties'], + }; +} diff --git a/src/generated/models/RolesDto.ts b/src/generated/models/RolesDto.ts new file mode 100644 index 0000000..8f286c9 --- /dev/null +++ b/src/generated/models/RolesDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RoleDto } from './RoleDto'; +import { + RoleDtoFromJSON, + RoleDtoFromJSONTyped, + RoleDtoToJSON, +} from './RoleDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface RolesDto + */ +export interface RolesDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof RolesDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The roles. + * @type {Array} + * @memberof RolesDto + */ + items: Array; +} + +/** + * Check if a given object implements the RolesDto interface. + */ +export function instanceOfRolesDto(value: object): value is RolesDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function RolesDtoFromJSON(json: any): RolesDto { + return RolesDtoFromJSONTyped(json, false); +} + +export function RolesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RolesDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(RoleDtoFromJSON)), + }; +} + +export function RolesDtoToJSON(value?: RolesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(RoleDtoToJSON)), + }; +} diff --git a/src/generated/models/RuleActionDto.ts b/src/generated/models/RuleActionDto.ts new file mode 100644 index 0000000..38553d0 --- /dev/null +++ b/src/generated/models/RuleActionDto.ts @@ -0,0 +1,190 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import { AlgoliaRuleActionDto, AlgoliaRuleActionDtoFromJSONTyped, AlgoliaRuleActionDtoToJSON } from './AlgoliaRuleActionDto'; +import { AzureQueueRuleActionDto, AzureQueueRuleActionDtoFromJSONTyped, AzureQueueRuleActionDtoToJSON } from './AzureQueueRuleActionDto'; +import { CommentRuleActionDto, CommentRuleActionDtoFromJSONTyped, CommentRuleActionDtoToJSON } from './CommentRuleActionDto'; +import { CreateContentRuleActionDto, CreateContentRuleActionDtoFromJSONTyped, CreateContentRuleActionDtoToJSON } from './CreateContentRuleActionDto'; +import { DiscourseRuleActionDto, DiscourseRuleActionDtoFromJSONTyped, DiscourseRuleActionDtoToJSON } from './DiscourseRuleActionDto'; +import { ElasticSearchRuleActionDto, ElasticSearchRuleActionDtoFromJSONTyped, ElasticSearchRuleActionDtoToJSON } from './ElasticSearchRuleActionDto'; +import { EmailRuleActionDto, EmailRuleActionDtoFromJSONTyped, EmailRuleActionDtoToJSON } from './EmailRuleActionDto'; +import { FastlyRuleActionDto, FastlyRuleActionDtoFromJSONTyped, FastlyRuleActionDtoToJSON } from './FastlyRuleActionDto'; +import { MediumRuleActionDto, MediumRuleActionDtoFromJSONTyped, MediumRuleActionDtoToJSON } from './MediumRuleActionDto'; +import { NotificationRuleActionDto, NotificationRuleActionDtoFromJSONTyped, NotificationRuleActionDtoToJSON } from './NotificationRuleActionDto'; +import { OpenSearchRuleActionDto, OpenSearchRuleActionDtoFromJSONTyped, OpenSearchRuleActionDtoToJSON } from './OpenSearchRuleActionDto'; +import { PrerenderRuleActionDto, PrerenderRuleActionDtoFromJSONTyped, PrerenderRuleActionDtoToJSON } from './PrerenderRuleActionDto'; +import { ScriptRuleActionDto, ScriptRuleActionDtoFromJSONTyped, ScriptRuleActionDtoToJSON } from './ScriptRuleActionDto'; +import { SignalRRuleActionDto, SignalRRuleActionDtoFromJSONTyped, SignalRRuleActionDtoToJSON } from './SignalRRuleActionDto'; +import { SlackRuleActionDto, SlackRuleActionDtoFromJSONTyped, SlackRuleActionDtoToJSON } from './SlackRuleActionDto'; +import { TweetRuleActionDto, TweetRuleActionDtoFromJSONTyped, TweetRuleActionDtoToJSON } from './TweetRuleActionDto'; +import { TypesenseRuleActionDto, TypesenseRuleActionDtoFromJSONTyped, TypesenseRuleActionDtoToJSON } from './TypesenseRuleActionDto'; +import { WebhookRuleActionDto, WebhookRuleActionDtoFromJSONTyped, WebhookRuleActionDtoToJSON } from './WebhookRuleActionDto'; +/** + * + * @export + * @interface RuleActionDto + */ +export interface RuleActionDto { + /** + * + * @type {string} + * @memberof RuleActionDto + */ + actionType: string; +} + +/** + * Check if a given object implements the RuleActionDto interface. + */ +export function instanceOfRuleActionDto(value: object): value is RuleActionDto { + if (!('actionType' in value) || value['actionType'] === undefined) return false; + return true; +} + +export function RuleActionDtoFromJSON(json: any): RuleActionDto { + return RuleActionDtoFromJSONTyped(json, false); +} + +export function RuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleActionDto { + if (json == null) { + return json; + } + if (!ignoreDiscriminator) { + if (json['actionType'] === 'Algolia') { + return AlgoliaRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'AzureQueue') { + return AzureQueueRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Comment') { + return CommentRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'CreateContent') { + return CreateContentRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Discourse') { + return DiscourseRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'ElasticSearch') { + return ElasticSearchRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Email') { + return EmailRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Fastly') { + return FastlyRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Medium') { + return MediumRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Notification') { + return NotificationRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'OpenSearch') { + return OpenSearchRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Prerender') { + return PrerenderRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Script') { + return ScriptRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'SignalR') { + return SignalRRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Slack') { + return SlackRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Tweet') { + return TweetRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Typesense') { + return TypesenseRuleActionDtoFromJSONTyped(json, true); + } + if (json['actionType'] === 'Webhook') { + return WebhookRuleActionDtoFromJSONTyped(json, true); + } + } + return { + + 'actionType': json['actionType'], + }; +} + +export function RuleActionDtoToJSON(value?: RuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + if (!ignoreDiscriminator) { + if (value['actionType'] === 'Algolia') { + return AlgoliaRuleActionDtoToJSON(value as AlgoliaRuleActionDto, true); + } + if (value['actionType'] === 'AzureQueue') { + return AzureQueueRuleActionDtoToJSON(value as AzureQueueRuleActionDto, true); + } + if (value['actionType'] === 'Comment') { + return CommentRuleActionDtoToJSON(value as CommentRuleActionDto, true); + } + if (value['actionType'] === 'CreateContent') { + return CreateContentRuleActionDtoToJSON(value as CreateContentRuleActionDto, true); + } + if (value['actionType'] === 'Discourse') { + return DiscourseRuleActionDtoToJSON(value as DiscourseRuleActionDto, true); + } + if (value['actionType'] === 'ElasticSearch') { + return ElasticSearchRuleActionDtoToJSON(value as ElasticSearchRuleActionDto, true); + } + if (value['actionType'] === 'Email') { + return EmailRuleActionDtoToJSON(value as EmailRuleActionDto, true); + } + if (value['actionType'] === 'Fastly') { + return FastlyRuleActionDtoToJSON(value as FastlyRuleActionDto, true); + } + if (value['actionType'] === 'Medium') { + return MediumRuleActionDtoToJSON(value as MediumRuleActionDto, true); + } + if (value['actionType'] === 'Notification') { + return NotificationRuleActionDtoToJSON(value as NotificationRuleActionDto, true); + } + if (value['actionType'] === 'OpenSearch') { + return OpenSearchRuleActionDtoToJSON(value as OpenSearchRuleActionDto, true); + } + if (value['actionType'] === 'Prerender') { + return PrerenderRuleActionDtoToJSON(value as PrerenderRuleActionDto, true); + } + if (value['actionType'] === 'Script') { + return ScriptRuleActionDtoToJSON(value as ScriptRuleActionDto, true); + } + if (value['actionType'] === 'SignalR') { + return SignalRRuleActionDtoToJSON(value as SignalRRuleActionDto, true); + } + if (value['actionType'] === 'Slack') { + return SlackRuleActionDtoToJSON(value as SlackRuleActionDto, true); + } + if (value['actionType'] === 'Tweet') { + return TweetRuleActionDtoToJSON(value as TweetRuleActionDto, true); + } + if (value['actionType'] === 'Typesense') { + return TypesenseRuleActionDtoToJSON(value as TypesenseRuleActionDto, true); + } + if (value['actionType'] === 'Webhook') { + return WebhookRuleActionDtoToJSON(value as WebhookRuleActionDto, true); + } + } + return { + + 'actionType': value['actionType'], + }; +} diff --git a/src/generated/models/RuleDto.ts b/src/generated/models/RuleDto.ts new file mode 100644 index 0000000..21380ad --- /dev/null +++ b/src/generated/models/RuleDto.ts @@ -0,0 +1,195 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface RuleDto + */ +export interface RuleDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof RuleDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the rule. + * @type {string} + * @memberof RuleDto + */ + id: string; + /** + * The user that has created the rule. + * @type {string} + * @memberof RuleDto + */ + createdBy: string; + /** + * The user that has updated the rule. + * @type {string} + * @memberof RuleDto + */ + lastModifiedBy: string; + /** + * The date and time when the rule has been created. + * @type {Date} + * @memberof RuleDto + */ + created: Date; + /** + * The date and time when the rule has been modified last. + * @type {Date} + * @memberof RuleDto + */ + lastModified: Date; + /** + * The version of the rule. + * @type {number} + * @memberof RuleDto + */ + version: number; + /** + * Determines if the rule is enabled. + * @type {boolean} + * @memberof RuleDto + */ + isEnabled: boolean; + /** + * Optional rule name. + * @type {string} + * @memberof RuleDto + */ + name?: string | null; + /** + * + * @type {RuleTriggerDto} + * @memberof RuleDto + */ + trigger: RuleTriggerDto; + /** + * + * @type {RuleActionDto} + * @memberof RuleDto + */ + action: RuleActionDto; + /** + * The number of completed executions. + * @type {number} + * @memberof RuleDto + */ + numSucceeded: number; + /** + * The number of failed executions. + * @type {number} + * @memberof RuleDto + */ + numFailed: number; + /** + * The date and time when the rule was executed the last time. + * @type {Date} + * @memberof RuleDto + * @deprecated + */ + lastExecuted?: Date | null; +} + +/** + * Check if a given object implements the RuleDto interface. + */ +export function instanceOfRuleDto(value: object): value is RuleDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('createdBy' in value) || value['createdBy'] === undefined) return false; + if (!('lastModifiedBy' in value) || value['lastModifiedBy'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('lastModified' in value) || value['lastModified'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false; + if (!('trigger' in value) || value['trigger'] === undefined) return false; + if (!('action' in value) || value['action'] === undefined) return false; + if (!('numSucceeded' in value) || value['numSucceeded'] === undefined) return false; + if (!('numFailed' in value) || value['numFailed'] === undefined) return false; + return true; +} + +export function RuleDtoFromJSON(json: any): RuleDto { + return RuleDtoFromJSONTyped(json, false); +} + +export function RuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'createdBy': json['createdBy'], + 'lastModifiedBy': json['lastModifiedBy'], + 'created': (new Date(json['created'])), + 'lastModified': (new Date(json['lastModified'])), + 'version': json['version'], + 'isEnabled': json['isEnabled'], + 'name': json['name'] == null ? undefined : json['name'], + 'trigger': RuleTriggerDtoFromJSON(json['trigger']), + 'action': RuleActionDtoFromJSON(json['action']), + 'numSucceeded': json['numSucceeded'], + 'numFailed': json['numFailed'], + 'lastExecuted': json['lastExecuted'] == null ? undefined : (new Date(json['lastExecuted'])), + }; +} + +export function RuleDtoToJSON(value?: RuleDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'createdBy': value['createdBy'], + 'lastModifiedBy': value['lastModifiedBy'], + 'created': ((value['created']).toISOString()), + 'lastModified': ((value['lastModified']).toISOString()), + 'version': value['version'], + 'isEnabled': value['isEnabled'], + 'name': value['name'], + 'trigger': RuleTriggerDtoToJSON(value['trigger']), + 'action': RuleActionDtoToJSON(value['action']), + 'numSucceeded': value['numSucceeded'], + 'numFailed': value['numFailed'], + 'lastExecuted': value['lastExecuted'] == null ? undefined : ((value['lastExecuted'] as any).toISOString()), + }; +} diff --git a/src/generated/models/RuleElementDto.ts b/src/generated/models/RuleElementDto.ts new file mode 100644 index 0000000..1d5b344 --- /dev/null +++ b/src/generated/models/RuleElementDto.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleElementPropertyDto } from './RuleElementPropertyDto'; +import { + RuleElementPropertyDtoFromJSON, + RuleElementPropertyDtoFromJSONTyped, + RuleElementPropertyDtoToJSON, +} from './RuleElementPropertyDto'; + +/** + * + * @export + * @interface RuleElementDto + */ +export interface RuleElementDto { + /** + * Describes the action or trigger type. + * @type {string} + * @memberof RuleElementDto + */ + description: string; + /** + * The label for the action or trigger type. + * @type {string} + * @memberof RuleElementDto + */ + display: string; + /** + * Optional title. + * @type {string} + * @memberof RuleElementDto + */ + title?: string | null; + /** + * The color for the icon. + * @type {string} + * @memberof RuleElementDto + */ + iconColor?: string | null; + /** + * The image for the icon. + * @type {string} + * @memberof RuleElementDto + */ + iconImage?: string | null; + /** + * The optional link to the product that is integrated. + * @type {string} + * @memberof RuleElementDto + */ + readMore?: string | null; + /** + * The properties. + * @type {Array} + * @memberof RuleElementDto + */ + properties: Array; +} + +/** + * Check if a given object implements the RuleElementDto interface. + */ +export function instanceOfRuleElementDto(value: object): value is RuleElementDto { + if (!('description' in value) || value['description'] === undefined) return false; + if (!('display' in value) || value['display'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function RuleElementDtoFromJSON(json: any): RuleElementDto { + return RuleElementDtoFromJSONTyped(json, false); +} + +export function RuleElementDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleElementDto { + if (json == null) { + return json; + } + return { + + 'description': json['description'], + 'display': json['display'], + 'title': json['title'] == null ? undefined : json['title'], + 'iconColor': json['iconColor'] == null ? undefined : json['iconColor'], + 'iconImage': json['iconImage'] == null ? undefined : json['iconImage'], + 'readMore': json['readMore'] == null ? undefined : json['readMore'], + 'properties': ((json['properties'] as Array).map(RuleElementPropertyDtoFromJSON)), + }; +} + +export function RuleElementDtoToJSON(value?: RuleElementDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'description': value['description'], + 'display': value['display'], + 'title': value['title'], + 'iconColor': value['iconColor'], + 'iconImage': value['iconImage'], + 'readMore': value['readMore'], + 'properties': ((value['properties'] as Array).map(RuleElementPropertyDtoToJSON)), + }; +} diff --git a/src/generated/models/RuleElementPropertyDto.ts b/src/generated/models/RuleElementPropertyDto.ts new file mode 100644 index 0000000..79e74da --- /dev/null +++ b/src/generated/models/RuleElementPropertyDto.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleFieldEditor } from './RuleFieldEditor'; +import { + RuleFieldEditorFromJSON, + RuleFieldEditorFromJSONTyped, + RuleFieldEditorToJSON, +} from './RuleFieldEditor'; + +/** + * + * @export + * @interface RuleElementPropertyDto + */ +export interface RuleElementPropertyDto { + /** + * + * @type {RuleFieldEditor} + * @memberof RuleElementPropertyDto + */ + editor: RuleFieldEditor; + /** + * The name of the editor. + * @type {string} + * @memberof RuleElementPropertyDto + */ + name: string; + /** + * The label to use. + * @type {string} + * @memberof RuleElementPropertyDto + */ + display: string; + /** + * The options, if the editor is a dropdown. + * @type {Array} + * @memberof RuleElementPropertyDto + */ + options?: Array | null; + /** + * The optional description. + * @type {string} + * @memberof RuleElementPropertyDto + */ + description?: string | null; + /** + * Indicates if the property is formattable. + * @type {boolean} + * @memberof RuleElementPropertyDto + */ + isFormattable: boolean; + /** + * Indicates if the property is required. + * @type {boolean} + * @memberof RuleElementPropertyDto + */ + isRequired: boolean; +} + + + +/** + * Check if a given object implements the RuleElementPropertyDto interface. + */ +export function instanceOfRuleElementPropertyDto(value: object): value is RuleElementPropertyDto { + if (!('editor' in value) || value['editor'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('display' in value) || value['display'] === undefined) return false; + if (!('isFormattable' in value) || value['isFormattable'] === undefined) return false; + if (!('isRequired' in value) || value['isRequired'] === undefined) return false; + return true; +} + +export function RuleElementPropertyDtoFromJSON(json: any): RuleElementPropertyDto { + return RuleElementPropertyDtoFromJSONTyped(json, false); +} + +export function RuleElementPropertyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleElementPropertyDto { + if (json == null) { + return json; + } + return { + + 'editor': RuleFieldEditorFromJSON(json['editor']), + 'name': json['name'], + 'display': json['display'], + 'options': json['options'] == null ? undefined : json['options'], + 'description': json['description'] == null ? undefined : json['description'], + 'isFormattable': json['isFormattable'], + 'isRequired': json['isRequired'], + }; +} + +export function RuleElementPropertyDtoToJSON(value?: RuleElementPropertyDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'editor': RuleFieldEditorToJSON(value['editor']), + 'name': value['name'], + 'display': value['display'], + 'options': value['options'], + 'description': value['description'], + 'isFormattable': value['isFormattable'], + 'isRequired': value['isRequired'], + }; +} diff --git a/src/generated/models/RuleEventDto.ts b/src/generated/models/RuleEventDto.ts new file mode 100644 index 0000000..09f914e --- /dev/null +++ b/src/generated/models/RuleEventDto.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleJobResult } from './RuleJobResult'; +import { + RuleJobResultFromJSON, + RuleJobResultFromJSONTyped, + RuleJobResultToJSON, +} from './RuleJobResult'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { RuleResult } from './RuleResult'; +import { + RuleResultFromJSON, + RuleResultFromJSONTyped, + RuleResultToJSON, +} from './RuleResult'; + +/** + * + * @export + * @interface RuleEventDto + */ +export interface RuleEventDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof RuleEventDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the event. + * @type {string} + * @memberof RuleEventDto + */ + id: string; + /** + * The time when the event has been created. + * @type {Date} + * @memberof RuleEventDto + */ + created: Date; + /** + * The description. + * @type {string} + * @memberof RuleEventDto + */ + description: string; + /** + * The name of the event. + * @type {string} + * @memberof RuleEventDto + */ + eventName: string; + /** + * The last dump. + * @type {string} + * @memberof RuleEventDto + */ + lastDump?: string | null; + /** + * The number of calls. + * @type {number} + * @memberof RuleEventDto + */ + numCalls: number; + /** + * The next attempt. + * @type {Date} + * @memberof RuleEventDto + */ + nextAttempt?: Date | null; + /** + * + * @type {RuleResult} + * @memberof RuleEventDto + */ + result: RuleResult; + /** + * + * @type {RuleJobResult} + * @memberof RuleEventDto + */ + jobResult: RuleJobResult; +} + + + +/** + * Check if a given object implements the RuleEventDto interface. + */ +export function instanceOfRuleEventDto(value: object): value is RuleEventDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('description' in value) || value['description'] === undefined) return false; + if (!('eventName' in value) || value['eventName'] === undefined) return false; + if (!('numCalls' in value) || value['numCalls'] === undefined) return false; + if (!('result' in value) || value['result'] === undefined) return false; + if (!('jobResult' in value) || value['jobResult'] === undefined) return false; + return true; +} + +export function RuleEventDtoFromJSON(json: any): RuleEventDto { + return RuleEventDtoFromJSONTyped(json, false); +} + +export function RuleEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleEventDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'created': (new Date(json['created'])), + 'description': json['description'], + 'eventName': json['eventName'], + 'lastDump': json['lastDump'] == null ? undefined : json['lastDump'], + 'numCalls': json['numCalls'], + 'nextAttempt': json['nextAttempt'] == null ? undefined : (new Date(json['nextAttempt'])), + 'result': RuleResultFromJSON(json['result']), + 'jobResult': RuleJobResultFromJSON(json['jobResult']), + }; +} + +export function RuleEventDtoToJSON(value?: RuleEventDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'created': ((value['created']).toISOString()), + 'description': value['description'], + 'eventName': value['eventName'], + 'lastDump': value['lastDump'], + 'numCalls': value['numCalls'], + 'nextAttempt': value['nextAttempt'] == null ? undefined : ((value['nextAttempt'] as any).toISOString()), + 'result': RuleResultToJSON(value['result']), + 'jobResult': RuleJobResultToJSON(value['jobResult']), + }; +} diff --git a/src/generated/models/RuleEventsDto.ts b/src/generated/models/RuleEventsDto.ts new file mode 100644 index 0000000..7d9ac7c --- /dev/null +++ b/src/generated/models/RuleEventsDto.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleEventDto } from './RuleEventDto'; +import { + RuleEventDtoFromJSON, + RuleEventDtoFromJSONTyped, + RuleEventDtoToJSON, +} from './RuleEventDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface RuleEventsDto + */ +export interface RuleEventsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof RuleEventsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The total number of rule events. + * @type {number} + * @memberof RuleEventsDto + */ + total: number; + /** + * The rule events. + * @type {Array} + * @memberof RuleEventsDto + */ + items: Array; +} + +/** + * Check if a given object implements the RuleEventsDto interface. + */ +export function instanceOfRuleEventsDto(value: object): value is RuleEventsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('total' in value) || value['total'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function RuleEventsDtoFromJSON(json: any): RuleEventsDto { + return RuleEventsDtoFromJSONTyped(json, false); +} + +export function RuleEventsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleEventsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'total': json['total'], + 'items': ((json['items'] as Array).map(RuleEventDtoFromJSON)), + }; +} + +export function RuleEventsDtoToJSON(value?: RuleEventsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'total': value['total'], + 'items': ((value['items'] as Array).map(RuleEventDtoToJSON)), + }; +} diff --git a/src/generated/models/RuleFieldEditor.ts b/src/generated/models/RuleFieldEditor.ts new file mode 100644 index 0000000..2338564 --- /dev/null +++ b/src/generated/models/RuleFieldEditor.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const RuleFieldEditor = { + Checkbox: 'Checkbox', + Dropdown: 'Dropdown', + Email: 'Email', + Javascript: 'Javascript', + Number: 'Number', + Password: 'Password', + Text: 'Text', + TextArea: 'TextArea', + Url: 'Url' +} as const; +export type RuleFieldEditor = typeof RuleFieldEditor[keyof typeof RuleFieldEditor]; + + +export function instanceOfRuleFieldEditor(value: any): boolean { + for (const key in RuleFieldEditor) { + if (Object.prototype.hasOwnProperty.call(RuleFieldEditor, key)) { + if (RuleFieldEditor[key as keyof typeof RuleFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function RuleFieldEditorFromJSON(json: any): RuleFieldEditor { + return RuleFieldEditorFromJSONTyped(json, false); +} + +export function RuleFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleFieldEditor { + return json as RuleFieldEditor; +} + +export function RuleFieldEditorToJSON(value?: RuleFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/RuleJobResult.ts b/src/generated/models/RuleJobResult.ts new file mode 100644 index 0000000..3c47d99 --- /dev/null +++ b/src/generated/models/RuleJobResult.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const RuleJobResult = { + Pending: 'Pending', + Success: 'Success', + Retry: 'Retry', + Failed: 'Failed', + Cancelled: 'Cancelled' +} as const; +export type RuleJobResult = typeof RuleJobResult[keyof typeof RuleJobResult]; + + +export function instanceOfRuleJobResult(value: any): boolean { + for (const key in RuleJobResult) { + if (Object.prototype.hasOwnProperty.call(RuleJobResult, key)) { + if (RuleJobResult[key as keyof typeof RuleJobResult] === value) { + return true; + } + } + } + return false; +} + +export function RuleJobResultFromJSON(json: any): RuleJobResult { + return RuleJobResultFromJSONTyped(json, false); +} + +export function RuleJobResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleJobResult { + return json as RuleJobResult; +} + +export function RuleJobResultToJSON(value?: RuleJobResult | null): any { + return value as any; +} + diff --git a/src/generated/models/RuleResult.ts b/src/generated/models/RuleResult.ts new file mode 100644 index 0000000..bce687c --- /dev/null +++ b/src/generated/models/RuleResult.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const RuleResult = { + Pending: 'Pending', + Success: 'Success', + Failed: 'Failed', + Timeout: 'Timeout' +} as const; +export type RuleResult = typeof RuleResult[keyof typeof RuleResult]; + + +export function instanceOfRuleResult(value: any): boolean { + for (const key in RuleResult) { + if (Object.prototype.hasOwnProperty.call(RuleResult, key)) { + if (RuleResult[key as keyof typeof RuleResult] === value) { + return true; + } + } + } + return false; +} + +export function RuleResultFromJSON(json: any): RuleResult { + return RuleResultFromJSONTyped(json, false); +} + +export function RuleResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleResult { + return json as RuleResult; +} + +export function RuleResultToJSON(value?: RuleResult | null): any { + return value as any; +} + diff --git a/src/generated/models/RuleTriggerDto.ts b/src/generated/models/RuleTriggerDto.ts new file mode 100644 index 0000000..a470d90 --- /dev/null +++ b/src/generated/models/RuleTriggerDto.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import { AssetChangedRuleTriggerDto, AssetChangedRuleTriggerDtoFromJSONTyped, AssetChangedRuleTriggerDtoToJSON } from './AssetChangedRuleTriggerDto'; +import { CommentRuleTriggerDto, CommentRuleTriggerDtoFromJSONTyped, CommentRuleTriggerDtoToJSON } from './CommentRuleTriggerDto'; +import { ContentChangedRuleTriggerDto, ContentChangedRuleTriggerDtoFromJSONTyped, ContentChangedRuleTriggerDtoToJSON } from './ContentChangedRuleTriggerDto'; +import { ManualRuleTriggerDto, ManualRuleTriggerDtoFromJSONTyped, ManualRuleTriggerDtoToJSON } from './ManualRuleTriggerDto'; +import { SchemaChangedRuleTriggerDto, SchemaChangedRuleTriggerDtoFromJSONTyped, SchemaChangedRuleTriggerDtoToJSON } from './SchemaChangedRuleTriggerDto'; +import { UsageRuleTriggerDto, UsageRuleTriggerDtoFromJSONTyped, UsageRuleTriggerDtoToJSON } from './UsageRuleTriggerDto'; +/** + * + * @export + * @interface RuleTriggerDto + */ +export interface RuleTriggerDto { + /** + * + * @type {string} + * @memberof RuleTriggerDto + */ + triggerType: string; +} + +/** + * Check if a given object implements the RuleTriggerDto interface. + */ +export function instanceOfRuleTriggerDto(value: object): value is RuleTriggerDto { + if (!('triggerType' in value) || value['triggerType'] === undefined) return false; + return true; +} + +export function RuleTriggerDtoFromJSON(json: any): RuleTriggerDto { + return RuleTriggerDtoFromJSONTyped(json, false); +} + +export function RuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleTriggerDto { + if (json == null) { + return json; + } + if (!ignoreDiscriminator) { + if (json['triggerType'] === 'AssetChanged') { + return AssetChangedRuleTriggerDtoFromJSONTyped(json, true); + } + if (json['triggerType'] === 'Comment') { + return CommentRuleTriggerDtoFromJSONTyped(json, true); + } + if (json['triggerType'] === 'ContentChanged') { + return ContentChangedRuleTriggerDtoFromJSONTyped(json, true); + } + if (json['triggerType'] === 'Manual') { + return ManualRuleTriggerDtoFromJSONTyped(json, true); + } + if (json['triggerType'] === 'SchemaChanged') { + return SchemaChangedRuleTriggerDtoFromJSONTyped(json, true); + } + if (json['triggerType'] === 'Usage') { + return UsageRuleTriggerDtoFromJSONTyped(json, true); + } + } + return { + + 'triggerType': json['triggerType'], + }; +} + +export function RuleTriggerDtoToJSON(value?: RuleTriggerDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + if (!ignoreDiscriminator) { + if (value['triggerType'] === 'AssetChanged') { + return AssetChangedRuleTriggerDtoToJSON(value as AssetChangedRuleTriggerDto, true); + } + if (value['triggerType'] === 'Comment') { + return CommentRuleTriggerDtoToJSON(value as CommentRuleTriggerDto, true); + } + if (value['triggerType'] === 'ContentChanged') { + return ContentChangedRuleTriggerDtoToJSON(value as ContentChangedRuleTriggerDto, true); + } + if (value['triggerType'] === 'Manual') { + return ManualRuleTriggerDtoToJSON(value as ManualRuleTriggerDto, true); + } + if (value['triggerType'] === 'SchemaChanged') { + return SchemaChangedRuleTriggerDtoToJSON(value as SchemaChangedRuleTriggerDto, true); + } + if (value['triggerType'] === 'Usage') { + return UsageRuleTriggerDtoToJSON(value as UsageRuleTriggerDto, true); + } + } + return { + + 'triggerType': value['triggerType'], + }; +} diff --git a/src/generated/models/RulesDto.ts b/src/generated/models/RulesDto.ts new file mode 100644 index 0000000..55b791a --- /dev/null +++ b/src/generated/models/RulesDto.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleDto } from './RuleDto'; +import { + RuleDtoFromJSON, + RuleDtoFromJSONTyped, + RuleDtoToJSON, +} from './RuleDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface RulesDto + */ +export interface RulesDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof RulesDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The rules. + * @type {Array} + * @memberof RulesDto + */ + items: Array; + /** + * The ID of the rule that is currently rerunning. + * @type {string} + * @memberof RulesDto + */ + runningRuleId?: string | null; +} + +/** + * Check if a given object implements the RulesDto interface. + */ +export function instanceOfRulesDto(value: object): value is RulesDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function RulesDtoFromJSON(json: any): RulesDto { + return RulesDtoFromJSONTyped(json, false); +} + +export function RulesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RulesDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(RuleDtoFromJSON)), + 'runningRuleId': json['runningRuleId'] == null ? undefined : json['runningRuleId'], + }; +} + +export function RulesDtoToJSON(value?: RulesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(RuleDtoToJSON)), + 'runningRuleId': value['runningRuleId'], + }; +} diff --git a/src/generated/models/ScheduleJobDto.ts b/src/generated/models/ScheduleJobDto.ts new file mode 100644 index 0000000..357929a --- /dev/null +++ b/src/generated/models/ScheduleJobDto.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ScheduleJobDto + */ +export interface ScheduleJobDto { + /** + * The ID of the schedule job. + * @type {string} + * @memberof ScheduleJobDto + */ + id: string; + /** + * The new status. + * @type {string} + * @memberof ScheduleJobDto + */ + status: string; + /** + * The target date and time when the content should be scheduled. + * @type {Date} + * @memberof ScheduleJobDto + */ + dueTime: Date; + /** + * The color of the scheduled status. + * @type {string} + * @memberof ScheduleJobDto + */ + color: string; + /** + * The user who schedule the content. + * @type {string} + * @memberof ScheduleJobDto + */ + scheduledBy: string; +} + +/** + * Check if a given object implements the ScheduleJobDto interface. + */ +export function instanceOfScheduleJobDto(value: object): value is ScheduleJobDto { + if (!('id' in value) || value['id'] === undefined) return false; + if (!('status' in value) || value['status'] === undefined) return false; + if (!('dueTime' in value) || value['dueTime'] === undefined) return false; + if (!('color' in value) || value['color'] === undefined) return false; + if (!('scheduledBy' in value) || value['scheduledBy'] === undefined) return false; + return true; +} + +export function ScheduleJobDtoFromJSON(json: any): ScheduleJobDto { + return ScheduleJobDtoFromJSONTyped(json, false); +} + +export function ScheduleJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleJobDto { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'status': json['status'], + 'dueTime': (new Date(json['dueTime'])), + 'color': json['color'], + 'scheduledBy': json['scheduledBy'], + }; +} + +export function ScheduleJobDtoToJSON(value?: ScheduleJobDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'id': value['id'], + 'status': value['status'], + 'dueTime': ((value['dueTime']).toISOString()), + 'color': value['color'], + 'scheduledBy': value['scheduledBy'], + }; +} diff --git a/src/generated/models/SchemaChangedRuleTriggerDto.ts b/src/generated/models/SchemaChangedRuleTriggerDto.ts new file mode 100644 index 0000000..d9f0e92 --- /dev/null +++ b/src/generated/models/SchemaChangedRuleTriggerDto.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface SchemaChangedRuleTriggerDto + */ +export interface SchemaChangedRuleTriggerDto extends RuleTriggerDto { + /** + * Javascript condition when to trigger. + * @type {string} + * @memberof SchemaChangedRuleTriggerDto + */ + condition?: string | null; +} + +/** + * Check if a given object implements the SchemaChangedRuleTriggerDto interface. + */ +export function instanceOfSchemaChangedRuleTriggerDto(value: object): value is SchemaChangedRuleTriggerDto { + return true; +} + +export function SchemaChangedRuleTriggerDtoFromJSON(json: any): SchemaChangedRuleTriggerDto { + return SchemaChangedRuleTriggerDtoFromJSONTyped(json, false); +} + +export function SchemaChangedRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaChangedRuleTriggerDto { + if (json == null) { + return json; + } + return { + ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + 'condition': json['condition'] == null ? undefined : json['condition'], + }; +} + +export function SchemaChangedRuleTriggerDtoToJSON(value?: SchemaChangedRuleTriggerDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleTriggerDtoToJSON(value, true), + 'condition': value['condition'], + }; +} diff --git a/src/generated/models/SchemaCondition.ts b/src/generated/models/SchemaCondition.ts new file mode 100644 index 0000000..c0ca27d --- /dev/null +++ b/src/generated/models/SchemaCondition.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SchemaCondition + */ +export interface SchemaCondition { + /** + * + * @type {string} + * @memberof SchemaCondition + */ + schemaId: string; + /** + * + * @type {string} + * @memberof SchemaCondition + */ + condition?: string | null; +} + +/** + * Check if a given object implements the SchemaCondition interface. + */ +export function instanceOfSchemaCondition(value: object): value is SchemaCondition { + if (!('schemaId' in value) || value['schemaId'] === undefined) return false; + return true; +} + +export function SchemaConditionFromJSON(json: any): SchemaCondition { + return SchemaConditionFromJSONTyped(json, false); +} + +export function SchemaConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaCondition { + if (json == null) { + return json; + } + return { + + 'schemaId': json['schemaId'], + 'condition': json['condition'] == null ? undefined : json['condition'], + }; +} + +export function SchemaConditionToJSON(value?: SchemaCondition | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'schemaId': value['schemaId'], + 'condition': value['condition'], + }; +} diff --git a/src/generated/models/SchemaDto.ts b/src/generated/models/SchemaDto.ts new file mode 100644 index 0000000..fd7b8ff --- /dev/null +++ b/src/generated/models/SchemaDto.ts @@ -0,0 +1,261 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; +import { + SchemaPropertiesDtoFromJSON, + SchemaPropertiesDtoFromJSONTyped, + SchemaPropertiesDtoToJSON, +} from './SchemaPropertiesDto'; +import type { SchemaScriptsDto } from './SchemaScriptsDto'; +import { + SchemaScriptsDtoFromJSON, + SchemaScriptsDtoFromJSONTyped, + SchemaScriptsDtoToJSON, +} from './SchemaScriptsDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { FieldRuleDto } from './FieldRuleDto'; +import { + FieldRuleDtoFromJSON, + FieldRuleDtoFromJSONTyped, + FieldRuleDtoToJSON, +} from './FieldRuleDto'; +import type { SchemaType } from './SchemaType'; +import { + SchemaTypeFromJSON, + SchemaTypeFromJSONTyped, + SchemaTypeToJSON, +} from './SchemaType'; +import type { FieldDto } from './FieldDto'; +import { + FieldDtoFromJSON, + FieldDtoFromJSONTyped, + FieldDtoToJSON, +} from './FieldDto'; + +/** + * + * @export + * @interface SchemaDto + */ +export interface SchemaDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof SchemaDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the schema. + * @type {string} + * @memberof SchemaDto + */ + id: string; + /** + * The user that has created the schema. + * @type {string} + * @memberof SchemaDto + */ + createdBy: string; + /** + * The user that has updated the schema. + * @type {string} + * @memberof SchemaDto + */ + lastModifiedBy: string; + /** + * The name of the schema. Unique within the app. + * @type {string} + * @memberof SchemaDto + */ + name: string; + /** + * + * @type {SchemaType} + * @memberof SchemaDto + */ + type: SchemaType; + /** + * The name of the category. + * @type {string} + * @memberof SchemaDto + */ + category?: string | null; + /** + * + * @type {SchemaPropertiesDto} + * @memberof SchemaDto + */ + properties: SchemaPropertiesDto; + /** + * Indicates if the schema is a singleton. + * @type {boolean} + * @memberof SchemaDto + * @deprecated + */ + isSingleton: boolean; + /** + * Indicates if the schema is published. + * @type {boolean} + * @memberof SchemaDto + */ + isPublished: boolean; + /** + * The date and time when the schema has been created. + * @type {Date} + * @memberof SchemaDto + */ + created: Date; + /** + * The date and time when the schema has been modified last. + * @type {Date} + * @memberof SchemaDto + */ + lastModified: Date; + /** + * The version of the schema. + * @type {number} + * @memberof SchemaDto + */ + version: number; + /** + * + * @type {SchemaScriptsDto} + * @memberof SchemaDto + */ + scripts: SchemaScriptsDto; + /** + * The preview Urls. + * @type {{ [key: string]: string; }} + * @memberof SchemaDto + */ + previewUrls: { [key: string]: string; }; + /** + * The name of fields that are used in content lists. + * @type {Array} + * @memberof SchemaDto + */ + fieldsInLists: Array; + /** + * The name of fields that are used in content references. + * @type {Array} + * @memberof SchemaDto + */ + fieldsInReferences: Array; + /** + * The field rules. + * @type {Array} + * @memberof SchemaDto + */ + fieldRules: Array; + /** + * The list of fields. + * @type {Array} + * @memberof SchemaDto + */ + fields: Array; +} + + + +/** + * Check if a given object implements the SchemaDto interface. + */ +export function instanceOfSchemaDto(value: object): value is SchemaDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('createdBy' in value) || value['createdBy'] === undefined) return false; + if (!('lastModifiedBy' in value) || value['lastModifiedBy'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + if (!('isSingleton' in value) || value['isSingleton'] === undefined) return false; + if (!('isPublished' in value) || value['isPublished'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('lastModified' in value) || value['lastModified'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + if (!('scripts' in value) || value['scripts'] === undefined) return false; + if (!('previewUrls' in value) || value['previewUrls'] === undefined) return false; + if (!('fieldsInLists' in value) || value['fieldsInLists'] === undefined) return false; + if (!('fieldsInReferences' in value) || value['fieldsInReferences'] === undefined) return false; + if (!('fieldRules' in value) || value['fieldRules'] === undefined) return false; + if (!('fields' in value) || value['fields'] === undefined) return false; + return true; +} + +export function SchemaDtoFromJSON(json: any): SchemaDto { + return SchemaDtoFromJSONTyped(json, false); +} + +export function SchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'createdBy': json['createdBy'], + 'lastModifiedBy': json['lastModifiedBy'], + 'name': json['name'], + 'type': SchemaTypeFromJSON(json['type']), + 'category': json['category'] == null ? undefined : json['category'], + 'properties': SchemaPropertiesDtoFromJSON(json['properties']), + 'isSingleton': json['isSingleton'], + 'isPublished': json['isPublished'], + 'created': (new Date(json['created'])), + 'lastModified': (new Date(json['lastModified'])), + 'version': json['version'], + 'scripts': SchemaScriptsDtoFromJSON(json['scripts']), + 'previewUrls': json['previewUrls'], + 'fieldsInLists': json['fieldsInLists'], + 'fieldsInReferences': json['fieldsInReferences'], + 'fieldRules': ((json['fieldRules'] as Array).map(FieldRuleDtoFromJSON)), + 'fields': ((json['fields'] as Array).map(FieldDtoFromJSON)), + }; +} + +export function SchemaDtoToJSON(value?: SchemaDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'createdBy': value['createdBy'], + 'lastModifiedBy': value['lastModifiedBy'], + 'name': value['name'], + 'type': SchemaTypeToJSON(value['type']), + 'category': value['category'], + 'properties': SchemaPropertiesDtoToJSON(value['properties']), + 'isSingleton': value['isSingleton'], + 'isPublished': value['isPublished'], + 'created': ((value['created']).toISOString()), + 'lastModified': ((value['lastModified']).toISOString()), + 'version': value['version'], + 'scripts': SchemaScriptsDtoToJSON(value['scripts']), + 'previewUrls': value['previewUrls'], + 'fieldsInLists': value['fieldsInLists'], + 'fieldsInReferences': value['fieldsInReferences'], + 'fieldRules': ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fields': ((value['fields'] as Array).map(FieldDtoToJSON)), + }; +} diff --git a/src/generated/models/SchemaPropertiesDto.ts b/src/generated/models/SchemaPropertiesDto.ts new file mode 100644 index 0000000..38a0943 --- /dev/null +++ b/src/generated/models/SchemaPropertiesDto.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SchemaPropertiesDto + */ +export interface SchemaPropertiesDto { + /** + * Optional label for the editor. + * @type {string} + * @memberof SchemaPropertiesDto + */ + label?: string | null; + /** + * Hints to describe the schema. + * @type {string} + * @memberof SchemaPropertiesDto + */ + hints?: string | null; + /** + * The url to a the sidebar plugin for content lists. + * @type {string} + * @memberof SchemaPropertiesDto + */ + contentsSidebarUrl?: string | null; + /** + * The url to a the sidebar plugin for content items. + * @type {string} + * @memberof SchemaPropertiesDto + */ + contentSidebarUrl?: string | null; + /** + * The url to the editor plugin. + * @type {string} + * @memberof SchemaPropertiesDto + */ + contentEditorUrl?: string | null; + /** + * The url to the editor plugin. + * @type {string} + * @memberof SchemaPropertiesDto + */ + contentsEditorUrl?: string | null; + /** + * The url to the content list plugin. + * @type {string} + * @memberof SchemaPropertiesDto + */ + contentsListUrl?: string | null; + /** + * True to validate the content items on publish. + * @type {boolean} + * @memberof SchemaPropertiesDto + */ + validateOnPublish: boolean; + /** + * Tags for automation processes. + * @type {Array} + * @memberof SchemaPropertiesDto + */ + tags?: Array | null; +} + +/** + * Check if a given object implements the SchemaPropertiesDto interface. + */ +export function instanceOfSchemaPropertiesDto(value: object): value is SchemaPropertiesDto { + if (!('validateOnPublish' in value) || value['validateOnPublish'] === undefined) return false; + return true; +} + +export function SchemaPropertiesDtoFromJSON(json: any): SchemaPropertiesDto { + return SchemaPropertiesDtoFromJSONTyped(json, false); +} + +export function SchemaPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaPropertiesDto { + if (json == null) { + return json; + } + return { + + 'label': json['label'] == null ? undefined : json['label'], + 'hints': json['hints'] == null ? undefined : json['hints'], + 'contentsSidebarUrl': json['contentsSidebarUrl'] == null ? undefined : json['contentsSidebarUrl'], + 'contentSidebarUrl': json['contentSidebarUrl'] == null ? undefined : json['contentSidebarUrl'], + 'contentEditorUrl': json['contentEditorUrl'] == null ? undefined : json['contentEditorUrl'], + 'contentsEditorUrl': json['contentsEditorUrl'] == null ? undefined : json['contentsEditorUrl'], + 'contentsListUrl': json['contentsListUrl'] == null ? undefined : json['contentsListUrl'], + 'validateOnPublish': json['validateOnPublish'], + 'tags': json['tags'] == null ? undefined : json['tags'], + }; +} + +export function SchemaPropertiesDtoToJSON(value?: SchemaPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'label': value['label'], + 'hints': value['hints'], + 'contentsSidebarUrl': value['contentsSidebarUrl'], + 'contentSidebarUrl': value['contentSidebarUrl'], + 'contentEditorUrl': value['contentEditorUrl'], + 'contentsEditorUrl': value['contentsEditorUrl'], + 'contentsListUrl': value['contentsListUrl'], + 'validateOnPublish': value['validateOnPublish'], + 'tags': value['tags'], + }; +} diff --git a/src/generated/models/SchemaScriptsDto.ts b/src/generated/models/SchemaScriptsDto.ts new file mode 100644 index 0000000..c7db9d3 --- /dev/null +++ b/src/generated/models/SchemaScriptsDto.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SchemaScriptsDto + */ +export interface SchemaScriptsDto { + /** + * The script that is executed for each content when querying contents. + * @type {string} + * @memberof SchemaScriptsDto + */ + query?: string | null; + /** + * The script that is executed for all contents when querying contents. + * @type {string} + * @memberof SchemaScriptsDto + */ + queryPre?: string | null; + /** + * The script that is executed when creating a content. + * @type {string} + * @memberof SchemaScriptsDto + */ + create?: string | null; + /** + * The script that is executed when updating a content. + * @type {string} + * @memberof SchemaScriptsDto + */ + update?: string | null; + /** + * The script that is executed when deleting a content. + * @type {string} + * @memberof SchemaScriptsDto + */ + _delete?: string | null; + /** + * The script that is executed when change a content status. + * @type {string} + * @memberof SchemaScriptsDto + */ + change?: string | null; +} + +/** + * Check if a given object implements the SchemaScriptsDto interface. + */ +export function instanceOfSchemaScriptsDto(value: object): value is SchemaScriptsDto { + return true; +} + +export function SchemaScriptsDtoFromJSON(json: any): SchemaScriptsDto { + return SchemaScriptsDtoFromJSONTyped(json, false); +} + +export function SchemaScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaScriptsDto { + if (json == null) { + return json; + } + return { + + 'query': json['query'] == null ? undefined : json['query'], + 'queryPre': json['queryPre'] == null ? undefined : json['queryPre'], + 'create': json['create'] == null ? undefined : json['create'], + 'update': json['update'] == null ? undefined : json['update'], + '_delete': json['delete'] == null ? undefined : json['delete'], + 'change': json['change'] == null ? undefined : json['change'], + }; +} + +export function SchemaScriptsDtoToJSON(value?: SchemaScriptsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'query': value['query'], + 'queryPre': value['queryPre'], + 'create': value['create'], + 'update': value['update'], + 'delete': value['_delete'], + 'change': value['change'], + }; +} diff --git a/src/generated/models/SchemaType.ts b/src/generated/models/SchemaType.ts new file mode 100644 index 0000000..74a312f --- /dev/null +++ b/src/generated/models/SchemaType.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const SchemaType = { + Default: 'Default', + Singleton: 'Singleton', + Component: 'Component' +} as const; +export type SchemaType = typeof SchemaType[keyof typeof SchemaType]; + + +export function instanceOfSchemaType(value: any): boolean { + for (const key in SchemaType) { + if (Object.prototype.hasOwnProperty.call(SchemaType, key)) { + if (SchemaType[key as keyof typeof SchemaType] === value) { + return true; + } + } + } + return false; +} + +export function SchemaTypeFromJSON(json: any): SchemaType { + return SchemaTypeFromJSONTyped(json, false); +} + +export function SchemaTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaType { + return json as SchemaType; +} + +export function SchemaTypeToJSON(value?: SchemaType | null): any { + return value as any; +} + diff --git a/src/generated/models/SchemasDto.ts b/src/generated/models/SchemasDto.ts new file mode 100644 index 0000000..81857b8 --- /dev/null +++ b/src/generated/models/SchemasDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { SchemaDto } from './SchemaDto'; +import { + SchemaDtoFromJSON, + SchemaDtoFromJSONTyped, + SchemaDtoToJSON, +} from './SchemaDto'; + +/** + * + * @export + * @interface SchemasDto + */ +export interface SchemasDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof SchemasDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The schemas. + * @type {Array} + * @memberof SchemasDto + */ + items: Array; +} + +/** + * Check if a given object implements the SchemasDto interface. + */ +export function instanceOfSchemasDto(value: object): value is SchemasDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function SchemasDtoFromJSON(json: any): SchemasDto { + return SchemasDtoFromJSONTyped(json, false); +} + +export function SchemasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemasDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(SchemaDtoFromJSON)), + }; +} + +export function SchemasDtoToJSON(value?: SchemasDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(SchemaDtoToJSON)), + }; +} diff --git a/src/generated/models/ScriptRuleActionDto.ts b/src/generated/models/ScriptRuleActionDto.ts new file mode 100644 index 0000000..fa9243f --- /dev/null +++ b/src/generated/models/ScriptRuleActionDto.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface ScriptRuleActionDto + */ +export interface ScriptRuleActionDto extends RuleActionDto { + /** + * The script to render. + * @type {string} + * @memberof ScriptRuleActionDto + */ + script: string; +} + +/** + * Check if a given object implements the ScriptRuleActionDto interface. + */ +export function instanceOfScriptRuleActionDto(value: object): value is ScriptRuleActionDto { + if (!('script' in value) || value['script'] === undefined) return false; + return true; +} + +export function ScriptRuleActionDtoFromJSON(json: any): ScriptRuleActionDto { + return ScriptRuleActionDtoFromJSONTyped(json, false); +} + +export function ScriptRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'script': json['script'], + }; +} + +export function ScriptRuleActionDtoToJSON(value?: ScriptRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'script': value['script'], + }; +} diff --git a/src/generated/models/SearchResultDto.ts b/src/generated/models/SearchResultDto.ts new file mode 100644 index 0000000..a7dde07 --- /dev/null +++ b/src/generated/models/SearchResultDto.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { SearchResultType } from './SearchResultType'; +import { + SearchResultTypeFromJSON, + SearchResultTypeFromJSONTyped, + SearchResultTypeToJSON, +} from './SearchResultType'; + +/** + * + * @export + * @interface SearchResultDto + */ +export interface SearchResultDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof SearchResultDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The name of the search result. + * @type {string} + * @memberof SearchResultDto + */ + name: string; + /** + * + * @type {SearchResultType} + * @memberof SearchResultDto + */ + type: SearchResultType; + /** + * An optional label. + * @type {string} + * @memberof SearchResultDto + */ + label?: string | null; +} + + + +/** + * Check if a given object implements the SearchResultDto interface. + */ +export function instanceOfSearchResultDto(value: object): value is SearchResultDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function SearchResultDtoFromJSON(json: any): SearchResultDto { + return SearchResultDtoFromJSONTyped(json, false); +} + +export function SearchResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResultDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'name': json['name'], + 'type': SearchResultTypeFromJSON(json['type']), + 'label': json['label'] == null ? undefined : json['label'], + }; +} + +export function SearchResultDtoToJSON(value?: SearchResultDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'name': value['name'], + 'type': SearchResultTypeToJSON(value['type']), + 'label': value['label'], + }; +} diff --git a/src/generated/models/SearchResultType.ts b/src/generated/models/SearchResultType.ts new file mode 100644 index 0000000..6bad890 --- /dev/null +++ b/src/generated/models/SearchResultType.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const SearchResultType = { + Asset: 'Asset', + Content: 'Content', + Dashboard: 'Dashboard', + Setting: 'Setting', + Rule: 'Rule', + Schema: 'Schema' +} as const; +export type SearchResultType = typeof SearchResultType[keyof typeof SearchResultType]; + + +export function instanceOfSearchResultType(value: any): boolean { + for (const key in SearchResultType) { + if (Object.prototype.hasOwnProperty.call(SearchResultType, key)) { + if (SearchResultType[key as keyof typeof SearchResultType] === value) { + return true; + } + } + } + return false; +} + +export function SearchResultTypeFromJSON(json: any): SearchResultType { + return SearchResultTypeFromJSONTyped(json, false); +} + +export function SearchResultTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResultType { + return json as SearchResultType; +} + +export function SearchResultTypeToJSON(value?: SearchResultType | null): any { + return value as any; +} + diff --git a/src/generated/models/SignalRRuleActionDto.ts b/src/generated/models/SignalRRuleActionDto.ts new file mode 100644 index 0000000..b14c183 --- /dev/null +++ b/src/generated/models/SignalRRuleActionDto.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ActionTypeEnum } from './ActionTypeEnum'; +import { + ActionTypeEnumFromJSON, + ActionTypeEnumFromJSONTyped, + ActionTypeEnumToJSON, +} from './ActionTypeEnum'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface SignalRRuleActionDto + */ +export interface SignalRRuleActionDto extends RuleActionDto { + /** + * The connection string to the Azure SignalR. + * @type {string} + * @memberof SignalRRuleActionDto + */ + connectionString: string; + /** + * The name of the hub. + * @type {string} + * @memberof SignalRRuleActionDto + */ + hubName: string; + /** + * + * @type {ActionTypeEnum} + * @memberof SignalRRuleActionDto + */ + action: ActionTypeEnum; + /** + * Set the Name of the hub method received by the customer. + * @type {string} + * @memberof SignalRRuleActionDto + */ + methodName?: string | null; + /** + * Define target users or groups by id or name. One item per line. Not needed for Broadcast action. + * @type {string} + * @memberof SignalRRuleActionDto + */ + target?: string | null; + /** + * Leave it empty to use the full event as body. + * @type {string} + * @memberof SignalRRuleActionDto + */ + payload?: string | null; +} + + + +/** + * Check if a given object implements the SignalRRuleActionDto interface. + */ +export function instanceOfSignalRRuleActionDto(value: object): value is SignalRRuleActionDto { + if (!('connectionString' in value) || value['connectionString'] === undefined) return false; + if (!('hubName' in value) || value['hubName'] === undefined) return false; + if (!('action' in value) || value['action'] === undefined) return false; + return true; +} + +export function SignalRRuleActionDtoFromJSON(json: any): SignalRRuleActionDto { + return SignalRRuleActionDtoFromJSONTyped(json, false); +} + +export function SignalRRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignalRRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'connectionString': json['connectionString'], + 'hubName': json['hubName'], + 'action': ActionTypeEnumFromJSON(json['action']), + 'methodName': json['methodName'] == null ? undefined : json['methodName'], + 'target': json['target'] == null ? undefined : json['target'], + 'payload': json['payload'] == null ? undefined : json['payload'], + }; +} + +export function SignalRRuleActionDtoToJSON(value?: SignalRRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'connectionString': value['connectionString'], + 'hubName': value['hubName'], + 'action': ActionTypeEnumToJSON(value['action']), + 'methodName': value['methodName'], + 'target': value['target'], + 'payload': value['payload'], + }; +} diff --git a/src/generated/models/SimulatedRuleEventDto.ts b/src/generated/models/SimulatedRuleEventDto.ts new file mode 100644 index 0000000..8ea4a23 --- /dev/null +++ b/src/generated/models/SimulatedRuleEventDto.ts @@ -0,0 +1,135 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SkipReason } from './SkipReason'; +import { + SkipReasonFromJSON, + SkipReasonFromJSONTyped, + SkipReasonToJSON, +} from './SkipReason'; + +/** + * + * @export + * @interface SimulatedRuleEventDto + */ +export interface SimulatedRuleEventDto { + /** + * The unique event id. + * @type {string} + * @memberof SimulatedRuleEventDto + */ + eventId: string; + /** + * The the unique id of the simulated event. + * @type {string} + * @memberof SimulatedRuleEventDto + */ + uniqueId: string; + /** + * The name of the event. + * @type {string} + * @memberof SimulatedRuleEventDto + */ + eventName: string; + /** + * The source event. + * @type {any} + * @memberof SimulatedRuleEventDto + */ + event: any | null; + /** + * The enriched event. + * @type {any} + * @memberof SimulatedRuleEventDto + */ + enrichedEvent?: any | null; + /** + * The data for the action. + * @type {string} + * @memberof SimulatedRuleEventDto + */ + actionName?: string | null; + /** + * The name of the action. + * @type {string} + * @memberof SimulatedRuleEventDto + */ + actionData?: string | null; + /** + * The name of the event. + * @type {string} + * @memberof SimulatedRuleEventDto + */ + error?: string | null; + /** + * The reason why the event has been skipped. + * @type {Array} + * @memberof SimulatedRuleEventDto + */ + skipReasons: Array; +} + +/** + * Check if a given object implements the SimulatedRuleEventDto interface. + */ +export function instanceOfSimulatedRuleEventDto(value: object): value is SimulatedRuleEventDto { + if (!('eventId' in value) || value['eventId'] === undefined) return false; + if (!('uniqueId' in value) || value['uniqueId'] === undefined) return false; + if (!('eventName' in value) || value['eventName'] === undefined) return false; + if (!('event' in value) || value['event'] === undefined) return false; + if (!('skipReasons' in value) || value['skipReasons'] === undefined) return false; + return true; +} + +export function SimulatedRuleEventDtoFromJSON(json: any): SimulatedRuleEventDto { + return SimulatedRuleEventDtoFromJSONTyped(json, false); +} + +export function SimulatedRuleEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulatedRuleEventDto { + if (json == null) { + return json; + } + return { + + 'eventId': json['eventId'], + 'uniqueId': json['uniqueId'], + 'eventName': json['eventName'], + 'event': json['event'], + 'enrichedEvent': json['enrichedEvent'] == null ? undefined : json['enrichedEvent'], + 'actionName': json['actionName'] == null ? undefined : json['actionName'], + 'actionData': json['actionData'] == null ? undefined : json['actionData'], + 'error': json['error'] == null ? undefined : json['error'], + 'skipReasons': ((json['skipReasons'] as Array).map(SkipReasonFromJSON)), + }; +} + +export function SimulatedRuleEventDtoToJSON(value?: SimulatedRuleEventDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'eventId': value['eventId'], + 'uniqueId': value['uniqueId'], + 'eventName': value['eventName'], + 'event': value['event'], + 'enrichedEvent': value['enrichedEvent'], + 'actionName': value['actionName'], + 'actionData': value['actionData'], + 'error': value['error'], + 'skipReasons': ((value['skipReasons'] as Array).map(SkipReasonToJSON)), + }; +} diff --git a/src/generated/models/SimulatedRuleEventsDto.ts b/src/generated/models/SimulatedRuleEventsDto.ts new file mode 100644 index 0000000..e5a585d --- /dev/null +++ b/src/generated/models/SimulatedRuleEventsDto.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SimulatedRuleEventDto } from './SimulatedRuleEventDto'; +import { + SimulatedRuleEventDtoFromJSON, + SimulatedRuleEventDtoFromJSONTyped, + SimulatedRuleEventDtoToJSON, +} from './SimulatedRuleEventDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface SimulatedRuleEventsDto + */ +export interface SimulatedRuleEventsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof SimulatedRuleEventsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The total number of simulated rule events. + * @type {number} + * @memberof SimulatedRuleEventsDto + */ + total: number; + /** + * The simulated rule events. + * @type {Array} + * @memberof SimulatedRuleEventsDto + */ + items: Array; +} + +/** + * Check if a given object implements the SimulatedRuleEventsDto interface. + */ +export function instanceOfSimulatedRuleEventsDto(value: object): value is SimulatedRuleEventsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('total' in value) || value['total'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function SimulatedRuleEventsDtoFromJSON(json: any): SimulatedRuleEventsDto { + return SimulatedRuleEventsDtoFromJSONTyped(json, false); +} + +export function SimulatedRuleEventsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulatedRuleEventsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'total': json['total'], + 'items': ((json['items'] as Array).map(SimulatedRuleEventDtoFromJSON)), + }; +} + +export function SimulatedRuleEventsDtoToJSON(value?: SimulatedRuleEventsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'total': value['total'], + 'items': ((value['items'] as Array).map(SimulatedRuleEventDtoToJSON)), + }; +} diff --git a/src/generated/models/SkipReason.ts b/src/generated/models/SkipReason.ts new file mode 100644 index 0000000..feed904 --- /dev/null +++ b/src/generated/models/SkipReason.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const SkipReason = { + None: 'None', + ConditionDoesNotMatch: 'ConditionDoesNotMatch', + ConditionPrecheckDoesNotMatch: 'ConditionPrecheckDoesNotMatch', + Disabled: 'Disabled', + Failed: 'Failed', + FromRule: 'FromRule', + NoAction: 'NoAction', + NoTrigger: 'NoTrigger', + TooOld: 'TooOld', + WrongEvent: 'WrongEvent', + WrongEventForTrigger: 'WrongEventForTrigger' +} as const; +export type SkipReason = typeof SkipReason[keyof typeof SkipReason]; + + +export function instanceOfSkipReason(value: any): boolean { + for (const key in SkipReason) { + if (Object.prototype.hasOwnProperty.call(SkipReason, key)) { + if (SkipReason[key as keyof typeof SkipReason] === value) { + return true; + } + } + } + return false; +} + +export function SkipReasonFromJSON(json: any): SkipReason { + return SkipReasonFromJSONTyped(json, false); +} + +export function SkipReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkipReason { + return json as SkipReason; +} + +export function SkipReasonToJSON(value?: SkipReason | null): any { + return value as any; +} + diff --git a/src/generated/models/SlackRuleActionDto.ts b/src/generated/models/SlackRuleActionDto.ts new file mode 100644 index 0000000..ef489d2 --- /dev/null +++ b/src/generated/models/SlackRuleActionDto.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface SlackRuleActionDto + */ +export interface SlackRuleActionDto extends RuleActionDto { + /** + * The slack webhook url. + * @type {string} + * @memberof SlackRuleActionDto + */ + webhookUrl: string; + /** + * The text that is sent as message to slack. + * @type {string} + * @memberof SlackRuleActionDto + */ + text: string; +} + +/** + * Check if a given object implements the SlackRuleActionDto interface. + */ +export function instanceOfSlackRuleActionDto(value: object): value is SlackRuleActionDto { + if (!('webhookUrl' in value) || value['webhookUrl'] === undefined) return false; + if (!('text' in value) || value['text'] === undefined) return false; + return true; +} + +export function SlackRuleActionDtoFromJSON(json: any): SlackRuleActionDto { + return SlackRuleActionDtoFromJSONTyped(json, false); +} + +export function SlackRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlackRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'webhookUrl': json['webhookUrl'], + 'text': json['text'], + }; +} + +export function SlackRuleActionDtoToJSON(value?: SlackRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'webhookUrl': value['webhookUrl'], + 'text': value['text'], + }; +} diff --git a/src/generated/models/SortNode.ts b/src/generated/models/SortNode.ts new file mode 100644 index 0000000..36ee763 --- /dev/null +++ b/src/generated/models/SortNode.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SortOrder } from './SortOrder'; +import { + SortOrderFromJSON, + SortOrderFromJSONTyped, + SortOrderToJSON, +} from './SortOrder'; + +/** + * + * @export + * @interface SortNode + */ +export interface SortNode { + /** + * + * @type {string} + * @memberof SortNode + */ + path: string; + /** + * + * @type {SortOrder} + * @memberof SortNode + */ + order: SortOrder; +} + + + +/** + * Check if a given object implements the SortNode interface. + */ +export function instanceOfSortNode(value: object): value is SortNode { + if (!('path' in value) || value['path'] === undefined) return false; + if (!('order' in value) || value['order'] === undefined) return false; + return true; +} + +export function SortNodeFromJSON(json: any): SortNode { + return SortNodeFromJSONTyped(json, false); +} + +export function SortNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortNode { + if (json == null) { + return json; + } + return { + + 'path': json['path'], + 'order': SortOrderFromJSON(json['order']), + }; +} + +export function SortNodeToJSON(value?: SortNode | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'path': value['path'], + 'order': SortOrderToJSON(value['order']), + }; +} diff --git a/src/generated/models/SortOrder.ts b/src/generated/models/SortOrder.ts new file mode 100644 index 0000000..7ae8221 --- /dev/null +++ b/src/generated/models/SortOrder.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const SortOrder = { + Ascending: 'Ascending', + Descending: 'Descending' +} as const; +export type SortOrder = typeof SortOrder[keyof typeof SortOrder]; + + +export function instanceOfSortOrder(value: any): boolean { + for (const key in SortOrder) { + if (Object.prototype.hasOwnProperty.call(SortOrder, key)) { + if (SortOrder[key as keyof typeof SortOrder] === value) { + return true; + } + } + } + return false; +} + +export function SortOrderFromJSON(json: any): SortOrder { + return SortOrderFromJSONTyped(json, false); +} + +export function SortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortOrder { + return json as SortOrder; +} + +export function SortOrderToJSON(value?: SortOrder | null): any { + return value as any; +} + diff --git a/src/generated/models/StatusInfoDto.ts b/src/generated/models/StatusInfoDto.ts new file mode 100644 index 0000000..b55cb5c --- /dev/null +++ b/src/generated/models/StatusInfoDto.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface StatusInfoDto + */ +export interface StatusInfoDto { + /** + * The name of the status. + * @type {string} + * @memberof StatusInfoDto + */ + status: string; + /** + * The color of the status. + * @type {string} + * @memberof StatusInfoDto + */ + color: string; +} + +/** + * Check if a given object implements the StatusInfoDto interface. + */ +export function instanceOfStatusInfoDto(value: object): value is StatusInfoDto { + if (!('status' in value) || value['status'] === undefined) return false; + if (!('color' in value) || value['color'] === undefined) return false; + return true; +} + +export function StatusInfoDtoFromJSON(json: any): StatusInfoDto { + return StatusInfoDtoFromJSONTyped(json, false); +} + +export function StatusInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusInfoDto { + if (json == null) { + return json; + } + return { + + 'status': json['status'], + 'color': json['color'], + }; +} + +export function StatusInfoDtoToJSON(value?: StatusInfoDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'status': value['status'], + 'color': value['color'], + }; +} diff --git a/src/generated/models/StorageUsagePerDateDto.ts b/src/generated/models/StorageUsagePerDateDto.ts new file mode 100644 index 0000000..52bff0b --- /dev/null +++ b/src/generated/models/StorageUsagePerDateDto.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface StorageUsagePerDateDto + */ +export interface StorageUsagePerDateDto { + /** + * The date when the usage was tracked. + * @type {Date} + * @memberof StorageUsagePerDateDto + */ + date: Date; + /** + * The number of assets. + * @type {number} + * @memberof StorageUsagePerDateDto + */ + totalCount: number; + /** + * The size in bytes. + * @type {number} + * @memberof StorageUsagePerDateDto + */ + totalSize: number; +} + +/** + * Check if a given object implements the StorageUsagePerDateDto interface. + */ +export function instanceOfStorageUsagePerDateDto(value: object): value is StorageUsagePerDateDto { + if (!('date' in value) || value['date'] === undefined) return false; + if (!('totalCount' in value) || value['totalCount'] === undefined) return false; + if (!('totalSize' in value) || value['totalSize'] === undefined) return false; + return true; +} + +export function StorageUsagePerDateDtoFromJSON(json: any): StorageUsagePerDateDto { + return StorageUsagePerDateDtoFromJSONTyped(json, false); +} + +export function StorageUsagePerDateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageUsagePerDateDto { + if (json == null) { + return json; + } + return { + + 'date': (new Date(json['date'])), + 'totalCount': json['totalCount'], + 'totalSize': json['totalSize'], + }; +} + +export function StorageUsagePerDateDtoToJSON(value?: StorageUsagePerDateDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'date': ((value['date']).toISOString().substring(0,10)), + 'totalCount': value['totalCount'], + 'totalSize': value['totalSize'], + }; +} diff --git a/src/generated/models/StringContentType.ts b/src/generated/models/StringContentType.ts new file mode 100644 index 0000000..8cb5f6c --- /dev/null +++ b/src/generated/models/StringContentType.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const StringContentType = { + Unspecified: 'Unspecified', + Html: 'Html', + Markdown: 'Markdown' +} as const; +export type StringContentType = typeof StringContentType[keyof typeof StringContentType]; + + +export function instanceOfStringContentType(value: any): boolean { + for (const key in StringContentType) { + if (Object.prototype.hasOwnProperty.call(StringContentType, key)) { + if (StringContentType[key as keyof typeof StringContentType] === value) { + return true; + } + } + } + return false; +} + +export function StringContentTypeFromJSON(json: any): StringContentType { + return StringContentTypeFromJSONTyped(json, false); +} + +export function StringContentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StringContentType { + return json as StringContentType; +} + +export function StringContentTypeToJSON(value?: StringContentType | null): any { + return value as any; +} + diff --git a/src/generated/models/StringFieldEditor.ts b/src/generated/models/StringFieldEditor.ts new file mode 100644 index 0000000..b059f45 --- /dev/null +++ b/src/generated/models/StringFieldEditor.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const StringFieldEditor = { + Input: 'Input', + Color: 'Color', + Markdown: 'Markdown', + Dropdown: 'Dropdown', + Html: 'Html', + Radio: 'Radio', + RichText: 'RichText', + Slug: 'Slug', + StockPhoto: 'StockPhoto', + TextArea: 'TextArea' +} as const; +export type StringFieldEditor = typeof StringFieldEditor[keyof typeof StringFieldEditor]; + + +export function instanceOfStringFieldEditor(value: any): boolean { + for (const key in StringFieldEditor) { + if (Object.prototype.hasOwnProperty.call(StringFieldEditor, key)) { + if (StringFieldEditor[key as keyof typeof StringFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function StringFieldEditorFromJSON(json: any): StringFieldEditor { + return StringFieldEditorFromJSONTyped(json, false); +} + +export function StringFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): StringFieldEditor { + return json as StringFieldEditor; +} + +export function StringFieldEditorToJSON(value?: StringFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/StringFieldPropertiesDto.ts b/src/generated/models/StringFieldPropertiesDto.ts new file mode 100644 index 0000000..cb886e5 --- /dev/null +++ b/src/generated/models/StringFieldPropertiesDto.ts @@ -0,0 +1,232 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { StringFieldEditor } from './StringFieldEditor'; +import { + StringFieldEditorFromJSON, + StringFieldEditorFromJSONTyped, + StringFieldEditorToJSON, +} from './StringFieldEditor'; +import type { StringContentType } from './StringContentType'; +import { + StringContentTypeFromJSON, + StringContentTypeFromJSONTyped, + StringContentTypeToJSON, +} from './StringContentType'; + +/** + * + * @export + * @interface StringFieldPropertiesDto + */ +export interface StringFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {{ [key: string]: string; }} + * @memberof StringFieldPropertiesDto + */ + defaultValues?: { [key: string]: string; }; + /** + * The default value for the field value. + * @type {string} + * @memberof StringFieldPropertiesDto + */ + defaultValue?: string | null; + /** + * The pattern to enforce a specific format for the field value. + * @type {string} + * @memberof StringFieldPropertiesDto + */ + pattern?: string | null; + /** + * The validation message for the pattern. + * @type {string} + * @memberof StringFieldPropertiesDto + */ + patternMessage?: string | null; + /** + * The initial id to the folder when the control supports file uploads. + * @type {string} + * @memberof StringFieldPropertiesDto + */ + folderId?: string | null; + /** + * The minimum allowed length for the field value. + * @type {number} + * @memberof StringFieldPropertiesDto + */ + minLength?: number | null; + /** + * The maximum allowed length for the field value. + * @type {number} + * @memberof StringFieldPropertiesDto + */ + maxLength?: number | null; + /** + * The minimum allowed of normal characters for the field value. + * @type {number} + * @memberof StringFieldPropertiesDto + */ + minCharacters?: number | null; + /** + * The maximum allowed of normal characters for the field value. + * @type {number} + * @memberof StringFieldPropertiesDto + */ + maxCharacters?: number | null; + /** + * The minimum allowed number of words for the field value. + * @type {number} + * @memberof StringFieldPropertiesDto + */ + minWords?: number | null; + /** + * The maximum allowed number of words for the field value. + * @type {number} + * @memberof StringFieldPropertiesDto + */ + maxWords?: number | null; + /** + * The class names for the editor. + * @type {Array} + * @memberof StringFieldPropertiesDto + */ + classNames?: Array | null; + /** + * The allowed values for the field value. + * @type {Array} + * @memberof StringFieldPropertiesDto + */ + allowedValues?: Array | null; + /** + * The allowed schema ids that can be embedded. + * @type {Array} + * @memberof StringFieldPropertiesDto + */ + schemaIds?: Array | null; + /** + * Indicates if the field value must be unique. Ignored for nested fields and localized fields. + * @type {boolean} + * @memberof StringFieldPropertiesDto + */ + isUnique?: boolean; + /** + * Indicates that other content items or references are embedded. + * @type {boolean} + * @memberof StringFieldPropertiesDto + */ + isEmbeddable?: boolean; + /** + * Indicates that the inline editor is enabled for this field. + * @type {boolean} + * @memberof StringFieldPropertiesDto + */ + inlineEditable?: boolean; + /** + * Indicates whether GraphQL Enum should be created. + * @type {boolean} + * @memberof StringFieldPropertiesDto + */ + createEnum?: boolean; + /** + * + * @type {StringContentType} + * @memberof StringFieldPropertiesDto + */ + contentType?: StringContentType; + /** + * + * @type {StringFieldEditor} + * @memberof StringFieldPropertiesDto + */ + editor?: StringFieldEditor; +} + + + +/** + * Check if a given object implements the StringFieldPropertiesDto interface. + */ +export function instanceOfStringFieldPropertiesDto(value: object): value is StringFieldPropertiesDto { + return true; +} + +export function StringFieldPropertiesDtoFromJSON(json: any): StringFieldPropertiesDto { + return StringFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function StringFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StringFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], + 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], + 'pattern': json['pattern'] == null ? undefined : json['pattern'], + 'patternMessage': json['patternMessage'] == null ? undefined : json['patternMessage'], + 'folderId': json['folderId'] == null ? undefined : json['folderId'], + 'minLength': json['minLength'] == null ? undefined : json['minLength'], + 'maxLength': json['maxLength'] == null ? undefined : json['maxLength'], + 'minCharacters': json['minCharacters'] == null ? undefined : json['minCharacters'], + 'maxCharacters': json['maxCharacters'] == null ? undefined : json['maxCharacters'], + 'minWords': json['minWords'] == null ? undefined : json['minWords'], + 'maxWords': json['maxWords'] == null ? undefined : json['maxWords'], + 'classNames': json['classNames'] == null ? undefined : json['classNames'], + 'allowedValues': json['allowedValues'] == null ? undefined : json['allowedValues'], + 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], + 'isUnique': json['isUnique'] == null ? undefined : json['isUnique'], + 'isEmbeddable': json['isEmbeddable'] == null ? undefined : json['isEmbeddable'], + 'inlineEditable': json['inlineEditable'] == null ? undefined : json['inlineEditable'], + 'createEnum': json['createEnum'] == null ? undefined : json['createEnum'], + 'contentType': json['contentType'] == null ? undefined : StringContentTypeFromJSON(json['contentType']), + 'editor': json['editor'] == null ? undefined : StringFieldEditorFromJSON(json['editor']), + }; +} + +export function StringFieldPropertiesDtoToJSON(value?: StringFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'defaultValues': value['defaultValues'], + 'defaultValue': value['defaultValue'], + 'pattern': value['pattern'], + 'patternMessage': value['patternMessage'], + 'folderId': value['folderId'], + 'minLength': value['minLength'], + 'maxLength': value['maxLength'], + 'minCharacters': value['minCharacters'], + 'maxCharacters': value['maxCharacters'], + 'minWords': value['minWords'], + 'maxWords': value['maxWords'], + 'classNames': value['classNames'], + 'allowedValues': value['allowedValues'], + 'schemaIds': value['schemaIds'], + 'isUnique': value['isUnique'], + 'isEmbeddable': value['isEmbeddable'], + 'inlineEditable': value['inlineEditable'], + 'createEnum': value['createEnum'], + 'contentType': StringContentTypeToJSON(value['contentType']), + 'editor': StringFieldEditorToJSON(value['editor']), + }; +} diff --git a/src/generated/models/SynchronizeSchemaDto.ts b/src/generated/models/SynchronizeSchemaDto.ts new file mode 100644 index 0000000..56e9a72 --- /dev/null +++ b/src/generated/models/SynchronizeSchemaDto.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; +import { + SchemaPropertiesDtoFromJSON, + SchemaPropertiesDtoFromJSONTyped, + SchemaPropertiesDtoToJSON, +} from './SchemaPropertiesDto'; +import type { SchemaScriptsDto } from './SchemaScriptsDto'; +import { + SchemaScriptsDtoFromJSON, + SchemaScriptsDtoFromJSONTyped, + SchemaScriptsDtoToJSON, +} from './SchemaScriptsDto'; +import type { UpsertSchemaFieldDto } from './UpsertSchemaFieldDto'; +import { + UpsertSchemaFieldDtoFromJSON, + UpsertSchemaFieldDtoFromJSONTyped, + UpsertSchemaFieldDtoToJSON, +} from './UpsertSchemaFieldDto'; +import type { FieldRuleDto } from './FieldRuleDto'; +import { + FieldRuleDtoFromJSON, + FieldRuleDtoFromJSONTyped, + FieldRuleDtoToJSON, +} from './FieldRuleDto'; + +/** + * + * @export + * @interface SynchronizeSchemaDto + */ +export interface SynchronizeSchemaDto { + /** + * + * @type {SchemaPropertiesDto} + * @memberof SynchronizeSchemaDto + */ + properties?: SchemaPropertiesDto; + /** + * + * @type {SchemaScriptsDto} + * @memberof SynchronizeSchemaDto + */ + scripts?: SchemaScriptsDto; + /** + * The names of the fields that should be used in references. + * @type {Array} + * @memberof SynchronizeSchemaDto + */ + fieldsInReferences?: Array | null; + /** + * The names of the fields that should be shown in lists, including meta fields. + * @type {Array} + * @memberof SynchronizeSchemaDto + */ + fieldsInLists?: Array | null; + /** + * Optional fields. + * @type {Array} + * @memberof SynchronizeSchemaDto + */ + fields?: Array | null; + /** + * The optional preview urls. + * @type {{ [key: string]: string; }} + * @memberof SynchronizeSchemaDto + */ + previewUrls?: { [key: string]: string; } | null; + /** + * The optional field Rules. + * @type {Array} + * @memberof SynchronizeSchemaDto + */ + fieldRules?: Array | null; + /** + * The category. + * @type {string} + * @memberof SynchronizeSchemaDto + */ + category?: string | null; + /** + * Set it to true to autopublish the schema. + * @type {boolean} + * @memberof SynchronizeSchemaDto + */ + isPublished?: boolean; + /** + * True, when fields should not be deleted. + * @type {boolean} + * @memberof SynchronizeSchemaDto + */ + noFieldDeletion?: boolean; + /** + * True, when fields with different types should not be recreated. + * @type {boolean} + * @memberof SynchronizeSchemaDto + */ + noFieldRecreation?: boolean; +} + +/** + * Check if a given object implements the SynchronizeSchemaDto interface. + */ +export function instanceOfSynchronizeSchemaDto(value: object): value is SynchronizeSchemaDto { + return true; +} + +export function SynchronizeSchemaDtoFromJSON(json: any): SynchronizeSchemaDto { + return SynchronizeSchemaDtoFromJSONTyped(json, false); +} + +export function SynchronizeSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SynchronizeSchemaDto { + if (json == null) { + return json; + } + return { + + 'properties': json['properties'] == null ? undefined : SchemaPropertiesDtoFromJSON(json['properties']), + 'scripts': json['scripts'] == null ? undefined : SchemaScriptsDtoFromJSON(json['scripts']), + 'fieldsInReferences': json['fieldsInReferences'] == null ? undefined : json['fieldsInReferences'], + 'fieldsInLists': json['fieldsInLists'] == null ? undefined : json['fieldsInLists'], + 'fields': json['fields'] == null ? undefined : ((json['fields'] as Array).map(UpsertSchemaFieldDtoFromJSON)), + 'previewUrls': json['previewUrls'] == null ? undefined : json['previewUrls'], + 'fieldRules': json['fieldRules'] == null ? undefined : ((json['fieldRules'] as Array).map(FieldRuleDtoFromJSON)), + 'category': json['category'] == null ? undefined : json['category'], + 'isPublished': json['isPublished'] == null ? undefined : json['isPublished'], + 'noFieldDeletion': json['noFieldDeletion'] == null ? undefined : json['noFieldDeletion'], + 'noFieldRecreation': json['noFieldRecreation'] == null ? undefined : json['noFieldRecreation'], + }; +} + +export function SynchronizeSchemaDtoToJSON(value?: SynchronizeSchemaDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'properties': SchemaPropertiesDtoToJSON(value['properties']), + 'scripts': SchemaScriptsDtoToJSON(value['scripts']), + 'fieldsInReferences': value['fieldsInReferences'], + 'fieldsInLists': value['fieldsInLists'], + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'previewUrls': value['previewUrls'], + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'category': value['category'], + 'isPublished': value['isPublished'], + 'noFieldDeletion': value['noFieldDeletion'], + 'noFieldRecreation': value['noFieldRecreation'], + }; +} diff --git a/src/generated/models/TagsFieldEditor.ts b/src/generated/models/TagsFieldEditor.ts new file mode 100644 index 0000000..4828c7b --- /dev/null +++ b/src/generated/models/TagsFieldEditor.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const TagsFieldEditor = { + Tags: 'Tags', + Checkboxes: 'Checkboxes', + Dropdown: 'Dropdown' +} as const; +export type TagsFieldEditor = typeof TagsFieldEditor[keyof typeof TagsFieldEditor]; + + +export function instanceOfTagsFieldEditor(value: any): boolean { + for (const key in TagsFieldEditor) { + if (Object.prototype.hasOwnProperty.call(TagsFieldEditor, key)) { + if (TagsFieldEditor[key as keyof typeof TagsFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function TagsFieldEditorFromJSON(json: any): TagsFieldEditor { + return TagsFieldEditorFromJSONTyped(json, false); +} + +export function TagsFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagsFieldEditor { + return json as TagsFieldEditor; +} + +export function TagsFieldEditorToJSON(value?: TagsFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/TagsFieldPropertiesDto.ts b/src/generated/models/TagsFieldPropertiesDto.ts new file mode 100644 index 0000000..a9effdd --- /dev/null +++ b/src/generated/models/TagsFieldPropertiesDto.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { TagsFieldEditor } from './TagsFieldEditor'; +import { + TagsFieldEditorFromJSON, + TagsFieldEditorFromJSONTyped, + TagsFieldEditorToJSON, +} from './TagsFieldEditor'; + +/** + * + * @export + * @interface TagsFieldPropertiesDto + */ +export interface TagsFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {{ [key: string]: Array; }} + * @memberof TagsFieldPropertiesDto + */ + defaultValues?: { [key: string]: Array; }; + /** + * The default value. + * @type {Array} + * @memberof TagsFieldPropertiesDto + */ + defaultValue?: Array | null; + /** + * The minimum allowed items for the field value. + * @type {number} + * @memberof TagsFieldPropertiesDto + */ + minItems?: number | null; + /** + * The maximum allowed items for the field value. + * @type {number} + * @memberof TagsFieldPropertiesDto + */ + maxItems?: number | null; + /** + * The allowed values for the field value. + * @type {Array} + * @memberof TagsFieldPropertiesDto + */ + allowedValues?: Array | null; + /** + * Indicates whether GraphQL Enum should be created. + * @type {boolean} + * @memberof TagsFieldPropertiesDto + */ + createEnum?: boolean; + /** + * + * @type {TagsFieldEditor} + * @memberof TagsFieldPropertiesDto + */ + editor?: TagsFieldEditor; +} + + + +/** + * Check if a given object implements the TagsFieldPropertiesDto interface. + */ +export function instanceOfTagsFieldPropertiesDto(value: object): value is TagsFieldPropertiesDto { + return true; +} + +export function TagsFieldPropertiesDtoFromJSON(json: any): TagsFieldPropertiesDto { + return TagsFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function TagsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagsFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], + 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], + 'minItems': json['minItems'] == null ? undefined : json['minItems'], + 'maxItems': json['maxItems'] == null ? undefined : json['maxItems'], + 'allowedValues': json['allowedValues'] == null ? undefined : json['allowedValues'], + 'createEnum': json['createEnum'] == null ? undefined : json['createEnum'], + 'editor': json['editor'] == null ? undefined : TagsFieldEditorFromJSON(json['editor']), + }; +} + +export function TagsFieldPropertiesDtoToJSON(value?: TagsFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'defaultValues': value['defaultValues'], + 'defaultValue': value['defaultValue'], + 'minItems': value['minItems'], + 'maxItems': value['maxItems'], + 'allowedValues': value['allowedValues'], + 'createEnum': value['createEnum'], + 'editor': TagsFieldEditorToJSON(value['editor']), + }; +} diff --git a/src/generated/models/TeamDto.ts b/src/generated/models/TeamDto.ts new file mode 100644 index 0000000..5e48043 --- /dev/null +++ b/src/generated/models/TeamDto.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface TeamDto + */ +export interface TeamDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof TeamDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the team. + * @type {string} + * @memberof TeamDto + */ + id: string; + /** + * The name of the team. + * @type {string} + * @memberof TeamDto + */ + name: string; + /** + * The version of the team. + * @type {number} + * @memberof TeamDto + */ + version: number; + /** + * The timestamp when the team has been created. + * @type {Date} + * @memberof TeamDto + */ + created: Date; + /** + * The timestamp when the team has been modified last. + * @type {Date} + * @memberof TeamDto + */ + lastModified: Date; + /** + * The role name of the user. + * @type {string} + * @memberof TeamDto + */ + roleName?: string | null; +} + +/** + * Check if a given object implements the TeamDto interface. + */ +export function instanceOfTeamDto(value: object): value is TeamDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + if (!('created' in value) || value['created'] === undefined) return false; + if (!('lastModified' in value) || value['lastModified'] === undefined) return false; + return true; +} + +export function TeamDtoFromJSON(json: any): TeamDto { + return TeamDtoFromJSONTyped(json, false); +} + +export function TeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'name': json['name'], + 'version': json['version'], + 'created': (new Date(json['created'])), + 'lastModified': (new Date(json['lastModified'])), + 'roleName': json['roleName'] == null ? undefined : json['roleName'], + }; +} + +export function TeamDtoToJSON(value?: TeamDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'name': value['name'], + 'version': value['version'], + 'created': ((value['created']).toISOString()), + 'lastModified': ((value['lastModified']).toISOString()), + 'roleName': value['roleName'], + }; +} diff --git a/src/generated/models/TemplateDetailsDto.ts b/src/generated/models/TemplateDetailsDto.ts new file mode 100644 index 0000000..d039b42 --- /dev/null +++ b/src/generated/models/TemplateDetailsDto.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface TemplateDetailsDto + */ +export interface TemplateDetailsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof TemplateDetailsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The details of the template. + * @type {string} + * @memberof TemplateDetailsDto + */ + details: string; +} + +/** + * Check if a given object implements the TemplateDetailsDto interface. + */ +export function instanceOfTemplateDetailsDto(value: object): value is TemplateDetailsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('details' in value) || value['details'] === undefined) return false; + return true; +} + +export function TemplateDetailsDtoFromJSON(json: any): TemplateDetailsDto { + return TemplateDetailsDtoFromJSONTyped(json, false); +} + +export function TemplateDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplateDetailsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'details': json['details'], + }; +} + +export function TemplateDetailsDtoToJSON(value?: TemplateDetailsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'details': value['details'], + }; +} diff --git a/src/generated/models/TemplateDto.ts b/src/generated/models/TemplateDto.ts new file mode 100644 index 0000000..923318e --- /dev/null +++ b/src/generated/models/TemplateDto.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface TemplateDto + */ +export interface TemplateDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof TemplateDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The name of the template. + * @type {string} + * @memberof TemplateDto + */ + name: string; + /** + * The title of the template. + * @type {string} + * @memberof TemplateDto + */ + title: string; + /** + * The description of the template. + * @type {string} + * @memberof TemplateDto + */ + description: string; + /** + * True, if the template is a starter. + * @type {boolean} + * @memberof TemplateDto + */ + isStarter: boolean; +} + +/** + * Check if a given object implements the TemplateDto interface. + */ +export function instanceOfTemplateDto(value: object): value is TemplateDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('title' in value) || value['title'] === undefined) return false; + if (!('description' in value) || value['description'] === undefined) return false; + if (!('isStarter' in value) || value['isStarter'] === undefined) return false; + return true; +} + +export function TemplateDtoFromJSON(json: any): TemplateDto { + return TemplateDtoFromJSONTyped(json, false); +} + +export function TemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplateDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'name': json['name'], + 'title': json['title'], + 'description': json['description'], + 'isStarter': json['isStarter'], + }; +} + +export function TemplateDtoToJSON(value?: TemplateDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'name': value['name'], + 'title': value['title'], + 'description': value['description'], + 'isStarter': value['isStarter'], + }; +} diff --git a/src/generated/models/TemplatesDto.ts b/src/generated/models/TemplatesDto.ts new file mode 100644 index 0000000..89de0c7 --- /dev/null +++ b/src/generated/models/TemplatesDto.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { TemplateDto } from './TemplateDto'; +import { + TemplateDtoFromJSON, + TemplateDtoFromJSONTyped, + TemplateDtoToJSON, +} from './TemplateDto'; + +/** + * + * @export + * @interface TemplatesDto + */ +export interface TemplatesDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof TemplatesDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The event consumers. + * @type {Array} + * @memberof TemplatesDto + */ + items: Array; +} + +/** + * Check if a given object implements the TemplatesDto interface. + */ +export function instanceOfTemplatesDto(value: object): value is TemplatesDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function TemplatesDtoFromJSON(json: any): TemplatesDto { + return TemplatesDtoFromJSONTyped(json, false); +} + +export function TemplatesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplatesDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(TemplateDtoFromJSON)), + }; +} + +export function TemplatesDtoToJSON(value?: TemplatesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(TemplateDtoToJSON)), + }; +} diff --git a/src/generated/models/TransferToTeamDto.ts b/src/generated/models/TransferToTeamDto.ts new file mode 100644 index 0000000..7a71fbb --- /dev/null +++ b/src/generated/models/TransferToTeamDto.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransferToTeamDto + */ +export interface TransferToTeamDto { + /** + * The ID of the team. + * @type {string} + * @memberof TransferToTeamDto + */ + teamId?: string | null; +} + +/** + * Check if a given object implements the TransferToTeamDto interface. + */ +export function instanceOfTransferToTeamDto(value: object): value is TransferToTeamDto { + return true; +} + +export function TransferToTeamDtoFromJSON(json: any): TransferToTeamDto { + return TransferToTeamDtoFromJSONTyped(json, false); +} + +export function TransferToTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransferToTeamDto { + if (json == null) { + return json; + } + return { + + 'teamId': json['teamId'] == null ? undefined : json['teamId'], + }; +} + +export function TransferToTeamDtoToJSON(value?: TransferToTeamDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'teamId': value['teamId'], + }; +} diff --git a/src/generated/models/TranslateDto.ts b/src/generated/models/TranslateDto.ts new file mode 100644 index 0000000..0d8c647 --- /dev/null +++ b/src/generated/models/TranslateDto.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TranslateDto + */ +export interface TranslateDto { + /** + * The text to translate. + * @type {string} + * @memberof TranslateDto + */ + text: string; + /** + * The target language. + * @type {string} + * @memberof TranslateDto + */ + targetLanguage: string; + /** + * The optional source language. + * @type {string} + * @memberof TranslateDto + */ + sourceLanguage?: string; +} + +/** + * Check if a given object implements the TranslateDto interface. + */ +export function instanceOfTranslateDto(value: object): value is TranslateDto { + if (!('text' in value) || value['text'] === undefined) return false; + if (!('targetLanguage' in value) || value['targetLanguage'] === undefined) return false; + return true; +} + +export function TranslateDtoFromJSON(json: any): TranslateDto { + return TranslateDtoFromJSONTyped(json, false); +} + +export function TranslateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslateDto { + if (json == null) { + return json; + } + return { + + 'text': json['text'], + 'targetLanguage': json['targetLanguage'], + 'sourceLanguage': json['sourceLanguage'] == null ? undefined : json['sourceLanguage'], + }; +} + +export function TranslateDtoToJSON(value?: TranslateDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'text': value['text'], + 'targetLanguage': value['targetLanguage'], + 'sourceLanguage': value['sourceLanguage'], + }; +} diff --git a/src/generated/models/TranslationDto.ts b/src/generated/models/TranslationDto.ts new file mode 100644 index 0000000..8230bf5 --- /dev/null +++ b/src/generated/models/TranslationDto.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { TranslationStatus } from './TranslationStatus'; +import { + TranslationStatusFromJSON, + TranslationStatusFromJSONTyped, + TranslationStatusToJSON, +} from './TranslationStatus'; + +/** + * + * @export + * @interface TranslationDto + */ +export interface TranslationDto { + /** + * + * @type {TranslationStatus} + * @memberof TranslationDto + */ + status: TranslationStatus; + /** + * + * @type {TranslationStatus} + * @memberof TranslationDto + */ + result: TranslationStatus; + /** + * The translated text. + * @type {string} + * @memberof TranslationDto + */ + text?: string | null; +} + + + +/** + * Check if a given object implements the TranslationDto interface. + */ +export function instanceOfTranslationDto(value: object): value is TranslationDto { + if (!('status' in value) || value['status'] === undefined) return false; + if (!('result' in value) || value['result'] === undefined) return false; + return true; +} + +export function TranslationDtoFromJSON(json: any): TranslationDto { + return TranslationDtoFromJSONTyped(json, false); +} + +export function TranslationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslationDto { + if (json == null) { + return json; + } + return { + + 'status': TranslationStatusFromJSON(json['status']), + 'result': TranslationStatusFromJSON(json['result']), + 'text': json['text'] == null ? undefined : json['text'], + }; +} + +export function TranslationDtoToJSON(value?: TranslationDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'status': TranslationStatusToJSON(value['status']), + 'result': TranslationStatusToJSON(value['result']), + 'text': value['text'], + }; +} diff --git a/src/generated/models/TranslationStatus.ts b/src/generated/models/TranslationStatus.ts new file mode 100644 index 0000000..91695e2 --- /dev/null +++ b/src/generated/models/TranslationStatus.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const TranslationStatus = { + Translated: 'Translated', + LanguageNotSupported: 'LanguageNotSupported', + NotTranslated: 'NotTranslated', + NotConfigured: 'NotConfigured', + Unauthorized: 'Unauthorized', + Failed: 'Failed' +} as const; +export type TranslationStatus = typeof TranslationStatus[keyof typeof TranslationStatus]; + + +export function instanceOfTranslationStatus(value: any): boolean { + for (const key in TranslationStatus) { + if (Object.prototype.hasOwnProperty.call(TranslationStatus, key)) { + if (TranslationStatus[key as keyof typeof TranslationStatus] === value) { + return true; + } + } + } + return false; +} + +export function TranslationStatusFromJSON(json: any): TranslationStatus { + return TranslationStatusFromJSONTyped(json, false); +} + +export function TranslationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslationStatus { + return json as TranslationStatus; +} + +export function TranslationStatusToJSON(value?: TranslationStatus | null): any { + return value as any; +} + diff --git a/src/generated/models/TweetRuleActionDto.ts b/src/generated/models/TweetRuleActionDto.ts new file mode 100644 index 0000000..d86a7b4 --- /dev/null +++ b/src/generated/models/TweetRuleActionDto.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface TweetRuleActionDto + */ +export interface TweetRuleActionDto extends RuleActionDto { + /** + * The generated access token. + * @type {string} + * @memberof TweetRuleActionDto + */ + accessToken: string; + /** + * The generated access secret. + * @type {string} + * @memberof TweetRuleActionDto + */ + accessSecret: string; + /** + * The text that is sent as tweet to twitter. + * @type {string} + * @memberof TweetRuleActionDto + */ + text: string; +} + +/** + * Check if a given object implements the TweetRuleActionDto interface. + */ +export function instanceOfTweetRuleActionDto(value: object): value is TweetRuleActionDto { + if (!('accessToken' in value) || value['accessToken'] === undefined) return false; + if (!('accessSecret' in value) || value['accessSecret'] === undefined) return false; + if (!('text' in value) || value['text'] === undefined) return false; + return true; +} + +export function TweetRuleActionDtoFromJSON(json: any): TweetRuleActionDto { + return TweetRuleActionDtoFromJSONTyped(json, false); +} + +export function TweetRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'accessToken': json['accessToken'], + 'accessSecret': json['accessSecret'], + 'text': json['text'], + }; +} + +export function TweetRuleActionDtoToJSON(value?: TweetRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'accessToken': value['accessToken'], + 'accessSecret': value['accessSecret'], + 'text': value['text'], + }; +} diff --git a/src/generated/models/TypesenseRuleActionDto.ts b/src/generated/models/TypesenseRuleActionDto.ts new file mode 100644 index 0000000..0aca8a2 --- /dev/null +++ b/src/generated/models/TypesenseRuleActionDto.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface TypesenseRuleActionDto + */ +export interface TypesenseRuleActionDto extends RuleActionDto { + /** + * The url to the instance or cluster. + * @type {string} + * @memberof TypesenseRuleActionDto + */ + host: string; + /** + * The name of the index. + * @type {string} + * @memberof TypesenseRuleActionDto + */ + indexName: string; + /** + * The api key. + * @type {string} + * @memberof TypesenseRuleActionDto + */ + apiKey: string; + /** + * The optional custom document. + * @type {string} + * @memberof TypesenseRuleActionDto + */ + document?: string | null; + /** + * The condition when to delete the document. + * @type {string} + * @memberof TypesenseRuleActionDto + */ + _delete?: string | null; +} + +/** + * Check if a given object implements the TypesenseRuleActionDto interface. + */ +export function instanceOfTypesenseRuleActionDto(value: object): value is TypesenseRuleActionDto { + if (!('host' in value) || value['host'] === undefined) return false; + if (!('indexName' in value) || value['indexName'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function TypesenseRuleActionDtoFromJSON(json: any): TypesenseRuleActionDto { + return TypesenseRuleActionDtoFromJSONTyped(json, false); +} + +export function TypesenseRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypesenseRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'host': json['host'], + 'indexName': json['indexName'], + 'apiKey': json['apiKey'], + 'document': json['document'] == null ? undefined : json['document'], + '_delete': json['delete'] == null ? undefined : json['delete'], + }; +} + +export function TypesenseRuleActionDtoToJSON(value?: TypesenseRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'host': value['host'], + 'indexName': value['indexName'], + 'apiKey': value['apiKey'], + 'document': value['document'], + 'delete': value['_delete'], + }; +} diff --git a/src/generated/models/UIFieldEditor.ts b/src/generated/models/UIFieldEditor.ts new file mode 100644 index 0000000..773ad1c --- /dev/null +++ b/src/generated/models/UIFieldEditor.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const UIFieldEditor = { + Separator: 'Separator' +} as const; +export type UIFieldEditor = typeof UIFieldEditor[keyof typeof UIFieldEditor]; + + +export function instanceOfUIFieldEditor(value: any): boolean { + for (const key in UIFieldEditor) { + if (Object.prototype.hasOwnProperty.call(UIFieldEditor, key)) { + if (UIFieldEditor[key as keyof typeof UIFieldEditor] === value) { + return true; + } + } + } + return false; +} + +export function UIFieldEditorFromJSON(json: any): UIFieldEditor { + return UIFieldEditorFromJSONTyped(json, false); +} + +export function UIFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UIFieldEditor { + return json as UIFieldEditor; +} + +export function UIFieldEditorToJSON(value?: UIFieldEditor | null): any { + return value as any; +} + diff --git a/src/generated/models/UIFieldPropertiesDto.ts b/src/generated/models/UIFieldPropertiesDto.ts new file mode 100644 index 0000000..3167a50 --- /dev/null +++ b/src/generated/models/UIFieldPropertiesDto.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { UIFieldEditor } from './UIFieldEditor'; +import { + UIFieldEditorFromJSON, + UIFieldEditorFromJSONTyped, + UIFieldEditorToJSON, +} from './UIFieldEditor'; + +/** + * + * @export + * @interface UIFieldPropertiesDto + */ +export interface UIFieldPropertiesDto extends FieldPropertiesDto { + /** + * + * @type {UIFieldEditor} + * @memberof UIFieldPropertiesDto + */ + editor?: UIFieldEditor; +} + + + +/** + * Check if a given object implements the UIFieldPropertiesDto interface. + */ +export function instanceOfUIFieldPropertiesDto(value: object): value is UIFieldPropertiesDto { + return true; +} + +export function UIFieldPropertiesDtoFromJSON(json: any): UIFieldPropertiesDto { + return UIFieldPropertiesDtoFromJSONTyped(json, false); +} + +export function UIFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UIFieldPropertiesDto { + if (json == null) { + return json; + } + return { + ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + 'editor': json['editor'] == null ? undefined : UIFieldEditorFromJSON(json['editor']), + }; +} + +export function UIFieldPropertiesDtoToJSON(value?: UIFieldPropertiesDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...FieldPropertiesDtoToJSON(value, true), + 'editor': UIFieldEditorToJSON(value['editor']), + }; +} diff --git a/src/generated/models/UpdateAppDto.ts b/src/generated/models/UpdateAppDto.ts new file mode 100644 index 0000000..8973a1e --- /dev/null +++ b/src/generated/models/UpdateAppDto.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateAppDto + */ +export interface UpdateAppDto { + /** + * The optional label of your app. + * @type {string} + * @memberof UpdateAppDto + */ + label?: string | null; + /** + * The optional description of your app. + * @type {string} + * @memberof UpdateAppDto + */ + description?: string | null; +} + +/** + * Check if a given object implements the UpdateAppDto interface. + */ +export function instanceOfUpdateAppDto(value: object): value is UpdateAppDto { + return true; +} + +export function UpdateAppDtoFromJSON(json: any): UpdateAppDto { + return UpdateAppDtoFromJSONTyped(json, false); +} + +export function UpdateAppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAppDto { + if (json == null) { + return json; + } + return { + + 'label': json['label'] == null ? undefined : json['label'], + 'description': json['description'] == null ? undefined : json['description'], + }; +} + +export function UpdateAppDtoToJSON(value?: UpdateAppDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'label': value['label'], + 'description': value['description'], + }; +} diff --git a/src/generated/models/UpdateAppSettingsDto.ts b/src/generated/models/UpdateAppSettingsDto.ts new file mode 100644 index 0000000..ee99d04 --- /dev/null +++ b/src/generated/models/UpdateAppSettingsDto.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { PatternDto } from './PatternDto'; +import { + PatternDtoFromJSON, + PatternDtoFromJSONTyped, + PatternDtoToJSON, +} from './PatternDto'; +import type { EditorDto } from './EditorDto'; +import { + EditorDtoFromJSON, + EditorDtoFromJSONTyped, + EditorDtoToJSON, +} from './EditorDto'; + +/** + * + * @export + * @interface UpdateAppSettingsDto + */ +export interface UpdateAppSettingsDto { + /** + * The configured app patterns. + * @type {Array} + * @memberof UpdateAppSettingsDto + */ + patterns: Array; + /** + * The configured UI editors. + * @type {Array} + * @memberof UpdateAppSettingsDto + */ + editors: Array; + /** + * Hide the scheduler for content items. + * @type {boolean} + * @memberof UpdateAppSettingsDto + */ + hideScheduler?: boolean; + /** + * Hide the datetime mode button. + * @type {boolean} + * @memberof UpdateAppSettingsDto + */ + hideDateTimeModeButton?: boolean; +} + +/** + * Check if a given object implements the UpdateAppSettingsDto interface. + */ +export function instanceOfUpdateAppSettingsDto(value: object): value is UpdateAppSettingsDto { + if (!('patterns' in value) || value['patterns'] === undefined) return false; + if (!('editors' in value) || value['editors'] === undefined) return false; + return true; +} + +export function UpdateAppSettingsDtoFromJSON(json: any): UpdateAppSettingsDto { + return UpdateAppSettingsDtoFromJSONTyped(json, false); +} + +export function UpdateAppSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAppSettingsDto { + if (json == null) { + return json; + } + return { + + 'patterns': ((json['patterns'] as Array).map(PatternDtoFromJSON)), + 'editors': ((json['editors'] as Array).map(EditorDtoFromJSON)), + 'hideScheduler': json['hideScheduler'] == null ? undefined : json['hideScheduler'], + 'hideDateTimeModeButton': json['hideDateTimeModeButton'] == null ? undefined : json['hideDateTimeModeButton'], + }; +} + +export function UpdateAppSettingsDtoToJSON(value?: UpdateAppSettingsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'patterns': ((value['patterns'] as Array).map(PatternDtoToJSON)), + 'editors': ((value['editors'] as Array).map(EditorDtoToJSON)), + 'hideScheduler': value['hideScheduler'], + 'hideDateTimeModeButton': value['hideDateTimeModeButton'], + }; +} diff --git a/src/generated/models/UpdateAssetScriptsDto.ts b/src/generated/models/UpdateAssetScriptsDto.ts new file mode 100644 index 0000000..43d4b22 --- /dev/null +++ b/src/generated/models/UpdateAssetScriptsDto.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateAssetScriptsDto + */ +export interface UpdateAssetScriptsDto { + /** + * The script that is executed for each asset when querying assets. + * @type {string} + * @memberof UpdateAssetScriptsDto + */ + query?: string | null; + /** + * The script that is executed for all assets when querying assets. + * @type {string} + * @memberof UpdateAssetScriptsDto + */ + queryPre?: string | null; + /** + * The script that is executed when creating an asset. + * @type {string} + * @memberof UpdateAssetScriptsDto + */ + create?: string | null; + /** + * The script that is executed when updating a content. + * @type {string} + * @memberof UpdateAssetScriptsDto + */ + update?: string | null; + /** + * The script that is executed when annotating a content. + * @type {string} + * @memberof UpdateAssetScriptsDto + */ + annotate?: string | null; + /** + * The script that is executed when moving a content. + * @type {string} + * @memberof UpdateAssetScriptsDto + */ + move?: string | null; + /** + * The script that is executed when deleting a content. + * @type {string} + * @memberof UpdateAssetScriptsDto + */ + _delete?: string | null; +} + +/** + * Check if a given object implements the UpdateAssetScriptsDto interface. + */ +export function instanceOfUpdateAssetScriptsDto(value: object): value is UpdateAssetScriptsDto { + return true; +} + +export function UpdateAssetScriptsDtoFromJSON(json: any): UpdateAssetScriptsDto { + return UpdateAssetScriptsDtoFromJSONTyped(json, false); +} + +export function UpdateAssetScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAssetScriptsDto { + if (json == null) { + return json; + } + return { + + 'query': json['query'] == null ? undefined : json['query'], + 'queryPre': json['queryPre'] == null ? undefined : json['queryPre'], + 'create': json['create'] == null ? undefined : json['create'], + 'update': json['update'] == null ? undefined : json['update'], + 'annotate': json['annotate'] == null ? undefined : json['annotate'], + 'move': json['move'] == null ? undefined : json['move'], + '_delete': json['delete'] == null ? undefined : json['delete'], + }; +} + +export function UpdateAssetScriptsDtoToJSON(value?: UpdateAssetScriptsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'query': value['query'], + 'queryPre': value['queryPre'], + 'create': value['create'], + 'update': value['update'], + 'annotate': value['annotate'], + 'move': value['move'], + 'delete': value['_delete'], + }; +} diff --git a/src/generated/models/UpdateClientDto.ts b/src/generated/models/UpdateClientDto.ts new file mode 100644 index 0000000..f0931b9 --- /dev/null +++ b/src/generated/models/UpdateClientDto.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateClientDto + */ +export interface UpdateClientDto { + /** + * The new display name of the client. + * @type {string} + * @memberof UpdateClientDto + */ + name?: string | null; + /** + * The role of the client. + * @type {string} + * @memberof UpdateClientDto + */ + role?: string | null; + /** + * True to allow anonymous access without an access token for this client. + * @type {boolean} + * @memberof UpdateClientDto + */ + allowAnonymous?: boolean | null; + /** + * The number of allowed api calls per month for this client. + * @type {number} + * @memberof UpdateClientDto + */ + apiCallsLimit?: number | null; + /** + * The number of allowed api traffic bytes per month for this client. + * @type {number} + * @memberof UpdateClientDto + */ + apiTrafficLimit?: number | null; +} + +/** + * Check if a given object implements the UpdateClientDto interface. + */ +export function instanceOfUpdateClientDto(value: object): value is UpdateClientDto { + return true; +} + +export function UpdateClientDtoFromJSON(json: any): UpdateClientDto { + return UpdateClientDtoFromJSONTyped(json, false); +} + +export function UpdateClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateClientDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'] == null ? undefined : json['name'], + 'role': json['role'] == null ? undefined : json['role'], + 'allowAnonymous': json['allowAnonymous'] == null ? undefined : json['allowAnonymous'], + 'apiCallsLimit': json['apiCallsLimit'] == null ? undefined : json['apiCallsLimit'], + 'apiTrafficLimit': json['apiTrafficLimit'] == null ? undefined : json['apiTrafficLimit'], + }; +} + +export function UpdateClientDtoToJSON(value?: UpdateClientDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'role': value['role'], + 'allowAnonymous': value['allowAnonymous'], + 'apiCallsLimit': value['apiCallsLimit'], + 'apiTrafficLimit': value['apiTrafficLimit'], + }; +} diff --git a/src/generated/models/UpdateFieldDto.ts b/src/generated/models/UpdateFieldDto.ts new file mode 100644 index 0000000..c24bbad --- /dev/null +++ b/src/generated/models/UpdateFieldDto.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; + +/** + * + * @export + * @interface UpdateFieldDto + */ +export interface UpdateFieldDto { + /** + * + * @type {FieldPropertiesDto} + * @memberof UpdateFieldDto + */ + properties: FieldPropertiesDto; +} + +/** + * Check if a given object implements the UpdateFieldDto interface. + */ +export function instanceOfUpdateFieldDto(value: object): value is UpdateFieldDto { + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function UpdateFieldDtoFromJSON(json: any): UpdateFieldDto { + return UpdateFieldDtoFromJSONTyped(json, false); +} + +export function UpdateFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFieldDto { + if (json == null) { + return json; + } + return { + + 'properties': FieldPropertiesDtoFromJSON(json['properties']), + }; +} + +export function UpdateFieldDtoToJSON(value?: UpdateFieldDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'properties': FieldPropertiesDtoToJSON(value['properties']), + }; +} diff --git a/src/generated/models/UpdateLanguageDto.ts b/src/generated/models/UpdateLanguageDto.ts new file mode 100644 index 0000000..cacfdd8 --- /dev/null +++ b/src/generated/models/UpdateLanguageDto.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateLanguageDto + */ +export interface UpdateLanguageDto { + /** + * Set the value to true to make the language the master. + * @type {boolean} + * @memberof UpdateLanguageDto + */ + isMaster?: boolean | null; + /** + * Set the value to true to make the language optional. + * @type {boolean} + * @memberof UpdateLanguageDto + */ + isOptional?: boolean; + /** + * Optional fallback languages. + * @type {Array} + * @memberof UpdateLanguageDto + */ + fallback?: Array | null; +} + +/** + * Check if a given object implements the UpdateLanguageDto interface. + */ +export function instanceOfUpdateLanguageDto(value: object): value is UpdateLanguageDto { + return true; +} + +export function UpdateLanguageDtoFromJSON(json: any): UpdateLanguageDto { + return UpdateLanguageDtoFromJSONTyped(json, false); +} + +export function UpdateLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLanguageDto { + if (json == null) { + return json; + } + return { + + 'isMaster': json['isMaster'] == null ? undefined : json['isMaster'], + 'isOptional': json['isOptional'] == null ? undefined : json['isOptional'], + 'fallback': json['fallback'] == null ? undefined : json['fallback'], + }; +} + +export function UpdateLanguageDtoToJSON(value?: UpdateLanguageDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'isMaster': value['isMaster'], + 'isOptional': value['isOptional'], + 'fallback': value['fallback'], + }; +} diff --git a/src/generated/models/UpdateProfileDto.ts b/src/generated/models/UpdateProfileDto.ts new file mode 100644 index 0000000..eda200e --- /dev/null +++ b/src/generated/models/UpdateProfileDto.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateProfileDto + */ +export interface UpdateProfileDto { + /** + * The answers from a questionaire. + * @type {{ [key: string]: string | null; }} + * @memberof UpdateProfileDto + */ + answers?: { [key: string]: string | null; } | null; +} + +/** + * Check if a given object implements the UpdateProfileDto interface. + */ +export function instanceOfUpdateProfileDto(value: object): value is UpdateProfileDto { + return true; +} + +export function UpdateProfileDtoFromJSON(json: any): UpdateProfileDto { + return UpdateProfileDtoFromJSONTyped(json, false); +} + +export function UpdateProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProfileDto { + if (json == null) { + return json; + } + return { + + 'answers': json['answers'] == null ? undefined : json['answers'], + }; +} + +export function UpdateProfileDtoToJSON(value?: UpdateProfileDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'answers': value['answers'], + }; +} diff --git a/src/generated/models/UpdateRoleDto.ts b/src/generated/models/UpdateRoleDto.ts new file mode 100644 index 0000000..4421d5b --- /dev/null +++ b/src/generated/models/UpdateRoleDto.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateRoleDto + */ +export interface UpdateRoleDto { + /** + * Associated list of permissions. + * @type {Array} + * @memberof UpdateRoleDto + */ + permissions: Array; + /** + * Associated list of UI properties. + * @type {{ [key: string]: any; }} + * @memberof UpdateRoleDto + */ + properties?: { [key: string]: any; }; +} + +/** + * Check if a given object implements the UpdateRoleDto interface. + */ +export function instanceOfUpdateRoleDto(value: object): value is UpdateRoleDto { + if (!('permissions' in value) || value['permissions'] === undefined) return false; + return true; +} + +export function UpdateRoleDtoFromJSON(json: any): UpdateRoleDto { + return UpdateRoleDtoFromJSONTyped(json, false); +} + +export function UpdateRoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoleDto { + if (json == null) { + return json; + } + return { + + 'permissions': json['permissions'], + 'properties': json['properties'] == null ? undefined : json['properties'], + }; +} + +export function UpdateRoleDtoToJSON(value?: UpdateRoleDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'permissions': value['permissions'], + 'properties': value['properties'], + }; +} diff --git a/src/generated/models/UpdateRuleDto.ts b/src/generated/models/UpdateRuleDto.ts new file mode 100644 index 0000000..f02da43 --- /dev/null +++ b/src/generated/models/UpdateRuleDto.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface UpdateRuleDto + */ +export interface UpdateRuleDto { + /** + * Optional rule name. + * @type {string} + * @memberof UpdateRuleDto + */ + name?: string | null; + /** + * + * @type {RuleTriggerDto} + * @memberof UpdateRuleDto + */ + trigger?: RuleTriggerDto; + /** + * + * @type {RuleActionDto} + * @memberof UpdateRuleDto + */ + action?: RuleActionDto; + /** + * Enable or disable the rule. + * @type {boolean} + * @memberof UpdateRuleDto + */ + isEnabled?: boolean | null; +} + +/** + * Check if a given object implements the UpdateRuleDto interface. + */ +export function instanceOfUpdateRuleDto(value: object): value is UpdateRuleDto { + return true; +} + +export function UpdateRuleDtoFromJSON(json: any): UpdateRuleDto { + return UpdateRuleDtoFromJSONTyped(json, false); +} + +export function UpdateRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRuleDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'] == null ? undefined : json['name'], + 'trigger': json['trigger'] == null ? undefined : RuleTriggerDtoFromJSON(json['trigger']), + 'action': json['action'] == null ? undefined : RuleActionDtoFromJSON(json['action']), + 'isEnabled': json['isEnabled'] == null ? undefined : json['isEnabled'], + }; +} + +export function UpdateRuleDtoToJSON(value?: UpdateRuleDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'trigger': RuleTriggerDtoToJSON(value['trigger']), + 'action': RuleActionDtoToJSON(value['action']), + 'isEnabled': value['isEnabled'], + }; +} diff --git a/src/generated/models/UpdateSchemaDto.ts b/src/generated/models/UpdateSchemaDto.ts new file mode 100644 index 0000000..cfcd10a --- /dev/null +++ b/src/generated/models/UpdateSchemaDto.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateSchemaDto + */ +export interface UpdateSchemaDto { + /** + * Optional label for the editor. + * @type {string} + * @memberof UpdateSchemaDto + */ + label?: string | null; + /** + * Hints to describe the schema. + * @type {string} + * @memberof UpdateSchemaDto + */ + hints?: string | null; + /** + * The url to a the sidebar plugin for content lists. + * @type {string} + * @memberof UpdateSchemaDto + */ + contentsSidebarUrl?: string | null; + /** + * The url to a the sidebar plugin for content items. + * @type {string} + * @memberof UpdateSchemaDto + */ + contentSidebarUrl?: string | null; + /** + * The url to the content list plugin. + * @type {string} + * @memberof UpdateSchemaDto + */ + contentsListUrl?: string | null; + /** + * True to validate the content items on publish. + * @type {boolean} + * @memberof UpdateSchemaDto + */ + validateOnPublish?: boolean; + /** + * Tags for automation processes. + * @type {Array} + * @memberof UpdateSchemaDto + */ + tags?: Array | null; +} + +/** + * Check if a given object implements the UpdateSchemaDto interface. + */ +export function instanceOfUpdateSchemaDto(value: object): value is UpdateSchemaDto { + return true; +} + +export function UpdateSchemaDtoFromJSON(json: any): UpdateSchemaDto { + return UpdateSchemaDtoFromJSONTyped(json, false); +} + +export function UpdateSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSchemaDto { + if (json == null) { + return json; + } + return { + + 'label': json['label'] == null ? undefined : json['label'], + 'hints': json['hints'] == null ? undefined : json['hints'], + 'contentsSidebarUrl': json['contentsSidebarUrl'] == null ? undefined : json['contentsSidebarUrl'], + 'contentSidebarUrl': json['contentSidebarUrl'] == null ? undefined : json['contentSidebarUrl'], + 'contentsListUrl': json['contentsListUrl'] == null ? undefined : json['contentsListUrl'], + 'validateOnPublish': json['validateOnPublish'] == null ? undefined : json['validateOnPublish'], + 'tags': json['tags'] == null ? undefined : json['tags'], + }; +} + +export function UpdateSchemaDtoToJSON(value?: UpdateSchemaDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'label': value['label'], + 'hints': value['hints'], + 'contentsSidebarUrl': value['contentsSidebarUrl'], + 'contentSidebarUrl': value['contentSidebarUrl'], + 'contentsListUrl': value['contentsListUrl'], + 'validateOnPublish': value['validateOnPublish'], + 'tags': value['tags'], + }; +} diff --git a/src/generated/models/UpdateSettingDto.ts b/src/generated/models/UpdateSettingDto.ts new file mode 100644 index 0000000..1903fcf --- /dev/null +++ b/src/generated/models/UpdateSettingDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateSettingDto + */ +export interface UpdateSettingDto { + /** + * The value for the setting. + * @type {any} + * @memberof UpdateSettingDto + */ + value: any | null; +} + +/** + * Check if a given object implements the UpdateSettingDto interface. + */ +export function instanceOfUpdateSettingDto(value: object): value is UpdateSettingDto { + if (!('value' in value) || value['value'] === undefined) return false; + return true; +} + +export function UpdateSettingDtoFromJSON(json: any): UpdateSettingDto { + return UpdateSettingDtoFromJSONTyped(json, false); +} + +export function UpdateSettingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettingDto { + if (json == null) { + return json; + } + return { + + 'value': json['value'], + }; +} + +export function UpdateSettingDtoToJSON(value?: UpdateSettingDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'value': value['value'], + }; +} diff --git a/src/generated/models/UpdateTeamDto.ts b/src/generated/models/UpdateTeamDto.ts new file mode 100644 index 0000000..baeb6b7 --- /dev/null +++ b/src/generated/models/UpdateTeamDto.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateTeamDto + */ +export interface UpdateTeamDto { + /** + * The name of the team. + * @type {string} + * @memberof UpdateTeamDto + */ + name: string; +} + +/** + * Check if a given object implements the UpdateTeamDto interface. + */ +export function instanceOfUpdateTeamDto(value: object): value is UpdateTeamDto { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function UpdateTeamDtoFromJSON(json: any): UpdateTeamDto { + return UpdateTeamDtoFromJSONTyped(json, false); +} + +export function UpdateTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTeamDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function UpdateTeamDtoToJSON(value?: UpdateTeamDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + }; +} diff --git a/src/generated/models/UpdateUserDto.ts b/src/generated/models/UpdateUserDto.ts new file mode 100644 index 0000000..06a8618 --- /dev/null +++ b/src/generated/models/UpdateUserDto.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateUserDto + */ +export interface UpdateUserDto { + /** + * The email of the user. Unique value. + * @type {string} + * @memberof UpdateUserDto + */ + email: string; + /** + * The display name (usually first name and last name) of the user. + * @type {string} + * @memberof UpdateUserDto + */ + displayName: string; + /** + * The password of the user. + * @type {string} + * @memberof UpdateUserDto + */ + password?: string | null; + /** + * Additional permissions for the user. + * @type {Array} + * @memberof UpdateUserDto + */ + permissions: Array; +} + +/** + * Check if a given object implements the UpdateUserDto interface. + */ +export function instanceOfUpdateUserDto(value: object): value is UpdateUserDto { + if (!('email' in value) || value['email'] === undefined) return false; + if (!('displayName' in value) || value['displayName'] === undefined) return false; + if (!('permissions' in value) || value['permissions'] === undefined) return false; + return true; +} + +export function UpdateUserDtoFromJSON(json: any): UpdateUserDto { + return UpdateUserDtoFromJSONTyped(json, false); +} + +export function UpdateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserDto { + if (json == null) { + return json; + } + return { + + 'email': json['email'], + 'displayName': json['displayName'], + 'password': json['password'] == null ? undefined : json['password'], + 'permissions': json['permissions'], + }; +} + +export function UpdateUserDtoToJSON(value?: UpdateUserDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'email': value['email'], + 'displayName': value['displayName'], + 'password': value['password'], + 'permissions': value['permissions'], + }; +} diff --git a/src/generated/models/UpdateWorkflowDto.ts b/src/generated/models/UpdateWorkflowDto.ts new file mode 100644 index 0000000..5ff6ed3 --- /dev/null +++ b/src/generated/models/UpdateWorkflowDto.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { WorkflowStepDto } from './WorkflowStepDto'; +import { + WorkflowStepDtoFromJSON, + WorkflowStepDtoFromJSONTyped, + WorkflowStepDtoToJSON, +} from './WorkflowStepDto'; + +/** + * + * @export + * @interface UpdateWorkflowDto + */ +export interface UpdateWorkflowDto { + /** + * The name of the workflow. + * @type {string} + * @memberof UpdateWorkflowDto + */ + name?: string | null; + /** + * The workflow steps. + * @type {{ [key: string]: WorkflowStepDto; }} + * @memberof UpdateWorkflowDto + */ + steps: { [key: string]: WorkflowStepDto; }; + /** + * The schema ids. + * @type {Array} + * @memberof UpdateWorkflowDto + */ + schemaIds?: Array | null; + /** + * The initial step. + * @type {string} + * @memberof UpdateWorkflowDto + */ + initial: string; +} + +/** + * Check if a given object implements the UpdateWorkflowDto interface. + */ +export function instanceOfUpdateWorkflowDto(value: object): value is UpdateWorkflowDto { + if (!('steps' in value) || value['steps'] === undefined) return false; + if (!('initial' in value) || value['initial'] === undefined) return false; + return true; +} + +export function UpdateWorkflowDtoFromJSON(json: any): UpdateWorkflowDto { + return UpdateWorkflowDtoFromJSONTyped(json, false); +} + +export function UpdateWorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWorkflowDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'] == null ? undefined : json['name'], + 'steps': (mapValues(json['steps'], WorkflowStepDtoFromJSON)), + 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], + 'initial': json['initial'], + }; +} + +export function UpdateWorkflowDtoToJSON(value?: UpdateWorkflowDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'steps': (mapValues(value['steps'], WorkflowStepDtoToJSON)), + 'schemaIds': value['schemaIds'], + 'initial': value['initial'], + }; +} diff --git a/src/generated/models/UpsertSchemaDto.ts b/src/generated/models/UpsertSchemaDto.ts new file mode 100644 index 0000000..f843e58 --- /dev/null +++ b/src/generated/models/UpsertSchemaDto.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; +import { + SchemaPropertiesDtoFromJSON, + SchemaPropertiesDtoFromJSONTyped, + SchemaPropertiesDtoToJSON, +} from './SchemaPropertiesDto'; +import type { SchemaScriptsDto } from './SchemaScriptsDto'; +import { + SchemaScriptsDtoFromJSON, + SchemaScriptsDtoFromJSONTyped, + SchemaScriptsDtoToJSON, +} from './SchemaScriptsDto'; +import type { UpsertSchemaFieldDto } from './UpsertSchemaFieldDto'; +import { + UpsertSchemaFieldDtoFromJSON, + UpsertSchemaFieldDtoFromJSONTyped, + UpsertSchemaFieldDtoToJSON, +} from './UpsertSchemaFieldDto'; +import type { FieldRuleDto } from './FieldRuleDto'; +import { + FieldRuleDtoFromJSON, + FieldRuleDtoFromJSONTyped, + FieldRuleDtoToJSON, +} from './FieldRuleDto'; + +/** + * + * @export + * @interface UpsertSchemaDto + */ +export interface UpsertSchemaDto { + /** + * + * @type {SchemaPropertiesDto} + * @memberof UpsertSchemaDto + */ + properties?: SchemaPropertiesDto; + /** + * + * @type {SchemaScriptsDto} + * @memberof UpsertSchemaDto + */ + scripts?: SchemaScriptsDto; + /** + * The names of the fields that should be used in references. + * @type {Array} + * @memberof UpsertSchemaDto + */ + fieldsInReferences?: Array | null; + /** + * The names of the fields that should be shown in lists, including meta fields. + * @type {Array} + * @memberof UpsertSchemaDto + */ + fieldsInLists?: Array | null; + /** + * Optional fields. + * @type {Array} + * @memberof UpsertSchemaDto + */ + fields?: Array | null; + /** + * The optional preview urls. + * @type {{ [key: string]: string; }} + * @memberof UpsertSchemaDto + */ + previewUrls?: { [key: string]: string; } | null; + /** + * The optional field Rules. + * @type {Array} + * @memberof UpsertSchemaDto + */ + fieldRules?: Array | null; + /** + * The category. + * @type {string} + * @memberof UpsertSchemaDto + */ + category?: string | null; + /** + * Set it to true to autopublish the schema. + * @type {boolean} + * @memberof UpsertSchemaDto + */ + isPublished?: boolean; +} + +/** + * Check if a given object implements the UpsertSchemaDto interface. + */ +export function instanceOfUpsertSchemaDto(value: object): value is UpsertSchemaDto { + return true; +} + +export function UpsertSchemaDtoFromJSON(json: any): UpsertSchemaDto { + return UpsertSchemaDtoFromJSONTyped(json, false); +} + +export function UpsertSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertSchemaDto { + if (json == null) { + return json; + } + return { + + 'properties': json['properties'] == null ? undefined : SchemaPropertiesDtoFromJSON(json['properties']), + 'scripts': json['scripts'] == null ? undefined : SchemaScriptsDtoFromJSON(json['scripts']), + 'fieldsInReferences': json['fieldsInReferences'] == null ? undefined : json['fieldsInReferences'], + 'fieldsInLists': json['fieldsInLists'] == null ? undefined : json['fieldsInLists'], + 'fields': json['fields'] == null ? undefined : ((json['fields'] as Array).map(UpsertSchemaFieldDtoFromJSON)), + 'previewUrls': json['previewUrls'] == null ? undefined : json['previewUrls'], + 'fieldRules': json['fieldRules'] == null ? undefined : ((json['fieldRules'] as Array).map(FieldRuleDtoFromJSON)), + 'category': json['category'] == null ? undefined : json['category'], + 'isPublished': json['isPublished'] == null ? undefined : json['isPublished'], + }; +} + +export function UpsertSchemaDtoToJSON(value?: UpsertSchemaDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'properties': SchemaPropertiesDtoToJSON(value['properties']), + 'scripts': SchemaScriptsDtoToJSON(value['scripts']), + 'fieldsInReferences': value['fieldsInReferences'], + 'fieldsInLists': value['fieldsInLists'], + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'previewUrls': value['previewUrls'], + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'category': value['category'], + 'isPublished': value['isPublished'], + }; +} diff --git a/src/generated/models/UpsertSchemaFieldDto.ts b/src/generated/models/UpsertSchemaFieldDto.ts new file mode 100644 index 0000000..cc3762d --- /dev/null +++ b/src/generated/models/UpsertSchemaFieldDto.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; +import type { UpsertSchemaNestedFieldDto } from './UpsertSchemaNestedFieldDto'; +import { + UpsertSchemaNestedFieldDtoFromJSON, + UpsertSchemaNestedFieldDtoFromJSONTyped, + UpsertSchemaNestedFieldDtoToJSON, +} from './UpsertSchemaNestedFieldDto'; + +/** + * + * @export + * @interface UpsertSchemaFieldDto + */ +export interface UpsertSchemaFieldDto { + /** + * The name of the field. Must be unique within the schema. + * @type {string} + * @memberof UpsertSchemaFieldDto + */ + name: string; + /** + * Defines if the field is hidden. + * @type {boolean} + * @memberof UpsertSchemaFieldDto + */ + isHidden?: boolean; + /** + * Defines if the field is locked. + * @type {boolean} + * @memberof UpsertSchemaFieldDto + */ + isLocked?: boolean; + /** + * Defines if the field is disabled. + * @type {boolean} + * @memberof UpsertSchemaFieldDto + */ + isDisabled?: boolean; + /** + * Determines the optional partitioning of the field. + * @type {string} + * @memberof UpsertSchemaFieldDto + */ + partitioning?: string | null; + /** + * + * @type {FieldPropertiesDto} + * @memberof UpsertSchemaFieldDto + */ + properties: FieldPropertiesDto; + /** + * The nested fields. + * @type {Array} + * @memberof UpsertSchemaFieldDto + */ + nested?: Array | null; +} + +/** + * Check if a given object implements the UpsertSchemaFieldDto interface. + */ +export function instanceOfUpsertSchemaFieldDto(value: object): value is UpsertSchemaFieldDto { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function UpsertSchemaFieldDtoFromJSON(json: any): UpsertSchemaFieldDto { + return UpsertSchemaFieldDtoFromJSONTyped(json, false); +} + +export function UpsertSchemaFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertSchemaFieldDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'isHidden': json['isHidden'] == null ? undefined : json['isHidden'], + 'isLocked': json['isLocked'] == null ? undefined : json['isLocked'], + 'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'], + 'partitioning': json['partitioning'] == null ? undefined : json['partitioning'], + 'properties': FieldPropertiesDtoFromJSON(json['properties']), + 'nested': json['nested'] == null ? undefined : ((json['nested'] as Array).map(UpsertSchemaNestedFieldDtoFromJSON)), + }; +} + +export function UpsertSchemaFieldDtoToJSON(value?: UpsertSchemaFieldDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'isHidden': value['isHidden'], + 'isLocked': value['isLocked'], + 'isDisabled': value['isDisabled'], + 'partitioning': value['partitioning'], + 'properties': FieldPropertiesDtoToJSON(value['properties']), + 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(UpsertSchemaNestedFieldDtoToJSON)), + }; +} diff --git a/src/generated/models/UpsertSchemaNestedFieldDto.ts b/src/generated/models/UpsertSchemaNestedFieldDto.ts new file mode 100644 index 0000000..81de061 --- /dev/null +++ b/src/generated/models/UpsertSchemaNestedFieldDto.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { FieldPropertiesDto } from './FieldPropertiesDto'; +import { + FieldPropertiesDtoFromJSON, + FieldPropertiesDtoFromJSONTyped, + FieldPropertiesDtoToJSON, +} from './FieldPropertiesDto'; + +/** + * + * @export + * @interface UpsertSchemaNestedFieldDto + */ +export interface UpsertSchemaNestedFieldDto { + /** + * The name of the field. Must be unique within the schema. + * @type {string} + * @memberof UpsertSchemaNestedFieldDto + */ + name: string; + /** + * Defines if the field is hidden. + * @type {boolean} + * @memberof UpsertSchemaNestedFieldDto + */ + isHidden?: boolean; + /** + * Defines if the field is locked. + * @type {boolean} + * @memberof UpsertSchemaNestedFieldDto + */ + isLocked?: boolean; + /** + * Defines if the field is disabled. + * @type {boolean} + * @memberof UpsertSchemaNestedFieldDto + */ + isDisabled?: boolean; + /** + * + * @type {FieldPropertiesDto} + * @memberof UpsertSchemaNestedFieldDto + */ + properties: FieldPropertiesDto; +} + +/** + * Check if a given object implements the UpsertSchemaNestedFieldDto interface. + */ +export function instanceOfUpsertSchemaNestedFieldDto(value: object): value is UpsertSchemaNestedFieldDto { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('properties' in value) || value['properties'] === undefined) return false; + return true; +} + +export function UpsertSchemaNestedFieldDtoFromJSON(json: any): UpsertSchemaNestedFieldDto { + return UpsertSchemaNestedFieldDtoFromJSONTyped(json, false); +} + +export function UpsertSchemaNestedFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertSchemaNestedFieldDto { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'isHidden': json['isHidden'] == null ? undefined : json['isHidden'], + 'isLocked': json['isLocked'] == null ? undefined : json['isLocked'], + 'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'], + 'properties': FieldPropertiesDtoFromJSON(json['properties']), + }; +} + +export function UpsertSchemaNestedFieldDtoToJSON(value?: UpsertSchemaNestedFieldDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'isHidden': value['isHidden'], + 'isLocked': value['isLocked'], + 'isDisabled': value['isDisabled'], + 'properties': FieldPropertiesDtoToJSON(value['properties']), + }; +} diff --git a/src/generated/models/UsageRuleTriggerDto.ts b/src/generated/models/UsageRuleTriggerDto.ts new file mode 100644 index 0000000..b328fda --- /dev/null +++ b/src/generated/models/UsageRuleTriggerDto.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RuleTriggerDto } from './RuleTriggerDto'; +import { + RuleTriggerDtoFromJSON, + RuleTriggerDtoFromJSONTyped, + RuleTriggerDtoToJSON, +} from './RuleTriggerDto'; + +/** + * + * @export + * @interface UsageRuleTriggerDto + */ +export interface UsageRuleTriggerDto extends RuleTriggerDto { + /** + * The number of monthly api calls. + * @type {number} + * @memberof UsageRuleTriggerDto + */ + limit: number; + /** + * The number of days to check or null for the current month. + * @type {number} + * @memberof UsageRuleTriggerDto + */ + numDays?: number | null; +} + +/** + * Check if a given object implements the UsageRuleTriggerDto interface. + */ +export function instanceOfUsageRuleTriggerDto(value: object): value is UsageRuleTriggerDto { + if (!('limit' in value) || value['limit'] === undefined) return false; + return true; +} + +export function UsageRuleTriggerDtoFromJSON(json: any): UsageRuleTriggerDto { + return UsageRuleTriggerDtoFromJSONTyped(json, false); +} + +export function UsageRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageRuleTriggerDto { + if (json == null) { + return json; + } + return { + ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + 'limit': json['limit'], + 'numDays': json['numDays'] == null ? undefined : json['numDays'], + }; +} + +export function UsageRuleTriggerDtoToJSON(value?: UsageRuleTriggerDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleTriggerDtoToJSON(value, true), + 'limit': value['limit'], + 'numDays': value['numDays'], + }; +} diff --git a/src/generated/models/UserDto.ts b/src/generated/models/UserDto.ts new file mode 100644 index 0000000..3ffde4a --- /dev/null +++ b/src/generated/models/UserDto.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface UserDto + */ +export interface UserDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof UserDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The ID of the user. + * @type {string} + * @memberof UserDto + */ + id: string; + /** + * The email of the user. Unique value. + * @type {string} + * @memberof UserDto + */ + email: string; + /** + * The display name (usually first name and last name) of the user. + * @type {string} + * @memberof UserDto + */ + displayName: string; + /** + * Determines if the user is locked. + * @type {boolean} + * @memberof UserDto + */ + isLocked: boolean; + /** + * Additional permissions for the user. + * @type {Array} + * @memberof UserDto + */ + permissions: Array; +} + +/** + * Check if a given object implements the UserDto interface. + */ +export function instanceOfUserDto(value: object): value is UserDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('email' in value) || value['email'] === undefined) return false; + if (!('displayName' in value) || value['displayName'] === undefined) return false; + if (!('isLocked' in value) || value['isLocked'] === undefined) return false; + if (!('permissions' in value) || value['permissions'] === undefined) return false; + return true; +} + +export function UserDtoFromJSON(json: any): UserDto { + return UserDtoFromJSONTyped(json, false); +} + +export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'email': json['email'], + 'displayName': json['displayName'], + 'isLocked': json['isLocked'], + 'permissions': json['permissions'], + }; +} + +export function UserDtoToJSON(value?: UserDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'email': value['email'], + 'displayName': value['displayName'], + 'isLocked': value['isLocked'], + 'permissions': value['permissions'], + }; +} diff --git a/src/generated/models/UserProperty.ts b/src/generated/models/UserProperty.ts new file mode 100644 index 0000000..a9fa845 --- /dev/null +++ b/src/generated/models/UserProperty.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UserProperty + */ +export interface UserProperty { + /** + * + * @type {string} + * @memberof UserProperty + */ + name: string; + /** + * + * @type {string} + * @memberof UserProperty + */ + value: string; +} + +/** + * Check if a given object implements the UserProperty interface. + */ +export function instanceOfUserProperty(value: object): value is UserProperty { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('value' in value) || value['value'] === undefined) return false; + return true; +} + +export function UserPropertyFromJSON(json: any): UserProperty { + return UserPropertyFromJSONTyped(json, false); +} + +export function UserPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProperty { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'value': json['value'], + }; +} + +export function UserPropertyToJSON(value?: UserProperty | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'name': value['name'], + 'value': value['value'], + }; +} diff --git a/src/generated/models/UsersDto.ts b/src/generated/models/UsersDto.ts new file mode 100644 index 0000000..c5ca215 --- /dev/null +++ b/src/generated/models/UsersDto.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { UserDto } from './UserDto'; +import { + UserDtoFromJSON, + UserDtoFromJSONTyped, + UserDtoToJSON, +} from './UserDto'; + +/** + * + * @export + * @interface UsersDto + */ +export interface UsersDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof UsersDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The total number of users. + * @type {number} + * @memberof UsersDto + */ + total: number; + /** + * The users. + * @type {Array} + * @memberof UsersDto + */ + items: Array; +} + +/** + * Check if a given object implements the UsersDto interface. + */ +export function instanceOfUsersDto(value: object): value is UsersDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('total' in value) || value['total'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function UsersDtoFromJSON(json: any): UsersDto { + return UsersDtoFromJSONTyped(json, false); +} + +export function UsersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'total': json['total'], + 'items': ((json['items'] as Array).map(UserDtoFromJSON)), + }; +} + +export function UsersDtoToJSON(value?: UsersDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'total': value['total'], + 'items': ((value['items'] as Array).map(UserDtoToJSON)), + }; +} diff --git a/src/generated/models/WebhookMethod.ts b/src/generated/models/WebhookMethod.ts new file mode 100644 index 0000000..2f2697a --- /dev/null +++ b/src/generated/models/WebhookMethod.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WebhookMethod = { + Post: 'POST', + Put: 'PUT', + Get: 'GET', + Delete: 'DELETE', + Patch: 'PATCH' +} as const; +export type WebhookMethod = typeof WebhookMethod[keyof typeof WebhookMethod]; + + +export function instanceOfWebhookMethod(value: any): boolean { + for (const key in WebhookMethod) { + if (Object.prototype.hasOwnProperty.call(WebhookMethod, key)) { + if (WebhookMethod[key as keyof typeof WebhookMethod] === value) { + return true; + } + } + } + return false; +} + +export function WebhookMethodFromJSON(json: any): WebhookMethod { + return WebhookMethodFromJSONTyped(json, false); +} + +export function WebhookMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookMethod { + return json as WebhookMethod; +} + +export function WebhookMethodToJSON(value?: WebhookMethod | null): any { + return value as any; +} + diff --git a/src/generated/models/WebhookRuleActionDto.ts b/src/generated/models/WebhookRuleActionDto.ts new file mode 100644 index 0000000..9665b80 --- /dev/null +++ b/src/generated/models/WebhookRuleActionDto.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { WebhookMethod } from './WebhookMethod'; +import { + WebhookMethodFromJSON, + WebhookMethodFromJSONTyped, + WebhookMethodToJSON, +} from './WebhookMethod'; +import type { RuleActionDto } from './RuleActionDto'; +import { + RuleActionDtoFromJSON, + RuleActionDtoFromJSONTyped, + RuleActionDtoToJSON, +} from './RuleActionDto'; + +/** + * + * @export + * @interface WebhookRuleActionDto + */ +export interface WebhookRuleActionDto extends RuleActionDto { + /** + * The url to the webhook. + * @type {string} + * @memberof WebhookRuleActionDto + */ + url: string; + /** + * + * @type {WebhookMethod} + * @memberof WebhookRuleActionDto + */ + method: WebhookMethod; + /** + * Leave it empty to use the full event as body. + * @type {string} + * @memberof WebhookRuleActionDto + */ + payload?: string | null; + /** + * The mime type of the payload. + * @type {string} + * @memberof WebhookRuleActionDto + */ + payloadType?: string | null; + /** + * The message headers in the format '[Key]=[Value]', one entry per line. + * @type {string} + * @memberof WebhookRuleActionDto + */ + headers?: string | null; + /** + * The shared secret that is used to calculate the payload signature. + * @type {string} + * @memberof WebhookRuleActionDto + */ + sharedSecret?: string | null; +} + + + +/** + * Check if a given object implements the WebhookRuleActionDto interface. + */ +export function instanceOfWebhookRuleActionDto(value: object): value is WebhookRuleActionDto { + if (!('url' in value) || value['url'] === undefined) return false; + if (!('method' in value) || value['method'] === undefined) return false; + return true; +} + +export function WebhookRuleActionDtoFromJSON(json: any): WebhookRuleActionDto { + return WebhookRuleActionDtoFromJSONTyped(json, false); +} + +export function WebhookRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookRuleActionDto { + if (json == null) { + return json; + } + return { + ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + 'url': json['url'], + 'method': WebhookMethodFromJSON(json['method']), + 'payload': json['payload'] == null ? undefined : json['payload'], + 'payloadType': json['payloadType'] == null ? undefined : json['payloadType'], + 'headers': json['headers'] == null ? undefined : json['headers'], + 'sharedSecret': json['sharedSecret'] == null ? undefined : json['sharedSecret'], + }; +} + +export function WebhookRuleActionDtoToJSON(value?: WebhookRuleActionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + ...RuleActionDtoToJSON(value, true), + 'url': value['url'], + 'method': WebhookMethodToJSON(value['method']), + 'payload': value['payload'], + 'payloadType': value['payloadType'], + 'headers': value['headers'], + 'sharedSecret': value['sharedSecret'], + }; +} diff --git a/src/generated/models/WorkflowDto.ts b/src/generated/models/WorkflowDto.ts new file mode 100644 index 0000000..5696ded --- /dev/null +++ b/src/generated/models/WorkflowDto.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; +import type { WorkflowStepDto } from './WorkflowStepDto'; +import { + WorkflowStepDtoFromJSON, + WorkflowStepDtoFromJSONTyped, + WorkflowStepDtoToJSON, +} from './WorkflowStepDto'; + +/** + * + * @export + * @interface WorkflowDto + */ +export interface WorkflowDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof WorkflowDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The workflow id. + * @type {string} + * @memberof WorkflowDto + */ + id: string; + /** + * The name of the workflow. + * @type {string} + * @memberof WorkflowDto + */ + name?: string | null; + /** + * The workflow steps. + * @type {{ [key: string]: WorkflowStepDto; }} + * @memberof WorkflowDto + */ + steps: { [key: string]: WorkflowStepDto; }; + /** + * The schema ids. + * @type {Array} + * @memberof WorkflowDto + */ + schemaIds?: Array | null; + /** + * The initial step. + * @type {string} + * @memberof WorkflowDto + */ + initial: string; +} + +/** + * Check if a given object implements the WorkflowDto interface. + */ +export function instanceOfWorkflowDto(value: object): value is WorkflowDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + if (!('steps' in value) || value['steps'] === undefined) return false; + if (!('initial' in value) || value['initial'] === undefined) return false; + return true; +} + +export function WorkflowDtoFromJSON(json: any): WorkflowDto { + return WorkflowDtoFromJSONTyped(json, false); +} + +export function WorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'id': json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'steps': (mapValues(json['steps'], WorkflowStepDtoFromJSON)), + 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], + 'initial': json['initial'], + }; +} + +export function WorkflowDtoToJSON(value?: WorkflowDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'id': value['id'], + 'name': value['name'], + 'steps': (mapValues(value['steps'], WorkflowStepDtoToJSON)), + 'schemaIds': value['schemaIds'], + 'initial': value['initial'], + }; +} diff --git a/src/generated/models/WorkflowStepDto.ts b/src/generated/models/WorkflowStepDto.ts new file mode 100644 index 0000000..7bcbc22 --- /dev/null +++ b/src/generated/models/WorkflowStepDto.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { WorkflowTransitionDto } from './WorkflowTransitionDto'; +import { + WorkflowTransitionDtoFromJSON, + WorkflowTransitionDtoFromJSONTyped, + WorkflowTransitionDtoToJSON, +} from './WorkflowTransitionDto'; + +/** + * + * @export + * @interface WorkflowStepDto + */ +export interface WorkflowStepDto { + /** + * The transitions. + * @type {{ [key: string]: WorkflowTransitionDto; }} + * @memberof WorkflowStepDto + */ + transitions?: { [key: string]: WorkflowTransitionDto; }; + /** + * The optional color. + * @type {string} + * @memberof WorkflowStepDto + */ + color?: string | null; + /** + * True if the content should be validated when moving to this step. + * @type {boolean} + * @memberof WorkflowStepDto + */ + validate?: boolean; + /** + * Indicates if updates should not be allowed. + * @type {boolean} + * @memberof WorkflowStepDto + */ + noUpdate?: boolean; + /** + * Optional expression that must evaluate to true when you want to prevent updates. + * @type {string} + * @memberof WorkflowStepDto + */ + noUpdateExpression?: string | null; + /** + * Optional list of roles to restrict the updates for users with these roles. + * @type {Array} + * @memberof WorkflowStepDto + */ + noUpdateRoles?: Array | null; +} + +/** + * Check if a given object implements the WorkflowStepDto interface. + */ +export function instanceOfWorkflowStepDto(value: object): value is WorkflowStepDto { + return true; +} + +export function WorkflowStepDtoFromJSON(json: any): WorkflowStepDto { + return WorkflowStepDtoFromJSONTyped(json, false); +} + +export function WorkflowStepDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowStepDto { + if (json == null) { + return json; + } + return { + + 'transitions': json['transitions'] == null ? undefined : (mapValues(json['transitions'], WorkflowTransitionDtoFromJSON)), + 'color': json['color'] == null ? undefined : json['color'], + 'validate': json['validate'] == null ? undefined : json['validate'], + 'noUpdate': json['noUpdate'] == null ? undefined : json['noUpdate'], + 'noUpdateExpression': json['noUpdateExpression'] == null ? undefined : json['noUpdateExpression'], + 'noUpdateRoles': json['noUpdateRoles'] == null ? undefined : json['noUpdateRoles'], + }; +} + +export function WorkflowStepDtoToJSON(value?: WorkflowStepDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'transitions': value['transitions'] == null ? undefined : (mapValues(value['transitions'], WorkflowTransitionDtoToJSON)), + 'color': value['color'], + 'validate': value['validate'], + 'noUpdate': value['noUpdate'], + 'noUpdateExpression': value['noUpdateExpression'], + 'noUpdateRoles': value['noUpdateRoles'], + }; +} diff --git a/src/generated/models/WorkflowTransitionDto.ts b/src/generated/models/WorkflowTransitionDto.ts new file mode 100644 index 0000000..1e5535b --- /dev/null +++ b/src/generated/models/WorkflowTransitionDto.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface WorkflowTransitionDto + */ +export interface WorkflowTransitionDto { + /** + * The optional expression. + * @type {string} + * @memberof WorkflowTransitionDto + */ + expression?: string | null; + /** + * The optional restricted role. + * @type {Array} + * @memberof WorkflowTransitionDto + */ + roles?: Array | null; +} + +/** + * Check if a given object implements the WorkflowTransitionDto interface. + */ +export function instanceOfWorkflowTransitionDto(value: object): value is WorkflowTransitionDto { + return true; +} + +export function WorkflowTransitionDtoFromJSON(json: any): WorkflowTransitionDto { + return WorkflowTransitionDtoFromJSONTyped(json, false); +} + +export function WorkflowTransitionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowTransitionDto { + if (json == null) { + return json; + } + return { + + 'expression': json['expression'] == null ? undefined : json['expression'], + 'roles': json['roles'] == null ? undefined : json['roles'], + }; +} + +export function WorkflowTransitionDtoToJSON(value?: WorkflowTransitionDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + 'expression': value['expression'], + 'roles': value['roles'], + }; +} diff --git a/src/generated/models/WorkflowsDto.ts b/src/generated/models/WorkflowsDto.ts new file mode 100644 index 0000000..68efe61 --- /dev/null +++ b/src/generated/models/WorkflowsDto.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { WorkflowDto } from './WorkflowDto'; +import { + WorkflowDtoFromJSON, + WorkflowDtoFromJSONTyped, + WorkflowDtoToJSON, +} from './WorkflowDto'; +import type { ResourceLink } from './ResourceLink'; +import { + ResourceLinkFromJSON, + ResourceLinkFromJSONTyped, + ResourceLinkToJSON, +} from './ResourceLink'; + +/** + * + * @export + * @interface WorkflowsDto + */ +export interface WorkflowsDto { + /** + * The links. + * @type {{ [key: string]: ResourceLink; }} + * @memberof WorkflowsDto + */ + links: { [key: string]: ResourceLink; }; + /** + * The workflow. + * @type {Array} + * @memberof WorkflowsDto + */ + items: Array; + /** + * The errros that should be fixed. + * @type {Array} + * @memberof WorkflowsDto + */ + errors: Array; +} + +/** + * Check if a given object implements the WorkflowsDto interface. + */ +export function instanceOfWorkflowsDto(value: object): value is WorkflowsDto { + if (!('links' in value) || value['links'] === undefined) return false; + if (!('items' in value) || value['items'] === undefined) return false; + if (!('errors' in value) || value['errors'] === undefined) return false; + return true; +} + +export function WorkflowsDtoFromJSON(json: any): WorkflowsDto { + return WorkflowsDtoFromJSONTyped(json, false); +} + +export function WorkflowsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowsDto { + if (json == null) { + return json; + } + return { + + 'links': (mapValues(json['_links'], ResourceLinkFromJSON)), + 'items': ((json['items'] as Array).map(WorkflowDtoFromJSON)), + 'errors': json['errors'], + }; +} + +export function WorkflowsDtoToJSON(value?: WorkflowsDto | null, ignoreDiscriminator = false): any { + if (value == null) { + return value; + } + return { + + '_links': (mapValues(value['links'], ResourceLinkToJSON)), + 'items': ((value['items'] as Array).map(WorkflowDtoToJSON)), + 'errors': value['errors'], + }; +} diff --git a/src/generated/models/index.ts b/src/generated/models/index.ts new file mode 100644 index 0000000..6f649b4 --- /dev/null +++ b/src/generated/models/index.ts @@ -0,0 +1,208 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './ActionTypeEnum'; +export * from './AddFieldDto'; +export * from './AddLanguageDto'; +export * from './AddRoleDto'; +export * from './AddWorkflowDto'; +export * from './AlgoliaRuleActionDto'; +export * from './AllContentsByPostDto'; +export * from './AnnotateAssetDto'; +export * from './AppDto'; +export * from './AppLanguageDto'; +export * from './AppLanguagesDto'; +export * from './AppSettingsDto'; +export * from './ArrayCalculatedDefaultValue'; +export * from './ArrayFieldPropertiesDto'; +export * from './AssetChangedRuleTriggerDto'; +export * from './AssetDto'; +export * from './AssetFolderDto'; +export * from './AssetFolderScope'; +export * from './AssetFoldersDto'; +export * from './AssetMeta'; +export * from './AssetPreviewMode'; +export * from './AssetScriptsDto'; +export * from './AssetType'; +export * from './AssetsDto'; +export * from './AssetsFieldPropertiesDto'; +export * from './AssignContributorDto'; +export * from './AuthSchemeDto'; +export * from './AuthSchemeResponseDto'; +export * from './AuthSchemeValueDto'; +export * from './AzureQueueRuleActionDto'; +export * from './BackupJobDto'; +export * from './BackupJobsDto'; +export * from './BooleanFieldEditor'; +export * from './BooleanFieldPropertiesDto'; +export * from './BulkResultDto'; +export * from './BulkUpdateAssetType'; +export * from './BulkUpdateAssetsDto'; +export * from './BulkUpdateAssetsJobDto'; +export * from './BulkUpdateContentType'; +export * from './BulkUpdateContentsDto'; +export * from './BulkUpdateContentsJobDto'; +export * from './CallsUsageDtoDto'; +export * from './CallsUsagePerDateDto'; +export * from './ChangeCategoryDto'; +export * from './ChangePlanDto'; +export * from './ChangeStatusDto'; +export * from './ClientDto'; +export * from './ClientsDto'; +export * from './CommentRuleActionDto'; +export * from './CommentRuleTriggerDto'; +export * from './ComponentFieldPropertiesDto'; +export * from './ComponentsFieldPropertiesDto'; +export * from './ConfigureFieldRulesDto'; +export * from './ConfigureUIFieldsDto'; +export * from './ContentChangedRuleTriggerDto'; +export * from './ContentDto'; +export * from './ContentsDto'; +export * from './ContributorDto'; +export * from './ContributorsDto'; +export * from './ContributorsMetadata'; +export * from './CreateAppDto'; +export * from './CreateAssetFolderDto'; +export * from './CreateClientDto'; +export * from './CreateContentRuleActionDto'; +export * from './CreateRuleDto'; +export * from './CreateSchemaDto'; +export * from './CreateTeamDto'; +export * from './CreateUserDto'; +export * from './CurrentStorageDto'; +export * from './DateTimeCalculatedDefaultValue'; +export * from './DateTimeFieldEditor'; +export * from './DateTimeFieldPropertiesDto'; +export * from './DiscourseRuleActionDto'; +export * from './EditorDto'; +export * from './ElasticSearchRuleActionDto'; +export * from './EmailRuleActionDto'; +export * from './ErrorDto'; +export * from './EventConsumerDto'; +export * from './EventConsumersDto'; +export * from './FastlyRuleActionDto'; +export * from './FeatureDto'; +export * from './FeaturesDto'; +export * from './FieldDto'; +export * from './FieldPropertiesDto'; +export * from './FieldRuleAction'; +export * from './FieldRuleDto'; +export * from './GeolocationFieldEditor'; +export * from './GeolocationFieldPropertiesDto'; +export * from './HistoryEventDto'; +export * from './ImageFormat'; +export * from './ImportContentsDto'; +export * from './JobDto'; +export * from './JobLogMessageDto'; +export * from './JobStatus'; +export * from './JobsDto'; +export * from './JsonFieldPropertiesDto'; +export * from './LanguageDto'; +export * from './LogDownloadDto'; +export * from './ManualRuleTriggerDto'; +export * from './MediumRuleActionDto'; +export * from './MoveAssetDto'; +export * from './MoveAssetFolderDto'; +export * from './NestedFieldDto'; +export * from './NotificationRuleActionDto'; +export * from './NumberFieldEditor'; +export * from './NumberFieldPropertiesDto'; +export * from './OpenSearchRuleActionDto'; +export * from './PatternDto'; +export * from './PlanChangedDto'; +export * from './PlanDto'; +export * from './PlansDto'; +export * from './PlansLockedReason'; +export * from './PrerenderRuleActionDto'; +export * from './QueryDto'; +export * from './QueryJsonDto'; +export * from './ReferencesFieldEditor'; +export * from './ReferencesFieldPropertiesDto'; +export * from './ReferralInfo'; +export * from './RenameAssetFolderDto'; +export * from './RenameTagDto'; +export * from './ReorderFieldsDto'; +export * from './ResizeMode'; +export * from './Resource'; +export * from './ResourceLink'; +export * from './ResourcesDto'; +export * from './RestoreJobDto'; +export * from './RestoreRequestDto'; +export * from './RichTextFieldPropertiesDto'; +export * from './RoleDto'; +export * from './RolesDto'; +export * from './RuleActionDto'; +export * from './RuleDto'; +export * from './RuleElementDto'; +export * from './RuleElementPropertyDto'; +export * from './RuleEventDto'; +export * from './RuleEventsDto'; +export * from './RuleFieldEditor'; +export * from './RuleJobResult'; +export * from './RuleResult'; +export * from './RuleTriggerDto'; +export * from './RulesDto'; +export * from './ScheduleJobDto'; +export * from './SchemaChangedRuleTriggerDto'; +export * from './SchemaCondition'; +export * from './SchemaDto'; +export * from './SchemaPropertiesDto'; +export * from './SchemaScriptsDto'; +export * from './SchemaType'; +export * from './SchemasDto'; +export * from './ScriptRuleActionDto'; +export * from './SearchResultDto'; +export * from './SearchResultType'; +export * from './SignalRRuleActionDto'; +export * from './SimulatedRuleEventDto'; +export * from './SimulatedRuleEventsDto'; +export * from './SkipReason'; +export * from './SlackRuleActionDto'; +export * from './SortNode'; +export * from './SortOrder'; +export * from './StatusInfoDto'; +export * from './StorageUsagePerDateDto'; +export * from './StringContentType'; +export * from './StringFieldEditor'; +export * from './StringFieldPropertiesDto'; +export * from './SynchronizeSchemaDto'; +export * from './TagsFieldEditor'; +export * from './TagsFieldPropertiesDto'; +export * from './TeamDto'; +export * from './TemplateDetailsDto'; +export * from './TemplateDto'; +export * from './TemplatesDto'; +export * from './TransferToTeamDto'; +export * from './TranslateDto'; +export * from './TranslationDto'; +export * from './TranslationStatus'; +export * from './TweetRuleActionDto'; +export * from './TypesenseRuleActionDto'; +export * from './UIFieldEditor'; +export * from './UIFieldPropertiesDto'; +export * from './UpdateAppDto'; +export * from './UpdateAppSettingsDto'; +export * from './UpdateAssetScriptsDto'; +export * from './UpdateClientDto'; +export * from './UpdateFieldDto'; +export * from './UpdateLanguageDto'; +export * from './UpdateProfileDto'; +export * from './UpdateRoleDto'; +export * from './UpdateRuleDto'; +export * from './UpdateSchemaDto'; +export * from './UpdateSettingDto'; +export * from './UpdateTeamDto'; +export * from './UpdateUserDto'; +export * from './UpdateWorkflowDto'; +export * from './UpsertSchemaDto'; +export * from './UpsertSchemaFieldDto'; +export * from './UpsertSchemaNestedFieldDto'; +export * from './UsageRuleTriggerDto'; +export * from './UserDto'; +export * from './UserProperty'; +export * from './UsersDto'; +export * from './WebhookMethod'; +export * from './WebhookRuleActionDto'; +export * from './WorkflowDto'; +export * from './WorkflowStepDto'; +export * from './WorkflowTransitionDto'; +export * from './WorkflowsDto'; diff --git a/src/generated/runtime.ts b/src/generated/runtime.ts new file mode 100644 index 0000000..13625ea --- /dev/null +++ b/src/generated/runtime.ts @@ -0,0 +1,422 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Squidex API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export const BASE_PATH = "https://cloud.squidex.io".replace(/\/+$/, ""); + +export interface ConfigurationParameters { + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + set config(configuration: Configuration) { + this.configuration = configuration; + } + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } + + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string | Promise) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } +} + +export const DefaultConfig = new Configuration(); + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + + private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + private middleware: Middleware[]; + + constructor(protected readonly appName: string, protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + + const initOverrideFn = + typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overriddenInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + + let body: any; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } else { + body = overriddenInit.body; + } + + const init: RequestInit = { + ...overriddenInit, + body + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response: Response | undefined = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + throw e; + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +}; + +function isBlob(value: any): value is Blob { + return typeof Blob !== 'undefined' && value instanceof Blob; +} + +function isFormData(value: any): value is FormData { + return typeof FormData !== "undefined" && value instanceof FormData; +} + +export class ResponseError extends Error { + override name: "ResponseError" = "ResponseError"; + constructor(public response: Response, msg?: string) { + super(msg); + } +} + +export class FetchError extends Error { + override name: "FetchError" = "FetchError"; + constructor(public cause: Error, msg?: string) { + super(msg); + } +} + +export class RequiredError extends Error { + override name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} + +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; + +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string }; +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; + +export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise + +export interface FetchParams { + url: string; + init: RequestInit; +} + +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} + +function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} + +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce( + (acc, key) => ({ ...acc, [key]: fn(data[key]) }), + {} + ); +} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} + +export interface Consume { + contentType: string; +} + +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} + +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} + +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} + +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} + +export interface ApiResponse { + raw: Response; + value(): Promise; +} + +export interface ResponseTransformer { + (json: any): T; +} + +export class JSONApiResponse { + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + + async value(): Promise { + return this.transformer(await this.raw.json()); + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined; + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob(); + }; +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text(); + }; +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 31a1e41..6fed706 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,3 @@ -export * as Squidex from "./api"; -export { SquidexClient } from "./wrapper/SquidexClient"; -export { SquidexEnvironment } from "./environments"; -export { SquidexError, SquidexTimeoutError } from "./errors"; +export * from "./wrapper/errors"; +export * from "./generated"; +export { SquidexClients as SquidexClient } from "./wrapper/SquidexClient"; diff --git a/src/serialization/index.ts b/src/serialization/index.ts deleted file mode 100644 index 3ce0a3e..0000000 --- a/src/serialization/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./resources"; diff --git a/src/serialization/resources/apps/client/getApps.ts b/src/serialization/resources/apps/client/getApps.ts deleted file mode 100644 index d4c470b..0000000 --- a/src/serialization/resources/apps/client/getApps.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).AppDto)); - -export declare namespace Response { - type Raw = serializers.AppDto.Raw[]; -} diff --git a/src/serialization/resources/apps/client/getPermissions.ts b/src/serialization/resources/apps/client/getPermissions.ts deleted file mode 100644 index 9cea186..0000000 --- a/src/serialization/resources/apps/client/getPermissions.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.string()); - -export declare namespace Response { - type Raw = string[]; -} diff --git a/src/serialization/resources/apps/client/getTeamApps.ts b/src/serialization/resources/apps/client/getTeamApps.ts deleted file mode 100644 index ae97cbd..0000000 --- a/src/serialization/resources/apps/client/getTeamApps.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).AppDto)); - -export declare namespace Response { - type Raw = serializers.AppDto.Raw[]; -} diff --git a/src/serialization/resources/apps/client/index.ts b/src/serialization/resources/apps/client/index.ts deleted file mode 100644 index 47e579d..0000000 --- a/src/serialization/resources/apps/client/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * as getPermissions from "./getPermissions"; -export * as getApps from "./getApps"; -export * as getTeamApps from "./getTeamApps"; -export * from "./requests"; diff --git a/src/serialization/resources/apps/client/requests/AddLanguageDto.ts b/src/serialization/resources/apps/client/requests/AddLanguageDto.ts deleted file mode 100644 index 7cf99d3..0000000 --- a/src/serialization/resources/apps/client/requests/AddLanguageDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const AddLanguageDto: core.serialization.Schema = - core.serialization.object({ - language: core.serialization.string(), - }); - -export declare namespace AddLanguageDto { - interface Raw { - language: string; - } -} diff --git a/src/serialization/resources/apps/client/requests/AddRoleDto.ts b/src/serialization/resources/apps/client/requests/AddRoleDto.ts deleted file mode 100644 index ce120ee..0000000 --- a/src/serialization/resources/apps/client/requests/AddRoleDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const AddRoleDto: core.serialization.Schema = - core.serialization.object({ - name: core.serialization.string(), - }); - -export declare namespace AddRoleDto { - interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/apps/client/requests/AddWorkflowDto.ts b/src/serialization/resources/apps/client/requests/AddWorkflowDto.ts deleted file mode 100644 index 4697063..0000000 --- a/src/serialization/resources/apps/client/requests/AddWorkflowDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const AddWorkflowDto: core.serialization.Schema = - core.serialization.object({ - name: core.serialization.string(), - }); - -export declare namespace AddWorkflowDto { - interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/apps/client/requests/CreateAppDto.ts b/src/serialization/resources/apps/client/requests/CreateAppDto.ts deleted file mode 100644 index 8900137..0000000 --- a/src/serialization/resources/apps/client/requests/CreateAppDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const CreateAppDto: core.serialization.Schema = - core.serialization.object({ - name: core.serialization.string(), - template: core.serialization.string().optional(), - }); - -export declare namespace CreateAppDto { - interface Raw { - name: string; - template?: string | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/CreateClientDto.ts b/src/serialization/resources/apps/client/requests/CreateClientDto.ts deleted file mode 100644 index 1d7124b..0000000 --- a/src/serialization/resources/apps/client/requests/CreateClientDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const CreateClientDto: core.serialization.Schema = - core.serialization.object({ - id: core.serialization.string(), - }); - -export declare namespace CreateClientDto { - interface Raw { - id: string; - } -} diff --git a/src/serialization/resources/apps/client/requests/TransferToTeamDto.ts b/src/serialization/resources/apps/client/requests/TransferToTeamDto.ts deleted file mode 100644 index ecd3bd3..0000000 --- a/src/serialization/resources/apps/client/requests/TransferToTeamDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const TransferToTeamDto: core.serialization.Schema< - serializers.TransferToTeamDto.Raw, - Squidex.TransferToTeamDto -> = core.serialization.object({ - teamId: core.serialization.string().optional(), -}); - -export declare namespace TransferToTeamDto { - interface Raw { - teamId?: string | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/UpdateAppDto.ts b/src/serialization/resources/apps/client/requests/UpdateAppDto.ts deleted file mode 100644 index 5d2dff1..0000000 --- a/src/serialization/resources/apps/client/requests/UpdateAppDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateAppDto: core.serialization.Schema = - core.serialization.object({ - label: core.serialization.string().optional(), - description: core.serialization.string().optional(), - }); - -export declare namespace UpdateAppDto { - interface Raw { - label?: string | null; - description?: string | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/UpdateAppSettingsDto.ts b/src/serialization/resources/apps/client/requests/UpdateAppSettingsDto.ts deleted file mode 100644 index 18f1d25..0000000 --- a/src/serialization/resources/apps/client/requests/UpdateAppSettingsDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateAppSettingsDto: core.serialization.Schema< - serializers.UpdateAppSettingsDto.Raw, - Squidex.UpdateAppSettingsDto -> = core.serialization.object({ - patterns: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../../..")).PatternDto) - ), - editors: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../../..")).EditorDto) - ), - hideScheduler: core.serialization.boolean().optional(), - hideDateTimeModeButton: core.serialization.boolean().optional(), -}); - -export declare namespace UpdateAppSettingsDto { - interface Raw { - patterns: serializers.PatternDto.Raw[]; - editors: serializers.EditorDto.Raw[]; - hideScheduler?: boolean | null; - hideDateTimeModeButton?: boolean | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/UpdateAssetScriptsDto.ts b/src/serialization/resources/apps/client/requests/UpdateAssetScriptsDto.ts deleted file mode 100644 index 2c2237e..0000000 --- a/src/serialization/resources/apps/client/requests/UpdateAssetScriptsDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateAssetScriptsDto: core.serialization.Schema< - serializers.UpdateAssetScriptsDto.Raw, - Squidex.UpdateAssetScriptsDto -> = core.serialization.object({ - query: core.serialization.string().optional(), - queryPre: core.serialization.string().optional(), - create: core.serialization.string().optional(), - update: core.serialization.string().optional(), - annotate: core.serialization.string().optional(), - move: core.serialization.string().optional(), - delete: core.serialization.string().optional(), -}); - -export declare namespace UpdateAssetScriptsDto { - interface Raw { - query?: string | null; - queryPre?: string | null; - create?: string | null; - update?: string | null; - annotate?: string | null; - move?: string | null; - delete?: string | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/UpdateClientDto.ts b/src/serialization/resources/apps/client/requests/UpdateClientDto.ts deleted file mode 100644 index 8ed8ac9..0000000 --- a/src/serialization/resources/apps/client/requests/UpdateClientDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateClientDto: core.serialization.Schema = - core.serialization.object({ - name: core.serialization.string().optional(), - role: core.serialization.string().optional(), - allowAnonymous: core.serialization.boolean().optional(), - apiCallsLimit: core.serialization.number().optional(), - apiTrafficLimit: core.serialization.number().optional(), - }); - -export declare namespace UpdateClientDto { - interface Raw { - name?: string | null; - role?: string | null; - allowAnonymous?: boolean | null; - apiCallsLimit?: number | null; - apiTrafficLimit?: number | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/UpdateLanguageDto.ts b/src/serialization/resources/apps/client/requests/UpdateLanguageDto.ts deleted file mode 100644 index 62fe5ac..0000000 --- a/src/serialization/resources/apps/client/requests/UpdateLanguageDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateLanguageDto: core.serialization.Schema< - serializers.UpdateLanguageDto.Raw, - Squidex.UpdateLanguageDto -> = core.serialization.object({ - isMaster: core.serialization.boolean().optional(), - isOptional: core.serialization.boolean().optional(), - fallback: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace UpdateLanguageDto { - interface Raw { - isMaster?: boolean | null; - isOptional?: boolean | null; - fallback?: string[] | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/UpdateRoleDto.ts b/src/serialization/resources/apps/client/requests/UpdateRoleDto.ts deleted file mode 100644 index 7b602e0..0000000 --- a/src/serialization/resources/apps/client/requests/UpdateRoleDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateRoleDto: core.serialization.Schema = - core.serialization.object({ - permissions: core.serialization.list(core.serialization.string()), - properties: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - }); - -export declare namespace UpdateRoleDto { - interface Raw { - permissions: string[]; - properties?: Record | null; - } -} diff --git a/src/serialization/resources/apps/client/requests/UpdateWorkflowDto.ts b/src/serialization/resources/apps/client/requests/UpdateWorkflowDto.ts deleted file mode 100644 index 5f96b45..0000000 --- a/src/serialization/resources/apps/client/requests/UpdateWorkflowDto.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateWorkflowDto: core.serialization.Schema< - serializers.UpdateWorkflowDto.Raw, - Squidex.UpdateWorkflowDto -> = core.serialization.object({ - name: core.serialization.string().optional(), - steps: core.serialization.record( - core.serialization.string(), - core.serialization.lazyObject(async () => (await import("../../../..")).WorkflowStepDto) - ), - schemaIds: core.serialization.list(core.serialization.string()).optional(), - initial: core.serialization.string(), -}); - -export declare namespace UpdateWorkflowDto { - interface Raw { - name?: string | null; - steps: Record; - schemaIds?: string[] | null; - initial: string; - } -} diff --git a/src/serialization/resources/apps/client/requests/index.ts b/src/serialization/resources/apps/client/requests/index.ts deleted file mode 100644 index 4881efa..0000000 --- a/src/serialization/resources/apps/client/requests/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -export { UpdateAssetScriptsDto } from "./UpdateAssetScriptsDto"; -export { CreateClientDto } from "./CreateClientDto"; -export { UpdateClientDto } from "./UpdateClientDto"; -export { AddLanguageDto } from "./AddLanguageDto"; -export { UpdateLanguageDto } from "./UpdateLanguageDto"; -export { AddRoleDto } from "./AddRoleDto"; -export { UpdateRoleDto } from "./UpdateRoleDto"; -export { CreateAppDto } from "./CreateAppDto"; -export { UpdateAppDto } from "./UpdateAppDto"; -export { TransferToTeamDto } from "./TransferToTeamDto"; -export { UpdateAppSettingsDto } from "./UpdateAppSettingsDto"; -export { AddWorkflowDto } from "./AddWorkflowDto"; -export { UpdateWorkflowDto } from "./UpdateWorkflowDto"; diff --git a/src/serialization/resources/apps/index.ts b/src/serialization/resources/apps/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/apps/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/assets/client/bulkUpdateAssets.ts b/src/serialization/resources/assets/client/bulkUpdateAssets.ts deleted file mode 100644 index f695ecb..0000000 --- a/src/serialization/resources/assets/client/bulkUpdateAssets.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.assets.bulkUpdateAssets.Response.Raw, - Squidex.BulkResultDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).BulkResultDto)); - -export declare namespace Response { - type Raw = serializers.BulkResultDto.Raw[]; -} diff --git a/src/serialization/resources/assets/client/getTags.ts b/src/serialization/resources/assets/client/getTags.ts deleted file mode 100644 index 943ed62..0000000 --- a/src/serialization/resources/assets/client/getTags.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.assets.getTags.Response.Raw, - Record -> = core.serialization.record(core.serialization.string(), core.serialization.number()); - -export declare namespace Response { - type Raw = Record; -} diff --git a/src/serialization/resources/assets/client/index.ts b/src/serialization/resources/assets/client/index.ts deleted file mode 100644 index 75376cd..0000000 --- a/src/serialization/resources/assets/client/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * as getTags from "./getTags"; -export * as putTag from "./putTag"; -export * as bulkUpdateAssets from "./bulkUpdateAssets"; -export * from "./requests"; diff --git a/src/serialization/resources/assets/client/putTag.ts b/src/serialization/resources/assets/client/putTag.ts deleted file mode 100644 index b2c1108..0000000 --- a/src/serialization/resources/assets/client/putTag.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.assets.putTag.Response.Raw, - Record -> = core.serialization.record(core.serialization.string(), core.serialization.number()); - -export declare namespace Response { - type Raw = Record; -} diff --git a/src/serialization/resources/assets/client/requests/AnnotateAssetDto.ts b/src/serialization/resources/assets/client/requests/AnnotateAssetDto.ts deleted file mode 100644 index a3dc11b..0000000 --- a/src/serialization/resources/assets/client/requests/AnnotateAssetDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const AnnotateAssetDto: core.serialization.Schema = - core.serialization.object({ - fileName: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - isProtected: core.serialization.boolean().optional(), - tags: core.serialization.list(core.serialization.string()).optional(), - metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - }); - -export declare namespace AnnotateAssetDto { - interface Raw { - fileName?: string | null; - slug?: string | null; - isProtected?: boolean | null; - tags?: string[] | null; - metadata?: Record | null; - } -} diff --git a/src/serialization/resources/assets/client/requests/BulkUpdateAssetsDto.ts b/src/serialization/resources/assets/client/requests/BulkUpdateAssetsDto.ts deleted file mode 100644 index d4d698f..0000000 --- a/src/serialization/resources/assets/client/requests/BulkUpdateAssetsDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const BulkUpdateAssetsDto: core.serialization.Schema< - serializers.BulkUpdateAssetsDto.Raw, - Squidex.BulkUpdateAssetsDto -> = core.serialization.object({ - jobs: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../../..")).BulkUpdateAssetsJobDto)) - .optional(), - checkReferrers: core.serialization.boolean().optional(), - optimizeValidation: core.serialization.boolean().optional(), - doNotScript: core.serialization.boolean().optional(), -}); - -export declare namespace BulkUpdateAssetsDto { - interface Raw { - jobs?: serializers.BulkUpdateAssetsJobDto.Raw[] | null; - checkReferrers?: boolean | null; - optimizeValidation?: boolean | null; - doNotScript?: boolean | null; - } -} diff --git a/src/serialization/resources/assets/client/requests/CreateAssetFolderDto.ts b/src/serialization/resources/assets/client/requests/CreateAssetFolderDto.ts deleted file mode 100644 index 668cd28..0000000 --- a/src/serialization/resources/assets/client/requests/CreateAssetFolderDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const CreateAssetFolderDto: core.serialization.Schema< - serializers.CreateAssetFolderDto.Raw, - Squidex.CreateAssetFolderDto -> = core.serialization.object({ - folderName: core.serialization.string(), - parentId: core.serialization.string().optional(), -}); - -export declare namespace CreateAssetFolderDto { - interface Raw { - folderName: string; - parentId?: string | null; - } -} diff --git a/src/serialization/resources/assets/client/requests/MoveAssetDto.ts b/src/serialization/resources/assets/client/requests/MoveAssetDto.ts deleted file mode 100644 index a71ad00..0000000 --- a/src/serialization/resources/assets/client/requests/MoveAssetDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const MoveAssetDto: core.serialization.Schema = - core.serialization.object({ - parentId: core.serialization.string().optional(), - }); - -export declare namespace MoveAssetDto { - interface Raw { - parentId?: string | null; - } -} diff --git a/src/serialization/resources/assets/client/requests/MoveAssetFolderDto.ts b/src/serialization/resources/assets/client/requests/MoveAssetFolderDto.ts deleted file mode 100644 index 3ffeb3e..0000000 --- a/src/serialization/resources/assets/client/requests/MoveAssetFolderDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const MoveAssetFolderDto: core.serialization.Schema< - serializers.MoveAssetFolderDto.Raw, - Squidex.MoveAssetFolderDto -> = core.serialization.object({ - parentId: core.serialization.string().optional(), -}); - -export declare namespace MoveAssetFolderDto { - interface Raw { - parentId?: string | null; - } -} diff --git a/src/serialization/resources/assets/client/requests/RenameAssetFolderDto.ts b/src/serialization/resources/assets/client/requests/RenameAssetFolderDto.ts deleted file mode 100644 index 4d656cc..0000000 --- a/src/serialization/resources/assets/client/requests/RenameAssetFolderDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const RenameAssetFolderDto: core.serialization.Schema< - serializers.RenameAssetFolderDto.Raw, - Squidex.RenameAssetFolderDto -> = core.serialization.object({ - folderName: core.serialization.string(), -}); - -export declare namespace RenameAssetFolderDto { - interface Raw { - folderName: string; - } -} diff --git a/src/serialization/resources/assets/client/requests/RenameTagDto.ts b/src/serialization/resources/assets/client/requests/RenameTagDto.ts deleted file mode 100644 index c6ed3bd..0000000 --- a/src/serialization/resources/assets/client/requests/RenameTagDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const RenameTagDto: core.serialization.Schema = - core.serialization.object({ - tagName: core.serialization.string(), - }); - -export declare namespace RenameTagDto { - interface Raw { - tagName: string; - } -} diff --git a/src/serialization/resources/assets/client/requests/index.ts b/src/serialization/resources/assets/client/requests/index.ts deleted file mode 100644 index 86e4a26..0000000 --- a/src/serialization/resources/assets/client/requests/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { CreateAssetFolderDto } from "./CreateAssetFolderDto"; -export { RenameAssetFolderDto } from "./RenameAssetFolderDto"; -export { MoveAssetFolderDto } from "./MoveAssetFolderDto"; -export { RenameTagDto } from "./RenameTagDto"; -export { AnnotateAssetDto } from "./AnnotateAssetDto"; -export { BulkUpdateAssetsDto } from "./BulkUpdateAssetsDto"; -export { MoveAssetDto } from "./MoveAssetDto"; diff --git a/src/serialization/resources/assets/index.ts b/src/serialization/resources/assets/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/assets/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/backups/client/index.ts b/src/serialization/resources/backups/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/backups/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/backups/client/requests/RestoreRequestDto.ts b/src/serialization/resources/backups/client/requests/RestoreRequestDto.ts deleted file mode 100644 index d75d474..0000000 --- a/src/serialization/resources/backups/client/requests/RestoreRequestDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const RestoreRequestDto: core.serialization.Schema< - serializers.RestoreRequestDto.Raw, - Squidex.RestoreRequestDto -> = core.serialization.object({ - name: core.serialization.string().optional(), - url: core.serialization.string(), -}); - -export declare namespace RestoreRequestDto { - interface Raw { - name?: string | null; - url: string; - } -} diff --git a/src/serialization/resources/backups/client/requests/index.ts b/src/serialization/resources/backups/client/requests/index.ts deleted file mode 100644 index 6f54e3b..0000000 --- a/src/serialization/resources/backups/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { RestoreRequestDto } from "./RestoreRequestDto"; diff --git a/src/serialization/resources/backups/index.ts b/src/serialization/resources/backups/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/backups/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/comments/client/getWatchingUsers.ts b/src/serialization/resources/comments/client/getWatchingUsers.ts deleted file mode 100644 index 05e17ad..0000000 --- a/src/serialization/resources/comments/client/getWatchingUsers.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.string()); - -export declare namespace Response { - type Raw = string[]; -} diff --git a/src/serialization/resources/comments/client/index.ts b/src/serialization/resources/comments/client/index.ts deleted file mode 100644 index 6e453d1..0000000 --- a/src/serialization/resources/comments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as getWatchingUsers from "./getWatchingUsers"; diff --git a/src/serialization/resources/comments/index.ts b/src/serialization/resources/comments/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/comments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/contents/client/bulkUpdateAllContents.ts b/src/serialization/resources/contents/client/bulkUpdateAllContents.ts deleted file mode 100644 index 4e3e522..0000000 --- a/src/serialization/resources/contents/client/bulkUpdateAllContents.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.contents.bulkUpdateAllContents.Response.Raw, - Squidex.BulkResultDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).BulkResultDto)); - -export declare namespace Response { - type Raw = serializers.BulkResultDto.Raw[]; -} diff --git a/src/serialization/resources/contents/client/bulkUpdateContents.ts b/src/serialization/resources/contents/client/bulkUpdateContents.ts deleted file mode 100644 index aea559a..0000000 --- a/src/serialization/resources/contents/client/bulkUpdateContents.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.contents.bulkUpdateContents.Response.Raw, - Squidex.BulkResultDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).BulkResultDto)); - -export declare namespace Response { - type Raw = serializers.BulkResultDto.Raw[]; -} diff --git a/src/serialization/resources/contents/client/index.ts b/src/serialization/resources/contents/client/index.ts deleted file mode 100644 index 9d13f16..0000000 --- a/src/serialization/resources/contents/client/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * as postContent from "./postContent"; -export * as postUpsertContent from "./postUpsertContent"; -export * as putContent from "./putContent"; -export * as patchContent from "./patchContent"; -export * as postContents from "./postContents"; -export * as bulkUpdateContents from "./bulkUpdateContents"; -export * as bulkUpdateAllContents from "./bulkUpdateAllContents"; -export * from "./requests"; diff --git a/src/serialization/resources/contents/client/patchContent.ts b/src/serialization/resources/contents/client/patchContent.ts deleted file mode 100644 index 3304318..0000000 --- a/src/serialization/resources/contents/client/patchContent.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Request: core.serialization.Schema< - serializers.contents.patchContent.Request.Raw, - Record -> = core.serialization.record( - core.serialization.string(), - core.serialization.lazy(async () => (await import("../../..")).ContentFieldData) -); - -export declare namespace Request { - type Raw = Record; -} diff --git a/src/serialization/resources/contents/client/postContent.ts b/src/serialization/resources/contents/client/postContent.ts deleted file mode 100644 index aaa4ed4..0000000 --- a/src/serialization/resources/contents/client/postContent.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Request: core.serialization.Schema< - serializers.contents.postContent.Request.Raw, - Record -> = core.serialization.record( - core.serialization.string(), - core.serialization.lazy(async () => (await import("../../..")).ContentFieldData) -); - -export declare namespace Request { - type Raw = Record; -} diff --git a/src/serialization/resources/contents/client/postContents.ts b/src/serialization/resources/contents/client/postContents.ts deleted file mode 100644 index 3cb75a5..0000000 --- a/src/serialization/resources/contents/client/postContents.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.contents.postContents.Response.Raw, - Squidex.BulkResultDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).BulkResultDto)); - -export declare namespace Response { - type Raw = serializers.BulkResultDto.Raw[]; -} diff --git a/src/serialization/resources/contents/client/postUpsertContent.ts b/src/serialization/resources/contents/client/postUpsertContent.ts deleted file mode 100644 index e57893d..0000000 --- a/src/serialization/resources/contents/client/postUpsertContent.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Request: core.serialization.Schema< - serializers.contents.postUpsertContent.Request.Raw, - Record -> = core.serialization.record( - core.serialization.string(), - core.serialization.lazy(async () => (await import("../../..")).ContentFieldData) -); - -export declare namespace Request { - type Raw = Record; -} diff --git a/src/serialization/resources/contents/client/putContent.ts b/src/serialization/resources/contents/client/putContent.ts deleted file mode 100644 index 42bf9ef..0000000 --- a/src/serialization/resources/contents/client/putContent.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Request: core.serialization.Schema< - serializers.contents.putContent.Request.Raw, - Record -> = core.serialization.record( - core.serialization.string(), - core.serialization.lazy(async () => (await import("../../..")).ContentFieldData) -); - -export declare namespace Request { - type Raw = Record; -} diff --git a/src/serialization/resources/contents/client/requests/AllContentsByPostDto.ts b/src/serialization/resources/contents/client/requests/AllContentsByPostDto.ts deleted file mode 100644 index 2c52a39..0000000 --- a/src/serialization/resources/contents/client/requests/AllContentsByPostDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const AllContentsByPostDto: core.serialization.Schema< - serializers.AllContentsByPostDto.Raw, - Omit -> = core.serialization.object({ - ids: core.serialization.list(core.serialization.string()).optional(), - scheduledFrom: core.serialization.date().optional(), - scheduledTo: core.serialization.date().optional(), - referencing: core.serialization.string().optional(), - references: core.serialization.string().optional(), - oData: core.serialization.string().optional(), - q: core.serialization.unknown().optional(), -}); - -export declare namespace AllContentsByPostDto { - interface Raw { - ids?: string[] | null; - scheduledFrom?: string | null; - scheduledTo?: string | null; - referencing?: string | null; - references?: string | null; - oData?: string | null; - q?: unknown | null; - } -} diff --git a/src/serialization/resources/contents/client/requests/ChangeStatusDto.ts b/src/serialization/resources/contents/client/requests/ChangeStatusDto.ts deleted file mode 100644 index 57f6911..0000000 --- a/src/serialization/resources/contents/client/requests/ChangeStatusDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const ChangeStatusDto: core.serialization.Schema< - serializers.ChangeStatusDto.Raw, - Omit -> = core.serialization.object({ - status: core.serialization.string(), - dueTime: core.serialization.date().optional(), - checkReferrers: core.serialization.boolean().optional(), -}); - -export declare namespace ChangeStatusDto { - interface Raw { - status: string; - dueTime?: string | null; - checkReferrers?: boolean | null; - } -} diff --git a/src/serialization/resources/contents/client/requests/ImportContentsDto.ts b/src/serialization/resources/contents/client/requests/ImportContentsDto.ts deleted file mode 100644 index 1ec780b..0000000 --- a/src/serialization/resources/contents/client/requests/ImportContentsDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const ImportContentsDto: core.serialization.Schema< - serializers.ImportContentsDto.Raw, - Squidex.ImportContentsDto -> = core.serialization.object({ - datas: core.serialization.list(core.serialization.lazy(async () => (await import("../../../..")).ContentData)), - publish: core.serialization.boolean().optional(), - doNotScript: core.serialization.boolean().optional(), - optimizeValidation: core.serialization.boolean().optional(), -}); - -export declare namespace ImportContentsDto { - interface Raw { - datas: serializers.ContentData.Raw[]; - publish?: boolean | null; - doNotScript?: boolean | null; - optimizeValidation?: boolean | null; - } -} diff --git a/src/serialization/resources/contents/client/requests/index.ts b/src/serialization/resources/contents/client/requests/index.ts deleted file mode 100644 index 2112ac6..0000000 --- a/src/serialization/resources/contents/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { ImportContentsDto } from "./ImportContentsDto"; -export { ChangeStatusDto } from "./ChangeStatusDto"; -export { AllContentsByPostDto } from "./AllContentsByPostDto"; diff --git a/src/serialization/resources/contents/index.ts b/src/serialization/resources/contents/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/contents/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/history/client/getAppHistory.ts b/src/serialization/resources/history/client/getAppHistory.ts deleted file mode 100644 index 5dc5ce5..0000000 --- a/src/serialization/resources/history/client/getAppHistory.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.history.getAppHistory.Response.Raw, - Squidex.HistoryEventDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).HistoryEventDto)); - -export declare namespace Response { - type Raw = serializers.HistoryEventDto.Raw[]; -} diff --git a/src/serialization/resources/history/client/getTeamHistory.ts b/src/serialization/resources/history/client/getTeamHistory.ts deleted file mode 100644 index 62e35b6..0000000 --- a/src/serialization/resources/history/client/getTeamHistory.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.history.getTeamHistory.Response.Raw, - Squidex.HistoryEventDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).HistoryEventDto)); - -export declare namespace Response { - type Raw = serializers.HistoryEventDto.Raw[]; -} diff --git a/src/serialization/resources/history/client/index.ts b/src/serialization/resources/history/client/index.ts deleted file mode 100644 index 242a236..0000000 --- a/src/serialization/resources/history/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as getAppHistory from "./getAppHistory"; -export * as getTeamHistory from "./getTeamHistory"; diff --git a/src/serialization/resources/history/index.ts b/src/serialization/resources/history/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/history/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts deleted file mode 100644 index d98f340..0000000 --- a/src/serialization/resources/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -export * as users from "./users"; -export * as translations from "./translations"; -export * as teams from "./teams"; -export * as statistics from "./statistics"; -export * as search from "./search"; -export * as schemas from "./schemas"; -export * as rules from "./rules"; -export * as languages from "./languages"; -export * as history from "./history"; -export * as contents from "./contents"; -export * as comments from "./comments"; -export * as assets from "./assets"; -export * as apps from "./apps"; -export * as userManagement from "./userManagement"; -export * from "./userManagement/client/requests"; -export * from "./users/client/requests"; -export * from "./translations/client/requests"; -export * from "./teams/client/requests"; -export * from "./schemas/client/requests"; -export * from "./rules/client/requests"; -export * from "./contents/client/requests"; -export * as backups from "./backups"; -export * from "./backups/client/requests"; -export * from "./assets/client/requests"; -export * from "./apps/client/requests"; diff --git a/src/serialization/resources/languages/client/getLanguages.ts b/src/serialization/resources/languages/client/getLanguages.ts deleted file mode 100644 index 1376e85..0000000 --- a/src/serialization/resources/languages/client/getLanguages.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.languages.getLanguages.Response.Raw, - Squidex.LanguageDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).LanguageDto)); - -export declare namespace Response { - type Raw = serializers.LanguageDto.Raw[]; -} diff --git a/src/serialization/resources/languages/client/index.ts b/src/serialization/resources/languages/client/index.ts deleted file mode 100644 index c533010..0000000 --- a/src/serialization/resources/languages/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as getLanguages from "./getLanguages"; diff --git a/src/serialization/resources/languages/index.ts b/src/serialization/resources/languages/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/languages/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/rules/client/getActions.ts b/src/serialization/resources/rules/client/getActions.ts deleted file mode 100644 index 2362d52..0000000 --- a/src/serialization/resources/rules/client/getActions.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.rules.getActions.Response.Raw, - Record -> = core.serialization.record( - core.serialization.string(), - core.serialization.lazyObject(async () => (await import("../../..")).RuleElementDto) -); - -export declare namespace Response { - type Raw = Record; -} diff --git a/src/serialization/resources/rules/client/getEventTypes.ts b/src/serialization/resources/rules/client/getEventTypes.ts deleted file mode 100644 index f48e9ba..0000000 --- a/src/serialization/resources/rules/client/getEventTypes.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.string()); - -export declare namespace Response { - type Raw = string[]; -} diff --git a/src/serialization/resources/rules/client/index.ts b/src/serialization/resources/rules/client/index.ts deleted file mode 100644 index ea8880d..0000000 --- a/src/serialization/resources/rules/client/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as getActions from "./getActions"; -export * as getEventTypes from "./getEventTypes"; -export * from "./requests"; diff --git a/src/serialization/resources/rules/client/requests/UpdateRuleDto.ts b/src/serialization/resources/rules/client/requests/UpdateRuleDto.ts deleted file mode 100644 index 280569d..0000000 --- a/src/serialization/resources/rules/client/requests/UpdateRuleDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateRuleDto: core.serialization.Schema = - core.serialization.object({ - name: core.serialization.string().optional(), - trigger: core.serialization.lazy(async () => (await import("../../../..")).RuleTriggerDto).optional(), - action: core.serialization.lazy(async () => (await import("../../../..")).RuleActionDto).optional(), - isEnabled: core.serialization.boolean().optional(), - }); - -export declare namespace UpdateRuleDto { - interface Raw { - name?: string | null; - trigger?: serializers.RuleTriggerDto.Raw | null; - action?: serializers.RuleActionDto.Raw | null; - isEnabled?: boolean | null; - } -} diff --git a/src/serialization/resources/rules/client/requests/index.ts b/src/serialization/resources/rules/client/requests/index.ts deleted file mode 100644 index 4bb2690..0000000 --- a/src/serialization/resources/rules/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { UpdateRuleDto } from "./UpdateRuleDto"; diff --git a/src/serialization/resources/rules/index.ts b/src/serialization/resources/rules/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/rules/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/schemas/client/index.ts b/src/serialization/resources/schemas/client/index.ts deleted file mode 100644 index 475bab3..0000000 --- a/src/serialization/resources/schemas/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as putPreviewUrls from "./putPreviewUrls"; -export * from "./requests"; diff --git a/src/serialization/resources/schemas/client/putPreviewUrls.ts b/src/serialization/resources/schemas/client/putPreviewUrls.ts deleted file mode 100644 index 209049b..0000000 --- a/src/serialization/resources/schemas/client/putPreviewUrls.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as core from "../../../../core"; - -export const Request: core.serialization.Schema< - serializers.schemas.putPreviewUrls.Request.Raw, - Record -> = core.serialization.record(core.serialization.string(), core.serialization.string()); - -export declare namespace Request { - type Raw = Record; -} diff --git a/src/serialization/resources/schemas/client/requests/ChangeCategoryDto.ts b/src/serialization/resources/schemas/client/requests/ChangeCategoryDto.ts deleted file mode 100644 index 40bd456..0000000 --- a/src/serialization/resources/schemas/client/requests/ChangeCategoryDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const ChangeCategoryDto: core.serialization.Schema< - serializers.ChangeCategoryDto.Raw, - Squidex.ChangeCategoryDto -> = core.serialization.object({ - name: core.serialization.string().optional(), -}); - -export declare namespace ChangeCategoryDto { - interface Raw { - name?: string | null; - } -} diff --git a/src/serialization/resources/schemas/client/requests/ConfigureFieldRulesDto.ts b/src/serialization/resources/schemas/client/requests/ConfigureFieldRulesDto.ts deleted file mode 100644 index 4704ab0..0000000 --- a/src/serialization/resources/schemas/client/requests/ConfigureFieldRulesDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const ConfigureFieldRulesDto: core.serialization.Schema< - serializers.ConfigureFieldRulesDto.Raw, - Squidex.ConfigureFieldRulesDto -> = core.serialization.object({ - fieldRules: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../../..")).FieldRuleDto)) - .optional(), -}); - -export declare namespace ConfigureFieldRulesDto { - interface Raw { - fieldRules?: serializers.FieldRuleDto.Raw[] | null; - } -} diff --git a/src/serialization/resources/schemas/client/requests/ConfigureUiFieldsDto.ts b/src/serialization/resources/schemas/client/requests/ConfigureUiFieldsDto.ts deleted file mode 100644 index 2565f3f..0000000 --- a/src/serialization/resources/schemas/client/requests/ConfigureUiFieldsDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const ConfigureUiFieldsDto: core.serialization.Schema< - serializers.ConfigureUiFieldsDto.Raw, - Squidex.ConfigureUiFieldsDto -> = core.serialization.object({ - fieldsInLists: core.serialization.list(core.serialization.string()).optional(), - fieldsInReferences: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace ConfigureUiFieldsDto { - interface Raw { - fieldsInLists?: string[] | null; - fieldsInReferences?: string[] | null; - } -} diff --git a/src/serialization/resources/schemas/client/requests/CreateSchemaDto.ts b/src/serialization/resources/schemas/client/requests/CreateSchemaDto.ts deleted file mode 100644 index de8bfbe..0000000 --- a/src/serialization/resources/schemas/client/requests/CreateSchemaDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const CreateSchemaDto: core.serialization.Schema = - core.serialization - .object({ - name: core.serialization.string(), - type: core.serialization.lazy(async () => (await import("../../../..")).SchemaType).optional(), - isSingleton: core.serialization.boolean().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("../../../..")).UpsertSchemaDto)); - -export declare namespace CreateSchemaDto { - interface Raw extends serializers.UpsertSchemaDto.Raw { - name: string; - type?: serializers.SchemaType.Raw | null; - isSingleton?: boolean | null; - } -} diff --git a/src/serialization/resources/schemas/client/requests/SynchronizeSchemaDto.ts b/src/serialization/resources/schemas/client/requests/SynchronizeSchemaDto.ts deleted file mode 100644 index 3f3fa59..0000000 --- a/src/serialization/resources/schemas/client/requests/SynchronizeSchemaDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const SynchronizeSchemaDto: core.serialization.Schema< - serializers.SynchronizeSchemaDto.Raw, - Squidex.SynchronizeSchemaDto -> = core.serialization - .object({ - noFieldDeletion: core.serialization.boolean().optional(), - noFieldRecreation: core.serialization.boolean().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("../../../..")).UpsertSchemaDto)); - -export declare namespace SynchronizeSchemaDto { - interface Raw extends serializers.UpsertSchemaDto.Raw { - noFieldDeletion?: boolean | null; - noFieldRecreation?: boolean | null; - } -} diff --git a/src/serialization/resources/schemas/client/requests/UpdateSchemaDto.ts b/src/serialization/resources/schemas/client/requests/UpdateSchemaDto.ts deleted file mode 100644 index 0e177cd..0000000 --- a/src/serialization/resources/schemas/client/requests/UpdateSchemaDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateSchemaDto: core.serialization.Schema = - core.serialization.object({ - label: core.serialization.string().optional(), - hints: core.serialization.string().optional(), - contentsSidebarUrl: core.serialization.string().optional(), - contentSidebarUrl: core.serialization.string().optional(), - contentEditorUrl: core.serialization.string().optional(), - validateOnPublish: core.serialization.boolean().optional(), - tags: core.serialization.list(core.serialization.string()).optional(), - }); - -export declare namespace UpdateSchemaDto { - interface Raw { - label?: string | null; - hints?: string | null; - contentsSidebarUrl?: string | null; - contentSidebarUrl?: string | null; - contentEditorUrl?: string | null; - validateOnPublish?: boolean | null; - tags?: string[] | null; - } -} diff --git a/src/serialization/resources/schemas/client/requests/index.ts b/src/serialization/resources/schemas/client/requests/index.ts deleted file mode 100644 index cc5afd7..0000000 --- a/src/serialization/resources/schemas/client/requests/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { ConfigureUiFieldsDto } from "./ConfigureUiFieldsDto"; -export { CreateSchemaDto } from "./CreateSchemaDto"; -export { UpdateSchemaDto } from "./UpdateSchemaDto"; -export { SynchronizeSchemaDto } from "./SynchronizeSchemaDto"; -export { ChangeCategoryDto } from "./ChangeCategoryDto"; -export { ConfigureFieldRulesDto } from "./ConfigureFieldRulesDto"; diff --git a/src/serialization/resources/schemas/index.ts b/src/serialization/resources/schemas/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/schemas/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/search/client/getSearchResults.ts b/src/serialization/resources/search/client/getSearchResults.ts deleted file mode 100644 index 65b91a4..0000000 --- a/src/serialization/resources/search/client/getSearchResults.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.search.getSearchResults.Response.Raw, - Squidex.SearchResultDto[] -> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).SearchResultDto)); - -export declare namespace Response { - type Raw = serializers.SearchResultDto.Raw[]; -} diff --git a/src/serialization/resources/search/client/index.ts b/src/serialization/resources/search/client/index.ts deleted file mode 100644 index 5d69075..0000000 --- a/src/serialization/resources/search/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as getSearchResults from "./getSearchResults"; diff --git a/src/serialization/resources/search/index.ts b/src/serialization/resources/search/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/search/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/statistics/client/getStorageSizes.ts b/src/serialization/resources/statistics/client/getStorageSizes.ts deleted file mode 100644 index 39d62b1..0000000 --- a/src/serialization/resources/statistics/client/getStorageSizes.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.statistics.getStorageSizes.Response.Raw, - Squidex.StorageUsagePerDateDto[] -> = core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).StorageUsagePerDateDto) -); - -export declare namespace Response { - type Raw = serializers.StorageUsagePerDateDto.Raw[]; -} diff --git a/src/serialization/resources/statistics/client/getStorageSizesForTeam.ts b/src/serialization/resources/statistics/client/getStorageSizesForTeam.ts deleted file mode 100644 index 9e08d6c..0000000 --- a/src/serialization/resources/statistics/client/getStorageSizesForTeam.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema< - serializers.statistics.getStorageSizesForTeam.Response.Raw, - Squidex.StorageUsagePerDateDto[] -> = core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).StorageUsagePerDateDto) -); - -export declare namespace Response { - type Raw = serializers.StorageUsagePerDateDto.Raw[]; -} diff --git a/src/serialization/resources/statistics/client/index.ts b/src/serialization/resources/statistics/client/index.ts deleted file mode 100644 index 8882674..0000000 --- a/src/serialization/resources/statistics/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as getStorageSizes from "./getStorageSizes"; -export * as getStorageSizesForTeam from "./getStorageSizesForTeam"; diff --git a/src/serialization/resources/statistics/index.ts b/src/serialization/resources/statistics/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/statistics/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/teams/client/getTeams.ts b/src/serialization/resources/teams/client/getTeams.ts deleted file mode 100644 index 67f0e2a..0000000 --- a/src/serialization/resources/teams/client/getTeams.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).TeamDto)); - -export declare namespace Response { - type Raw = serializers.TeamDto.Raw[]; -} diff --git a/src/serialization/resources/teams/client/index.ts b/src/serialization/resources/teams/client/index.ts deleted file mode 100644 index a26af2f..0000000 --- a/src/serialization/resources/teams/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as getTeams from "./getTeams"; -export * from "./requests"; diff --git a/src/serialization/resources/teams/client/requests/CreateTeamDto.ts b/src/serialization/resources/teams/client/requests/CreateTeamDto.ts deleted file mode 100644 index baea3ae..0000000 --- a/src/serialization/resources/teams/client/requests/CreateTeamDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const CreateTeamDto: core.serialization.Schema = - core.serialization.object({ - name: core.serialization.string(), - }); - -export declare namespace CreateTeamDto { - interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/teams/client/requests/UpdateTeamDto.ts b/src/serialization/resources/teams/client/requests/UpdateTeamDto.ts deleted file mode 100644 index d6acf2e..0000000 --- a/src/serialization/resources/teams/client/requests/UpdateTeamDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateTeamDto: core.serialization.Schema = - core.serialization.object({ - name: core.serialization.string(), - }); - -export declare namespace UpdateTeamDto { - interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/teams/client/requests/index.ts b/src/serialization/resources/teams/client/requests/index.ts deleted file mode 100644 index 36453aa..0000000 --- a/src/serialization/resources/teams/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateTeamDto } from "./CreateTeamDto"; -export { UpdateTeamDto } from "./UpdateTeamDto"; diff --git a/src/serialization/resources/teams/index.ts b/src/serialization/resources/teams/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/teams/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/translations/client/index.ts b/src/serialization/resources/translations/client/index.ts deleted file mode 100644 index cedfa6d..0000000 --- a/src/serialization/resources/translations/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as postQuestion from "./postQuestion"; -export * from "./requests"; diff --git a/src/serialization/resources/translations/client/postQuestion.ts b/src/serialization/resources/translations/client/postQuestion.ts deleted file mode 100644 index 798b514..0000000 --- a/src/serialization/resources/translations/client/postQuestion.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.string()); - -export declare namespace Response { - type Raw = string[]; -} diff --git a/src/serialization/resources/translations/client/requests/AskDto.ts b/src/serialization/resources/translations/client/requests/AskDto.ts deleted file mode 100644 index d870086..0000000 --- a/src/serialization/resources/translations/client/requests/AskDto.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const AskDto: core.serialization.Schema = core.serialization.object({ - prompt: core.serialization.string(), -}); - -export declare namespace AskDto { - interface Raw { - prompt: string; - } -} diff --git a/src/serialization/resources/translations/client/requests/TranslateDto.ts b/src/serialization/resources/translations/client/requests/TranslateDto.ts deleted file mode 100644 index d0dd71e..0000000 --- a/src/serialization/resources/translations/client/requests/TranslateDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const TranslateDto: core.serialization.Schema = - core.serialization.object({ - text: core.serialization.string(), - targetLanguage: core.serialization.string(), - sourceLanguage: core.serialization.string().optional(), - }); - -export declare namespace TranslateDto { - interface Raw { - text: string; - targetLanguage: string; - sourceLanguage?: string | null; - } -} diff --git a/src/serialization/resources/translations/client/requests/index.ts b/src/serialization/resources/translations/client/requests/index.ts deleted file mode 100644 index 0025378..0000000 --- a/src/serialization/resources/translations/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { TranslateDto } from "./TranslateDto"; -export { AskDto } from "./AskDto"; diff --git a/src/serialization/resources/translations/index.ts b/src/serialization/resources/translations/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/translations/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/userManagement/client/index.ts b/src/serialization/resources/userManagement/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/userManagement/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/userManagement/client/requests/CreateUserDto.ts b/src/serialization/resources/userManagement/client/requests/CreateUserDto.ts deleted file mode 100644 index 7c3411a..0000000 --- a/src/serialization/resources/userManagement/client/requests/CreateUserDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const CreateUserDto: core.serialization.Schema = - core.serialization.object({ - email: core.serialization.string(), - displayName: core.serialization.string(), - password: core.serialization.string(), - permissions: core.serialization.list(core.serialization.string()), - }); - -export declare namespace CreateUserDto { - interface Raw { - email: string; - displayName: string; - password: string; - permissions: string[]; - } -} diff --git a/src/serialization/resources/userManagement/client/requests/UpdateUserDto.ts b/src/serialization/resources/userManagement/client/requests/UpdateUserDto.ts deleted file mode 100644 index a7685f9..0000000 --- a/src/serialization/resources/userManagement/client/requests/UpdateUserDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateUserDto: core.serialization.Schema = - core.serialization.object({ - email: core.serialization.string(), - displayName: core.serialization.string(), - password: core.serialization.string().optional(), - permissions: core.serialization.list(core.serialization.string()), - }); - -export declare namespace UpdateUserDto { - interface Raw { - email: string; - displayName: string; - password?: string | null; - permissions: string[]; - } -} diff --git a/src/serialization/resources/userManagement/client/requests/index.ts b/src/serialization/resources/userManagement/client/requests/index.ts deleted file mode 100644 index 726877d..0000000 --- a/src/serialization/resources/userManagement/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateUserDto } from "./CreateUserDto"; -export { UpdateUserDto } from "./UpdateUserDto"; diff --git a/src/serialization/resources/userManagement/index.ts b/src/serialization/resources/userManagement/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/userManagement/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/users/client/getUsers.ts b/src/serialization/resources/users/client/getUsers.ts deleted file mode 100644 index 9618dae..0000000 --- a/src/serialization/resources/users/client/getUsers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Squidex from "../../../../api"; -import * as core from "../../../../core"; - -export const Response: core.serialization.Schema = - core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).UserDto)); - -export declare namespace Response { - type Raw = serializers.UserDto.Raw[]; -} diff --git a/src/serialization/resources/users/client/index.ts b/src/serialization/resources/users/client/index.ts deleted file mode 100644 index d687eb7..0000000 --- a/src/serialization/resources/users/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as getUsers from "./getUsers"; -export * from "./requests"; diff --git a/src/serialization/resources/users/client/requests/UpdateProfileDto.ts b/src/serialization/resources/users/client/requests/UpdateProfileDto.ts deleted file mode 100644 index d014aee..0000000 --- a/src/serialization/resources/users/client/requests/UpdateProfileDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Squidex from "../../../../../api"; -import * as core from "../../../../../core"; - -export const UpdateProfileDto: core.serialization.Schema = - core.serialization.object({ - answers: core.serialization - .record(core.serialization.string(), core.serialization.string().optional()) - .optional(), - }); - -export declare namespace UpdateProfileDto { - interface Raw { - answers?: Record | null; - } -} diff --git a/src/serialization/resources/users/client/requests/index.ts b/src/serialization/resources/users/client/requests/index.ts deleted file mode 100644 index 07e194e..0000000 --- a/src/serialization/resources/users/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { UpdateProfileDto } from "./UpdateProfileDto"; diff --git a/src/serialization/resources/users/index.ts b/src/serialization/resources/users/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/users/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/types/ActionTypeEnum.ts b/src/serialization/types/ActionTypeEnum.ts deleted file mode 100644 index cdbad9b..0000000 --- a/src/serialization/types/ActionTypeEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ActionTypeEnum: core.serialization.Schema = - core.serialization.enum_(["Broadcast", "User", "Group"]); - -export declare namespace ActionTypeEnum { - type Raw = "Broadcast" | "User" | "Group"; -} diff --git a/src/serialization/types/AddFieldDto.ts b/src/serialization/types/AddFieldDto.ts deleted file mode 100644 index 14488a6..0000000 --- a/src/serialization/types/AddFieldDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AddFieldDto: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - partitioning: core.serialization.string().optional(), - properties: core.serialization.lazy(async () => (await import("..")).FieldPropertiesDto), - }); - -export declare namespace AddFieldDto { - interface Raw { - name: string; - partitioning?: string | null; - properties: serializers.FieldPropertiesDto.Raw; - } -} diff --git a/src/serialization/types/AlgoliaRuleActionDto.ts b/src/serialization/types/AlgoliaRuleActionDto.ts deleted file mode 100644 index c92f539..0000000 --- a/src/serialization/types/AlgoliaRuleActionDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AlgoliaRuleActionDto: core.serialization.ObjectSchema< - serializers.AlgoliaRuleActionDto.Raw, - Squidex.AlgoliaRuleActionDto -> = core.serialization.object({ - appId: core.serialization.string(), - apiKey: core.serialization.string(), - indexName: core.serialization.string(), - document: core.serialization.string().optional(), - delete: core.serialization.string().optional(), -}); - -export declare namespace AlgoliaRuleActionDto { - interface Raw { - appId: string; - apiKey: string; - indexName: string; - document?: string | null; - delete?: string | null; - } -} diff --git a/src/serialization/types/AppDto.ts b/src/serialization/types/AppDto.ts deleted file mode 100644 index 9c344c5..0000000 --- a/src/serialization/types/AppDto.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AppDto: core.serialization.ObjectSchema = core.serialization - .object({ - id: core.serialization.string(), - name: core.serialization.string(), - label: core.serialization.string().optional(), - description: core.serialization.string().optional(), - version: core.serialization.number(), - created: core.serialization.date(), - lastModified: core.serialization.date(), - teamId: core.serialization.string().optional(), - permissions: core.serialization.list(core.serialization.string()), - canAccessApi: core.serialization.boolean(), - canAccessContent: core.serialization.boolean(), - roleName: core.serialization.string().optional(), - roleProperties: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AppDto { - interface Raw extends serializers.Resource.Raw { - id: string; - name: string; - label?: string | null; - description?: string | null; - version: number; - created: string; - lastModified: string; - teamId?: string | null; - permissions: string[]; - canAccessApi: boolean; - canAccessContent: boolean; - roleName?: string | null; - roleProperties: Record; - } -} diff --git a/src/serialization/types/AppLanguageDto.ts b/src/serialization/types/AppLanguageDto.ts deleted file mode 100644 index 5df3c6c..0000000 --- a/src/serialization/types/AppLanguageDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AppLanguageDto: core.serialization.ObjectSchema = - core.serialization - .object({ - iso2Code: core.serialization.string(), - englishName: core.serialization.string(), - fallback: core.serialization.list(core.serialization.string()), - isMaster: core.serialization.boolean(), - isOptional: core.serialization.boolean(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AppLanguageDto { - interface Raw extends serializers.Resource.Raw { - iso2Code: string; - englishName: string; - fallback: string[]; - isMaster: boolean; - isOptional: boolean; - } -} diff --git a/src/serialization/types/AppLanguagesDto.ts b/src/serialization/types/AppLanguagesDto.ts deleted file mode 100644 index b6647e0..0000000 --- a/src/serialization/types/AppLanguagesDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AppLanguagesDto: core.serialization.ObjectSchema< - serializers.AppLanguagesDto.Raw, - Squidex.AppLanguagesDto -> = core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).AppLanguageDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AppLanguagesDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.AppLanguageDto.Raw[]; - } -} diff --git a/src/serialization/types/AppSettingsDto.ts b/src/serialization/types/AppSettingsDto.ts deleted file mode 100644 index 8d4a3a4..0000000 --- a/src/serialization/types/AppSettingsDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AppSettingsDto: core.serialization.ObjectSchema = - core.serialization - .object({ - patterns: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).PatternDto) - ), - editors: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).EditorDto)), - hideScheduler: core.serialization.boolean(), - hideDateTimeModeButton: core.serialization.boolean(), - version: core.serialization.number(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AppSettingsDto { - interface Raw extends serializers.Resource.Raw { - patterns: serializers.PatternDto.Raw[]; - editors: serializers.EditorDto.Raw[]; - hideScheduler: boolean; - hideDateTimeModeButton: boolean; - version: number; - } -} diff --git a/src/serialization/types/ArrayCalculatedDefaultValue.ts b/src/serialization/types/ArrayCalculatedDefaultValue.ts deleted file mode 100644 index ee55efb..0000000 --- a/src/serialization/types/ArrayCalculatedDefaultValue.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ArrayCalculatedDefaultValue: core.serialization.Schema< - serializers.ArrayCalculatedDefaultValue.Raw, - Squidex.ArrayCalculatedDefaultValue -> = core.serialization.enum_(["EmptyArray", "Null"]); - -export declare namespace ArrayCalculatedDefaultValue { - type Raw = "EmptyArray" | "Null"; -} diff --git a/src/serialization/types/ArrayFieldPropertiesDto.ts b/src/serialization/types/ArrayFieldPropertiesDto.ts deleted file mode 100644 index a48027e..0000000 --- a/src/serialization/types/ArrayFieldPropertiesDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ArrayFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.ArrayFieldPropertiesDto.Raw, - Squidex.ArrayFieldPropertiesDto -> = core.serialization.object({ - minItems: core.serialization.number().optional(), - maxItems: core.serialization.number().optional(), - calculatedDefaultValue: core.serialization - .lazy(async () => (await import("..")).ArrayCalculatedDefaultValue) - .optional(), - uniqueFields: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace ArrayFieldPropertiesDto { - interface Raw { - minItems?: number | null; - maxItems?: number | null; - calculatedDefaultValue?: serializers.ArrayCalculatedDefaultValue.Raw | null; - uniqueFields?: string[] | null; - } -} diff --git a/src/serialization/types/AssetChangedRuleTriggerDto.ts b/src/serialization/types/AssetChangedRuleTriggerDto.ts deleted file mode 100644 index cf72f8f..0000000 --- a/src/serialization/types/AssetChangedRuleTriggerDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetChangedRuleTriggerDto: core.serialization.ObjectSchema< - serializers.AssetChangedRuleTriggerDto.Raw, - Squidex.AssetChangedRuleTriggerDto -> = core.serialization.object({ - condition: core.serialization.string().optional(), -}); - -export declare namespace AssetChangedRuleTriggerDto { - interface Raw { - condition?: string | null; - } -} diff --git a/src/serialization/types/AssetDto.ts b/src/serialization/types/AssetDto.ts deleted file mode 100644 index d880494..0000000 --- a/src/serialization/types/AssetDto.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetDto: core.serialization.ObjectSchema = core.serialization - .object({ - id: core.serialization.string(), - parentId: core.serialization.string(), - fileName: core.serialization.string(), - fileHash: core.serialization.string().optional(), - isProtected: core.serialization.boolean(), - slug: core.serialization.string(), - mimeType: core.serialization.string(), - fileType: core.serialization.string(), - metadataText: core.serialization.string(), - editToken: core.serialization.string().optional(), - metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - tags: core.serialization.list(core.serialization.string()).optional(), - fileSize: core.serialization.number(), - fileVersion: core.serialization.number(), - type: core.serialization.lazy(async () => (await import("..")).AssetType), - createdBy: core.serialization.string(), - lastModifiedBy: core.serialization.string(), - created: core.serialization.date(), - lastModified: core.serialization.date(), - version: core.serialization.number(), - meta: core.serialization.property( - "_meta", - core.serialization.lazyObject(async () => (await import("..")).AssetMeta).optional() - ), - isImage: core.serialization.boolean(), - pixelWidth: core.serialization.number().optional(), - pixelHeight: core.serialization.number().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AssetDto { - interface Raw extends serializers.Resource.Raw { - id: string; - parentId: string; - fileName: string; - fileHash?: string | null; - isProtected: boolean; - slug: string; - mimeType: string; - fileType: string; - metadataText: string; - editToken?: string | null; - metadata: Record; - tags?: string[] | null; - fileSize: number; - fileVersion: number; - type: serializers.AssetType.Raw; - createdBy: string; - lastModifiedBy: string; - created: string; - lastModified: string; - version: number; - _meta?: serializers.AssetMeta.Raw | null; - isImage: boolean; - pixelWidth?: number | null; - pixelHeight?: number | null; - } -} diff --git a/src/serialization/types/AssetFolderDto.ts b/src/serialization/types/AssetFolderDto.ts deleted file mode 100644 index 962abb0..0000000 --- a/src/serialization/types/AssetFolderDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetFolderDto: core.serialization.ObjectSchema = - core.serialization - .object({ - id: core.serialization.string(), - parentId: core.serialization.string(), - folderName: core.serialization.string(), - version: core.serialization.number(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AssetFolderDto { - interface Raw extends serializers.Resource.Raw { - id: string; - parentId: string; - folderName: string; - version: number; - } -} diff --git a/src/serialization/types/AssetFolderScope.ts b/src/serialization/types/AssetFolderScope.ts deleted file mode 100644 index b388c9a..0000000 --- a/src/serialization/types/AssetFolderScope.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetFolderScope: core.serialization.Schema = - core.serialization.enum_(["PathAndItems", "Path", "Items"]); - -export declare namespace AssetFolderScope { - type Raw = "PathAndItems" | "Path" | "Items"; -} diff --git a/src/serialization/types/AssetFoldersDto.ts b/src/serialization/types/AssetFoldersDto.ts deleted file mode 100644 index a110bab..0000000 --- a/src/serialization/types/AssetFoldersDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetFoldersDto: core.serialization.ObjectSchema< - serializers.AssetFoldersDto.Raw, - Squidex.AssetFoldersDto -> = core.serialization - .object({ - total: core.serialization.number(), - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).AssetFolderDto)), - path: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).AssetFolderDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AssetFoldersDto { - interface Raw extends serializers.Resource.Raw { - total: number; - items: serializers.AssetFolderDto.Raw[]; - path: serializers.AssetFolderDto.Raw[]; - } -} diff --git a/src/serialization/types/AssetMeta.ts b/src/serialization/types/AssetMeta.ts deleted file mode 100644 index 2b27bf8..0000000 --- a/src/serialization/types/AssetMeta.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetMeta: core.serialization.ObjectSchema = - core.serialization.object({ - isDuplicate: core.serialization.string(), - }); - -export declare namespace AssetMeta { - interface Raw { - isDuplicate: string; - } -} diff --git a/src/serialization/types/AssetPreviewMode.ts b/src/serialization/types/AssetPreviewMode.ts deleted file mode 100644 index 98a29d4..0000000 --- a/src/serialization/types/AssetPreviewMode.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetPreviewMode: core.serialization.Schema = - core.serialization.enum_(["ImageAndFileName", "Image", "FileName"]); - -export declare namespace AssetPreviewMode { - type Raw = "ImageAndFileName" | "Image" | "FileName"; -} diff --git a/src/serialization/types/AssetScriptsDto.ts b/src/serialization/types/AssetScriptsDto.ts deleted file mode 100644 index d34b538..0000000 --- a/src/serialization/types/AssetScriptsDto.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetScriptsDto: core.serialization.ObjectSchema< - serializers.AssetScriptsDto.Raw, - Squidex.AssetScriptsDto -> = core.serialization - .object({ - query: core.serialization.string().optional(), - queryPre: core.serialization.string().optional(), - create: core.serialization.string().optional(), - update: core.serialization.string().optional(), - annotate: core.serialization.string().optional(), - move: core.serialization.string().optional(), - delete: core.serialization.string().optional(), - version: core.serialization.number(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AssetScriptsDto { - interface Raw extends serializers.Resource.Raw { - query?: string | null; - queryPre?: string | null; - create?: string | null; - update?: string | null; - annotate?: string | null; - move?: string | null; - delete?: string | null; - version: number; - } -} diff --git a/src/serialization/types/AssetType.ts b/src/serialization/types/AssetType.ts deleted file mode 100644 index 3797ff4..0000000 --- a/src/serialization/types/AssetType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetType: core.serialization.Schema = - core.serialization.enum_(["Unknown", "Image", "Audio", "Video"]); - -export declare namespace AssetType { - type Raw = "Unknown" | "Image" | "Audio" | "Video"; -} diff --git a/src/serialization/types/AssetsDto.ts b/src/serialization/types/AssetsDto.ts deleted file mode 100644 index dc97c59..0000000 --- a/src/serialization/types/AssetsDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetsDto: core.serialization.ObjectSchema = - core.serialization - .object({ - total: core.serialization.number(), - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).AssetDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace AssetsDto { - interface Raw extends serializers.Resource.Raw { - total: number; - items: serializers.AssetDto.Raw[]; - } -} diff --git a/src/serialization/types/AssetsFieldPropertiesDto.ts b/src/serialization/types/AssetsFieldPropertiesDto.ts deleted file mode 100644 index 952ac93..0000000 --- a/src/serialization/types/AssetsFieldPropertiesDto.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssetsFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.AssetsFieldPropertiesDto.Raw, - Squidex.AssetsFieldPropertiesDto -> = core.serialization.object({ - previewMode: core.serialization.lazy(async () => (await import("..")).AssetPreviewMode).optional(), - defaultValues: core.serialization - .lazy(async () => (await import("..")).LocalizedValueOfReadonlyListOfString) - .optional(), - defaultValue: core.serialization.list(core.serialization.string()).optional(), - folderId: core.serialization.string().optional(), - previewFormat: core.serialization.string().optional(), - minItems: core.serialization.number().optional(), - maxItems: core.serialization.number().optional(), - minSize: core.serialization.number().optional(), - maxSize: core.serialization.number().optional(), - minWidth: core.serialization.number().optional(), - maxWidth: core.serialization.number().optional(), - minHeight: core.serialization.number().optional(), - maxHeight: core.serialization.number().optional(), - aspectWidth: core.serialization.number().optional(), - aspectHeight: core.serialization.number().optional(), - expectedType: core.serialization.lazy(async () => (await import("..")).AssetType).optional(), - resolveFirst: core.serialization.boolean().optional(), - mustBeImage: core.serialization.boolean().optional(), - resolveImage: core.serialization.boolean().optional(), - allowedExtensions: core.serialization.list(core.serialization.string()).optional(), - allowDuplicates: core.serialization.boolean().optional(), -}); - -export declare namespace AssetsFieldPropertiesDto { - interface Raw { - previewMode?: serializers.AssetPreviewMode.Raw | null; - defaultValues?: serializers.LocalizedValueOfReadonlyListOfString.Raw | null; - defaultValue?: string[] | null; - folderId?: string | null; - previewFormat?: string | null; - minItems?: number | null; - maxItems?: number | null; - minSize?: number | null; - maxSize?: number | null; - minWidth?: number | null; - maxWidth?: number | null; - minHeight?: number | null; - maxHeight?: number | null; - aspectWidth?: number | null; - aspectHeight?: number | null; - expectedType?: serializers.AssetType.Raw | null; - resolveFirst?: boolean | null; - mustBeImage?: boolean | null; - resolveImage?: boolean | null; - allowedExtensions?: string[] | null; - allowDuplicates?: boolean | null; - } -} diff --git a/src/serialization/types/AssignContributorDto.ts b/src/serialization/types/AssignContributorDto.ts deleted file mode 100644 index 7059571..0000000 --- a/src/serialization/types/AssignContributorDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AssignContributorDto: core.serialization.ObjectSchema< - serializers.AssignContributorDto.Raw, - Squidex.AssignContributorDto -> = core.serialization.object({ - contributorId: core.serialization.string(), - role: core.serialization.string().optional(), - invite: core.serialization.boolean().optional(), -}); - -export declare namespace AssignContributorDto { - interface Raw { - contributorId: string; - role?: string | null; - invite?: boolean | null; - } -} diff --git a/src/serialization/types/AzureQueueRuleActionDto.ts b/src/serialization/types/AzureQueueRuleActionDto.ts deleted file mode 100644 index cd2849d..0000000 --- a/src/serialization/types/AzureQueueRuleActionDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const AzureQueueRuleActionDto: core.serialization.ObjectSchema< - serializers.AzureQueueRuleActionDto.Raw, - Squidex.AzureQueueRuleActionDto -> = core.serialization.object({ - connectionString: core.serialization.string(), - queue: core.serialization.string(), - payload: core.serialization.string().optional(), -}); - -export declare namespace AzureQueueRuleActionDto { - interface Raw { - connectionString: string; - queue: string; - payload?: string | null; - } -} diff --git a/src/serialization/types/BackupJobDto.ts b/src/serialization/types/BackupJobDto.ts deleted file mode 100644 index 0b3167f..0000000 --- a/src/serialization/types/BackupJobDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BackupJobDto: core.serialization.ObjectSchema = - core.serialization - .object({ - id: core.serialization.string(), - started: core.serialization.date(), - stopped: core.serialization.date().optional(), - handledEvents: core.serialization.number(), - handledAssets: core.serialization.number(), - status: core.serialization.lazy(async () => (await import("..")).JobStatus), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace BackupJobDto { - interface Raw extends serializers.Resource.Raw { - id: string; - started: string; - stopped?: string | null; - handledEvents: number; - handledAssets: number; - status: serializers.JobStatus.Raw; - } -} diff --git a/src/serialization/types/BackupJobsDto.ts b/src/serialization/types/BackupJobsDto.ts deleted file mode 100644 index 745c3a7..0000000 --- a/src/serialization/types/BackupJobsDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BackupJobsDto: core.serialization.ObjectSchema = - core.serialization - .object({ - items: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).BackupJobDto) - ), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace BackupJobsDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.BackupJobDto.Raw[]; - } -} diff --git a/src/serialization/types/BooleanFieldEditor.ts b/src/serialization/types/BooleanFieldEditor.ts deleted file mode 100644 index 924ab78..0000000 --- a/src/serialization/types/BooleanFieldEditor.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BooleanFieldEditor: core.serialization.Schema< - serializers.BooleanFieldEditor.Raw, - Squidex.BooleanFieldEditor -> = core.serialization.enum_(["Checkbox", "Toggle"]); - -export declare namespace BooleanFieldEditor { - type Raw = "Checkbox" | "Toggle"; -} diff --git a/src/serialization/types/BooleanFieldPropertiesDto.ts b/src/serialization/types/BooleanFieldPropertiesDto.ts deleted file mode 100644 index 1d4efc9..0000000 --- a/src/serialization/types/BooleanFieldPropertiesDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BooleanFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.BooleanFieldPropertiesDto.Raw, - Squidex.BooleanFieldPropertiesDto -> = core.serialization.object({ - defaultValues: core.serialization.lazy(async () => (await import("..")).LocalizedValueOfNullableBoolean).optional(), - defaultValue: core.serialization.boolean().optional(), - inlineEditable: core.serialization.boolean().optional(), - editor: core.serialization.lazy(async () => (await import("..")).BooleanFieldEditor).optional(), -}); - -export declare namespace BooleanFieldPropertiesDto { - interface Raw { - defaultValues?: serializers.LocalizedValueOfNullableBoolean.Raw | null; - defaultValue?: boolean | null; - inlineEditable?: boolean | null; - editor?: serializers.BooleanFieldEditor.Raw | null; - } -} diff --git a/src/serialization/types/BulkResultDto.ts b/src/serialization/types/BulkResultDto.ts deleted file mode 100644 index e46ab97..0000000 --- a/src/serialization/types/BulkResultDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BulkResultDto: core.serialization.ObjectSchema = - core.serialization.object({ - error: core.serialization.lazyObject(async () => (await import("..")).ErrorDto).optional(), - jobIndex: core.serialization.number(), - id: core.serialization.string().optional(), - contentId: core.serialization.string().optional(), - }); - -export declare namespace BulkResultDto { - interface Raw { - error?: serializers.ErrorDto.Raw | null; - jobIndex: number; - id?: string | null; - contentId?: string | null; - } -} diff --git a/src/serialization/types/BulkUpdateAssetType.ts b/src/serialization/types/BulkUpdateAssetType.ts deleted file mode 100644 index 8d82a64..0000000 --- a/src/serialization/types/BulkUpdateAssetType.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BulkUpdateAssetType: core.serialization.Schema< - serializers.BulkUpdateAssetType.Raw, - Squidex.BulkUpdateAssetType -> = core.serialization.enum_(["Annotate", "Move", "Delete"]); - -export declare namespace BulkUpdateAssetType { - type Raw = "Annotate" | "Move" | "Delete"; -} diff --git a/src/serialization/types/BulkUpdateAssetsJobDto.ts b/src/serialization/types/BulkUpdateAssetsJobDto.ts deleted file mode 100644 index ee392d3..0000000 --- a/src/serialization/types/BulkUpdateAssetsJobDto.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BulkUpdateAssetsJobDto: core.serialization.ObjectSchema< - serializers.BulkUpdateAssetsJobDto.Raw, - Squidex.BulkUpdateAssetsJobDto -> = core.serialization.object({ - id: core.serialization.string().optional(), - type: core.serialization.lazy(async () => (await import("..")).BulkUpdateAssetType).optional(), - parentId: core.serialization.string().optional(), - fileName: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - isProtected: core.serialization.boolean().optional(), - tags: core.serialization.list(core.serialization.string()).optional(), - metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - permanent: core.serialization.boolean().optional(), - expectedVersion: core.serialization.number().optional(), -}); - -export declare namespace BulkUpdateAssetsJobDto { - interface Raw { - id?: string | null; - type?: serializers.BulkUpdateAssetType.Raw | null; - parentId?: string | null; - fileName?: string | null; - slug?: string | null; - isProtected?: boolean | null; - tags?: string[] | null; - metadata?: Record | null; - permanent?: boolean | null; - expectedVersion?: number | null; - } -} diff --git a/src/serialization/types/BulkUpdateContentType.ts b/src/serialization/types/BulkUpdateContentType.ts deleted file mode 100644 index daee6fe..0000000 --- a/src/serialization/types/BulkUpdateContentType.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BulkUpdateContentType: core.serialization.Schema< - serializers.BulkUpdateContentType.Raw, - Squidex.BulkUpdateContentType -> = core.serialization.enum_(["Upsert", "ChangeStatus", "Create", "Delete", "Patch", "Update", "Validate"]); - -export declare namespace BulkUpdateContentType { - type Raw = "Upsert" | "ChangeStatus" | "Create" | "Delete" | "Patch" | "Update" | "Validate"; -} diff --git a/src/serialization/types/BulkUpdateContentsDto.ts b/src/serialization/types/BulkUpdateContentsDto.ts deleted file mode 100644 index 9b2f328..0000000 --- a/src/serialization/types/BulkUpdateContentsDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BulkUpdateContentsDto: core.serialization.ObjectSchema< - serializers.BulkUpdateContentsDto.Raw, - Squidex.BulkUpdateContentsDto -> = core.serialization.object({ - jobs: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).BulkUpdateContentsJobDto) - ), - publish: core.serialization.boolean().optional(), - doNotScript: core.serialization.boolean().optional(), - doNotValidate: core.serialization.boolean().optional(), - doNotValidateWorkflow: core.serialization.boolean().optional(), - checkReferrers: core.serialization.boolean().optional(), - optimizeValidation: core.serialization.boolean().optional(), -}); - -export declare namespace BulkUpdateContentsDto { - interface Raw { - jobs: serializers.BulkUpdateContentsJobDto.Raw[]; - publish?: boolean | null; - doNotScript?: boolean | null; - doNotValidate?: boolean | null; - doNotValidateWorkflow?: boolean | null; - checkReferrers?: boolean | null; - optimizeValidation?: boolean | null; - } -} diff --git a/src/serialization/types/BulkUpdateContentsJobDto.ts b/src/serialization/types/BulkUpdateContentsJobDto.ts deleted file mode 100644 index 74d5010..0000000 --- a/src/serialization/types/BulkUpdateContentsJobDto.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const BulkUpdateContentsJobDto: core.serialization.ObjectSchema< - serializers.BulkUpdateContentsJobDto.Raw, - Squidex.BulkUpdateContentsJobDto -> = core.serialization.object({ - query: core.serialization.lazyObject(async () => (await import("..")).QueryJsonDto).optional(), - id: core.serialization.string().optional(), - data: core.serialization.lazy(async () => (await import("..")).ContentData).optional(), - status: core.serialization.string().optional(), - dueTime: core.serialization.date().optional(), - type: core.serialization.lazy(async () => (await import("..")).BulkUpdateContentType).optional(), - schema: core.serialization.string().optional(), - patch: core.serialization.boolean().optional(), - permanent: core.serialization.boolean().optional(), - expectedCount: core.serialization.number().optional(), - expectedVersion: core.serialization.number().optional(), -}); - -export declare namespace BulkUpdateContentsJobDto { - interface Raw { - query?: serializers.QueryJsonDto.Raw | null; - id?: string | null; - data?: serializers.ContentData.Raw | null; - status?: string | null; - dueTime?: string | null; - type?: serializers.BulkUpdateContentType.Raw | null; - schema?: string | null; - patch?: boolean | null; - permanent?: boolean | null; - expectedCount?: number | null; - expectedVersion?: number | null; - } -} diff --git a/src/serialization/types/CallsUsageDtoDto.ts b/src/serialization/types/CallsUsageDtoDto.ts deleted file mode 100644 index f5e4df3..0000000 --- a/src/serialization/types/CallsUsageDtoDto.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CallsUsageDtoDto: core.serialization.ObjectSchema< - serializers.CallsUsageDtoDto.Raw, - Squidex.CallsUsageDtoDto -> = core.serialization.object({ - totalCalls: core.serialization.number(), - totalBytes: core.serialization.number(), - monthCalls: core.serialization.number(), - monthBytes: core.serialization.number(), - blockingApiCalls: core.serialization.number(), - allowedBytes: core.serialization.number(), - allowedCalls: core.serialization.number(), - averageElapsedMs: core.serialization.number(), - details: core.serialization.record( - core.serialization.string(), - core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).CallsUsagePerDateDto)) - ), -}); - -export declare namespace CallsUsageDtoDto { - interface Raw { - totalCalls: number; - totalBytes: number; - monthCalls: number; - monthBytes: number; - blockingApiCalls: number; - allowedBytes: number; - allowedCalls: number; - averageElapsedMs: number; - details: Record; - } -} diff --git a/src/serialization/types/CallsUsagePerDateDto.ts b/src/serialization/types/CallsUsagePerDateDto.ts deleted file mode 100644 index f5d9f14..0000000 --- a/src/serialization/types/CallsUsagePerDateDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CallsUsagePerDateDto: core.serialization.ObjectSchema< - serializers.CallsUsagePerDateDto.Raw, - Squidex.CallsUsagePerDateDto -> = core.serialization.object({ - date: core.serialization.string(), - totalCalls: core.serialization.number(), - totalBytes: core.serialization.number(), - averageElapsedMs: core.serialization.number(), -}); - -export declare namespace CallsUsagePerDateDto { - interface Raw { - date: string; - totalCalls: number; - totalBytes: number; - averageElapsedMs: number; - } -} diff --git a/src/serialization/types/ChangePlanDto.ts b/src/serialization/types/ChangePlanDto.ts deleted file mode 100644 index d5d3959..0000000 --- a/src/serialization/types/ChangePlanDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ChangePlanDto: core.serialization.ObjectSchema = - core.serialization.object({ - planId: core.serialization.string(), - }); - -export declare namespace ChangePlanDto { - interface Raw { - planId: string; - } -} diff --git a/src/serialization/types/ClientDto.ts b/src/serialization/types/ClientDto.ts deleted file mode 100644 index 90e0ab6..0000000 --- a/src/serialization/types/ClientDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ClientDto: core.serialization.ObjectSchema = - core.serialization - .object({ - id: core.serialization.string(), - secret: core.serialization.string(), - name: core.serialization.string(), - role: core.serialization.string().optional(), - apiCallsLimit: core.serialization.number(), - apiTrafficLimit: core.serialization.number(), - allowAnonymous: core.serialization.boolean(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace ClientDto { - interface Raw extends serializers.Resource.Raw { - id: string; - secret: string; - name: string; - role?: string | null; - apiCallsLimit: number; - apiTrafficLimit: number; - allowAnonymous: boolean; - } -} diff --git a/src/serialization/types/ClientsDto.ts b/src/serialization/types/ClientsDto.ts deleted file mode 100644 index 81e51c9..0000000 --- a/src/serialization/types/ClientsDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ClientsDto: core.serialization.ObjectSchema = - core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).ClientDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace ClientsDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.ClientDto.Raw[]; - } -} diff --git a/src/serialization/types/CommentDto.ts b/src/serialization/types/CommentDto.ts deleted file mode 100644 index 19e7435..0000000 --- a/src/serialization/types/CommentDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CommentDto: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string(), - time: core.serialization.date(), - user: core.serialization.string(), - text: core.serialization.string(), - url: core.serialization.string().optional(), - }); - -export declare namespace CommentDto { - interface Raw { - id: string; - time: string; - user: string; - text: string; - url?: string | null; - } -} diff --git a/src/serialization/types/CommentRuleActionDto.ts b/src/serialization/types/CommentRuleActionDto.ts deleted file mode 100644 index 839a4ab..0000000 --- a/src/serialization/types/CommentRuleActionDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CommentRuleActionDto: core.serialization.ObjectSchema< - serializers.CommentRuleActionDto.Raw, - Squidex.CommentRuleActionDto -> = core.serialization.object({ - text: core.serialization.string(), - client: core.serialization.string().optional(), -}); - -export declare namespace CommentRuleActionDto { - interface Raw { - text: string; - client?: string | null; - } -} diff --git a/src/serialization/types/CommentRuleTriggerDto.ts b/src/serialization/types/CommentRuleTriggerDto.ts deleted file mode 100644 index 23d4d36..0000000 --- a/src/serialization/types/CommentRuleTriggerDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CommentRuleTriggerDto: core.serialization.ObjectSchema< - serializers.CommentRuleTriggerDto.Raw, - Squidex.CommentRuleTriggerDto -> = core.serialization.object({ - condition: core.serialization.string().optional(), -}); - -export declare namespace CommentRuleTriggerDto { - interface Raw { - condition?: string | null; - } -} diff --git a/src/serialization/types/CommentsDto.ts b/src/serialization/types/CommentsDto.ts deleted file mode 100644 index f924f59..0000000 --- a/src/serialization/types/CommentsDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CommentsDto: core.serialization.ObjectSchema = - core.serialization.object({ - createdComments: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).CommentDto)) - .optional(), - updatedComments: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).CommentDto)) - .optional(), - deletedComments: core.serialization.list(core.serialization.string()).optional(), - version: core.serialization.number(), - }); - -export declare namespace CommentsDto { - interface Raw { - createdComments?: serializers.CommentDto.Raw[] | null; - updatedComments?: serializers.CommentDto.Raw[] | null; - deletedComments?: string[] | null; - version: number; - } -} diff --git a/src/serialization/types/ComponentFieldPropertiesDto.ts b/src/serialization/types/ComponentFieldPropertiesDto.ts deleted file mode 100644 index b88b05f..0000000 --- a/src/serialization/types/ComponentFieldPropertiesDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ComponentFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.ComponentFieldPropertiesDto.Raw, - Squidex.ComponentFieldPropertiesDto -> = core.serialization.object({ - schemaIds: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace ComponentFieldPropertiesDto { - interface Raw { - schemaIds?: string[] | null; - } -} diff --git a/src/serialization/types/ComponentsFieldPropertiesDto.ts b/src/serialization/types/ComponentsFieldPropertiesDto.ts deleted file mode 100644 index 8d2cd1b..0000000 --- a/src/serialization/types/ComponentsFieldPropertiesDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ComponentsFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.ComponentsFieldPropertiesDto.Raw, - Squidex.ComponentsFieldPropertiesDto -> = core.serialization.object({ - minItems: core.serialization.number().optional(), - maxItems: core.serialization.number().optional(), - calculatedDefaultValue: core.serialization - .lazy(async () => (await import("..")).ArrayCalculatedDefaultValue) - .optional(), - schemaIds: core.serialization.list(core.serialization.string()).optional(), - uniqueFields: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace ComponentsFieldPropertiesDto { - interface Raw { - minItems?: number | null; - maxItems?: number | null; - calculatedDefaultValue?: serializers.ArrayCalculatedDefaultValue.Raw | null; - schemaIds?: string[] | null; - uniqueFields?: string[] | null; - } -} diff --git a/src/serialization/types/ConfigurePreviewUrlsDto.ts b/src/serialization/types/ConfigurePreviewUrlsDto.ts deleted file mode 100644 index aa868a2..0000000 --- a/src/serialization/types/ConfigurePreviewUrlsDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ConfigurePreviewUrlsDto: core.serialization.Schema< - serializers.ConfigurePreviewUrlsDto.Raw, - Squidex.ConfigurePreviewUrlsDto -> = core.serialization.record(core.serialization.string(), core.serialization.string()); - -export declare namespace ConfigurePreviewUrlsDto { - type Raw = Record; -} diff --git a/src/serialization/types/ContentChangedRuleTriggerDto.ts b/src/serialization/types/ContentChangedRuleTriggerDto.ts deleted file mode 100644 index 6b8e111..0000000 --- a/src/serialization/types/ContentChangedRuleTriggerDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContentChangedRuleTriggerDto: core.serialization.ObjectSchema< - serializers.ContentChangedRuleTriggerDto.Raw, - Squidex.ContentChangedRuleTriggerDto -> = core.serialization.object({ - schemas: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).SchemaCondition)) - .optional(), - referencedSchemas: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).SchemaCondition)) - .optional(), - handleAll: core.serialization.boolean(), -}); - -export declare namespace ContentChangedRuleTriggerDto { - interface Raw { - schemas?: serializers.SchemaCondition.Raw[] | null; - referencedSchemas?: serializers.SchemaCondition.Raw[] | null; - handleAll: boolean; - } -} diff --git a/src/serialization/types/ContentData.ts b/src/serialization/types/ContentData.ts deleted file mode 100644 index bc4a686..0000000 --- a/src/serialization/types/ContentData.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContentData: core.serialization.Schema = - core.serialization.record( - core.serialization.string(), - core.serialization.lazy(async () => (await import("..")).ContentFieldData) - ); - -export declare namespace ContentData { - type Raw = Record; -} diff --git a/src/serialization/types/ContentDto.ts b/src/serialization/types/ContentDto.ts deleted file mode 100644 index 3803d60..0000000 --- a/src/serialization/types/ContentDto.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContentDto: core.serialization.ObjectSchema = - core.serialization - .object({ - id: core.serialization.string(), - createdBy: core.serialization.string(), - lastModifiedBy: core.serialization.string(), - data: core.serialization.unknown(), - referenceData: core.serialization.lazy(async () => (await import("..")).ContentData).optional(), - created: core.serialization.date(), - lastModified: core.serialization.date(), - status: core.serialization.string(), - newStatus: core.serialization.string().optional(), - statusColor: core.serialization.string(), - newStatusColor: core.serialization.string().optional(), - editToken: core.serialization.string().optional(), - scheduleJob: core.serialization.lazyObject(async () => (await import("..")).ScheduleJobDto).optional(), - schemaId: core.serialization.string(), - schemaName: core.serialization.string().optional(), - schemaDisplayName: core.serialization.string().optional(), - referenceFields: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).FieldDto)) - .optional(), - isDeleted: core.serialization.boolean(), - version: core.serialization.number(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace ContentDto { - interface Raw extends serializers.Resource.Raw { - id: string; - createdBy: string; - lastModifiedBy: string; - data?: unknown; - referenceData?: serializers.ContentData.Raw | null; - created: string; - lastModified: string; - status: string; - newStatus?: string | null; - statusColor: string; - newStatusColor?: string | null; - editToken?: string | null; - scheduleJob?: serializers.ScheduleJobDto.Raw | null; - schemaId: string; - schemaName?: string | null; - schemaDisplayName?: string | null; - referenceFields?: serializers.FieldDto.Raw[] | null; - isDeleted: boolean; - version: number; - } -} diff --git a/src/serialization/types/ContentFieldData.ts b/src/serialization/types/ContentFieldData.ts deleted file mode 100644 index 7cb8ede..0000000 --- a/src/serialization/types/ContentFieldData.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContentFieldData: core.serialization.Schema = - core.serialization.record(core.serialization.string(), core.serialization.unknown()); - -export declare namespace ContentFieldData { - type Raw = Record; -} diff --git a/src/serialization/types/ContentsDto.ts b/src/serialization/types/ContentsDto.ts deleted file mode 100644 index 385670b..0000000 --- a/src/serialization/types/ContentsDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContentsDto: core.serialization.ObjectSchema = - core.serialization - .object({ - total: core.serialization.number(), - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).ContentDto)), - statuses: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).StatusInfoDto) - ), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace ContentsDto { - interface Raw extends serializers.Resource.Raw { - total: number; - items: serializers.ContentDto.Raw[]; - statuses: serializers.StatusInfoDto.Raw[]; - } -} diff --git a/src/serialization/types/ContributorDto.ts b/src/serialization/types/ContributorDto.ts deleted file mode 100644 index 8b158eb..0000000 --- a/src/serialization/types/ContributorDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContributorDto: core.serialization.ObjectSchema = - core.serialization - .object({ - contributorId: core.serialization.string(), - contributorName: core.serialization.string(), - contributorEmail: core.serialization.string(), - role: core.serialization.string().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace ContributorDto { - interface Raw extends serializers.Resource.Raw { - contributorId: string; - contributorName: string; - contributorEmail: string; - role?: string | null; - } -} diff --git a/src/serialization/types/ContributorsDto.ts b/src/serialization/types/ContributorsDto.ts deleted file mode 100644 index f29b31b..0000000 --- a/src/serialization/types/ContributorsDto.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContributorsDto: core.serialization.ObjectSchema< - serializers.ContributorsDto.Raw, - Squidex.ContributorsDto -> = core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).ContributorDto)), - maxContributors: core.serialization.number(), - meta: core.serialization.property( - "_meta", - core.serialization.lazyObject(async () => (await import("..")).ContributorsMetadata).optional() - ), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace ContributorsDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.ContributorDto.Raw[]; - maxContributors: number; - _meta?: serializers.ContributorsMetadata.Raw | null; - } -} diff --git a/src/serialization/types/ContributorsMetadata.ts b/src/serialization/types/ContributorsMetadata.ts deleted file mode 100644 index 5e9f0bb..0000000 --- a/src/serialization/types/ContributorsMetadata.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ContributorsMetadata: core.serialization.ObjectSchema< - serializers.ContributorsMetadata.Raw, - Squidex.ContributorsMetadata -> = core.serialization.object({ - isInvited: core.serialization.string(), -}); - -export declare namespace ContributorsMetadata { - interface Raw { - isInvited: string; - } -} diff --git a/src/serialization/types/CreateContentRuleActionDto.ts b/src/serialization/types/CreateContentRuleActionDto.ts deleted file mode 100644 index cbab988..0000000 --- a/src/serialization/types/CreateContentRuleActionDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CreateContentRuleActionDto: core.serialization.ObjectSchema< - serializers.CreateContentRuleActionDto.Raw, - Squidex.CreateContentRuleActionDto -> = core.serialization.object({ - data: core.serialization.string(), - schema: core.serialization.string(), - client: core.serialization.string(), - publish: core.serialization.boolean(), -}); - -export declare namespace CreateContentRuleActionDto { - interface Raw { - data: string; - schema: string; - client: string; - publish: boolean; - } -} diff --git a/src/serialization/types/CreateRuleDto.ts b/src/serialization/types/CreateRuleDto.ts deleted file mode 100644 index a84f178..0000000 --- a/src/serialization/types/CreateRuleDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CreateRuleDto: core.serialization.ObjectSchema = - core.serialization.object({ - trigger: core.serialization.lazy(async () => (await import("..")).RuleTriggerDto), - action: core.serialization.lazy(async () => (await import("..")).RuleActionDto), - }); - -export declare namespace CreateRuleDto { - interface Raw { - trigger: serializers.RuleTriggerDto.Raw; - action: serializers.RuleActionDto.Raw; - } -} diff --git a/src/serialization/types/CurrentStorageDto.ts b/src/serialization/types/CurrentStorageDto.ts deleted file mode 100644 index 6d154c6..0000000 --- a/src/serialization/types/CurrentStorageDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const CurrentStorageDto: core.serialization.ObjectSchema< - serializers.CurrentStorageDto.Raw, - Squidex.CurrentStorageDto -> = core.serialization.object({ - size: core.serialization.number(), - maxAllowed: core.serialization.number(), -}); - -export declare namespace CurrentStorageDto { - interface Raw { - size: number; - maxAllowed: number; - } -} diff --git a/src/serialization/types/DateTimeCalculatedDefaultValue.ts b/src/serialization/types/DateTimeCalculatedDefaultValue.ts deleted file mode 100644 index 859a4bf..0000000 --- a/src/serialization/types/DateTimeCalculatedDefaultValue.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const DateTimeCalculatedDefaultValue: core.serialization.Schema< - serializers.DateTimeCalculatedDefaultValue.Raw, - Squidex.DateTimeCalculatedDefaultValue -> = core.serialization.enum_(["Now", "Today"]); - -export declare namespace DateTimeCalculatedDefaultValue { - type Raw = "Now" | "Today"; -} diff --git a/src/serialization/types/DateTimeFieldEditor.ts b/src/serialization/types/DateTimeFieldEditor.ts deleted file mode 100644 index 742b211..0000000 --- a/src/serialization/types/DateTimeFieldEditor.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const DateTimeFieldEditor: core.serialization.Schema< - serializers.DateTimeFieldEditor.Raw, - Squidex.DateTimeFieldEditor -> = core.serialization.enum_(["Date", "DateTime"]); - -export declare namespace DateTimeFieldEditor { - type Raw = "Date" | "DateTime"; -} diff --git a/src/serialization/types/DateTimeFieldPropertiesDto.ts b/src/serialization/types/DateTimeFieldPropertiesDto.ts deleted file mode 100644 index 72f4a44..0000000 --- a/src/serialization/types/DateTimeFieldPropertiesDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const DateTimeFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.DateTimeFieldPropertiesDto.Raw, - Squidex.DateTimeFieldPropertiesDto -> = core.serialization.object({ - defaultValues: core.serialization.lazy(async () => (await import("..")).LocalizedValueOfNullableInstant).optional(), - defaultValue: core.serialization.date().optional(), - maxValue: core.serialization.date().optional(), - minValue: core.serialization.date().optional(), - format: core.serialization.string().optional(), - editor: core.serialization.lazy(async () => (await import("..")).DateTimeFieldEditor).optional(), - calculatedDefaultValue: core.serialization - .lazy(async () => (await import("..")).DateTimeCalculatedDefaultValue) - .optional(), -}); - -export declare namespace DateTimeFieldPropertiesDto { - interface Raw { - defaultValues?: serializers.LocalizedValueOfNullableInstant.Raw | null; - defaultValue?: string | null; - maxValue?: string | null; - minValue?: string | null; - format?: string | null; - editor?: serializers.DateTimeFieldEditor.Raw | null; - calculatedDefaultValue?: serializers.DateTimeCalculatedDefaultValue.Raw | null; - } -} diff --git a/src/serialization/types/DeepDetectRuleActionDto.ts b/src/serialization/types/DeepDetectRuleActionDto.ts deleted file mode 100644 index e656e12..0000000 --- a/src/serialization/types/DeepDetectRuleActionDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const DeepDetectRuleActionDto: core.serialization.ObjectSchema< - serializers.DeepDetectRuleActionDto.Raw, - Squidex.DeepDetectRuleActionDto -> = core.serialization.object({ - minimumProbability: core.serialization.number(), - maximumTags: core.serialization.number(), -}); - -export declare namespace DeepDetectRuleActionDto { - interface Raw { - minimumProbability: number; - maximumTags: number; - } -} diff --git a/src/serialization/types/DiscourseRuleActionDto.ts b/src/serialization/types/DiscourseRuleActionDto.ts deleted file mode 100644 index ab193d1..0000000 --- a/src/serialization/types/DiscourseRuleActionDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const DiscourseRuleActionDto: core.serialization.ObjectSchema< - serializers.DiscourseRuleActionDto.Raw, - Squidex.DiscourseRuleActionDto -> = core.serialization.object({ - url: core.serialization.string(), - apiKey: core.serialization.string(), - apiUsername: core.serialization.string(), - text: core.serialization.string(), - title: core.serialization.string().optional(), - topic: core.serialization.number().optional(), - category: core.serialization.number().optional(), -}); - -export declare namespace DiscourseRuleActionDto { - interface Raw { - url: string; - apiKey: string; - apiUsername: string; - text: string; - title?: string | null; - topic?: number | null; - category?: number | null; - } -} diff --git a/src/serialization/types/EditorDto.ts b/src/serialization/types/EditorDto.ts deleted file mode 100644 index 59988a9..0000000 --- a/src/serialization/types/EditorDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const EditorDto: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - url: core.serialization.string(), - }); - -export declare namespace EditorDto { - interface Raw { - name: string; - url: string; - } -} diff --git a/src/serialization/types/ElasticSearchRuleActionDto.ts b/src/serialization/types/ElasticSearchRuleActionDto.ts deleted file mode 100644 index 9e7c756..0000000 --- a/src/serialization/types/ElasticSearchRuleActionDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ElasticSearchRuleActionDto: core.serialization.ObjectSchema< - serializers.ElasticSearchRuleActionDto.Raw, - Squidex.ElasticSearchRuleActionDto -> = core.serialization.object({ - host: core.serialization.string(), - indexName: core.serialization.string(), - username: core.serialization.string().optional(), - password: core.serialization.string().optional(), - document: core.serialization.string().optional(), - delete: core.serialization.string().optional(), -}); - -export declare namespace ElasticSearchRuleActionDto { - interface Raw { - host: string; - indexName: string; - username?: string | null; - password?: string | null; - document?: string | null; - delete?: string | null; - } -} diff --git a/src/serialization/types/EmailRuleActionDto.ts b/src/serialization/types/EmailRuleActionDto.ts deleted file mode 100644 index 6b6ac6b..0000000 --- a/src/serialization/types/EmailRuleActionDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const EmailRuleActionDto: core.serialization.ObjectSchema< - serializers.EmailRuleActionDto.Raw, - Squidex.EmailRuleActionDto -> = core.serialization.object({ - serverHost: core.serialization.string(), - serverPort: core.serialization.number(), - serverUsername: core.serialization.string(), - serverPassword: core.serialization.string(), - messageFrom: core.serialization.string(), - messageTo: core.serialization.string(), - messageSubject: core.serialization.string(), - messageBody: core.serialization.string(), -}); - -export declare namespace EmailRuleActionDto { - interface Raw { - serverHost: string; - serverPort: number; - serverUsername: string; - serverPassword: string; - messageFrom: string; - messageTo: string; - messageSubject: string; - messageBody: string; - } -} diff --git a/src/serialization/types/ErrorDto.ts b/src/serialization/types/ErrorDto.ts deleted file mode 100644 index 882e9eb..0000000 --- a/src/serialization/types/ErrorDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ErrorDto: core.serialization.ObjectSchema = - core.serialization.object({ - message: core.serialization.string(), - errorCode: core.serialization.string().optional(), - traceId: core.serialization.string().optional(), - type: core.serialization.string().optional(), - details: core.serialization.list(core.serialization.string()).optional(), - statusCode: core.serialization.number(), - }); - -export declare namespace ErrorDto { - interface Raw { - message: string; - errorCode?: string | null; - traceId?: string | null; - type?: string | null; - details?: string[] | null; - statusCode: number; - } -} diff --git a/src/serialization/types/EventConsumerDto.ts b/src/serialization/types/EventConsumerDto.ts deleted file mode 100644 index a7d85d5..0000000 --- a/src/serialization/types/EventConsumerDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const EventConsumerDto: core.serialization.ObjectSchema< - serializers.EventConsumerDto.Raw, - Squidex.EventConsumerDto -> = core.serialization - .object({ - isStopped: core.serialization.boolean(), - isResetting: core.serialization.boolean(), - count: core.serialization.number(), - name: core.serialization.string(), - error: core.serialization.string().optional(), - position: core.serialization.string().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace EventConsumerDto { - interface Raw extends serializers.Resource.Raw { - isStopped: boolean; - isResetting: boolean; - count: number; - name: string; - error?: string | null; - position?: string | null; - } -} diff --git a/src/serialization/types/EventConsumersDto.ts b/src/serialization/types/EventConsumersDto.ts deleted file mode 100644 index af19756..0000000 --- a/src/serialization/types/EventConsumersDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const EventConsumersDto: core.serialization.ObjectSchema< - serializers.EventConsumersDto.Raw, - Squidex.EventConsumersDto -> = core.serialization - .object({ - items: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).EventConsumerDto) - ), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace EventConsumersDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.EventConsumerDto.Raw[]; - } -} diff --git a/src/serialization/types/ExposedValues.ts b/src/serialization/types/ExposedValues.ts deleted file mode 100644 index 03ab370..0000000 --- a/src/serialization/types/ExposedValues.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ExposedValues: core.serialization.Schema = - core.serialization.record(core.serialization.string(), core.serialization.string()); - -export declare namespace ExposedValues { - type Raw = Record; -} diff --git a/src/serialization/types/FastlyRuleActionDto.ts b/src/serialization/types/FastlyRuleActionDto.ts deleted file mode 100644 index 8ad0818..0000000 --- a/src/serialization/types/FastlyRuleActionDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const FastlyRuleActionDto: core.serialization.ObjectSchema< - serializers.FastlyRuleActionDto.Raw, - Squidex.FastlyRuleActionDto -> = core.serialization.object({ - apiKey: core.serialization.string(), - serviceId: core.serialization.string(), -}); - -export declare namespace FastlyRuleActionDto { - interface Raw { - apiKey: string; - serviceId: string; - } -} diff --git a/src/serialization/types/FeatureDto.ts b/src/serialization/types/FeatureDto.ts deleted file mode 100644 index acc3b31..0000000 --- a/src/serialization/types/FeatureDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const FeatureDto: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - text: core.serialization.string(), - }); - -export declare namespace FeatureDto { - interface Raw { - name: string; - text: string; - } -} diff --git a/src/serialization/types/FeaturesDto.ts b/src/serialization/types/FeaturesDto.ts deleted file mode 100644 index 3944e5c..0000000 --- a/src/serialization/types/FeaturesDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const FeaturesDto: core.serialization.ObjectSchema = - core.serialization.object({ - features: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).FeatureDto)), - version: core.serialization.number(), - }); - -export declare namespace FeaturesDto { - interface Raw { - features: serializers.FeatureDto.Raw[]; - version: number; - } -} diff --git a/src/serialization/types/FieldDto.ts b/src/serialization/types/FieldDto.ts deleted file mode 100644 index dc5e4e8..0000000 --- a/src/serialization/types/FieldDto.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const FieldDto: core.serialization.ObjectSchema = core.serialization - .object({ - fieldId: core.serialization.number(), - name: core.serialization.string(), - isHidden: core.serialization.boolean(), - isLocked: core.serialization.boolean(), - isDisabled: core.serialization.boolean(), - partitioning: core.serialization.string(), - properties: core.serialization.lazy(async () => (await import("..")).FieldPropertiesDto), - nested: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).NestedFieldDto)) - .optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace FieldDto { - interface Raw extends serializers.Resource.Raw { - fieldId: number; - name: string; - isHidden: boolean; - isLocked: boolean; - isDisabled: boolean; - partitioning: string; - properties: serializers.FieldPropertiesDto.Raw; - nested?: serializers.NestedFieldDto.Raw[] | null; - } -} diff --git a/src/serialization/types/FieldPropertiesDto.ts b/src/serialization/types/FieldPropertiesDto.ts deleted file mode 100644 index 1db1500..0000000 --- a/src/serialization/types/FieldPropertiesDto.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as core from "../../core"; -import * as serializers from ".."; -import * as Squidex from "../../api"; - -const _Base = core.serialization.object({ - label: core.serialization.string().optional(), - hints: core.serialization.string().optional(), - placeholder: core.serialization.string().optional(), - isRequired: core.serialization.boolean().optional(), - isRequiredOnPublish: core.serialization.boolean().optional(), - isHalfWidth: core.serialization.boolean().optional(), - editorUrl: core.serialization.string().optional(), - tags: core.serialization.list(core.serialization.string()).optional(), -}); -export const FieldPropertiesDto: core.serialization.Schema< - serializers.FieldPropertiesDto.Raw, - Squidex.FieldPropertiesDto -> = core.serialization - .union("fieldType", { - Array: core.serialization.lazyObject(async () => (await import("..")).ArrayFieldPropertiesDto).extend(_Base), - Assets: core.serialization.lazyObject(async () => (await import("..")).AssetsFieldPropertiesDto).extend(_Base), - Boolean: core.serialization - .lazyObject(async () => (await import("..")).BooleanFieldPropertiesDto) - .extend(_Base), - Component: core.serialization - .lazyObject(async () => (await import("..")).ComponentFieldPropertiesDto) - .extend(_Base), - Components: core.serialization - .lazyObject(async () => (await import("..")).ComponentsFieldPropertiesDto) - .extend(_Base), - DateTime: core.serialization - .lazyObject(async () => (await import("..")).DateTimeFieldPropertiesDto) - .extend(_Base), - Geolocation: core.serialization - .lazyObject(async () => (await import("..")).GeolocationFieldPropertiesDto) - .extend(_Base), - Json: core.serialization.lazyObject(async () => (await import("..")).JsonFieldPropertiesDto).extend(_Base), - Number: core.serialization.lazyObject(async () => (await import("..")).NumberFieldPropertiesDto).extend(_Base), - References: core.serialization - .lazyObject(async () => (await import("..")).ReferencesFieldPropertiesDto) - .extend(_Base), - String: core.serialization.lazyObject(async () => (await import("..")).StringFieldPropertiesDto).extend(_Base), - Tags: core.serialization.lazyObject(async () => (await import("..")).TagsFieldPropertiesDto).extend(_Base), - UI: core.serialization.lazyObject(async () => (await import("..")).UiFieldPropertiesDto).extend(_Base), - }) - .transform({ - transform: (value) => value, - untransform: (value) => value, - }); - -export declare namespace FieldPropertiesDto { - type Raw = - | FieldPropertiesDto.Array - | FieldPropertiesDto.Assets - | FieldPropertiesDto.Boolean - | FieldPropertiesDto.Component - | FieldPropertiesDto.Components - | FieldPropertiesDto.DateTime - | FieldPropertiesDto.Geolocation - | FieldPropertiesDto.Json - | FieldPropertiesDto.Number - | FieldPropertiesDto.References - | FieldPropertiesDto.String - | FieldPropertiesDto.Tags - | FieldPropertiesDto.Ui; - - interface Array extends _Base, serializers.ArrayFieldPropertiesDto.Raw { - fieldType: "Array"; - } - - interface Assets extends _Base, serializers.AssetsFieldPropertiesDto.Raw { - fieldType: "Assets"; - } - - interface Boolean extends _Base, serializers.BooleanFieldPropertiesDto.Raw { - fieldType: "Boolean"; - } - - interface Component extends _Base, serializers.ComponentFieldPropertiesDto.Raw { - fieldType: "Component"; - } - - interface Components extends _Base, serializers.ComponentsFieldPropertiesDto.Raw { - fieldType: "Components"; - } - - interface DateTime extends _Base, serializers.DateTimeFieldPropertiesDto.Raw { - fieldType: "DateTime"; - } - - interface Geolocation extends _Base, serializers.GeolocationFieldPropertiesDto.Raw { - fieldType: "Geolocation"; - } - - interface Json extends _Base, serializers.JsonFieldPropertiesDto.Raw { - fieldType: "Json"; - } - - interface Number extends _Base, serializers.NumberFieldPropertiesDto.Raw { - fieldType: "Number"; - } - - interface References extends _Base, serializers.ReferencesFieldPropertiesDto.Raw { - fieldType: "References"; - } - - interface String extends _Base, serializers.StringFieldPropertiesDto.Raw { - fieldType: "String"; - } - - interface Tags extends _Base, serializers.TagsFieldPropertiesDto.Raw { - fieldType: "Tags"; - } - - interface Ui extends _Base, serializers.UiFieldPropertiesDto.Raw { - fieldType: "UI"; - } - - interface _Base { - label?: string | null; - hints?: string | null; - placeholder?: string | null; - isRequired?: boolean | null; - isRequiredOnPublish?: boolean | null; - isHalfWidth?: boolean | null; - editorUrl?: string | null; - tags?: string[] | null; - } -} diff --git a/src/serialization/types/FieldRuleAction.ts b/src/serialization/types/FieldRuleAction.ts deleted file mode 100644 index c4a7924..0000000 --- a/src/serialization/types/FieldRuleAction.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const FieldRuleAction: core.serialization.Schema = - core.serialization.enum_(["Disable", "Hide", "Require"]); - -export declare namespace FieldRuleAction { - type Raw = "Disable" | "Hide" | "Require"; -} diff --git a/src/serialization/types/FieldRuleDto.ts b/src/serialization/types/FieldRuleDto.ts deleted file mode 100644 index 6cb1dbd..0000000 --- a/src/serialization/types/FieldRuleDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const FieldRuleDto: core.serialization.ObjectSchema = - core.serialization.object({ - action: core.serialization.lazy(async () => (await import("..")).FieldRuleAction), - field: core.serialization.string(), - condition: core.serialization.string().optional(), - }); - -export declare namespace FieldRuleDto { - interface Raw { - action: serializers.FieldRuleAction.Raw; - field: string; - condition?: string | null; - } -} diff --git a/src/serialization/types/GeolocationFieldEditor.ts b/src/serialization/types/GeolocationFieldEditor.ts deleted file mode 100644 index 64bfd18..0000000 --- a/src/serialization/types/GeolocationFieldEditor.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const GeolocationFieldEditor: core.serialization.Schema< - serializers.GeolocationFieldEditor.Raw, - Squidex.GeolocationFieldEditor -> = core.serialization.stringLiteral("Map"); - -export declare namespace GeolocationFieldEditor { - type Raw = "Map"; -} diff --git a/src/serialization/types/GeolocationFieldPropertiesDto.ts b/src/serialization/types/GeolocationFieldPropertiesDto.ts deleted file mode 100644 index 0ea736e..0000000 --- a/src/serialization/types/GeolocationFieldPropertiesDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const GeolocationFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.GeolocationFieldPropertiesDto.Raw, - Squidex.GeolocationFieldPropertiesDto -> = core.serialization.object({ - editor: core.serialization.lazy(async () => (await import("..")).GeolocationFieldEditor).optional(), -}); - -export declare namespace GeolocationFieldPropertiesDto { - interface Raw { - editor?: serializers.GeolocationFieldEditor.Raw | null; - } -} diff --git a/src/serialization/types/HistoryEventDto.ts b/src/serialization/types/HistoryEventDto.ts deleted file mode 100644 index 1cc47c6..0000000 --- a/src/serialization/types/HistoryEventDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const HistoryEventDto: core.serialization.ObjectSchema< - serializers.HistoryEventDto.Raw, - Squidex.HistoryEventDto -> = core.serialization.object({ - message: core.serialization.string(), - eventType: core.serialization.string(), - actor: core.serialization.string(), - eventId: core.serialization.string(), - created: core.serialization.date(), - version: core.serialization.number(), -}); - -export declare namespace HistoryEventDto { - interface Raw { - message: string; - eventType: string; - actor: string; - eventId: string; - created: string; - version: number; - } -} diff --git a/src/serialization/types/ImageFormat.ts b/src/serialization/types/ImageFormat.ts deleted file mode 100644 index d5101a5..0000000 --- a/src/serialization/types/ImageFormat.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ImageFormat: core.serialization.Schema = - core.serialization.enum_(["AVIF", "BMP", "GIF", "JPEG", "PNG", "TGA", "TIFF", "WEBP"]); - -export declare namespace ImageFormat { - type Raw = "AVIF" | "BMP" | "GIF" | "JPEG" | "PNG" | "TGA" | "TIFF" | "WEBP"; -} diff --git a/src/serialization/types/JobStatus.ts b/src/serialization/types/JobStatus.ts deleted file mode 100644 index 95b51df..0000000 --- a/src/serialization/types/JobStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const JobStatus: core.serialization.Schema = - core.serialization.enum_(["Created", "Started", "Completed", "Failed"]); - -export declare namespace JobStatus { - type Raw = "Created" | "Started" | "Completed" | "Failed"; -} diff --git a/src/serialization/types/JsonFieldPropertiesDto.ts b/src/serialization/types/JsonFieldPropertiesDto.ts deleted file mode 100644 index 081b640..0000000 --- a/src/serialization/types/JsonFieldPropertiesDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const JsonFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.JsonFieldPropertiesDto.Raw, - Squidex.JsonFieldPropertiesDto -> = core.serialization.object({ - graphQlSchema: core.serialization.property("graphQLSchema", core.serialization.string().optional()), -}); - -export declare namespace JsonFieldPropertiesDto { - interface Raw { - graphQLSchema?: string | null; - } -} diff --git a/src/serialization/types/LanguageDto.ts b/src/serialization/types/LanguageDto.ts deleted file mode 100644 index 89df11c..0000000 --- a/src/serialization/types/LanguageDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const LanguageDto: core.serialization.ObjectSchema = - core.serialization.object({ - iso2Code: core.serialization.string(), - englishName: core.serialization.string(), - nativeName: core.serialization.string(), - }); - -export declare namespace LanguageDto { - interface Raw { - iso2Code: string; - englishName: string; - nativeName: string; - } -} diff --git a/src/serialization/types/LocalizedValueOfNullableBoolean.ts b/src/serialization/types/LocalizedValueOfNullableBoolean.ts deleted file mode 100644 index 9658990..0000000 --- a/src/serialization/types/LocalizedValueOfNullableBoolean.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const LocalizedValueOfNullableBoolean: core.serialization.Schema< - serializers.LocalizedValueOfNullableBoolean.Raw, - Squidex.LocalizedValueOfNullableBoolean -> = core.serialization.record(core.serialization.string(), core.serialization.boolean().optional()); - -export declare namespace LocalizedValueOfNullableBoolean { - type Raw = Record; -} diff --git a/src/serialization/types/LocalizedValueOfNullableDouble.ts b/src/serialization/types/LocalizedValueOfNullableDouble.ts deleted file mode 100644 index e48f588..0000000 --- a/src/serialization/types/LocalizedValueOfNullableDouble.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const LocalizedValueOfNullableDouble: core.serialization.Schema< - serializers.LocalizedValueOfNullableDouble.Raw, - Squidex.LocalizedValueOfNullableDouble -> = core.serialization.record(core.serialization.string(), core.serialization.number().optional()); - -export declare namespace LocalizedValueOfNullableDouble { - type Raw = Record; -} diff --git a/src/serialization/types/LocalizedValueOfNullableInstant.ts b/src/serialization/types/LocalizedValueOfNullableInstant.ts deleted file mode 100644 index 40e7e6b..0000000 --- a/src/serialization/types/LocalizedValueOfNullableInstant.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const LocalizedValueOfNullableInstant: core.serialization.Schema< - serializers.LocalizedValueOfNullableInstant.Raw, - Squidex.LocalizedValueOfNullableInstant -> = core.serialization.record(core.serialization.string(), core.serialization.date().optional()); - -export declare namespace LocalizedValueOfNullableInstant { - type Raw = Record; -} diff --git a/src/serialization/types/LocalizedValueOfReadonlyListOfString.ts b/src/serialization/types/LocalizedValueOfReadonlyListOfString.ts deleted file mode 100644 index d034937..0000000 --- a/src/serialization/types/LocalizedValueOfReadonlyListOfString.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const LocalizedValueOfReadonlyListOfString: core.serialization.Schema< - serializers.LocalizedValueOfReadonlyListOfString.Raw, - Squidex.LocalizedValueOfReadonlyListOfString -> = core.serialization.record(core.serialization.string(), core.serialization.list(core.serialization.string())); - -export declare namespace LocalizedValueOfReadonlyListOfString { - type Raw = Record; -} diff --git a/src/serialization/types/LocalizedValueOfString.ts b/src/serialization/types/LocalizedValueOfString.ts deleted file mode 100644 index c4b2cef..0000000 --- a/src/serialization/types/LocalizedValueOfString.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const LocalizedValueOfString: core.serialization.Schema< - serializers.LocalizedValueOfString.Raw, - Squidex.LocalizedValueOfString -> = core.serialization.record(core.serialization.string(), core.serialization.string()); - -export declare namespace LocalizedValueOfString { - type Raw = Record; -} diff --git a/src/serialization/types/LogDownloadDto.ts b/src/serialization/types/LogDownloadDto.ts deleted file mode 100644 index 23dab88..0000000 --- a/src/serialization/types/LogDownloadDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const LogDownloadDto: core.serialization.ObjectSchema = - core.serialization.object({ - downloadUrl: core.serialization.string().optional(), - }); - -export declare namespace LogDownloadDto { - interface Raw { - downloadUrl?: string | null; - } -} diff --git a/src/serialization/types/ManualRuleTriggerDto.ts b/src/serialization/types/ManualRuleTriggerDto.ts deleted file mode 100644 index d769bc2..0000000 --- a/src/serialization/types/ManualRuleTriggerDto.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ManualRuleTriggerDto: core.serialization.ObjectSchema< - serializers.ManualRuleTriggerDto.Raw, - Squidex.ManualRuleTriggerDto -> = core.serialization.object({}); - -export declare namespace ManualRuleTriggerDto { - interface Raw {} -} diff --git a/src/serialization/types/MediumRuleActionDto.ts b/src/serialization/types/MediumRuleActionDto.ts deleted file mode 100644 index 7781238..0000000 --- a/src/serialization/types/MediumRuleActionDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const MediumRuleActionDto: core.serialization.ObjectSchema< - serializers.MediumRuleActionDto.Raw, - Squidex.MediumRuleActionDto -> = core.serialization.object({ - accessToken: core.serialization.string(), - title: core.serialization.string(), - content: core.serialization.string(), - canonicalUrl: core.serialization.string().optional(), - tags: core.serialization.string().optional(), - publicationId: core.serialization.string().optional(), - isHtml: core.serialization.boolean(), -}); - -export declare namespace MediumRuleActionDto { - interface Raw { - accessToken: string; - title: string; - content: string; - canonicalUrl?: string | null; - tags?: string | null; - publicationId?: string | null; - isHtml: boolean; - } -} diff --git a/src/serialization/types/NestedFieldDto.ts b/src/serialization/types/NestedFieldDto.ts deleted file mode 100644 index 482e3aa..0000000 --- a/src/serialization/types/NestedFieldDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const NestedFieldDto: core.serialization.ObjectSchema = - core.serialization - .object({ - fieldId: core.serialization.number(), - name: core.serialization.string(), - isHidden: core.serialization.boolean(), - isLocked: core.serialization.boolean(), - isDisabled: core.serialization.boolean(), - properties: core.serialization.lazy(async () => (await import("..")).FieldPropertiesDto), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace NestedFieldDto { - interface Raw extends serializers.Resource.Raw { - fieldId: number; - name: string; - isHidden: boolean; - isLocked: boolean; - isDisabled: boolean; - properties: serializers.FieldPropertiesDto.Raw; - } -} diff --git a/src/serialization/types/NotificationRuleActionDto.ts b/src/serialization/types/NotificationRuleActionDto.ts deleted file mode 100644 index 4d03214..0000000 --- a/src/serialization/types/NotificationRuleActionDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const NotificationRuleActionDto: core.serialization.ObjectSchema< - serializers.NotificationRuleActionDto.Raw, - Squidex.NotificationRuleActionDto -> = core.serialization.object({ - user: core.serialization.string(), - text: core.serialization.string(), - url: core.serialization.string().optional(), - client: core.serialization.string().optional(), -}); - -export declare namespace NotificationRuleActionDto { - interface Raw { - user: string; - text: string; - url?: string | null; - client?: string | null; - } -} diff --git a/src/serialization/types/NumberFieldEditor.ts b/src/serialization/types/NumberFieldEditor.ts deleted file mode 100644 index 6058d36..0000000 --- a/src/serialization/types/NumberFieldEditor.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const NumberFieldEditor: core.serialization.Schema< - serializers.NumberFieldEditor.Raw, - Squidex.NumberFieldEditor -> = core.serialization.enum_(["Input", "Radio", "Dropdown", "Stars"]); - -export declare namespace NumberFieldEditor { - type Raw = "Input" | "Radio" | "Dropdown" | "Stars"; -} diff --git a/src/serialization/types/NumberFieldPropertiesDto.ts b/src/serialization/types/NumberFieldPropertiesDto.ts deleted file mode 100644 index e2971d7..0000000 --- a/src/serialization/types/NumberFieldPropertiesDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const NumberFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.NumberFieldPropertiesDto.Raw, - Squidex.NumberFieldPropertiesDto -> = core.serialization.object({ - defaultValues: core.serialization.lazy(async () => (await import("..")).LocalizedValueOfNullableDouble).optional(), - defaultValue: core.serialization.number().optional(), - maxValue: core.serialization.number().optional(), - minValue: core.serialization.number().optional(), - allowedValues: core.serialization.list(core.serialization.number()).optional(), - isUnique: core.serialization.boolean().optional(), - inlineEditable: core.serialization.boolean().optional(), - editor: core.serialization.lazy(async () => (await import("..")).NumberFieldEditor).optional(), -}); - -export declare namespace NumberFieldPropertiesDto { - interface Raw { - defaultValues?: serializers.LocalizedValueOfNullableDouble.Raw | null; - defaultValue?: number | null; - maxValue?: number | null; - minValue?: number | null; - allowedValues?: number[] | null; - isUnique?: boolean | null; - inlineEditable?: boolean | null; - editor?: serializers.NumberFieldEditor.Raw | null; - } -} diff --git a/src/serialization/types/OpenSearchRuleActionDto.ts b/src/serialization/types/OpenSearchRuleActionDto.ts deleted file mode 100644 index 6f4f3ae..0000000 --- a/src/serialization/types/OpenSearchRuleActionDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const OpenSearchRuleActionDto: core.serialization.ObjectSchema< - serializers.OpenSearchRuleActionDto.Raw, - Squidex.OpenSearchRuleActionDto -> = core.serialization.object({ - host: core.serialization.string(), - indexName: core.serialization.string(), - username: core.serialization.string().optional(), - password: core.serialization.string().optional(), - document: core.serialization.string().optional(), - delete: core.serialization.string().optional(), -}); - -export declare namespace OpenSearchRuleActionDto { - interface Raw { - host: string; - indexName: string; - username?: string | null; - password?: string | null; - document?: string | null; - delete?: string | null; - } -} diff --git a/src/serialization/types/PatternDto.ts b/src/serialization/types/PatternDto.ts deleted file mode 100644 index 11d73ba..0000000 --- a/src/serialization/types/PatternDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const PatternDto: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - regex: core.serialization.string(), - message: core.serialization.string().optional(), - }); - -export declare namespace PatternDto { - interface Raw { - name: string; - regex: string; - message?: string | null; - } -} diff --git a/src/serialization/types/PlanChangedDto.ts b/src/serialization/types/PlanChangedDto.ts deleted file mode 100644 index 5b3f48c..0000000 --- a/src/serialization/types/PlanChangedDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const PlanChangedDto: core.serialization.ObjectSchema = - core.serialization.object({ - redirectUri: core.serialization.string().optional(), - }); - -export declare namespace PlanChangedDto { - interface Raw { - redirectUri?: string | null; - } -} diff --git a/src/serialization/types/PlanDto.ts b/src/serialization/types/PlanDto.ts deleted file mode 100644 index b4feb79..0000000 --- a/src/serialization/types/PlanDto.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const PlanDto: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string(), - name: core.serialization.string(), - costs: core.serialization.string(), - confirmText: core.serialization.string().optional(), - yearlyConfirmText: core.serialization.string().optional(), - yearlyCosts: core.serialization.string().optional(), - yearlyId: core.serialization.string().optional(), - maxApiBytes: core.serialization.number(), - maxApiCalls: core.serialization.number(), - maxAssetSize: core.serialization.number(), - maxContributors: core.serialization.number(), - }); - -export declare namespace PlanDto { - interface Raw { - id: string; - name: string; - costs: string; - confirmText?: string | null; - yearlyConfirmText?: string | null; - yearlyCosts?: string | null; - yearlyId?: string | null; - maxApiBytes: number; - maxApiCalls: number; - maxAssetSize: number; - maxContributors: number; - } -} diff --git a/src/serialization/types/PlansDto.ts b/src/serialization/types/PlansDto.ts deleted file mode 100644 index 3ae0d80..0000000 --- a/src/serialization/types/PlansDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const PlansDto: core.serialization.ObjectSchema = - core.serialization.object({ - plans: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).PlanDto)), - currentPlanId: core.serialization.string().optional(), - planOwner: core.serialization.string().optional(), - portalLink: core.serialization.string().optional(), - referral: core.serialization.lazyObject(async () => (await import("..")).ReferralInfo).optional(), - locked: core.serialization.lazy(async () => (await import("..")).PlansLockedReason), - }); - -export declare namespace PlansDto { - interface Raw { - plans: serializers.PlanDto.Raw[]; - currentPlanId?: string | null; - planOwner?: string | null; - portalLink?: string | null; - referral?: serializers.ReferralInfo.Raw | null; - locked: serializers.PlansLockedReason.Raw; - } -} diff --git a/src/serialization/types/PlansLockedReason.ts b/src/serialization/types/PlansLockedReason.ts deleted file mode 100644 index 9cc409a..0000000 --- a/src/serialization/types/PlansLockedReason.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const PlansLockedReason: core.serialization.Schema< - serializers.PlansLockedReason.Raw, - Squidex.PlansLockedReason -> = core.serialization.enum_(["None", "NotOwner", "NoPermission", "ManagedByTeam"]); - -export declare namespace PlansLockedReason { - type Raw = "None" | "NotOwner" | "NoPermission" | "ManagedByTeam"; -} diff --git a/src/serialization/types/PrerenderRuleActionDto.ts b/src/serialization/types/PrerenderRuleActionDto.ts deleted file mode 100644 index a005b73..0000000 --- a/src/serialization/types/PrerenderRuleActionDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const PrerenderRuleActionDto: core.serialization.ObjectSchema< - serializers.PrerenderRuleActionDto.Raw, - Squidex.PrerenderRuleActionDto -> = core.serialization.object({ - token: core.serialization.string(), - url: core.serialization.string(), -}); - -export declare namespace PrerenderRuleActionDto { - interface Raw { - token: string; - url: string; - } -} diff --git a/src/serialization/types/PropertyPath.ts b/src/serialization/types/PropertyPath.ts deleted file mode 100644 index f7259ee..0000000 --- a/src/serialization/types/PropertyPath.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const PropertyPath: core.serialization.Schema = - core.serialization.list(core.serialization.string()); - -export declare namespace PropertyPath { - type Raw = string[]; -} diff --git a/src/serialization/types/QueryDto.ts b/src/serialization/types/QueryDto.ts deleted file mode 100644 index 9213648..0000000 --- a/src/serialization/types/QueryDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const QueryDto: core.serialization.ObjectSchema = - core.serialization.object({ - ids: core.serialization.list(core.serialization.string()).optional(), - oData: core.serialization.string().optional(), - q: core.serialization.unknown().optional(), - parentId: core.serialization.string().optional(), - }); - -export declare namespace QueryDto { - interface Raw { - ids?: string[] | null; - oData?: string | null; - q?: unknown | null; - parentId?: string | null; - } -} diff --git a/src/serialization/types/QueryJsonDto.ts b/src/serialization/types/QueryJsonDto.ts deleted file mode 100644 index cacf6f3..0000000 --- a/src/serialization/types/QueryJsonDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const QueryJsonDto: core.serialization.ObjectSchema = - core.serialization.object({ - filter: core.serialization.unknown().optional(), - fullText: core.serialization.string().optional(), - skip: core.serialization.number(), - take: core.serialization.number(), - random: core.serialization.number(), - top: core.serialization.number(), - sort: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).SortNode)) - .optional(), - }); - -export declare namespace QueryJsonDto { - interface Raw { - filter?: unknown | null; - fullText?: string | null; - skip: number; - take: number; - random: number; - top: number; - sort?: serializers.SortNode.Raw[] | null; - } -} diff --git a/src/serialization/types/ReferencesFieldEditor.ts b/src/serialization/types/ReferencesFieldEditor.ts deleted file mode 100644 index 43cd89e..0000000 --- a/src/serialization/types/ReferencesFieldEditor.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ReferencesFieldEditor: core.serialization.Schema< - serializers.ReferencesFieldEditor.Raw, - Squidex.ReferencesFieldEditor -> = core.serialization.enum_(["List", "Dropdown", "Tags", "Checkboxes", "Input"]); - -export declare namespace ReferencesFieldEditor { - type Raw = "List" | "Dropdown" | "Tags" | "Checkboxes" | "Input"; -} diff --git a/src/serialization/types/ReferencesFieldPropertiesDto.ts b/src/serialization/types/ReferencesFieldPropertiesDto.ts deleted file mode 100644 index 6d4ba72..0000000 --- a/src/serialization/types/ReferencesFieldPropertiesDto.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ReferencesFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.ReferencesFieldPropertiesDto.Raw, - Squidex.ReferencesFieldPropertiesDto -> = core.serialization.object({ - defaultValues: core.serialization - .lazy(async () => (await import("..")).LocalizedValueOfReadonlyListOfString) - .optional(), - defaultValue: core.serialization.list(core.serialization.string()).optional(), - minItems: core.serialization.number().optional(), - maxItems: core.serialization.number().optional(), - allowDuplicates: core.serialization.boolean().optional(), - resolveReference: core.serialization.boolean().optional(), - mustBePublished: core.serialization.boolean().optional(), - query: core.serialization.string().optional(), - editor: core.serialization.lazy(async () => (await import("..")).ReferencesFieldEditor).optional(), - schemaIds: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace ReferencesFieldPropertiesDto { - interface Raw { - defaultValues?: serializers.LocalizedValueOfReadonlyListOfString.Raw | null; - defaultValue?: string[] | null; - minItems?: number | null; - maxItems?: number | null; - allowDuplicates?: boolean | null; - resolveReference?: boolean | null; - mustBePublished?: boolean | null; - query?: string | null; - editor?: serializers.ReferencesFieldEditor.Raw | null; - schemaIds?: string[] | null; - } -} diff --git a/src/serialization/types/ReferralInfo.ts b/src/serialization/types/ReferralInfo.ts deleted file mode 100644 index e6ba87a..0000000 --- a/src/serialization/types/ReferralInfo.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ReferralInfo: core.serialization.ObjectSchema = - core.serialization.object({ - code: core.serialization.string(), - earned: core.serialization.string(), - condition: core.serialization.string(), - }); - -export declare namespace ReferralInfo { - interface Raw { - code: string; - earned: string; - condition: string; - } -} diff --git a/src/serialization/types/ReorderFieldsDto.ts b/src/serialization/types/ReorderFieldsDto.ts deleted file mode 100644 index 8a46d19..0000000 --- a/src/serialization/types/ReorderFieldsDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ReorderFieldsDto: core.serialization.ObjectSchema< - serializers.ReorderFieldsDto.Raw, - Squidex.ReorderFieldsDto -> = core.serialization.object({ - fieldIds: core.serialization.list(core.serialization.number()), -}); - -export declare namespace ReorderFieldsDto { - interface Raw { - fieldIds: number[]; - } -} diff --git a/src/serialization/types/ResizeMode.ts b/src/serialization/types/ResizeMode.ts deleted file mode 100644 index 05f8b4a..0000000 --- a/src/serialization/types/ResizeMode.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ResizeMode: core.serialization.Schema = - core.serialization.enum_(["Crop", "CropUpsize", "Pad", "BoxPad", "Max", "Min", "Stretch"]); - -export declare namespace ResizeMode { - type Raw = "Crop" | "CropUpsize" | "Pad" | "BoxPad" | "Max" | "Min" | "Stretch"; -} diff --git a/src/serialization/types/Resource.ts b/src/serialization/types/Resource.ts deleted file mode 100644 index 21bc682..0000000 --- a/src/serialization/types/Resource.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const Resource: core.serialization.ObjectSchema = - core.serialization.object({ - links: core.serialization.property( - "_links", - core.serialization.record( - core.serialization.string(), - core.serialization.lazyObject(async () => (await import("..")).ResourceLink) - ) - ), - }); - -export declare namespace Resource { - interface Raw { - _links: Record; - } -} diff --git a/src/serialization/types/ResourceLink.ts b/src/serialization/types/ResourceLink.ts deleted file mode 100644 index b411b78..0000000 --- a/src/serialization/types/ResourceLink.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ResourceLink: core.serialization.ObjectSchema = - core.serialization.object({ - href: core.serialization.string(), - method: core.serialization.string(), - metadata: core.serialization.string().optional(), - }); - -export declare namespace ResourceLink { - interface Raw { - href: string; - method: string; - metadata?: string | null; - } -} diff --git a/src/serialization/types/ResourcesDto.ts b/src/serialization/types/ResourcesDto.ts deleted file mode 100644 index 4ea53e9..0000000 --- a/src/serialization/types/ResourcesDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ResourcesDto: core.serialization.ObjectSchema = - core.serialization.object({}).extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace ResourcesDto { - interface Raw extends serializers.Resource.Raw {} -} diff --git a/src/serialization/types/RestoreJobDto.ts b/src/serialization/types/RestoreJobDto.ts deleted file mode 100644 index b81f500..0000000 --- a/src/serialization/types/RestoreJobDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RestoreJobDto: core.serialization.ObjectSchema = - core.serialization.object({ - url: core.serialization.string(), - log: core.serialization.list(core.serialization.string()), - started: core.serialization.date(), - stopped: core.serialization.date().optional(), - status: core.serialization.lazy(async () => (await import("..")).JobStatus), - }); - -export declare namespace RestoreJobDto { - interface Raw { - url: string; - log: string[]; - started: string; - stopped?: string | null; - status: serializers.JobStatus.Raw; - } -} diff --git a/src/serialization/types/RoleDto.ts b/src/serialization/types/RoleDto.ts deleted file mode 100644 index 63e5d1d..0000000 --- a/src/serialization/types/RoleDto.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RoleDto: core.serialization.ObjectSchema = core.serialization - .object({ - name: core.serialization.string(), - numClients: core.serialization.number(), - numContributors: core.serialization.number(), - isDefaultRole: core.serialization.boolean(), - permissions: core.serialization.list(core.serialization.string()), - properties: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace RoleDto { - interface Raw extends serializers.Resource.Raw { - name: string; - numClients: number; - numContributors: number; - isDefaultRole: boolean; - permissions: string[]; - properties: Record; - } -} diff --git a/src/serialization/types/RolesDto.ts b/src/serialization/types/RolesDto.ts deleted file mode 100644 index 104218e..0000000 --- a/src/serialization/types/RolesDto.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RolesDto: core.serialization.ObjectSchema = core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).RoleDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace RolesDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.RoleDto.Raw[]; - } -} diff --git a/src/serialization/types/RuleActionDto.ts b/src/serialization/types/RuleActionDto.ts deleted file mode 100644 index c808bfc..0000000 --- a/src/serialization/types/RuleActionDto.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleActionDto: core.serialization.Schema = - core.serialization - .union("actionType", { - Algolia: core.serialization.lazyObject(async () => (await import("..")).AlgoliaRuleActionDto), - AzureQueue: core.serialization.lazyObject(async () => (await import("..")).AzureQueueRuleActionDto), - Comment: core.serialization.lazyObject(async () => (await import("..")).CommentRuleActionDto), - CreateContent: core.serialization.lazyObject(async () => (await import("..")).CreateContentRuleActionDto), - DeepDetect: core.serialization.lazyObject(async () => (await import("..")).DeepDetectRuleActionDto), - Discourse: core.serialization.lazyObject(async () => (await import("..")).DiscourseRuleActionDto), - ElasticSearch: core.serialization.lazyObject(async () => (await import("..")).ElasticSearchRuleActionDto), - Email: core.serialization.lazyObject(async () => (await import("..")).EmailRuleActionDto), - Fastly: core.serialization.lazyObject(async () => (await import("..")).FastlyRuleActionDto), - Medium: core.serialization.lazyObject(async () => (await import("..")).MediumRuleActionDto), - Notification: core.serialization.lazyObject(async () => (await import("..")).NotificationRuleActionDto), - OpenSearch: core.serialization.lazyObject(async () => (await import("..")).OpenSearchRuleActionDto), - Prerender: core.serialization.lazyObject(async () => (await import("..")).PrerenderRuleActionDto), - Script: core.serialization.lazyObject(async () => (await import("..")).ScriptRuleActionDto), - SignalR: core.serialization.lazyObject(async () => (await import("..")).SignalRRuleActionDto), - Slack: core.serialization.lazyObject(async () => (await import("..")).SlackRuleActionDto), - Tweet: core.serialization.lazyObject(async () => (await import("..")).TweetRuleActionDto), - Typesense: core.serialization.lazyObject(async () => (await import("..")).TypesenseRuleActionDto), - Webhook: core.serialization.lazyObject(async () => (await import("..")).WebhookRuleActionDto), - }) - .transform({ - transform: (value) => value, - untransform: (value) => value, - }); - -export declare namespace RuleActionDto { - type Raw = - | RuleActionDto.Algolia - | RuleActionDto.AzureQueue - | RuleActionDto.Comment - | RuleActionDto.CreateContent - | RuleActionDto.DeepDetect - | RuleActionDto.Discourse - | RuleActionDto.ElasticSearch - | RuleActionDto.Email - | RuleActionDto.Fastly - | RuleActionDto.Medium - | RuleActionDto.Notification - | RuleActionDto.OpenSearch - | RuleActionDto.Prerender - | RuleActionDto.Script - | RuleActionDto.SignalR - | RuleActionDto.Slack - | RuleActionDto.Tweet - | RuleActionDto.Typesense - | RuleActionDto.Webhook; - - interface Algolia extends serializers.AlgoliaRuleActionDto.Raw { - actionType: "Algolia"; - } - - interface AzureQueue extends serializers.AzureQueueRuleActionDto.Raw { - actionType: "AzureQueue"; - } - - interface Comment extends serializers.CommentRuleActionDto.Raw { - actionType: "Comment"; - } - - interface CreateContent extends serializers.CreateContentRuleActionDto.Raw { - actionType: "CreateContent"; - } - - interface DeepDetect extends serializers.DeepDetectRuleActionDto.Raw { - actionType: "DeepDetect"; - } - - interface Discourse extends serializers.DiscourseRuleActionDto.Raw { - actionType: "Discourse"; - } - - interface ElasticSearch extends serializers.ElasticSearchRuleActionDto.Raw { - actionType: "ElasticSearch"; - } - - interface Email extends serializers.EmailRuleActionDto.Raw { - actionType: "Email"; - } - - interface Fastly extends serializers.FastlyRuleActionDto.Raw { - actionType: "Fastly"; - } - - interface Medium extends serializers.MediumRuleActionDto.Raw { - actionType: "Medium"; - } - - interface Notification extends serializers.NotificationRuleActionDto.Raw { - actionType: "Notification"; - } - - interface OpenSearch extends serializers.OpenSearchRuleActionDto.Raw { - actionType: "OpenSearch"; - } - - interface Prerender extends serializers.PrerenderRuleActionDto.Raw { - actionType: "Prerender"; - } - - interface Script extends serializers.ScriptRuleActionDto.Raw { - actionType: "Script"; - } - - interface SignalR extends serializers.SignalRRuleActionDto.Raw { - actionType: "SignalR"; - } - - interface Slack extends serializers.SlackRuleActionDto.Raw { - actionType: "Slack"; - } - - interface Tweet extends serializers.TweetRuleActionDto.Raw { - actionType: "Tweet"; - } - - interface Typesense extends serializers.TypesenseRuleActionDto.Raw { - actionType: "Typesense"; - } - - interface Webhook extends serializers.WebhookRuleActionDto.Raw { - actionType: "Webhook"; - } -} diff --git a/src/serialization/types/RuleDto.ts b/src/serialization/types/RuleDto.ts deleted file mode 100644 index 5fdf42c..0000000 --- a/src/serialization/types/RuleDto.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleDto: core.serialization.ObjectSchema = core.serialization - .object({ - id: core.serialization.string(), - createdBy: core.serialization.string(), - lastModifiedBy: core.serialization.string(), - created: core.serialization.date(), - lastModified: core.serialization.date(), - version: core.serialization.number(), - isEnabled: core.serialization.boolean(), - name: core.serialization.string().optional(), - trigger: core.serialization.lazy(async () => (await import("..")).RuleTriggerDto), - action: core.serialization.lazy(async () => (await import("..")).RuleActionDto), - numSucceeded: core.serialization.number(), - numFailed: core.serialization.number(), - lastExecuted: core.serialization.date().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace RuleDto { - interface Raw extends serializers.Resource.Raw { - id: string; - createdBy: string; - lastModifiedBy: string; - created: string; - lastModified: string; - version: number; - isEnabled: boolean; - name?: string | null; - trigger: serializers.RuleTriggerDto.Raw; - action: serializers.RuleActionDto.Raw; - numSucceeded: number; - numFailed: number; - lastExecuted?: string | null; - } -} diff --git a/src/serialization/types/RuleElementDto.ts b/src/serialization/types/RuleElementDto.ts deleted file mode 100644 index 0e1617c..0000000 --- a/src/serialization/types/RuleElementDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleElementDto: core.serialization.ObjectSchema = - core.serialization.object({ - description: core.serialization.string(), - display: core.serialization.string(), - title: core.serialization.string().optional(), - iconColor: core.serialization.string().optional(), - iconImage: core.serialization.string().optional(), - readMore: core.serialization.string().optional(), - properties: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).RuleElementPropertyDto) - ), - }); - -export declare namespace RuleElementDto { - interface Raw { - description: string; - display: string; - title?: string | null; - iconColor?: string | null; - iconImage?: string | null; - readMore?: string | null; - properties: serializers.RuleElementPropertyDto.Raw[]; - } -} diff --git a/src/serialization/types/RuleElementPropertyDto.ts b/src/serialization/types/RuleElementPropertyDto.ts deleted file mode 100644 index 6c7a991..0000000 --- a/src/serialization/types/RuleElementPropertyDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleElementPropertyDto: core.serialization.ObjectSchema< - serializers.RuleElementPropertyDto.Raw, - Squidex.RuleElementPropertyDto -> = core.serialization.object({ - editor: core.serialization.lazy(async () => (await import("..")).RuleFieldEditor), - name: core.serialization.string(), - display: core.serialization.string(), - options: core.serialization.list(core.serialization.string()).optional(), - description: core.serialization.string().optional(), - isFormattable: core.serialization.boolean(), - isRequired: core.serialization.boolean(), -}); - -export declare namespace RuleElementPropertyDto { - interface Raw { - editor: serializers.RuleFieldEditor.Raw; - name: string; - display: string; - options?: string[] | null; - description?: string | null; - isFormattable: boolean; - isRequired: boolean; - } -} diff --git a/src/serialization/types/RuleEventDto.ts b/src/serialization/types/RuleEventDto.ts deleted file mode 100644 index ee32a28..0000000 --- a/src/serialization/types/RuleEventDto.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleEventDto: core.serialization.ObjectSchema = - core.serialization - .object({ - id: core.serialization.string(), - created: core.serialization.date(), - description: core.serialization.string(), - eventName: core.serialization.string(), - lastDump: core.serialization.string().optional(), - numCalls: core.serialization.number(), - nextAttempt: core.serialization.date().optional(), - result: core.serialization.lazy(async () => (await import("..")).RuleResult), - jobResult: core.serialization.lazy(async () => (await import("..")).RuleJobResult), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace RuleEventDto { - interface Raw extends serializers.Resource.Raw { - id: string; - created: string; - description: string; - eventName: string; - lastDump?: string | null; - numCalls: number; - nextAttempt?: string | null; - result: serializers.RuleResult.Raw; - jobResult: serializers.RuleJobResult.Raw; - } -} diff --git a/src/serialization/types/RuleEventsDto.ts b/src/serialization/types/RuleEventsDto.ts deleted file mode 100644 index 8555a0d..0000000 --- a/src/serialization/types/RuleEventsDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleEventsDto: core.serialization.ObjectSchema = - core.serialization - .object({ - total: core.serialization.number(), - items: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).RuleEventDto) - ), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace RuleEventsDto { - interface Raw extends serializers.Resource.Raw { - total: number; - items: serializers.RuleEventDto.Raw[]; - } -} diff --git a/src/serialization/types/RuleFieldEditor.ts b/src/serialization/types/RuleFieldEditor.ts deleted file mode 100644 index 00415fc..0000000 --- a/src/serialization/types/RuleFieldEditor.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleFieldEditor: core.serialization.Schema = - core.serialization.enum_([ - "Checkbox", - "Dropdown", - "Email", - "Javascript", - "Number", - "Password", - "Text", - "TextArea", - "Url", - ]); - -export declare namespace RuleFieldEditor { - type Raw = "Checkbox" | "Dropdown" | "Email" | "Javascript" | "Number" | "Password" | "Text" | "TextArea" | "Url"; -} diff --git a/src/serialization/types/RuleJobResult.ts b/src/serialization/types/RuleJobResult.ts deleted file mode 100644 index d4af721..0000000 --- a/src/serialization/types/RuleJobResult.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleJobResult: core.serialization.Schema = - core.serialization.enum_(["Pending", "Success", "Retry", "Failed", "Cancelled"]); - -export declare namespace RuleJobResult { - type Raw = "Pending" | "Success" | "Retry" | "Failed" | "Cancelled"; -} diff --git a/src/serialization/types/RuleResult.ts b/src/serialization/types/RuleResult.ts deleted file mode 100644 index 13f4062..0000000 --- a/src/serialization/types/RuleResult.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleResult: core.serialization.Schema = - core.serialization.enum_(["Pending", "Success", "Failed", "Timeout"]); - -export declare namespace RuleResult { - type Raw = "Pending" | "Success" | "Failed" | "Timeout"; -} diff --git a/src/serialization/types/RuleTriggerDto.ts b/src/serialization/types/RuleTriggerDto.ts deleted file mode 100644 index 82221a8..0000000 --- a/src/serialization/types/RuleTriggerDto.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RuleTriggerDto: core.serialization.Schema = - core.serialization - .union("triggerType", { - AssetChanged: core.serialization.lazyObject(async () => (await import("..")).AssetChangedRuleTriggerDto), - Comment: core.serialization.lazyObject(async () => (await import("..")).CommentRuleTriggerDto), - ContentChanged: core.serialization.lazyObject( - async () => (await import("..")).ContentChangedRuleTriggerDto - ), - Manual: core.serialization.lazyObject(async () => (await import("..")).ManualRuleTriggerDto), - SchemaChanged: core.serialization.lazyObject(async () => (await import("..")).SchemaChangedRuleTriggerDto), - Usage: core.serialization.lazyObject(async () => (await import("..")).UsageRuleTriggerDto), - }) - .transform({ - transform: (value) => value, - untransform: (value) => value, - }); - -export declare namespace RuleTriggerDto { - type Raw = - | RuleTriggerDto.AssetChanged - | RuleTriggerDto.Comment - | RuleTriggerDto.ContentChanged - | RuleTriggerDto.Manual - | RuleTriggerDto.SchemaChanged - | RuleTriggerDto.Usage; - - interface AssetChanged extends serializers.AssetChangedRuleTriggerDto.Raw { - triggerType: "AssetChanged"; - } - - interface Comment extends serializers.CommentRuleTriggerDto.Raw { - triggerType: "Comment"; - } - - interface ContentChanged extends serializers.ContentChangedRuleTriggerDto.Raw { - triggerType: "ContentChanged"; - } - - interface Manual extends serializers.ManualRuleTriggerDto.Raw { - triggerType: "Manual"; - } - - interface SchemaChanged extends serializers.SchemaChangedRuleTriggerDto.Raw { - triggerType: "SchemaChanged"; - } - - interface Usage extends serializers.UsageRuleTriggerDto.Raw { - triggerType: "Usage"; - } -} diff --git a/src/serialization/types/RulesDto.ts b/src/serialization/types/RulesDto.ts deleted file mode 100644 index c9d15e6..0000000 --- a/src/serialization/types/RulesDto.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const RulesDto: core.serialization.ObjectSchema = core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).RuleDto)), - runningRuleId: core.serialization.string().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace RulesDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.RuleDto.Raw[]; - runningRuleId?: string | null; - } -} diff --git a/src/serialization/types/ScheduleJobDto.ts b/src/serialization/types/ScheduleJobDto.ts deleted file mode 100644 index 9f40bf6..0000000 --- a/src/serialization/types/ScheduleJobDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ScheduleJobDto: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string(), - status: core.serialization.string(), - dueTime: core.serialization.date(), - color: core.serialization.string(), - scheduledBy: core.serialization.string(), - }); - -export declare namespace ScheduleJobDto { - interface Raw { - id: string; - status: string; - dueTime: string; - color: string; - scheduledBy: string; - } -} diff --git a/src/serialization/types/SchemaChangedRuleTriggerDto.ts b/src/serialization/types/SchemaChangedRuleTriggerDto.ts deleted file mode 100644 index b4ed0eb..0000000 --- a/src/serialization/types/SchemaChangedRuleTriggerDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SchemaChangedRuleTriggerDto: core.serialization.ObjectSchema< - serializers.SchemaChangedRuleTriggerDto.Raw, - Squidex.SchemaChangedRuleTriggerDto -> = core.serialization.object({ - condition: core.serialization.string().optional(), -}); - -export declare namespace SchemaChangedRuleTriggerDto { - interface Raw { - condition?: string | null; - } -} diff --git a/src/serialization/types/SchemaCondition.ts b/src/serialization/types/SchemaCondition.ts deleted file mode 100644 index f31cc9f..0000000 --- a/src/serialization/types/SchemaCondition.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SchemaCondition: core.serialization.ObjectSchema< - serializers.SchemaCondition.Raw, - Squidex.SchemaCondition -> = core.serialization.object({ - schemaId: core.serialization.string(), - condition: core.serialization.string().optional(), -}); - -export declare namespace SchemaCondition { - interface Raw { - schemaId: string; - condition?: string | null; - } -} diff --git a/src/serialization/types/SchemaDto.ts b/src/serialization/types/SchemaDto.ts deleted file mode 100644 index 19474eb..0000000 --- a/src/serialization/types/SchemaDto.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SchemaDto: core.serialization.ObjectSchema = - core.serialization - .object({ - id: core.serialization.string(), - createdBy: core.serialization.string(), - lastModifiedBy: core.serialization.string(), - name: core.serialization.string(), - type: core.serialization.lazy(async () => (await import("..")).SchemaType), - category: core.serialization.string().optional(), - properties: core.serialization.lazyObject(async () => (await import("..")).SchemaPropertiesDto), - isSingleton: core.serialization.boolean(), - isPublished: core.serialization.boolean(), - created: core.serialization.date(), - lastModified: core.serialization.date(), - version: core.serialization.number(), - scripts: core.serialization.lazyObject(async () => (await import("..")).SchemaScriptsDto), - previewUrls: core.serialization.record(core.serialization.string(), core.serialization.string()), - fieldsInLists: core.serialization.list(core.serialization.string()), - fieldsInReferences: core.serialization.list(core.serialization.string()), - fieldRules: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).FieldRuleDto) - ), - fields: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).FieldDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace SchemaDto { - interface Raw extends serializers.Resource.Raw { - id: string; - createdBy: string; - lastModifiedBy: string; - name: string; - type: serializers.SchemaType.Raw; - category?: string | null; - properties: serializers.SchemaPropertiesDto.Raw; - isSingleton: boolean; - isPublished: boolean; - created: string; - lastModified: string; - version: number; - scripts: serializers.SchemaScriptsDto.Raw; - previewUrls: Record; - fieldsInLists: string[]; - fieldsInReferences: string[]; - fieldRules: serializers.FieldRuleDto.Raw[]; - fields: serializers.FieldDto.Raw[]; - } -} diff --git a/src/serialization/types/SchemaPropertiesDto.ts b/src/serialization/types/SchemaPropertiesDto.ts deleted file mode 100644 index 7f3e9b7..0000000 --- a/src/serialization/types/SchemaPropertiesDto.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SchemaPropertiesDto: core.serialization.ObjectSchema< - serializers.SchemaPropertiesDto.Raw, - Squidex.SchemaPropertiesDto -> = core.serialization.object({ - label: core.serialization.string().optional(), - hints: core.serialization.string().optional(), - contentsSidebarUrl: core.serialization.string().optional(), - contentSidebarUrl: core.serialization.string().optional(), - contentEditorUrl: core.serialization.string().optional(), - validateOnPublish: core.serialization.boolean(), - tags: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace SchemaPropertiesDto { - interface Raw { - label?: string | null; - hints?: string | null; - contentsSidebarUrl?: string | null; - contentSidebarUrl?: string | null; - contentEditorUrl?: string | null; - validateOnPublish: boolean; - tags?: string[] | null; - } -} diff --git a/src/serialization/types/SchemaScriptsDto.ts b/src/serialization/types/SchemaScriptsDto.ts deleted file mode 100644 index 37d9a00..0000000 --- a/src/serialization/types/SchemaScriptsDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SchemaScriptsDto: core.serialization.ObjectSchema< - serializers.SchemaScriptsDto.Raw, - Squidex.SchemaScriptsDto -> = core.serialization.object({ - query: core.serialization.string().optional(), - queryPre: core.serialization.string().optional(), - create: core.serialization.string().optional(), - update: core.serialization.string().optional(), - delete: core.serialization.string().optional(), - change: core.serialization.string().optional(), -}); - -export declare namespace SchemaScriptsDto { - interface Raw { - query?: string | null; - queryPre?: string | null; - create?: string | null; - update?: string | null; - delete?: string | null; - change?: string | null; - } -} diff --git a/src/serialization/types/SchemaType.ts b/src/serialization/types/SchemaType.ts deleted file mode 100644 index f7d688f..0000000 --- a/src/serialization/types/SchemaType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SchemaType: core.serialization.Schema = - core.serialization.enum_(["Default", "Singleton", "Component"]); - -export declare namespace SchemaType { - type Raw = "Default" | "Singleton" | "Component"; -} diff --git a/src/serialization/types/SchemasDto.ts b/src/serialization/types/SchemasDto.ts deleted file mode 100644 index 47de1db..0000000 --- a/src/serialization/types/SchemasDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SchemasDto: core.serialization.ObjectSchema = - core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).SchemaDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace SchemasDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.SchemaDto.Raw[]; - } -} diff --git a/src/serialization/types/ScriptRuleActionDto.ts b/src/serialization/types/ScriptRuleActionDto.ts deleted file mode 100644 index 47f6e79..0000000 --- a/src/serialization/types/ScriptRuleActionDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const ScriptRuleActionDto: core.serialization.ObjectSchema< - serializers.ScriptRuleActionDto.Raw, - Squidex.ScriptRuleActionDto -> = core.serialization.object({ - script: core.serialization.string(), -}); - -export declare namespace ScriptRuleActionDto { - interface Raw { - script: string; - } -} diff --git a/src/serialization/types/SearchResultDto.ts b/src/serialization/types/SearchResultDto.ts deleted file mode 100644 index db29014..0000000 --- a/src/serialization/types/SearchResultDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SearchResultDto: core.serialization.ObjectSchema< - serializers.SearchResultDto.Raw, - Squidex.SearchResultDto -> = core.serialization - .object({ - name: core.serialization.string(), - type: core.serialization.lazy(async () => (await import("..")).SearchResultType), - label: core.serialization.string().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace SearchResultDto { - interface Raw extends serializers.Resource.Raw { - name: string; - type: serializers.SearchResultType.Raw; - label?: string | null; - } -} diff --git a/src/serialization/types/SearchResultType.ts b/src/serialization/types/SearchResultType.ts deleted file mode 100644 index 387edb4..0000000 --- a/src/serialization/types/SearchResultType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SearchResultType: core.serialization.Schema = - core.serialization.enum_(["Asset", "Content", "Dashboard", "Setting", "Rule", "Schema"]); - -export declare namespace SearchResultType { - type Raw = "Asset" | "Content" | "Dashboard" | "Setting" | "Rule" | "Schema"; -} diff --git a/src/serialization/types/SignalRRuleActionDto.ts b/src/serialization/types/SignalRRuleActionDto.ts deleted file mode 100644 index dfcdb78..0000000 --- a/src/serialization/types/SignalRRuleActionDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SignalRRuleActionDto: core.serialization.ObjectSchema< - serializers.SignalRRuleActionDto.Raw, - Squidex.SignalRRuleActionDto -> = core.serialization.object({ - connectionString: core.serialization.string(), - hubName: core.serialization.string(), - action: core.serialization.lazy(async () => (await import("..")).ActionTypeEnum), - methodName: core.serialization.string().optional(), - target: core.serialization.string().optional(), - payload: core.serialization.string().optional(), -}); - -export declare namespace SignalRRuleActionDto { - interface Raw { - connectionString: string; - hubName: string; - action: serializers.ActionTypeEnum.Raw; - methodName?: string | null; - target?: string | null; - payload?: string | null; - } -} diff --git a/src/serialization/types/SimulatedRuleEventDto.ts b/src/serialization/types/SimulatedRuleEventDto.ts deleted file mode 100644 index 3a26a3c..0000000 --- a/src/serialization/types/SimulatedRuleEventDto.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SimulatedRuleEventDto: core.serialization.ObjectSchema< - serializers.SimulatedRuleEventDto.Raw, - Squidex.SimulatedRuleEventDto -> = core.serialization.object({ - eventId: core.serialization.string(), - uniqueId: core.serialization.string(), - eventName: core.serialization.string(), - event: core.serialization.unknown(), - enrichedEvent: core.serialization.unknown().optional(), - actionName: core.serialization.string().optional(), - actionData: core.serialization.string().optional(), - error: core.serialization.string().optional(), - skipReasons: core.serialization.list(core.serialization.lazy(async () => (await import("..")).SkipReason)), -}); - -export declare namespace SimulatedRuleEventDto { - interface Raw { - eventId: string; - uniqueId: string; - eventName: string; - event?: unknown; - enrichedEvent?: unknown | null; - actionName?: string | null; - actionData?: string | null; - error?: string | null; - skipReasons: serializers.SkipReason.Raw[]; - } -} diff --git a/src/serialization/types/SimulatedRuleEventsDto.ts b/src/serialization/types/SimulatedRuleEventsDto.ts deleted file mode 100644 index bc88520..0000000 --- a/src/serialization/types/SimulatedRuleEventsDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SimulatedRuleEventsDto: core.serialization.ObjectSchema< - serializers.SimulatedRuleEventsDto.Raw, - Squidex.SimulatedRuleEventsDto -> = core.serialization - .object({ - total: core.serialization.number(), - items: core.serialization.list( - core.serialization.lazyObject(async () => (await import("..")).SimulatedRuleEventDto) - ), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace SimulatedRuleEventsDto { - interface Raw extends serializers.Resource.Raw { - total: number; - items: serializers.SimulatedRuleEventDto.Raw[]; - } -} diff --git a/src/serialization/types/SkipReason.ts b/src/serialization/types/SkipReason.ts deleted file mode 100644 index 09194e5..0000000 --- a/src/serialization/types/SkipReason.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SkipReason: core.serialization.Schema = - core.serialization.enum_([ - "None", - "ConditionDoesNotMatch", - "ConditionPrecheckDoesNotMatch", - "Disabled", - "Failed", - "FromRule", - "NoAction", - "NoTrigger", - "TooOld", - "WrongEvent", - "WrongEventForTrigger", - ]); - -export declare namespace SkipReason { - type Raw = - | "None" - | "ConditionDoesNotMatch" - | "ConditionPrecheckDoesNotMatch" - | "Disabled" - | "Failed" - | "FromRule" - | "NoAction" - | "NoTrigger" - | "TooOld" - | "WrongEvent" - | "WrongEventForTrigger"; -} diff --git a/src/serialization/types/SlackRuleActionDto.ts b/src/serialization/types/SlackRuleActionDto.ts deleted file mode 100644 index 9b502dc..0000000 --- a/src/serialization/types/SlackRuleActionDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SlackRuleActionDto: core.serialization.ObjectSchema< - serializers.SlackRuleActionDto.Raw, - Squidex.SlackRuleActionDto -> = core.serialization.object({ - webhookUrl: core.serialization.string(), - text: core.serialization.string(), -}); - -export declare namespace SlackRuleActionDto { - interface Raw { - webhookUrl: string; - text: string; - } -} diff --git a/src/serialization/types/SortNode.ts b/src/serialization/types/SortNode.ts deleted file mode 100644 index 70ef384..0000000 --- a/src/serialization/types/SortNode.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SortNode: core.serialization.ObjectSchema = - core.serialization.object({ - path: core.serialization.lazy(async () => (await import("..")).PropertyPath), - order: core.serialization.lazy(async () => (await import("..")).SortOrder), - }); - -export declare namespace SortNode { - interface Raw { - path: serializers.PropertyPath.Raw; - order: serializers.SortOrder.Raw; - } -} diff --git a/src/serialization/types/SortOrder.ts b/src/serialization/types/SortOrder.ts deleted file mode 100644 index 14e478f..0000000 --- a/src/serialization/types/SortOrder.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const SortOrder: core.serialization.Schema = - core.serialization.enum_(["Ascending", "Descending"]); - -export declare namespace SortOrder { - type Raw = "Ascending" | "Descending"; -} diff --git a/src/serialization/types/StatusInfoDto.ts b/src/serialization/types/StatusInfoDto.ts deleted file mode 100644 index 4663b5f..0000000 --- a/src/serialization/types/StatusInfoDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const StatusInfoDto: core.serialization.ObjectSchema = - core.serialization.object({ - status: core.serialization.string(), - color: core.serialization.string(), - }); - -export declare namespace StatusInfoDto { - interface Raw { - status: string; - color: string; - } -} diff --git a/src/serialization/types/StorageUsagePerDateDto.ts b/src/serialization/types/StorageUsagePerDateDto.ts deleted file mode 100644 index d8f8ede..0000000 --- a/src/serialization/types/StorageUsagePerDateDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const StorageUsagePerDateDto: core.serialization.ObjectSchema< - serializers.StorageUsagePerDateDto.Raw, - Squidex.StorageUsagePerDateDto -> = core.serialization.object({ - date: core.serialization.string(), - totalCount: core.serialization.number(), - totalSize: core.serialization.number(), -}); - -export declare namespace StorageUsagePerDateDto { - interface Raw { - date: string; - totalCount: number; - totalSize: number; - } -} diff --git a/src/serialization/types/StringContentType.ts b/src/serialization/types/StringContentType.ts deleted file mode 100644 index dab0add..0000000 --- a/src/serialization/types/StringContentType.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const StringContentType: core.serialization.Schema< - serializers.StringContentType.Raw, - Squidex.StringContentType -> = core.serialization.enum_(["Unspecified", "Html", "Markdown"]); - -export declare namespace StringContentType { - type Raw = "Unspecified" | "Html" | "Markdown"; -} diff --git a/src/serialization/types/StringFieldEditor.ts b/src/serialization/types/StringFieldEditor.ts deleted file mode 100644 index c89bd25..0000000 --- a/src/serialization/types/StringFieldEditor.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const StringFieldEditor: core.serialization.Schema< - serializers.StringFieldEditor.Raw, - Squidex.StringFieldEditor -> = core.serialization.enum_([ - "Input", - "Color", - "Markdown", - "Dropdown", - "Html", - "Radio", - "RichText", - "Slug", - "StockPhoto", - "TextArea", -]); - -export declare namespace StringFieldEditor { - type Raw = - | "Input" - | "Color" - | "Markdown" - | "Dropdown" - | "Html" - | "Radio" - | "RichText" - | "Slug" - | "StockPhoto" - | "TextArea"; -} diff --git a/src/serialization/types/StringFieldPropertiesDto.ts b/src/serialization/types/StringFieldPropertiesDto.ts deleted file mode 100644 index 2ae1047..0000000 --- a/src/serialization/types/StringFieldPropertiesDto.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const StringFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.StringFieldPropertiesDto.Raw, - Squidex.StringFieldPropertiesDto -> = core.serialization.object({ - defaultValues: core.serialization.lazy(async () => (await import("..")).LocalizedValueOfString).optional(), - defaultValue: core.serialization.string().optional(), - pattern: core.serialization.string().optional(), - patternMessage: core.serialization.string().optional(), - folderId: core.serialization.string().optional(), - minLength: core.serialization.number().optional(), - maxLength: core.serialization.number().optional(), - minCharacters: core.serialization.number().optional(), - maxCharacters: core.serialization.number().optional(), - minWords: core.serialization.number().optional(), - maxWords: core.serialization.number().optional(), - allowedValues: core.serialization.list(core.serialization.string()).optional(), - schemaIds: core.serialization.list(core.serialization.string()).optional(), - isUnique: core.serialization.boolean().optional(), - isEmbeddable: core.serialization.boolean().optional(), - inlineEditable: core.serialization.boolean().optional(), - createEnum: core.serialization.boolean().optional(), - contentType: core.serialization.lazy(async () => (await import("..")).StringContentType).optional(), - editor: core.serialization.lazy(async () => (await import("..")).StringFieldEditor).optional(), -}); - -export declare namespace StringFieldPropertiesDto { - interface Raw { - defaultValues?: serializers.LocalizedValueOfString.Raw | null; - defaultValue?: string | null; - pattern?: string | null; - patternMessage?: string | null; - folderId?: string | null; - minLength?: number | null; - maxLength?: number | null; - minCharacters?: number | null; - maxCharacters?: number | null; - minWords?: number | null; - maxWords?: number | null; - allowedValues?: string[] | null; - schemaIds?: string[] | null; - isUnique?: boolean | null; - isEmbeddable?: boolean | null; - inlineEditable?: boolean | null; - createEnum?: boolean | null; - contentType?: serializers.StringContentType.Raw | null; - editor?: serializers.StringFieldEditor.Raw | null; - } -} diff --git a/src/serialization/types/TagsFieldEditor.ts b/src/serialization/types/TagsFieldEditor.ts deleted file mode 100644 index 2ad39fe..0000000 --- a/src/serialization/types/TagsFieldEditor.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TagsFieldEditor: core.serialization.Schema = - core.serialization.enum_(["Tags", "Checkboxes", "Dropdown"]); - -export declare namespace TagsFieldEditor { - type Raw = "Tags" | "Checkboxes" | "Dropdown"; -} diff --git a/src/serialization/types/TagsFieldPropertiesDto.ts b/src/serialization/types/TagsFieldPropertiesDto.ts deleted file mode 100644 index 58cc120..0000000 --- a/src/serialization/types/TagsFieldPropertiesDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TagsFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.TagsFieldPropertiesDto.Raw, - Squidex.TagsFieldPropertiesDto -> = core.serialization.object({ - defaultValues: core.serialization - .lazy(async () => (await import("..")).LocalizedValueOfReadonlyListOfString) - .optional(), - defaultValue: core.serialization.list(core.serialization.string()).optional(), - minItems: core.serialization.number().optional(), - maxItems: core.serialization.number().optional(), - allowedValues: core.serialization.list(core.serialization.string()).optional(), - createEnum: core.serialization.boolean().optional(), - editor: core.serialization.lazy(async () => (await import("..")).TagsFieldEditor).optional(), -}); - -export declare namespace TagsFieldPropertiesDto { - interface Raw { - defaultValues?: serializers.LocalizedValueOfReadonlyListOfString.Raw | null; - defaultValue?: string[] | null; - minItems?: number | null; - maxItems?: number | null; - allowedValues?: string[] | null; - createEnum?: boolean | null; - editor?: serializers.TagsFieldEditor.Raw | null; - } -} diff --git a/src/serialization/types/TeamDto.ts b/src/serialization/types/TeamDto.ts deleted file mode 100644 index 366c68b..0000000 --- a/src/serialization/types/TeamDto.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TeamDto: core.serialization.ObjectSchema = core.serialization - .object({ - id: core.serialization.string(), - name: core.serialization.string(), - version: core.serialization.number(), - created: core.serialization.date(), - lastModified: core.serialization.date(), - roleName: core.serialization.string().optional(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace TeamDto { - interface Raw extends serializers.Resource.Raw { - id: string; - name: string; - version: number; - created: string; - lastModified: string; - roleName?: string | null; - } -} diff --git a/src/serialization/types/TemplateDetailsDto.ts b/src/serialization/types/TemplateDetailsDto.ts deleted file mode 100644 index 54d53ec..0000000 --- a/src/serialization/types/TemplateDetailsDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TemplateDetailsDto: core.serialization.ObjectSchema< - serializers.TemplateDetailsDto.Raw, - Squidex.TemplateDetailsDto -> = core.serialization - .object({ - details: core.serialization.string(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace TemplateDetailsDto { - interface Raw extends serializers.Resource.Raw { - details: string; - } -} diff --git a/src/serialization/types/TemplateDto.ts b/src/serialization/types/TemplateDto.ts deleted file mode 100644 index 7c67487..0000000 --- a/src/serialization/types/TemplateDto.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TemplateDto: core.serialization.ObjectSchema = - core.serialization - .object({ - name: core.serialization.string(), - title: core.serialization.string(), - description: core.serialization.string(), - isStarter: core.serialization.boolean(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace TemplateDto { - interface Raw extends serializers.Resource.Raw { - name: string; - title: string; - description: string; - isStarter: boolean; - } -} diff --git a/src/serialization/types/TemplatesDto.ts b/src/serialization/types/TemplatesDto.ts deleted file mode 100644 index b608de2..0000000 --- a/src/serialization/types/TemplatesDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TemplatesDto: core.serialization.ObjectSchema = - core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).TemplateDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace TemplatesDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.TemplateDto.Raw[]; - } -} diff --git a/src/serialization/types/TranslationDto.ts b/src/serialization/types/TranslationDto.ts deleted file mode 100644 index 684ca4f..0000000 --- a/src/serialization/types/TranslationDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TranslationDto: core.serialization.ObjectSchema = - core.serialization.object({ - status: core.serialization.lazy(async () => (await import("..")).TranslationStatus), - result: core.serialization.lazy(async () => (await import("..")).TranslationStatus), - text: core.serialization.string().optional(), - }); - -export declare namespace TranslationDto { - interface Raw { - status: serializers.TranslationStatus.Raw; - result: serializers.TranslationStatus.Raw; - text?: string | null; - } -} diff --git a/src/serialization/types/TranslationStatus.ts b/src/serialization/types/TranslationStatus.ts deleted file mode 100644 index dbc8ddb..0000000 --- a/src/serialization/types/TranslationStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TranslationStatus: core.serialization.Schema< - serializers.TranslationStatus.Raw, - Squidex.TranslationStatus -> = core.serialization.enum_([ - "Translated", - "LanguageNotSupported", - "NotTranslated", - "NotConfigured", - "Unauthorized", - "Failed", -]); - -export declare namespace TranslationStatus { - type Raw = "Translated" | "LanguageNotSupported" | "NotTranslated" | "NotConfigured" | "Unauthorized" | "Failed"; -} diff --git a/src/serialization/types/TweetRuleActionDto.ts b/src/serialization/types/TweetRuleActionDto.ts deleted file mode 100644 index db0c3ef..0000000 --- a/src/serialization/types/TweetRuleActionDto.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TweetRuleActionDto: core.serialization.ObjectSchema< - serializers.TweetRuleActionDto.Raw, - Squidex.TweetRuleActionDto -> = core.serialization.object({ - accessToken: core.serialization.string(), - accessSecret: core.serialization.string(), - text: core.serialization.string(), -}); - -export declare namespace TweetRuleActionDto { - interface Raw { - accessToken: string; - accessSecret: string; - text: string; - } -} diff --git a/src/serialization/types/TypesenseRuleActionDto.ts b/src/serialization/types/TypesenseRuleActionDto.ts deleted file mode 100644 index 064ba50..0000000 --- a/src/serialization/types/TypesenseRuleActionDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const TypesenseRuleActionDto: core.serialization.ObjectSchema< - serializers.TypesenseRuleActionDto.Raw, - Squidex.TypesenseRuleActionDto -> = core.serialization.object({ - host: core.serialization.string(), - indexName: core.serialization.string(), - apiKey: core.serialization.string(), - document: core.serialization.string().optional(), - delete: core.serialization.string().optional(), -}); - -export declare namespace TypesenseRuleActionDto { - interface Raw { - host: string; - indexName: string; - apiKey: string; - document?: string | null; - delete?: string | null; - } -} diff --git a/src/serialization/types/UiFieldEditor.ts b/src/serialization/types/UiFieldEditor.ts deleted file mode 100644 index 7bc5e26..0000000 --- a/src/serialization/types/UiFieldEditor.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UiFieldEditor: core.serialization.Schema = - core.serialization.stringLiteral("Separator"); - -export declare namespace UiFieldEditor { - type Raw = "Separator"; -} diff --git a/src/serialization/types/UiFieldPropertiesDto.ts b/src/serialization/types/UiFieldPropertiesDto.ts deleted file mode 100644 index bc44eb6..0000000 --- a/src/serialization/types/UiFieldPropertiesDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UiFieldPropertiesDto: core.serialization.ObjectSchema< - serializers.UiFieldPropertiesDto.Raw, - Squidex.UiFieldPropertiesDto -> = core.serialization.object({ - editor: core.serialization.lazy(async () => (await import("..")).UiFieldEditor).optional(), -}); - -export declare namespace UiFieldPropertiesDto { - interface Raw { - editor?: serializers.UiFieldEditor.Raw | null; - } -} diff --git a/src/serialization/types/UpdateFieldDto.ts b/src/serialization/types/UpdateFieldDto.ts deleted file mode 100644 index 704cec7..0000000 --- a/src/serialization/types/UpdateFieldDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UpdateFieldDto: core.serialization.ObjectSchema = - core.serialization.object({ - properties: core.serialization.lazy(async () => (await import("..")).FieldPropertiesDto), - }); - -export declare namespace UpdateFieldDto { - interface Raw { - properties: serializers.FieldPropertiesDto.Raw; - } -} diff --git a/src/serialization/types/UpdateSettingDto.ts b/src/serialization/types/UpdateSettingDto.ts deleted file mode 100644 index 0a38bc2..0000000 --- a/src/serialization/types/UpdateSettingDto.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UpdateSettingDto: core.serialization.ObjectSchema< - serializers.UpdateSettingDto.Raw, - Squidex.UpdateSettingDto -> = core.serialization.object({ - value: core.serialization.unknown(), -}); - -export declare namespace UpdateSettingDto { - interface Raw { - value?: unknown; - } -} diff --git a/src/serialization/types/UpsertCommentDto.ts b/src/serialization/types/UpsertCommentDto.ts deleted file mode 100644 index cb67fdf..0000000 --- a/src/serialization/types/UpsertCommentDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UpsertCommentDto: core.serialization.ObjectSchema< - serializers.UpsertCommentDto.Raw, - Squidex.UpsertCommentDto -> = core.serialization.object({ - text: core.serialization.string(), - url: core.serialization.string().optional(), -}); - -export declare namespace UpsertCommentDto { - interface Raw { - text: string; - url?: string | null; - } -} diff --git a/src/serialization/types/UpsertSchemaDto.ts b/src/serialization/types/UpsertSchemaDto.ts deleted file mode 100644 index abc1f06..0000000 --- a/src/serialization/types/UpsertSchemaDto.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UpsertSchemaDto: core.serialization.ObjectSchema< - serializers.UpsertSchemaDto.Raw, - Squidex.UpsertSchemaDto -> = core.serialization.object({ - properties: core.serialization.lazyObject(async () => (await import("..")).SchemaPropertiesDto).optional(), - scripts: core.serialization.lazyObject(async () => (await import("..")).SchemaScriptsDto).optional(), - fieldsInReferences: core.serialization.list(core.serialization.string()).optional(), - fieldsInLists: core.serialization.list(core.serialization.string()).optional(), - fields: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).UpsertSchemaFieldDto)) - .optional(), - previewUrls: core.serialization - .record(core.serialization.string(), core.serialization.string().optional()) - .optional(), - fieldRules: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).FieldRuleDto)) - .optional(), - category: core.serialization.string().optional(), - isPublished: core.serialization.boolean().optional(), -}); - -export declare namespace UpsertSchemaDto { - interface Raw { - properties?: serializers.SchemaPropertiesDto.Raw | null; - scripts?: serializers.SchemaScriptsDto.Raw | null; - fieldsInReferences?: string[] | null; - fieldsInLists?: string[] | null; - fields?: serializers.UpsertSchemaFieldDto.Raw[] | null; - previewUrls?: Record | null; - fieldRules?: serializers.FieldRuleDto.Raw[] | null; - category?: string | null; - isPublished?: boolean | null; - } -} diff --git a/src/serialization/types/UpsertSchemaFieldDto.ts b/src/serialization/types/UpsertSchemaFieldDto.ts deleted file mode 100644 index 3bdfdae..0000000 --- a/src/serialization/types/UpsertSchemaFieldDto.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UpsertSchemaFieldDto: core.serialization.ObjectSchema< - serializers.UpsertSchemaFieldDto.Raw, - Squidex.UpsertSchemaFieldDto -> = core.serialization.object({ - name: core.serialization.string(), - isHidden: core.serialization.boolean().optional(), - isLocked: core.serialization.boolean().optional(), - isDisabled: core.serialization.boolean().optional(), - partitioning: core.serialization.string().optional(), - properties: core.serialization.lazy(async () => (await import("..")).FieldPropertiesDto), - nested: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).UpsertSchemaNestedFieldDto)) - .optional(), -}); - -export declare namespace UpsertSchemaFieldDto { - interface Raw { - name: string; - isHidden?: boolean | null; - isLocked?: boolean | null; - isDisabled?: boolean | null; - partitioning?: string | null; - properties: serializers.FieldPropertiesDto.Raw; - nested?: serializers.UpsertSchemaNestedFieldDto.Raw[] | null; - } -} diff --git a/src/serialization/types/UpsertSchemaNestedFieldDto.ts b/src/serialization/types/UpsertSchemaNestedFieldDto.ts deleted file mode 100644 index 7383af7..0000000 --- a/src/serialization/types/UpsertSchemaNestedFieldDto.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UpsertSchemaNestedFieldDto: core.serialization.ObjectSchema< - serializers.UpsertSchemaNestedFieldDto.Raw, - Squidex.UpsertSchemaNestedFieldDto -> = core.serialization.object({ - name: core.serialization.string(), - isHidden: core.serialization.boolean().optional(), - isLocked: core.serialization.boolean().optional(), - isDisabled: core.serialization.boolean().optional(), - properties: core.serialization.lazy(async () => (await import("..")).FieldPropertiesDto), -}); - -export declare namespace UpsertSchemaNestedFieldDto { - interface Raw { - name: string; - isHidden?: boolean | null; - isLocked?: boolean | null; - isDisabled?: boolean | null; - properties: serializers.FieldPropertiesDto.Raw; - } -} diff --git a/src/serialization/types/UsageRuleTriggerDto.ts b/src/serialization/types/UsageRuleTriggerDto.ts deleted file mode 100644 index 531092c..0000000 --- a/src/serialization/types/UsageRuleTriggerDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UsageRuleTriggerDto: core.serialization.ObjectSchema< - serializers.UsageRuleTriggerDto.Raw, - Squidex.UsageRuleTriggerDto -> = core.serialization.object({ - limit: core.serialization.number(), - numDays: core.serialization.number().optional(), -}); - -export declare namespace UsageRuleTriggerDto { - interface Raw { - limit: number; - numDays?: number | null; - } -} diff --git a/src/serialization/types/UserDto.ts b/src/serialization/types/UserDto.ts deleted file mode 100644 index 234cac5..0000000 --- a/src/serialization/types/UserDto.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UserDto: core.serialization.ObjectSchema = core.serialization - .object({ - id: core.serialization.string(), - email: core.serialization.string(), - displayName: core.serialization.string(), - isLocked: core.serialization.boolean(), - permissions: core.serialization.list(core.serialization.string()), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace UserDto { - interface Raw extends serializers.Resource.Raw { - id: string; - email: string; - displayName: string; - isLocked: boolean; - permissions: string[]; - } -} diff --git a/src/serialization/types/UserProperty.ts b/src/serialization/types/UserProperty.ts deleted file mode 100644 index 0b14c76..0000000 --- a/src/serialization/types/UserProperty.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UserProperty: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - value: core.serialization.string(), - }); - -export declare namespace UserProperty { - interface Raw { - name: string; - value: string; - } -} diff --git a/src/serialization/types/UsersDto.ts b/src/serialization/types/UsersDto.ts deleted file mode 100644 index c5ddbb5..0000000 --- a/src/serialization/types/UsersDto.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const UsersDto: core.serialization.ObjectSchema = core.serialization - .object({ - total: core.serialization.number(), - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).UserDto)), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace UsersDto { - interface Raw extends serializers.Resource.Raw { - total: number; - items: serializers.UserDto.Raw[]; - } -} diff --git a/src/serialization/types/WebhookMethod.ts b/src/serialization/types/WebhookMethod.ts deleted file mode 100644 index 95e5347..0000000 --- a/src/serialization/types/WebhookMethod.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const WebhookMethod: core.serialization.Schema = - core.serialization.enum_(["POST", "PUT", "GET", "DELETE", "PATCH"]); - -export declare namespace WebhookMethod { - type Raw = "POST" | "PUT" | "GET" | "DELETE" | "PATCH"; -} diff --git a/src/serialization/types/WebhookRuleActionDto.ts b/src/serialization/types/WebhookRuleActionDto.ts deleted file mode 100644 index 707c7f7..0000000 --- a/src/serialization/types/WebhookRuleActionDto.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const WebhookRuleActionDto: core.serialization.ObjectSchema< - serializers.WebhookRuleActionDto.Raw, - Squidex.WebhookRuleActionDto -> = core.serialization.object({ - url: core.serialization.string(), - method: core.serialization.lazy(async () => (await import("..")).WebhookMethod), - payload: core.serialization.string().optional(), - payloadType: core.serialization.string().optional(), - headers: core.serialization.string().optional(), - sharedSecret: core.serialization.string().optional(), -}); - -export declare namespace WebhookRuleActionDto { - interface Raw { - url: string; - method: serializers.WebhookMethod.Raw; - payload?: string | null; - payloadType?: string | null; - headers?: string | null; - sharedSecret?: string | null; - } -} diff --git a/src/serialization/types/WorkflowDto.ts b/src/serialization/types/WorkflowDto.ts deleted file mode 100644 index f2c44be..0000000 --- a/src/serialization/types/WorkflowDto.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const WorkflowDto: core.serialization.ObjectSchema = - core.serialization - .object({ - id: core.serialization.string(), - name: core.serialization.string().optional(), - steps: core.serialization.record( - core.serialization.string(), - core.serialization.lazyObject(async () => (await import("..")).WorkflowStepDto) - ), - schemaIds: core.serialization.list(core.serialization.string()).optional(), - initial: core.serialization.string(), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace WorkflowDto { - interface Raw extends serializers.Resource.Raw { - id: string; - name?: string | null; - steps: Record; - schemaIds?: string[] | null; - initial: string; - } -} diff --git a/src/serialization/types/WorkflowStepDto.ts b/src/serialization/types/WorkflowStepDto.ts deleted file mode 100644 index 348c417..0000000 --- a/src/serialization/types/WorkflowStepDto.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const WorkflowStepDto: core.serialization.ObjectSchema< - serializers.WorkflowStepDto.Raw, - Squidex.WorkflowStepDto -> = core.serialization.object({ - transitions: core.serialization - .record( - core.serialization.string(), - core.serialization.lazyObject(async () => (await import("..")).WorkflowTransitionDto) - ) - .optional(), - color: core.serialization.string().optional(), - validate: core.serialization.boolean().optional(), - noUpdate: core.serialization.boolean().optional(), - noUpdateExpression: core.serialization.string().optional(), - noUpdateRoles: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace WorkflowStepDto { - interface Raw { - transitions?: Record | null; - color?: string | null; - validate?: boolean | null; - noUpdate?: boolean | null; - noUpdateExpression?: string | null; - noUpdateRoles?: string[] | null; - } -} diff --git a/src/serialization/types/WorkflowTransitionDto.ts b/src/serialization/types/WorkflowTransitionDto.ts deleted file mode 100644 index 7d1fd95..0000000 --- a/src/serialization/types/WorkflowTransitionDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const WorkflowTransitionDto: core.serialization.ObjectSchema< - serializers.WorkflowTransitionDto.Raw, - Squidex.WorkflowTransitionDto -> = core.serialization.object({ - expression: core.serialization.string().optional(), - roles: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace WorkflowTransitionDto { - interface Raw { - expression?: string | null; - roles?: string[] | null; - } -} diff --git a/src/serialization/types/WorkflowsDto.ts b/src/serialization/types/WorkflowsDto.ts deleted file mode 100644 index 49aea39..0000000 --- a/src/serialization/types/WorkflowsDto.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from ".."; -import * as Squidex from "../../api"; -import * as core from "../../core"; - -export const WorkflowsDto: core.serialization.ObjectSchema = - core.serialization - .object({ - items: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).WorkflowDto)), - errors: core.serialization.list(core.serialization.string()), - }) - .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); - -export declare namespace WorkflowsDto { - interface Raw extends serializers.Resource.Raw { - items: serializers.WorkflowDto.Raw[]; - errors: string[]; - } -} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts deleted file mode 100644 index de1c0d5..0000000 --- a/src/serialization/types/index.ts +++ /dev/null @@ -1,176 +0,0 @@ -export * from "./AssignContributorDto"; -export * from "./AddFieldDto"; -export * from "./ReorderFieldsDto"; -export * from "./UpdateFieldDto"; -export * from "./SchemaScriptsDto"; -export * from "./CreateRuleDto"; -export * from "./ChangePlanDto"; -export * from "./QueryDto"; -export * from "./BulkUpdateContentsDto"; -export * from "./UpsertCommentDto"; -export * from "./ErrorDto"; -export * from "./UserProperty"; -export * from "./UpdateSettingDto"; -export * from "./UsersDto"; -export * from "./UserDto"; -export * from "./Resource"; -export * from "./ResourceLink"; -export * from "./ResourcesDto"; -export * from "./TranslationDto"; -export * from "./TranslationStatus"; -export * from "./TemplatesDto"; -export * from "./TemplateDto"; -export * from "./TemplateDetailsDto"; -export * from "./ContributorsDto"; -export * from "./ContributorDto"; -export * from "./ContributorsMetadata"; -export * from "./TeamDto"; -export * from "./LogDownloadDto"; -export * from "./CallsUsageDtoDto"; -export * from "./CallsUsagePerDateDto"; -export * from "./CurrentStorageDto"; -export * from "./StorageUsagePerDateDto"; -export * from "./SearchResultDto"; -export * from "./SearchResultType"; -export * from "./SchemaDto"; -export * from "./SchemaType"; -export * from "./SchemaPropertiesDto"; -export * from "./FieldRuleDto"; -export * from "./FieldRuleAction"; -export * from "./FieldDto"; -export * from "./FieldPropertiesDto"; -export * from "./ArrayFieldPropertiesDto"; -export * from "./ArrayCalculatedDefaultValue"; -export * from "./AssetsFieldPropertiesDto"; -export * from "./AssetPreviewMode"; -export * from "./LocalizedValueOfReadonlyListOfString"; -export * from "./AssetType"; -export * from "./BooleanFieldPropertiesDto"; -export * from "./LocalizedValueOfNullableBoolean"; -export * from "./BooleanFieldEditor"; -export * from "./ComponentFieldPropertiesDto"; -export * from "./ComponentsFieldPropertiesDto"; -export * from "./DateTimeFieldPropertiesDto"; -export * from "./LocalizedValueOfNullableInstant"; -export * from "./DateTimeFieldEditor"; -export * from "./DateTimeCalculatedDefaultValue"; -export * from "./GeolocationFieldPropertiesDto"; -export * from "./GeolocationFieldEditor"; -export * from "./JsonFieldPropertiesDto"; -export * from "./NumberFieldPropertiesDto"; -export * from "./LocalizedValueOfNullableDouble"; -export * from "./NumberFieldEditor"; -export * from "./ReferencesFieldPropertiesDto"; -export * from "./ReferencesFieldEditor"; -export * from "./StringFieldPropertiesDto"; -export * from "./LocalizedValueOfString"; -export * from "./StringContentType"; -export * from "./StringFieldEditor"; -export * from "./TagsFieldPropertiesDto"; -export * from "./TagsFieldEditor"; -export * from "./UiFieldPropertiesDto"; -export * from "./UiFieldEditor"; -export * from "./NestedFieldDto"; -export * from "./SchemasDto"; -export * from "./UpsertSchemaDto"; -export * from "./UpsertSchemaFieldDto"; -export * from "./UpsertSchemaNestedFieldDto"; -export * from "./ConfigurePreviewUrlsDto"; -export * from "./RuleElementDto"; -export * from "./RuleElementPropertyDto"; -export * from "./RuleFieldEditor"; -export * from "./RulesDto"; -export * from "./RuleDto"; -export * from "./RuleTriggerDto"; -export * from "./AssetChangedRuleTriggerDto"; -export * from "./CommentRuleTriggerDto"; -export * from "./ContentChangedRuleTriggerDto"; -export * from "./SchemaCondition"; -export * from "./ManualRuleTriggerDto"; -export * from "./SchemaChangedRuleTriggerDto"; -export * from "./UsageRuleTriggerDto"; -export * from "./RuleActionDto"; -export * from "./AlgoliaRuleActionDto"; -export * from "./AzureQueueRuleActionDto"; -export * from "./CommentRuleActionDto"; -export * from "./CreateContentRuleActionDto"; -export * from "./DeepDetectRuleActionDto"; -export * from "./DiscourseRuleActionDto"; -export * from "./ElasticSearchRuleActionDto"; -export * from "./EmailRuleActionDto"; -export * from "./FastlyRuleActionDto"; -export * from "./MediumRuleActionDto"; -export * from "./NotificationRuleActionDto"; -export * from "./OpenSearchRuleActionDto"; -export * from "./PrerenderRuleActionDto"; -export * from "./ScriptRuleActionDto"; -export * from "./SignalRRuleActionDto"; -export * from "./ActionTypeEnum"; -export * from "./SlackRuleActionDto"; -export * from "./TweetRuleActionDto"; -export * from "./TypesenseRuleActionDto"; -export * from "./WebhookRuleActionDto"; -export * from "./WebhookMethod"; -export * from "./SimulatedRuleEventsDto"; -export * from "./SimulatedRuleEventDto"; -export * from "./SkipReason"; -export * from "./RuleEventsDto"; -export * from "./RuleEventDto"; -export * from "./RuleResult"; -export * from "./RuleJobResult"; -export * from "./PlansDto"; -export * from "./PlanDto"; -export * from "./ReferralInfo"; -export * from "./PlansLockedReason"; -export * from "./PlanChangedDto"; -export * from "./ExposedValues"; -export * from "./FeaturesDto"; -export * from "./FeatureDto"; -export * from "./LanguageDto"; -export * from "./HistoryEventDto"; -export * from "./EventConsumersDto"; -export * from "./EventConsumerDto"; -export * from "./ContentsDto"; -export * from "./ContentDto"; -export * from "./ContentData"; -export * from "./ContentFieldData"; -export * from "./ScheduleJobDto"; -export * from "./StatusInfoDto"; -export * from "./BulkResultDto"; -export * from "./BulkUpdateContentsJobDto"; -export * from "./QueryJsonDto"; -export * from "./SortNode"; -export * from "./PropertyPath"; -export * from "./SortOrder"; -export * from "./BulkUpdateContentType"; -export * from "./CommentsDto"; -export * from "./CommentDto"; -export * from "./BackupJobsDto"; -export * from "./BackupJobDto"; -export * from "./JobStatus"; -export * from "./RestoreJobDto"; -export * from "./ResizeMode"; -export * from "./ImageFormat"; -export * from "./AssetFoldersDto"; -export * from "./AssetFolderDto"; -export * from "./AssetFolderScope"; -export * from "./AssetsDto"; -export * from "./AssetDto"; -export * from "./AssetMeta"; -export * from "./BulkUpdateAssetsJobDto"; -export * from "./BulkUpdateAssetType"; -export * from "./AssetScriptsDto"; -export * from "./ClientsDto"; -export * from "./ClientDto"; -export * from "./AppLanguagesDto"; -export * from "./AppLanguageDto"; -export * from "./RolesDto"; -export * from "./RoleDto"; -export * from "./AppDto"; -export * from "./AppSettingsDto"; -export * from "./PatternDto"; -export * from "./EditorDto"; -export * from "./WorkflowsDto"; -export * from "./WorkflowDto"; -export * from "./WorkflowStepDto"; -export * from "./WorkflowTransitionDto"; diff --git a/src/wrapper/SquidexClient.ts b/src/wrapper/SquidexClient.ts index 14b0104..4f55c97 100644 --- a/src/wrapper/SquidexClient.ts +++ b/src/wrapper/SquidexClient.ts @@ -1,58 +1,103 @@ -import { SquidexClient as FernClient } from "../Client"; import * as environments from "../environments"; -import * as core from "../core"; -import * as errors from "../errors"; import urlJoin from "url-join"; -import { normalizeHeaders } from "./normalize-headers"; +import { + AppsApi, + AppsApiInterface, + AssetsApi, + AssetsApiInterface, + BackupsApi, + BackupsApiInterface, + Configuration, + ConfigurationParameters, + ContentsApi, + ContentsApiInterface, + DiagnosticsApi, + DiagnosticsApiInterface, + EventConsumersApi, + EventConsumersApiInterface, + FetchAPI, + HistoryApi, + HistoryApiInterface, + LanguagesApi, + LanguagesApiInterface, + Middleware, + NewsApi, + NewsApiInterface, + PingApi, + PingApiInterface, + PlansApi, + PlansApiInterface, + ResponseError, + RulesApi, + RulesApiInterface, + SchemasApi, + SchemasApiInterface, + SearchApi, + SearchApiInterface, + StatisticsApi, + StatisticsApiInterface, + TeamsApi, + TeamsApiInterface, + TemplatesApi, + TemplatesApiInterface, + TranslationsApi, + TranslationsApiInterface, + UserManagementApi, + UserManagementApiInterface, + UsersApi, + UsersApiInterface, +} from "../generated"; +import { buildError, SquidexUnauthorizedError } from "./errors"; +import { addHeader, getHeader } from "./headers"; -export declare namespace SquidexClient { +export declare namespace SquidexClients { interface Options { /** * The name of the app. */ appName: string; + /** * The secret of the client. */ clientId: string; + /** * The secret of the client. */ clientSecret: string; + /** * Custom headers to be added to each request. */ customHeader?: Record; + /** * The URL to your Squidex installation (cloud by default). */ environment?: environments.SquidexEnvironment | string; + /** * A custom fetcher for normal requests. */ - fetcher?: core.FetchFunction; + fetcher?: FetchAPI; + /** * A function to create a new fetcher based on the default fetcher. */ - fetcherInterceptor?: (next: core.FetchFunction) => core.FetchFunction; - /** - * A custom fetcher for streaming requests. - */ - streamingFetcher?: core.StreamingFetchFunction; - /** - * A function to create a new stream fetcher based on the default fetcher. - */ - streamingFetcherInterceptor?: (next: core.StreamingFetchFunction) => core.StreamingFetchFunction; + middleware?: Middleware; + /** * The timeout in milliseconds. */ timeout?: number; + /** * The store for tokens. By default it is in memory. */ tokenStore?: TokenStore; } - + export interface TokenStore { get(): Token | undefined; @@ -68,15 +113,116 @@ export declare namespace SquidexClient { } } -export class SquidexClient extends FernClient { +export class SquidexClients { + private readonly configuration: Configuration; + private readonly tokenStore: SquidexClients.TokenStore; private tokenPromise?: Promise; - private tokenStore?: SquidexClient.TokenStore; + private appsApi?: AppsApi; + private assetsApi?: AssetsApi; + private backupsApi?: BackupsApi; + private contentsApi?: ContentsApi; + private diagnosticsApi?: DiagnosticsApi; + private eventConsumersApi?: EventConsumersApi; + private historyApi?: HistoryApi; + private languagesApi?: LanguagesApi; + private newsApi?: NewsApi; + private pingApi?: PingApi; + private plansApi?: PlansApi; + private rulesApi?: RulesApi; + private schemasApi?: SchemasApi; + private searchApi?: SearchApi; + private statisticsApi?: StatisticsApi; + private teamsApi?: TeamsApi; + private templatesApi?: TemplatesApi; + private translationsApi?: TranslationsApi; + private usersApi?: UsersApi; + private userManagementApi?: UserManagementApi; + + public get apps(): AppsApiInterface { + return (this.appsApi ??= new AppsApi(this.appName, this.configuration)); + } + + public get assets(): AssetsApiInterface { + return (this.assetsApi ??= new AssetsApi(this.appName, this.configuration)); + } + + public get backups(): BackupsApiInterface { + return (this.backupsApi ??= new BackupsApi(this.appName, this.configuration)); + } + + public get contents(): ContentsApiInterface { + return (this.contentsApi ??= new ContentsApi(this.appName, this.configuration)); + } + + public get diagnostics(): DiagnosticsApiInterface { + return (this.diagnosticsApi ??= new DiagnosticsApi(this.appName, this.configuration)); + } + + public get eventConsumers(): EventConsumersApiInterface { + return (this.eventConsumersApi ??= new EventConsumersApi(this.appName, this.configuration)); + } + + public get history(): HistoryApiInterface { + return (this.historyApi ??= new HistoryApi(this.appName, this.configuration)); + } + + public get languages(): LanguagesApiInterface { + return (this.languagesApi ??= new LanguagesApi(this.appName, this.configuration)); + } + + public get news(): NewsApiInterface { + return (this.newsApi ??= new NewsApi(this.appName, this.configuration)); + } + + public get ping(): PingApiInterface { + return (this.pingApi ??= new PingApi(this.appName, this.configuration)); + } + + public get plans(): PlansApiInterface { + return (this.plansApi ??= new PlansApi(this.appName, this.configuration)); + } + + public get rules(): RulesApiInterface { + return (this.rulesApi ??= new RulesApi(this.appName, this.configuration)); + } + + public get schemas(): SchemasApiInterface { + return (this.schemasApi ??= new SchemasApi(this.appName, this.configuration)); + } + + public get search(): SearchApiInterface { + return (this.searchApi ??= new SearchApi(this.appName, this.configuration)); + } + + public get statistics(): StatisticsApiInterface { + return (this.statisticsApi ??= new StatisticsApi(this.appName, this.configuration)); + } + + public get teams(): TeamsApiInterface { + return (this.teamsApi ??= new TeamsApi(this.appName, this.configuration)); + } + + public get templates(): TemplatesApiInterface { + return (this.templatesApi ??= new TemplatesApi(this.appName, this.configuration)); + } + + public get translations(): TranslationsApiInterface { + return (this.translationsApi ??= new TranslationsApi(this.appName, this.configuration)); + } + + public get users(): UsersApiInterface { + return (this.usersApi ??= new UsersApi(this.appName, this.configuration)); + } + + public get userManagement(): UserManagementApiInterface { + return (this.userManagementApi ??= new UserManagementApi(this.appName, this.configuration)); + } /** * The current app name. */ public get appName() { - return this._options.appName; + return this.clientOptions.appName; } /** @@ -85,166 +231,136 @@ export class SquidexClient extends FernClient { public get clientId() { return this.clientOptions.clientId; } - + /** * The current client secret. */ public get clientSecret() { return this.clientOptions.clientSecret; } - + /** * The current URL to the Squidex installation. */ public get environment() { return this.clientOptions.environment || environments.SquidexEnvironment.Default; } - - private get actualTokenStore() { - return this.tokenStore ||= (this.clientOptions.tokenStore || new SquidexClient.InMemoryTokenStore()); - } - - constructor(readonly clientOptions: SquidexClient.Options) { - super({ - appName: clientOptions.appName, - token: () => { - return this.getToken(); - }, - environment: clientOptions.environment, - fetcher: async args => { - let fetcher = clientOptions.fetcher ?? core.fetcher; - - // Allow custom fetcher function. - fetcher = clientOptions.fetcherInterceptor?.(fetcher) ?? fetcher; - - addOptions(args, clientOptions); - try { - return await fetcher(args); - } catch (ex) { - const error = ex as core.Fetcher.Error; - - // Token has probably been expired. - if (error.reason === 'status-code' && error.statusCode === 401) { - this.clearToken(); - return await fetcher(args); - } - throw ex; - } - }, - streamingFetcher: async args => { - let fetcher = clientOptions.streamingFetcher ?? core.streamingFetcher; - - // Allow custom fetcher function. - fetcher = clientOptions.streamingFetcherInterceptor?.(fetcher) ?? fetcher; - - addOptions(args, clientOptions); - try { - const { headers, ...response } = await fetcher(args); - - return { - ...response, - // Headers might be in lowercase for some servers and http versions. - headers: normalizeHeaders(headers) - }; - } catch (ex) { - const error = ex as core.Fetcher.Error; - - // Token has probably been expired. - if (error.reason === 'status-code' && error.statusCode === 401) { - this.clearToken(); - return fetcher(args); - } + constructor(readonly clientOptions: SquidexClients.Options) { + if (!clientOptions.clientId) { + throw new Error("Configuration 'clientId' is required."); + } + + if (!clientOptions.clientSecret) { + throw new Error("Configuration 'clientSecret' is required."); + } + + if (!clientOptions.appName) { + throw new Error("Configuration 'appName' is required."); + } + + this.tokenStore ||= this.clientOptions.tokenStore || new SquidexClients.InMemoryTokenStore(); + + const originalFetch = this.clientOptions.fetcher || fetch; + let fetchApi: FetchAPI = async (input, init) => { + init ||= {}; + + addOptions(init, clientOptions); - throw ex; + if (!getHeader(init, "X-AuthRequest")) { + addHeader(init, "Authorization", `Bearer ${await this.getToken()}`); + } + + let response: Response; + try { + response = await originalFetch(input, init); + + if (response && response.status === 401 && !getHeader(init, "X-Retry")) { + addHeader(init, "X-Retry", "1"); + this.clearToken(); + return await fetchApi(input, init); } + } catch (error: unknown) { + throw await buildError(error); + } + + if (response && response.status >= 200 && response.status < 300) { + return response; } - }); + + const cause = new ResponseError(response, "Response returned an error code"); + throw await buildError(cause); + }; + + const parameters: ConfigurationParameters = { + basePath: clientOptions.environment || "https://cloud.squidex.io", + fetchApi, + }; + + if (clientOptions.middleware) { + parameters.middleware = [clientOptions.middleware]; + } + + this.configuration = new Configuration(parameters); } /** * Clears the current token in case it has been expired. */ clearToken() { - this.actualTokenStore.clear(); + this.tokenStore.clear(); } private async getToken() { const promise = (this.tokenPromise ||= (async () => { const now = new Date().getTime(); try { - let token = this.actualTokenStore.get(); + let token = this.tokenStore.get(); if (token != null && token.expiresAt > now) { return token.accessToken; } - const response = await core.fetcher({ - url: urlJoin( + const response = await this.configuration.fetchApi!( + urlJoin( this.clientOptions.environment ?? environments.SquidexEnvironment.Default, "/identity-server/connect/token" ), - contentType: "application/x-www-form-urlencoded", - body: new URLSearchParams({ - grant_type: "client_credentials", - client_id: this.clientOptions.clientId, - client_secret: this.clientOptions.clientSecret, - scope: "squidex-api", - }), - method: "POST", - }); - - if (response.ok) { - const accessToken = (response.body as any)?.["access_token"]; - if (typeof accessToken !== "string") { - throw new errors.SquidexError({ - message: "Token is not a string", - }); + { + headers: { + "Content-Type": "application/x-www-form-urlencoded", + "X-AuthRequest": "1", + }, + body: new URLSearchParams({ + grant_type: "client_credentials", + client_id: this.clientOptions.clientId, + client_secret: this.clientOptions.clientSecret, + scope: "squidex-api", + }), + method: "POST", } + ); - const expiresIn: number = (response.body as any)?.["expires_in"]; - if (typeof expiresIn !== "number") { - throw new errors.SquidexError({ - message: "Token has no valid expiration", - }); - } - - token = { - accessToken, - expiresIn, - expiresAt: now + expiresIn - }; - } else { - switch (response.error.reason) { - case "non-json": - throw new errors.SquidexError({ - message: 'Token request does not return a valid JSON object.', - statusCode: response.error.statusCode, - body: response.error.rawBody, - }); - case "status-code": - throw new errors.SquidexError({ - message: `Token request returns invalid status code: ${response.error.statusCode}.`, - statusCode: response.error.statusCode, - body: response.error['body'], - }); - case "unknown": - throw new errors.SquidexError({ - message: response.error.errorMessage, - }); - case "timeout": - throw new errors.SquidexTimeoutError(); - } - } + const body = await response.json() as { access_token: string; expires_in: number }; - this.actualTokenStore.set(token); + if (typeof body.access_token !== "string") { + throw new SquidexUnauthorizedError(undefined, undefined, "Token is not a string"); + } - if (token == null) { - throw new errors.SquidexError({ - message: "Token is null despite trying to fetch", - }); + if (typeof body.expires_in !== "number") { + throw new SquidexUnauthorizedError(undefined, undefined, "Token has no valid expiration"); } + const expiresIn = body.expires_in; + + token = { + accessToken: body.access_token, + expiresIn, + expiresAt: now + expiresIn, + }; + + this.tokenStore.set(token); + return token.accessToken; } finally { this.tokenPromise = undefined; @@ -252,59 +368,57 @@ export class SquidexClient extends FernClient { })()); return promise; - }; + } } -function addOptions(args: core.Fetcher.Args | core.StreamingFetcher.Args, clientOptions: SquidexClient.Options) { +function addOptions(init: RequestInit, clientOptions: SquidexClients.Options) { if (clientOptions.timeout) { - args.timeoutMs = clientOptions.timeout; + init.signal = AbortSignal.timeout(clientOptions.timeout); } if (clientOptions.customHeader) { - args.headers ??= {}; for (const [key, value] of Object.entries(clientOptions.customHeader)) { - args.headers[key] = value; + addHeader(init, key, value); } } } -export namespace SquidexClient { +export namespace SquidexClients { export class InMemoryTokenStore implements TokenStore { private token: Token | undefined; - + get(): Token | undefined { return this.token; } - + set(token: Token): void { this.token = token; } - + clear() { this.token = undefined; } } export class StorageTokenStore implements TokenStore { - constructor(readonly store: Storage = localStorage, readonly key = 'SquidexToken') { - } - + constructor(readonly store: Storage = localStorage, readonly key = "SquidexToken") {} + get(): Token | undefined { const value = this.store.getItem(this.key); - + if (!value) { return undefined; } - + return JSON.parse(value); } - + set(token: Token): void { this.store.setItem(this.key, JSON.stringify(token)); } - + clear() { this.store.removeItem(this.key); } } -} \ No newline at end of file +} diff --git a/src/wrapper/errors.ts b/src/wrapper/errors.ts new file mode 100644 index 0000000..f14889b --- /dev/null +++ b/src/wrapper/errors.ts @@ -0,0 +1,135 @@ +import { ErrorDto, FetchError, RequiredError, ResponseError } from "../generated"; + +export class SquidexError extends Error { + constructor( + public readonly statusCode?: number, + public readonly body?: T, + public readonly cause?: Error, + message?: string + ) { + super(buildMessage(statusCode, body, message, cause)); + + Object.setPrototypeOf(this, SquidexError.prototype); + + if (statusCode != null) { + this.statusCode = statusCode; + } + + if (body !== undefined) { + this.body = body; + } + } +} + +export class SquidexBadRequestError extends SquidexError { + constructor(body?: ErrorDto, cause?: ResponseError) { + super(400, body, cause); + Object.setPrototypeOf(this, SquidexBadRequestError.prototype); + } +} + +export class SquidexForbiddenError extends SquidexError { + constructor(body?: ErrorDto, cause?: ResponseError) { + super(403, body, cause); + Object.setPrototypeOf(this, SquidexForbiddenError.prototype); + } +} + +export class SquidexUnauthorizedError extends SquidexError { + constructor(body?: ErrorDto, cause?: ResponseError, message?: string) { + super(401, body, cause, message); + Object.setPrototypeOf(this, SquidexUnauthorizedError.prototype); + } +} + +export class SquidexConflictError extends SquidexError { + constructor(body: ErrorDto, cause: ResponseError) { + super(409, body, cause); + Object.setPrototypeOf(this, SquidexConflictError.prototype); + } +} + +export class SquidexContentTooLargeError extends SquidexError { + constructor(body?: ErrorDto, cause?: ResponseError) { + super(413, body, cause); + Object.setPrototypeOf(this, SquidexContentTooLargeError.prototype); + } +} + +export class SquidexInternalServerError extends SquidexError { + constructor(body?: ErrorDto, cause?: ResponseError) { + super(500, body, cause, cause?.message); + Object.setPrototypeOf(this, SquidexInternalServerError.prototype); + } +} + +export class SquidexNotFoundError extends SquidexError { + constructor(cause?: ResponseError) { + super(404, undefined, cause); + Object.setPrototypeOf(this, SquidexNotFoundError.prototype); + } +} + +export class SquidexRequiredFieldError extends SquidexError { + constructor(cause?: RequiredError) { + super(undefined, undefined, cause); + Object.setPrototypeOf(this, SquidexNotFoundError.prototype); + } +} + +export async function buildError(error: unknown) { + if (error instanceof FetchError) { + return new SquidexError(undefined, undefined, error, error.message); + } else if (error instanceof RequiredError) { + return new SquidexRequiredFieldError(error); + } else if (error instanceof ResponseError) { + const statusCode = error.response.status; + + let body: ErrorDto; + try { + body = await error.response.json(); + } catch { + body = { message: "No error details provided.", statusCode }; + } + + switch (error.response.status) { + case 400: + return new SquidexBadRequestError(body, error); + case 401: + return new SquidexUnauthorizedError(body, error); + case 403: + return new SquidexForbiddenError(body, error); + case 404: + return new SquidexNotFoundError(error); + case 409: + return new SquidexConflictError(body, error); + case 413: + return new SquidexContentTooLargeError(body, error); + default: + return new SquidexError(statusCode, body, error, `Exception failed with status code ${statusCode}.`); + } + } else { + return new SquidexError(undefined, undefined, error as any); + } +} + +function buildMessage(statusCode?: number, body?: unknown, message?: string, cause?: Error): string { + let lines: string[] = []; + if (message) { + lines.push(message); + } + + if (statusCode) { + lines.push(`Status code: ${statusCode.toString()}`); + } + + if (body) { + lines.push(`Body: ${JSON.stringify(body, undefined, 2)}`); + } + + if (cause) { + lines.push(`Inner: ${cause}`); + } + + return lines.join("\n"); +} diff --git a/src/wrapper/headers.ts b/src/wrapper/headers.ts new file mode 100644 index 0000000..cbf3311 --- /dev/null +++ b/src/wrapper/headers.ts @@ -0,0 +1,23 @@ +export function getHeader(init: RequestInit, key: string) { + if (Array.isArray(init.headers)) { + return init.headers.find(x => x[0] === key)?.[1]; + } else if (init.headers instanceof Headers) { + return init.headers.get(key); + } else if (init.headers) { + return init.headers[key]; + } else { + return undefined; + } +} + +export function addHeader(init: RequestInit, key: string, value: string) { + init.headers ||= {}; + + if (Array.isArray(init.headers)) { + init.headers.push([key, value]); + } else if (init.headers instanceof Headers) { + init.headers.append(key, value); + } else { + init.headers[key] = value; + } +} diff --git a/src/wrapper/normalize-headers.ts b/src/wrapper/normalize-headers.ts deleted file mode 100644 index 267cca7..0000000 --- a/src/wrapper/normalize-headers.ts +++ /dev/null @@ -1,23 +0,0 @@ -export function normalizeHeaders(headers: Record): Record { - const normalized: Record = {}; - - for (const [key, value] of Object.entries(headers)) { - let normalizedKey = '', previousChar: string | null = null; - - for (let i = 0; i < key.length; i++) { - const c = key.charAt(i); - - if (previousChar === null || previousChar === '-') { - normalizedKey += c.toUpperCase(); - } else { - normalizedKey += c.toLowerCase(); - } - - previousChar = c; - } - - normalized[normalizedKey] = value - } - - return normalized; -} \ No newline at end of file diff --git a/templates/apis.mustache b/templates/apis.mustache new file mode 100644 index 0000000..825a1ee --- /dev/null +++ b/templates/apis.mustache @@ -0,0 +1,465 @@ +/* tslint:disable */ +/* eslint-disable */ +{{>licenseInfo}} + +import * as runtime from '../runtime{{importFileExtension}}'; +{{#imports.0}} +import type { + {{#imports}} + {{className}}, + {{/imports}} +} from '../models/index{{importFileExtension}}'; +{{^withoutRuntimeChecks}} +import { + {{#imports}} + {{className}}FromJSON, + {{className}}ToJSON, + {{/imports}} +} from '../models/index{{importFileExtension}}'; +{{/withoutRuntimeChecks}} +{{/imports.0}} + +{{#operations}} +{{#operation}} +{{#allParams.0}} +export interface {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request { +{{#allParams}} +{{^vendorExtensions.x-hidden}} + {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#hasReadOnly}}Omit<{{{dataType}}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{{dataType}}}{{/hasReadOnly}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}; +{{/vendorExtensions.x-hidden}} +{{/allParams}} +} + +{{/allParams.0}} +{{/operation}} +{{/operations}} +{{#withInterfaces}} +{{#operations}} +/** + * {{classname}} - interface + * {{#lambda.indented_1}}{{{unescapedDescription}}}{{/lambda.indented_1}} + * @export + * @interface {{classname}}Interface + */ +export interface {{classname}}Interface { +{{#operation}} + /** + * {{¬es}} + {{#summary}} + * @summary {{&summary}} + {{/summary}} + {{#allParams}} + {{^vendorExtensions.x-hidden}} + * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}} + {{/vendorExtensions.x-hidden}} + {{/allParams}} + * @param {*} [options] Override http request option. + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + * @throws {RequiredError} + * @memberof {{classname}}Interface + */ + {{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + {{#notes}} + * {{¬es}} + {{/notes}} + {{#summary}} + * {{&summary}} + {{/summary}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{^useSingleRequestParameter}} + {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/vendorExtensions.x-hidden}}{{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; + {{/useSingleRequestParameter}} + {{#useSingleRequestParameter}} + {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; + {{/useSingleRequestParameter}} + +{{/operation}} +} + +{{/operations}} +{{/withInterfaces}} +{{#operations}} +/** + * {{#lambda.indented_star_1}}{{{unescapedDescription}}}{{/lambda.indented_star_1}} + */ +{{#withInterfaces}} +export class {{classname}} extends runtime.BaseAPI implements {{classname}}Interface { +{{/withInterfaces}} +{{^withInterfaces}} +export class {{classname}} extends runtime.BaseAPI { +{{/withInterfaces}} + + {{#operation}} + /** + {{#notes}} + * {{¬es}} + {{/notes}} + {{#summary}} + * {{&summary}} + {{/summary}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + async {{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + {{#allParams}} + {{^vendorExtensions.x-hidden}} + {{#required}} + if (requestParameters['{{paramName}}'] == null) { + throw new runtime.RequiredError( + '{{paramName}}', + 'Required parameter "{{paramName}}" was null or undefined when calling {{vendorExtensions.x-fern-sdk-method-name}}().' + ); + } + + {{/required}} + {{/vendorExtensions.x-hidden}} + {{/allParams}} + {{#allParams.0}} + (requestParameters as any)['app'] = this.appName; + {{/allParams.0}} + const queryParameters: any = {}; + + {{#queryParams}} + {{#isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isCollectionFormatMulti}} + queryParameters['{{baseName}}'] = requestParameters['{{paramName}}']; + {{/isCollectionFormatMulti}} + {{^isCollectionFormatMulti}} + queryParameters['{{baseName}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); + {{/isCollectionFormatMulti}} + } + + {{/isArray}} + {{^isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isDateTimeType}} + queryParameters['{{baseName}}'] = (requestParameters['{{paramName}}'] as any).toISOString(); + {{/isDateTimeType}} + {{^isDateTimeType}} + {{#isDateType}} + queryParameters['{{baseName}}'] = (requestParameters['{{paramName}}'] as any).toISOString().substring(0,10); + {{/isDateType}} + {{^isDateType}} + queryParameters['{{baseName}}'] = requestParameters['{{paramName}}']; + {{/isDateType}} + {{/isDateTimeType}} + } + + {{/isArray}} + {{/queryParams}} + const headerParameters: runtime.HTTPHeaders = {}; + + {{#bodyParam}} + {{^consumes}} + headerParameters['Content-Type'] = 'application/json'; + + {{/consumes}} + {{#consumes.0}} + headerParameters['Content-Type'] = '{{{mediaType}}}'; + + {{/consumes.0}} + {{/bodyParam}} + {{#headerParams}} + {{#isArray}} + if (requestParameters['{{paramName}}'] != null) { + headerParameters['{{baseName}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); + } + + {{/isArray}} + {{^isArray}} + if (requestParameters['{{paramName}}'] != null) { + headerParameters['{{baseName}}'] = String(requestParameters['{{paramName}}']); + } + + {{/isArray}} + {{/headerParams}} + {{#authMethods}} + {{#isBasic}} + {{#isBasicBasic}} + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + {{/isBasicBasic}} + {{#isBasicBearer}} + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}]); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + {{/isBasicBearer}} + {{/isBasic}} + {{#isApiKey}} + {{#isKeyInHeader}} + if (this.configuration && this.configuration.apiKey) { + headerParameters["{{keyParamName}}"] = await this.configuration.apiKey("{{keyParamName}}"); // {{name}} authentication + } + + {{/isKeyInHeader}} + {{#isKeyInQuery}} + if (this.configuration && this.configuration.apiKey) { + queryParameters["{{keyParamName}}"] = await this.configuration.apiKey("{{keyParamName}}"); // {{name}} authentication + } + + {{/isKeyInQuery}} + {{/isApiKey}} + {{#isOAuth}} + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}]); + } + + {{/isOAuth}} + {{/authMethods}} + {{#hasFormParams}} + const consumes: runtime.Consume[] = [ + {{#consumes}} + { contentType: '{{{mediaType}}}' }, + {{/consumes}} + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): any }; + let useForm = false; + {{#formParams}} + {{#isFile}} + // use FormData to transmit files using content-type "multipart/form-data" + useForm = canConsumeForm; + {{/isFile}} + {{/formParams}} + if (useForm) { + formParams = new FormData(); + } else { + formParams = new URLSearchParams(); + } + + {{#formParams}} + {{#isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isCollectionFormatMulti}} + requestParameters['{{paramName}}'].forEach((element) => { + formParams.append('{{baseName}}{{#useSquareBracketsInArrayNames}}[]{{/useSquareBracketsInArrayNames}}', element as any); + }) + {{/isCollectionFormatMulti}} + {{^isCollectionFormatMulti}} + formParams.append('{{baseName}}{{#useSquareBracketsInArrayNames}}[]{{/useSquareBracketsInArrayNames}}', {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"])); + {{/isCollectionFormatMulti}} + } + + {{/isArray}} + {{^isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isDateTimeType}} + formParams.append('{{baseName}}', (requestParameters['{{paramName}}'] as any).toISOString()); + {{/isDateTimeType}} + {{^isDateTimeType}} + {{#isPrimitiveType}} + formParams.append('{{baseName}}', requestParameters['{{paramName}}'] as any); + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{#isEnumRef}} + formParams.append('{{baseName}}', requestParameters['{{paramName}}'] as any); + {{/isEnumRef}} + {{^isEnumRef}} + {{^withoutRuntimeChecks}} + formParams.append('{{baseName}}', new Blob([JSON.stringify({{{dataType}}}ToJSON(requestParameters['{{paramName}}']))], { type: "application/json", })); + {{/withoutRuntimeChecks}}{{#withoutRuntimeChecks}} + formParams.append('{{baseName}}', new Blob([JSON.stringify(requestParameters['{{paramName}}'])], { type: "application/json", })); + {{/withoutRuntimeChecks}} + {{/isEnumRef}} + {{/isPrimitiveType}} + {{/isDateTimeType}} + } + + {{/isArray}} + {{/formParams}} + {{/hasFormParams}} + const response = await this.request({ + path: `{{{path}}}`{{#pathParams}}.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String((requestParameters as any)['{{paramName}}']))){{/pathParams}}, + method: '{{httpMethod}}', + headers: headerParameters, + query: queryParameters, + {{#hasBodyParam}} + {{#bodyParam}} + {{#isContainer}} + {{^withoutRuntimeChecks}} + body: requestParameters['{{paramName}}']{{#isArray}}{{#items}}{{^isPrimitiveType}}!.map({{datatype}}ToJSON){{/isPrimitiveType}}{{/items}}{{/isArray}}, + {{/withoutRuntimeChecks}} + {{#withoutRuntimeChecks}} + body: requestParameters['{{paramName}}'], + {{/withoutRuntimeChecks}} + {{/isContainer}} + {{^isContainer}} + {{^isPrimitiveType}} + {{^withoutRuntimeChecks}} + body: {{dataType}}ToJSON(requestParameters['{{paramName}}']), + {{/withoutRuntimeChecks}} + {{#withoutRuntimeChecks}} + body: requestParameters['{{paramName}}'], + {{/withoutRuntimeChecks}} + {{/isPrimitiveType}} + {{#isPrimitiveType}} + body: requestParameters['{{paramName}}'] as any, + {{/isPrimitiveType}} + {{/isContainer}} + {{/bodyParam}} + {{/hasBodyParam}} + {{#hasFormParams}} + body: formParams, + {{/hasFormParams}} + }, initOverrides); + + {{#returnType}} + {{#isResponseFile}} + return new runtime.BlobApiResponse(response); + {{/isResponseFile}} + {{^isResponseFile}} + {{#returnTypeIsPrimitive}} + {{#isMap}} + return new runtime.JSONApiResponse(response); + {{/isMap}} + {{#isArray}} + return new runtime.JSONApiResponse(response); + {{/isArray}} + {{#returnSimpleType}} + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse<{{returnType}}>(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + {{/returnSimpleType}} + {{/returnTypeIsPrimitive}} + {{^returnTypeIsPrimitive}} + {{#isArray}} + return new runtime.JSONApiResponse(response{{^withoutRuntimeChecks}}, (jsonValue) => {{#uniqueItems}}new Set({{/uniqueItems}}jsonValue.map({{returnBaseType}}FromJSON){{/withoutRuntimeChecks}}){{#uniqueItems}}){{/uniqueItems}}; + {{/isArray}} + {{^isArray}} + {{#isMap}} + return new runtime.JSONApiResponse(response{{^withoutRuntimeChecks}}, (jsonValue) => runtime.mapValues(jsonValue, {{returnBaseType}}FromJSON){{/withoutRuntimeChecks}}); + {{/isMap}} + {{^isMap}} + return new runtime.JSONApiResponse(response{{^withoutRuntimeChecks}}, (jsonValue) => {{returnBaseType}}FromJSON(jsonValue){{/withoutRuntimeChecks}}); + {{/isMap}} + {{/isArray}} + {{/returnTypeIsPrimitive}} + {{/isResponseFile}} + {{/returnType}} + {{^returnType}} + return new runtime.VoidApiResponse(response); + {{/returnType}} + } + + /** + {{#notes}} + * {{¬es}} + {{/notes}} + {{#summary}} + * {{&summary}} + {{/summary}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{^useSingleRequestParameter}} + async {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/vendorExtensions.x-hidden}}{{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { + {{#returnType}} + const response = await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}{ {{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-hidden}}{{/allParams}} }, {{/allParams.0}}initOverrides); + {{#isResponseOptional}} + switch (response.raw.status) { + {{#responses}} + {{#is2xx}} + case {{code}}: + return {{#dataType}}await response.value(){{/dataType}}{{^dataType}}null{{/dataType}}; + {{/is2xx}} + {{/responses}} + default: + return await response.value(); + } + {{/isResponseOptional}} + {{^isResponseOptional}} + return await response.value(); + {{/isResponseOptional}} + {{/returnType}} + {{^returnType}} + await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}{ {{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-hidden}}{{/allParams}} }, {{/allParams.0}}initOverrides); + {{/returnType}} + } + {{/useSingleRequestParameter}} + {{#useSingleRequestParameter}} + async {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { + {{#returnType}} + const response = await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + {{#isResponseOptional}} + switch (response.raw.status) { + {{#responses}} + {{#is2xx}} + case {{code}}: + return {{#dataType}}await response.value(){{/dataType}}{{^dataType}}null{{/dataType}}; + {{/is2xx}} + {{/responses}} + default: + return await response.value(); + } + {{/isResponseOptional}} + {{^isResponseOptional}} + return await response.value(); + {{/isResponseOptional}} + {{/returnType}} + {{^returnType}} + await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + {{/returnType}} + } + {{/useSingleRequestParameter}} + + {{/operation}} +} +{{/operations}} +{{#hasEnums}} + +{{#operations}} +{{#operation}} +{{#allParams}} +{{#isEnum}} +{{#stringEnums}} +/** + * @export + * @enum {string} + */ +export enum {{operationIdCamelCase}}{{enumName}} { +{{#allowableValues}} + {{#enumVars}} + {{{name}}} = {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} +{{/allowableValues}} +} +{{/stringEnums}} +{{^stringEnums}} +/** + * @export + */ +export const {{operationIdCamelCase}}{{enumName}} = { +{{#allowableValues}} + {{#enumVars}} + {{{name}}}: {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} +{{/allowableValues}} +} as const; +export type {{operationIdCamelCase}}{{enumName}} = typeof {{operationIdCamelCase}}{{enumName}}[keyof typeof {{operationIdCamelCase}}{{enumName}}]; +{{/stringEnums}} +{{/isEnum}} +{{/allParams}} +{{/operation}} +{{/operations}} +{{/hasEnums}} \ No newline at end of file diff --git a/templates/modelGeneric.mustache b/templates/modelGeneric.mustache new file mode 100644 index 0000000..ed8aaef --- /dev/null +++ b/templates/modelGeneric.mustache @@ -0,0 +1,169 @@ +import { mapValues } from '../runtime{{importFileExtension}}'; +{{#hasImports}} +{{#tsImports}} +import type { {{{classname}}} } from './{{filename}}{{importFileExtension}}'; +import { + {{classname}}FromJSON, + {{classname}}FromJSONTyped, + {{classname}}ToJSON, +} from './{{filename}}{{importFileExtension}}'; +{{/tsImports}} + +{{/hasImports}} +{{#discriminator}} +{{#discriminator.mappedModels}} +import { {{modelName}}, {{modelName}}FromJSONTyped, {{modelName}}ToJSON } from './{{modelName}}{{importFileExtension}}'; +{{/discriminator.mappedModels}} +{{/discriminator}} +{{>modelGenericInterfaces}} + +/** + * Check if a given object implements the {{classname}} interface. + */ +export function instanceOf{{classname}}(value: object): value is {{classname}} { + {{#vars}} + {{#required}} + if (!('{{name}}' in value) || value['{{name}}'] === undefined) return false; + {{/required}} + {{/vars}} + return true; +} + +export function {{classname}}FromJSON(json: any): {{classname}} { + return {{classname}}FromJSONTyped(json, false); +} + +export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boolean): {{classname}} { + {{#hasVars}} + if (json == null) { + return json; + } +{{#discriminator}} + if (!ignoreDiscriminator) { +{{#discriminator.mappedModels}} + if (json['{{discriminator.propertyBaseName}}'] === '{{mappingName}}') { + return {{modelName}}FromJSONTyped(json, true); + } +{{/discriminator.mappedModels}} + } +{{/discriminator}} + return { + {{#parent}}...{{{.}}}FromJSONTyped(json, ignoreDiscriminator),{{/parent}} + {{#additionalPropertiesType}} + ...json, + {{/additionalPropertiesType}} + {{#vars}} + {{#isPrimitiveType}} + {{#isDateType}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}new Date(json['{{baseName}}'])), + {{/isDateType}} + {{#isDateTimeType}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}new Date(json['{{baseName}}'])), + {{/isDateTimeType}} + {{^isDateType}} + {{^isDateTimeType}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}json['{{baseName}}'], + {{/isDateTimeType}} + {{/isDateType}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{#isArray}} + {{#uniqueItems}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}new Set((json['{{baseName}}'] as Array).map({{#items}}{{datatype}}{{/items}}FromJSON))), + {{/uniqueItems}} + {{^uniqueItems}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}(json['{{baseName}}'] as Array).map({{#items}}{{datatype}}{{/items}}FromJSON)), + {{/uniqueItems}} + {{/isArray}} + {{#isMap}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(json['{{baseName}}'], {{#items}}{{datatype}}{{/items}}FromJSON)), + {{/isMap}} + {{^isArray}} + {{^isMap}} + {{^isFreeFormObject}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}{{datatype}}FromJSON(json['{{baseName}}']), + {{/isFreeFormObject}} + {{#isFreeFormObject}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}json['{{baseName}}'], + {{/isFreeFormObject}} + {{/isMap}} + {{/isArray}} + {{/isPrimitiveType}} + {{/vars}} + }; + {{/hasVars}} + {{^hasVars}} + return json; + {{/hasVars}} +} + +export function {{classname}}ToJSON(value?: {{#hasReadOnly}}Omit<{{classname}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{classname}}{{/hasReadOnly}} | null, ignoreDiscriminator = false): any { + {{#hasVars}} + if (value == null) { + return value; + } + {{#discriminator}} + if (!ignoreDiscriminator) { +{{#discriminator.mappedModels}} + if (value['{{discriminator.propertyBaseName}}'] === '{{mappingName}}') { + return {{modelName}}ToJSON(value as {{modelName}}, true); + } +{{/discriminator.mappedModels}} + } +{{/discriminator}} + return { + {{#parent}}...{{{.}}}ToJSON(value, true),{{/parent}} + {{#additionalPropertiesType}} + ...value, + {{/additionalPropertiesType}} + {{#vars}} + {{^isReadOnly}} + {{#isPrimitiveType}} + {{#isDateType}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}']{{#isNullable}} as any{{/isNullable}}).toISOString().substring(0,10)), + {{/isDateType}} + {{#isDateTimeType}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}']{{#isNullable}} as any{{/isNullable}}).toISOString()), + {{/isDateTimeType}} + {{#isArray}} + '{{baseName}}': {{#uniqueItems}}{{^required}}value['{{name}}'] == null ? undefined : {{/required}}{{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set){{/uniqueItems}}{{^uniqueItems}}value['{{name}}']{{/uniqueItems}}, + {{/isArray}} + {{^isDateType}} + {{^isDateTimeType}} + {{^isArray}} + '{{baseName}}': value['{{name}}'], + {{/isArray}} + {{/isDateTimeType}} + {{/isDateType}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{#isArray}} + {{#uniqueItems}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set).map({{#items}}{{datatype}}{{/items}}ToJSON)), + {{/uniqueItems}} + {{^uniqueItems}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}'] as Array).map({{#items}}{{datatype}}{{/items}}ToJSON)), + {{/uniqueItems}} + {{/isArray}} + {{#isMap}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(value['{{name}}'], {{#items}}{{datatype}}{{/items}}ToJSON)), + {{/isMap}} + {{^isArray}} + {{^isMap}} + {{^isFreeFormObject}} + '{{baseName}}': {{datatype}}ToJSON(value['{{name}}']), + {{/isFreeFormObject}} + {{#isFreeFormObject}} + '{{baseName}}': value['{{name}}'], + {{/isFreeFormObject}} + {{/isMap}} + {{/isArray}} + {{/isPrimitiveType}} + {{/isReadOnly}} + {{/vars}} + }; + {{/hasVars}} + {{^hasVars}} + return value; + {{/hasVars}} +} \ No newline at end of file diff --git a/templates/runtime.mustache b/templates/runtime.mustache new file mode 100644 index 0000000..bc5efa0 --- /dev/null +++ b/templates/runtime.mustache @@ -0,0 +1,413 @@ +/* tslint:disable */ +/* eslint-disable */ +{{>licenseInfo}} + +export const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, ""); + +export interface ConfigurationParameters { + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + set config(configuration: Configuration) { + this.configuration = configuration; + } + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } + + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string | Promise) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } +} + +export const DefaultConfig = new Configuration(); + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + + private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + private middleware: Middleware[]; + + constructor(protected readonly appName: string, protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + + const initOverrideFn = + typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overriddenInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + + let body: any; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } else { + body = overriddenInit.body; + } + + const init: RequestInit = { + ...overriddenInit, + body + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response: Response | undefined = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + throw e; + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +}; + +function isBlob(value: any): value is Blob { + return typeof Blob !== 'undefined' && value instanceof Blob; +} + +function isFormData(value: any): value is FormData { + return typeof FormData !== "undefined" && value instanceof FormData; +} + +export class ResponseError extends Error { + override name: "ResponseError" = "ResponseError"; + constructor(public response: Response, msg?: string) { + super(msg); + } +} + +export class FetchError extends Error { + override name: "FetchError" = "FetchError"; + constructor(public cause: Error, msg?: string) { + super(msg); + } +} + +export class RequiredError extends Error { + override name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} + +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; + +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string }; +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; + +export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise + +export interface FetchParams { + url: string; + init: RequestInit; +} + +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} + +function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} + +{{^withoutRuntimeChecks}} +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce( + (acc, key) => ({ ...acc, [key]: fn(data[key]) }), + {} + ); +} +{{/withoutRuntimeChecks}} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} + +export interface Consume { + contentType: string; +} + +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} + +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} + +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} + +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} + +export interface ApiResponse { + raw: Response; + value(): Promise; +} + +export interface ResponseTransformer { + (json: any): T; +} + +export class JSONApiResponse { + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + + async value(): Promise { + return this.transformer(await this.raw.json()); + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined; + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob(); + }; +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text(); + }; +} \ No newline at end of file diff --git a/test-only.ps1 b/test-only.ps1 deleted file mode 100644 index 025a6b2..0000000 --- a/test-only.ps1 +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -yarn jest tests \ No newline at end of file diff --git a/test-only.sh b/test-only.sh deleted file mode 100644 index 025a6b2..0000000 --- a/test-only.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -yarn jest tests \ No newline at end of file diff --git a/test.ps1 b/test.ps1 deleted file mode 100644 index 25d1af7..0000000 --- a/test.ps1 +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -yarn add -D jest @types/jest @babel/preset-typescript @babel/preset-env @babel/core -yarn jest tests \ No newline at end of file diff --git a/test.sh b/test.sh deleted file mode 100755 index 25d1af7..0000000 --- a/test.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -yarn add -D jest @types/jest @babel/preset-typescript @babel/preset-env @babel/core -yarn jest tests \ No newline at end of file diff --git a/tests/_utils.ts b/tests/_utils.ts index e29c166..8fe9971 100644 --- a/tests/_utils.ts +++ b/tests/_utils.ts @@ -1,28 +1,30 @@ -import axios from "axios"; -import https from "https" -import { SquidexClient } from "../src/wrapper/SquidexClient"; +import { SquidexClient } from "../src"; +import https from "https"; -let singleClient: { client: SquidexClient, create: (app: string) => SquidexClient }; +let singleClient: { client: SquidexClient; create: (app: string) => SquidexClient }; export function getClient() { if (singleClient) { return singleClient; } - axios.defaults.httpsAgent = new https.Agent({ - rejectUnauthorized: false, - }); - const appName = getEnvironment("CONFIG__APP__NAME", "integrations-tests"); const clientId = getEnvironment("CONFIG__CLIENT__ID", "root"); const clientSecret = getEnvironment("CONFIG__CLIENT__SECRET", "xeLd6jFxqbXJrfmNLlO2j1apagGGGSyZJhFnIuHp4I0="); - const environment = getEnvironment("CONFIG__SERVER__URL", "https://localhost:5001"); + const environment = getEnvironment("CONFIG__SERVER__URL", "http://localhost:8080"); const client = new SquidexClient({ appName, clientId, clientSecret, - environment + environment, + middleware: { + pre: async ({ init }) => { + (init as any)['agent'] = new https.Agent({ + rejectUnauthorized: false, + }); + }, + }, }); const create = (app: string) => { @@ -30,9 +32,9 @@ export function getClient() { appName: app, clientId, clientSecret, - environment + environment, }); - } + }; singleClient = { client, create }; @@ -50,7 +52,7 @@ export function getEnvironment(key: string, fallback: string) { } export function delay(ms: number) { - return new Promise(resolve => { + return new Promise((resolve) => { setTimeout(resolve, ms); }); } @@ -60,5 +62,7 @@ export function guid(): string { } export function s4(): string { - return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); + return Math.floor((1 + Math.random()) * 0x10000) + .toString(16) + .substring(1); } diff --git a/tests/assets.test.ts b/tests/assets.test.ts index 28e6dc5..d11a680 100644 --- a/tests/assets.test.ts +++ b/tests/assets.test.ts @@ -1,19 +1,17 @@ -import fs from "fs"; -import os from "os"; -import path from "path"; -import * as StreamPromises from "stream/promises"; -import { getClient, guid } from "./_utils"; +import fs from "fs/promises"; +import { getClient } from "./_utils"; describe("Assets", () => { const { client } = getClient(); it("should upload and fetch asset", async () => { - const fileStream = fs.createReadStream("tests/assets/logo-wide.png"); - const fileInfo = fs.statSync("tests/assets/logo-wide.png"); + const fileStream = await fs.readFile("tests/assets/logo-wide.png"); + const fileBlob = new File([fileStream], "logo-wide.png", { type: "image/png" }); + const fileInfo = await fs.stat("tests/assets/logo-wide.png"); - const createdAsset = await client.assets.postAsset(fileStream); + const createdAsset = await client.assets.postAsset({ file: fileBlob }); - const asset = await client.assets.getAsset(createdAsset.id); + const asset = await client.assets.getAsset({ id: createdAsset.id }); expect(asset.id).toEqual(createdAsset.id); expect(asset.fileName).toEqual("logo-wide.png"); expect(asset.fileSize).toEqual(fileInfo.size); @@ -21,21 +19,16 @@ describe("Assets", () => { }); it("should upload and download asset", async () => { - const fileStream = fs.createReadStream("tests/assets/logo-wide.png"); - const fileInfo = fs.statSync("tests/assets/logo-wide.png"); - - const createdAsset = await client.assets.postAsset(fileStream); - - const asset = await client.assets.getAssetContent(createdAsset.id); - const tempFolder = os.tmpdir(); - const tempFile = path.join(tempFolder, guid()); - const tempStream = fs.createWriteStream(tempFile); - await StreamPromises.pipeline(asset.data, tempStream); - - const downloadedFile = fs.statSync(tempFile); - - expect(asset.contentType).toEqual('image/png'); - expect(asset.contentLengthInBytes).toEqual(fileInfo.size); - expect(downloadedFile.size).toEqual(fileInfo.size); + const fileStream = await fs.readFile("tests/assets/logo-wide.png"); + const fileBlob = new File([fileStream], "logo-wide.png", { type: "image/png" }); + const fileInfo = await fs.stat("tests/assets/logo-wide.png"); + + const createdAsset = await client.assets.postAsset({ file: fileBlob }); + + const assetResponse = await client.assets.getAssetContentBySlugRaw({ idOrSlug: createdAsset.id, more: "" }); + const assetBlob = await assetResponse.value(); + + expect(assetResponse.raw.headers.get("Content-Type")).toEqual("image/png"); + expect(assetBlob.size).toEqual(fileInfo.size); }); }); diff --git a/tests/contents.test.ts b/tests/contents.test.ts index b74b895..36885bd 100644 --- a/tests/contents.test.ts +++ b/tests/contents.test.ts @@ -1,4 +1,4 @@ -import { SchemaDto } from "../src/api"; +import { SchemaDto } from "../src"; import { getClient, guid } from "./_utils"; const { client } = getClient(); @@ -7,31 +7,36 @@ let createdSchema: SchemaDto; beforeAll(async () => { createdSchema = await client.schemas.postSchema({ - name: `schema-${guid()}`, - fields: [{ - name: "field1", - properties: { - fieldType: "String", - }, - }], - isPublished: true, + createSchemaDto: { + name: `schema-${guid()}`, + fields: [ + { + name: "field1", + properties: { + fieldType: "String", + }, + }, + ], + isPublished: true, + }, }); }); describe("Contents", () => { it("should create and fetch content", async () => { const value = guid(); - - const createdContent = await client.contents.postContent(createdSchema.name, { - body: { + + const createdContent = await client.contents.postContent({ + schema: createdSchema.name, + requestBody: { field1: { - iv: value - } + iv: value, + }, }, - publish: true + publish: true, }); - const content = await client.contents.getContent(createdSchema.name, createdContent.id); + const content = await client.contents.getContent({ schema: createdSchema.name, id: createdContent.id }); expect(content.data).toEqual({ field1: { iv: value } }); expect(content.lastModified).toBeDefined(); expect(content.lastModifiedBy).toBeDefined(); @@ -40,19 +45,24 @@ describe("Contents", () => { it("should create and fetch unpublished content", async () => { const value = guid(); - - const createdContent = await client.contents.postContent(createdSchema.name, { - body: { + + const createdContent = await client.contents.postContent({ + schema: createdSchema.name, + requestBody: { field1: { - iv: value - } - } + iv: value, + }, + }, }); - const content = await client.contents.getContent(createdSchema.name, createdContent.id, { unpublished: true }); + const content = await client.contents.getContent({ + schema: createdSchema.name, + id: createdContent.id, + xUnpublished: true, + }); expect(content.data).toEqual({ field1: { iv: value } }); expect(content.lastModified).toBeDefined(); expect(content.lastModifiedBy).toBeDefined(); expect(content.status).toEqual("Draft"); }); -}) \ No newline at end of file +}); diff --git a/tests/errors.test.ts b/tests/errors.test.ts index f1fff5a..bf749e5 100644 --- a/tests/errors.test.ts +++ b/tests/errors.test.ts @@ -1,19 +1,17 @@ -import { BadRequestError } from "../src/api"; +import { SquidexBadRequestError } from "../src"; describe("Errors", () => { it("Should contain details", () => { const details = "My details in the error object"; - const message = 'My Message' + const message = "My Message"; - const error = new BadRequestError({ + const error = new SquidexBadRequestError({ message, statusCode: 400, - details: [ - details - ] + details: [details], }); expect(error.message).toContain(details); expect(error.message).toContain(message); }); -}); \ No newline at end of file +}); diff --git a/tests/globalSetup.ts b/tests/globalSetup.ts index 2fc5602..ad41e50 100644 --- a/tests/globalSetup.ts +++ b/tests/globalSetup.ts @@ -1,4 +1,4 @@ -import { SquidexError } from "../src/errors"; +import { SquidexBadRequestError, SquidexError } from "../src"; import { getEnvironment, getClient, delay } from "./_utils"; async function setup() { @@ -6,48 +6,52 @@ async function setup() { const { client } = getClient(); - const waitTime = parseInt(getEnvironment("CONFIG__WAIT", "0"), 10); - console.log(`Using =<${client.appName}>`); console.log(`Using =<${client.clientId}>`); console.log(`Using =<${client.clientSecret}>`); console.log(`Using =<${client.environment}>`); - if (waitTime <= 0) { - console.log("Waiting for server is skipped."); - return; - } - - console.log(`Waiting ${waitTime} seconds to access server.`); - - const timeout = waitTime * 1000; - const timeStart = getTime(); - - while (true) { - try { - await client.ping.getPing(); - break; - } catch (error) { - if (error instanceof SquidexError) { - throw error; - } - - const elapsed = getTime() - timeStart; + const waitForServer = async () => { + const waitTime = parseInt(getEnvironment("CONFIG__WAIT", "0"), 10); - if (elapsed > timeout) { - throw new Error(`Cannot connect to test system with: ${error}.`); + if (waitTime <= 0) { + console.log("Waiting for server is skipped."); + return; + } + + console.log(`Waiting ${waitTime} seconds to access server.`); + + const timeout = waitTime * 1000; + const timeStart = getTime(); + + while (true) { + try { + await client.ping.getPing(); + break; + } catch (error) { + if (error instanceof SquidexError) { + throw error; + } + + const elapsed = getTime() - timeStart; + + if (elapsed > timeout) { + throw new Error(`Cannot connect to test system with: ${error}.`); + } } + + await delay(100); } - - await delay(100); + + console.log("Connected to server."); } - console.log("Connected to server."); + await waitForServer(); try { - await client.apps.postApp({ name: client.appName }); + await client.apps.postApp({ createAppDto: { name: client.appName } }); } catch (ex) { - if (!(ex instanceof SquidexError) || ex.statusCode !== 400) { + if (!(ex instanceof SquidexBadRequestError)) { throw ex; } } @@ -57,4 +61,4 @@ export default setup; function getTime() { return new Date().getTime(); -} \ No newline at end of file +} diff --git a/tests/globalTeardown.ts b/tests/globalTeardown.ts index 8e3c41e..aa71f79 100644 --- a/tests/globalTeardown.ts +++ b/tests/globalTeardown.ts @@ -1,5 +1,5 @@ function teardown() { console.log("TEARDOWN"); -}; +} -export default teardown; \ No newline at end of file +export default teardown; diff --git a/tests/normalize-headers.test.ts b/tests/normalize-headers.test.ts deleted file mode 100644 index c34d40b..0000000 --- a/tests/normalize-headers.test.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { normalizeHeaders } from "./../src/wrapper/normalize-headers"; - -describe("normalizeHeaders", () => { - it("should normalize header key with all lowercase", () => { - const headers = { - "content-type": "application/json" - }; - - const normalizedHeaders = normalizeHeaders(headers); - - expect(normalizedHeaders).toEqual({ - "Content-Type": "application/json" - }); - }); - - it("should normalize header key with all uppercase", () => { - const headers = { - "CONTENT-TYPE": "application/json" - }; - - const normalizedHeaders = normalizeHeaders(headers); - - expect(normalizedHeaders).toEqual({ - "Content-Type": "application/json" - }); - }); - - it("should normalize header key with mixed casing", () => { - const headers = { - "content-TYPE": "application/json" - }; - - const normalizedHeaders = normalizeHeaders(headers); - - expect(normalizedHeaders).toEqual({ - "Content-Type": "application/json" - }); - }); -}); diff --git a/tests/rules.test.ts b/tests/rules.test.ts index d6777c0..5ce37ac 100644 --- a/tests/rules.test.ts +++ b/tests/rules.test.ts @@ -1,28 +1,31 @@ -import { getClient, guid } from "./_utils"; +import { WebhookRuleActionDto } from "../src"; +import { getClient } from "./_utils"; const { client } = getClient(); describe("Rules", () => { it("should create and fetch rule", async () => { const createdRule = await client.rules.postRule({ - action: { - actionType: "Webhook", - method: "POST", - payload: "payload", - payloadType: "text/plain", - url: "https://squidex.io" - }, - trigger: { - triggerType: "Manual" + createRuleDto: { + action: { + actionType: "Webhook", + method: "POST", + payload: "payload", + payloadType: "text/plain", + url: "https://squidex.io", + } as WebhookRuleActionDto, + trigger: { + triggerType: "Manual", + }, }, }); - const rules = await client.rules.getRules(); - const rule = rules.items.find(x => x.id === createdRule.id); + const rules = await client.rules.getRules({}); + const rule = rules.items.find((x) => x.id === createdRule.id); expect(rule?.name).toEqual(createdRule.name); expect(rule?.action).toBeDefined(); expect(rule?.action.actionType).toEqual("Webhook"); expect(rule?.trigger).toBeDefined(); expect(rule?.trigger.triggerType).toEqual("Manual"); }); -}) \ No newline at end of file +}); diff --git a/tests/schemas.test.ts b/tests/schemas.test.ts index 283505e..6cff147 100644 --- a/tests/schemas.test.ts +++ b/tests/schemas.test.ts @@ -5,21 +5,25 @@ const { client } = getClient(); describe("Schemas", () => { it("should create and fetch schema", async () => { const createdSchema = await client.schemas.postSchema({ - name: `schema-${guid()}`, - fields: [{ - name: "field1", - properties: { - fieldType: "String", - }, - }], - isPublished: true, + createSchemaDto: { + name: `schema-${guid()}`, + fields: [ + { + name: "field1", + properties: { + fieldType: "String", + }, + }, + ], + isPublished: true, + }, }); - const schema = await client.schemas.getSchema(createdSchema.id); + const schema = await client.schemas.getSchema({ schema: createdSchema.id }); expect(schema.name).toEqual(createdSchema.name); expect(schema.fields.length).toEqual(1); expect(schema.fields[0].properties.fieldType).toEqual("String"); expect(schema.type).toBe("Default"); expect(schema.isPublished).toBeTruthy(); }); -}) \ No newline at end of file +}); diff --git a/tests/userManagement.test.ts b/tests/userManagement.test.ts index bc7c58a..25489e2 100644 --- a/tests/userManagement.test.ts +++ b/tests/userManagement.test.ts @@ -7,13 +7,15 @@ describe("User management", () => { const email = `user${guid()}@email.com`; const createdUser = await client.userManagement.postUser({ - email, - displayName: "Jane Smith", - password: "1q2w3e$R", - permissions: [], + createUserDto: { + email, + displayName: "Jane Smith", + password: "1q2w3e$R", + permissions: [], + }, }); - const user = await client.userManagement.getUser(createdUser.id); + const user = await client.userManagement.getUser({ id: createdUser.id }); expect(user.email).toEqual(email); expect(user.displayName).toEqual("Jane Smith"); }); diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 1f153d2..0000000 --- a/yarn.lock +++ /dev/null @@ -1,89 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@types/node@17.0.33": - version "17.0.33" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.33.tgz#3c1879b276dc63e73030bb91165e62a4509cd506" - integrity sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ== - -"@types/url-join@4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.1.tgz#4989c97f969464647a8586c7252d97b449cdc045" - integrity sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ== - -"@ungap/url-search-params@0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@ungap/url-search-params/-/url-search-params-0.2.2.tgz#2de3bdec21476a9b70ef11fd7b794752f9afa04c" - integrity sha512-qQsguKXZVKdCixOHX9jqnX/K/1HekPDpGKyEcXHT+zR6EjGA7S4boSuelL4uuPv6YfhN0n8c4UxW+v/Z3gM2iw== - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -axios@0.27.2: - version "0.27.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" - integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ== - dependencies: - follow-redirects "^1.14.9" - form-data "^4.0.0" - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -follow-redirects@^1.14.9: - version "1.15.3" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a" - integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q== - -form-data@4.0.0, form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -js-base64@3.7.2: - version "3.7.2" - resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.2.tgz#816d11d81a8aff241603d19ce5761e13e41d7745" - integrity sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ== - -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@^2.1.12: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -prettier@2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== - -typescript@4.6.4: - version "4.6.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" - integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== - -url-join@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" - integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA== From 3ff0e03fd2bce9cd06ae8383eca1193c2dd3bbb7 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 17:37:06 +0200 Subject: [PATCH 03/16] Fix test. --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7cc631c..22df967 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4.0.0 - name: Test - Start Compose - run: docker-compose up -d + run: docker compose up -d working-directory: tests - name: Test - RUN @@ -38,5 +38,5 @@ jobs: - name: Test - Cleanup if: always() - run: docker-compose down + run: docker compose down working-directory: tests From 328405ccf270a47f842c283a0dad77f919372658 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 17:42:38 +0200 Subject: [PATCH 04/16] Generate is methods. --- src/generated/models/AddFieldDto.ts | 1 + src/generated/models/AddLanguageDto.ts | 1 + src/generated/models/AddRoleDto.ts | 1 + src/generated/models/AddWorkflowDto.ts | 1 + src/generated/models/AlgoliaRuleActionDto.ts | 1 + src/generated/models/AllContentsByPostDto.ts | 1 + src/generated/models/AnnotateAssetDto.ts | 1 + src/generated/models/AppDto.ts | 1 + src/generated/models/AppLanguageDto.ts | 1 + src/generated/models/AppLanguagesDto.ts | 1 + src/generated/models/AppSettingsDto.ts | 1 + .../models/ArrayFieldPropertiesDto.ts | 1 + .../models/AssetChangedRuleTriggerDto.ts | 1 + src/generated/models/AssetDto.ts | 1 + src/generated/models/AssetFolderDto.ts | 1 + src/generated/models/AssetFoldersDto.ts | 1 + src/generated/models/AssetMeta.ts | 1 + src/generated/models/AssetScriptsDto.ts | 1 + src/generated/models/AssetsDto.ts | 1 + .../models/AssetsFieldPropertiesDto.ts | 1 + src/generated/models/AssignContributorDto.ts | 1 + src/generated/models/AuthSchemeDto.ts | 1 + src/generated/models/AuthSchemeResponseDto.ts | 1 + src/generated/models/AuthSchemeValueDto.ts | 1 + .../models/AzureQueueRuleActionDto.ts | 1 + src/generated/models/BackupJobDto.ts | 1 + src/generated/models/BackupJobsDto.ts | 1 + .../models/BooleanFieldPropertiesDto.ts | 1 + src/generated/models/BulkResultDto.ts | 1 + src/generated/models/BulkUpdateAssetsDto.ts | 1 + .../models/BulkUpdateAssetsJobDto.ts | 1 + src/generated/models/BulkUpdateContentsDto.ts | 1 + .../models/BulkUpdateContentsJobDto.ts | 1 + src/generated/models/CallsUsageDtoDto.ts | 1 + src/generated/models/CallsUsagePerDateDto.ts | 1 + src/generated/models/ChangeCategoryDto.ts | 1 + src/generated/models/ChangePlanDto.ts | 1 + src/generated/models/ChangeStatusDto.ts | 1 + src/generated/models/ClientDto.ts | 1 + src/generated/models/ClientsDto.ts | 1 + src/generated/models/CommentRuleActionDto.ts | 1 + src/generated/models/CommentRuleTriggerDto.ts | 1 + .../models/ComponentFieldPropertiesDto.ts | 1 + .../models/ComponentsFieldPropertiesDto.ts | 1 + .../models/ConfigureFieldRulesDto.ts | 1 + src/generated/models/ConfigureUIFieldsDto.ts | 1 + .../models/ContentChangedRuleTriggerDto.ts | 1 + src/generated/models/ContentDto.ts | 1 + src/generated/models/ContentsDto.ts | 1 + src/generated/models/ContributorDto.ts | 1 + src/generated/models/ContributorsDto.ts | 1 + src/generated/models/ContributorsMetadata.ts | 1 + src/generated/models/CreateAppDto.ts | 1 + src/generated/models/CreateAssetFolderDto.ts | 1 + src/generated/models/CreateClientDto.ts | 1 + .../models/CreateContentRuleActionDto.ts | 1 + src/generated/models/CreateRuleDto.ts | 1 + src/generated/models/CreateSchemaDto.ts | 1 + src/generated/models/CreateTeamDto.ts | 1 + src/generated/models/CreateUserDto.ts | 1 + src/generated/models/CurrentStorageDto.ts | 1 + .../models/DateTimeFieldPropertiesDto.ts | 1 + .../models/DiscourseRuleActionDto.ts | 1 + src/generated/models/EditorDto.ts | 1 + .../models/ElasticSearchRuleActionDto.ts | 1 + src/generated/models/EmailRuleActionDto.ts | 1 + src/generated/models/ErrorDto.ts | 1 + src/generated/models/EventConsumerDto.ts | 1 + src/generated/models/EventConsumersDto.ts | 1 + src/generated/models/FastlyRuleActionDto.ts | 1 + src/generated/models/FeatureDto.ts | 1 + src/generated/models/FeaturesDto.ts | 1 + src/generated/models/FieldDto.ts | 1 + src/generated/models/FieldPropertiesDto.ts | 57 +++++++++++++++ src/generated/models/FieldRuleDto.ts | 1 + .../models/GeolocationFieldPropertiesDto.ts | 1 + src/generated/models/HistoryEventDto.ts | 1 + src/generated/models/ImportContentsDto.ts | 1 + src/generated/models/JobDto.ts | 1 + src/generated/models/JobLogMessageDto.ts | 1 + src/generated/models/JobsDto.ts | 1 + .../models/JsonFieldPropertiesDto.ts | 1 + src/generated/models/LanguageDto.ts | 1 + src/generated/models/LogDownloadDto.ts | 1 + src/generated/models/ManualRuleTriggerDto.ts | 1 + src/generated/models/MediumRuleActionDto.ts | 1 + src/generated/models/MoveAssetDto.ts | 1 + src/generated/models/MoveAssetFolderDto.ts | 1 + src/generated/models/NestedFieldDto.ts | 1 + .../models/NotificationRuleActionDto.ts | 1 + .../models/NumberFieldPropertiesDto.ts | 1 + .../models/OpenSearchRuleActionDto.ts | 1 + src/generated/models/PatternDto.ts | 1 + src/generated/models/PlanChangedDto.ts | 1 + src/generated/models/PlanDto.ts | 1 + src/generated/models/PlansDto.ts | 1 + .../models/PrerenderRuleActionDto.ts | 1 + src/generated/models/QueryDto.ts | 1 + src/generated/models/QueryJsonDto.ts | 1 + .../models/ReferencesFieldPropertiesDto.ts | 1 + src/generated/models/ReferralInfo.ts | 1 + src/generated/models/RenameAssetFolderDto.ts | 1 + src/generated/models/RenameTagDto.ts | 1 + src/generated/models/ReorderFieldsDto.ts | 1 + src/generated/models/Resource.ts | 1 + src/generated/models/ResourceLink.ts | 1 + src/generated/models/ResourcesDto.ts | 1 + src/generated/models/RestoreJobDto.ts | 1 + src/generated/models/RestoreRequestDto.ts | 1 + .../models/RichTextFieldPropertiesDto.ts | 1 + src/generated/models/RoleDto.ts | 1 + src/generated/models/RolesDto.ts | 1 + src/generated/models/RuleActionDto.ts | 73 +++++++++++++++++++ src/generated/models/RuleDto.ts | 1 + src/generated/models/RuleElementDto.ts | 1 + .../models/RuleElementPropertyDto.ts | 1 + src/generated/models/RuleEventDto.ts | 1 + src/generated/models/RuleEventsDto.ts | 1 + src/generated/models/RuleTriggerDto.ts | 25 +++++++ src/generated/models/RulesDto.ts | 1 + src/generated/models/ScheduleJobDto.ts | 1 + .../models/SchemaChangedRuleTriggerDto.ts | 1 + src/generated/models/SchemaCondition.ts | 1 + src/generated/models/SchemaDto.ts | 1 + src/generated/models/SchemaPropertiesDto.ts | 1 + src/generated/models/SchemaScriptsDto.ts | 1 + src/generated/models/SchemasDto.ts | 1 + src/generated/models/ScriptRuleActionDto.ts | 1 + src/generated/models/SearchResultDto.ts | 1 + src/generated/models/SignalRRuleActionDto.ts | 1 + src/generated/models/SimulatedRuleEventDto.ts | 1 + .../models/SimulatedRuleEventsDto.ts | 1 + src/generated/models/SlackRuleActionDto.ts | 1 + src/generated/models/SortNode.ts | 1 + src/generated/models/StatusInfoDto.ts | 1 + .../models/StorageUsagePerDateDto.ts | 1 + .../models/StringFieldPropertiesDto.ts | 1 + src/generated/models/SynchronizeSchemaDto.ts | 1 + .../models/TagsFieldPropertiesDto.ts | 1 + src/generated/models/TeamDto.ts | 1 + src/generated/models/TemplateDetailsDto.ts | 1 + src/generated/models/TemplateDto.ts | 1 + src/generated/models/TemplatesDto.ts | 1 + src/generated/models/TransferToTeamDto.ts | 1 + src/generated/models/TranslateDto.ts | 1 + src/generated/models/TranslationDto.ts | 1 + src/generated/models/TweetRuleActionDto.ts | 1 + .../models/TypesenseRuleActionDto.ts | 1 + src/generated/models/UIFieldPropertiesDto.ts | 1 + src/generated/models/UpdateAppDto.ts | 1 + src/generated/models/UpdateAppSettingsDto.ts | 1 + src/generated/models/UpdateAssetScriptsDto.ts | 1 + src/generated/models/UpdateClientDto.ts | 1 + src/generated/models/UpdateFieldDto.ts | 1 + src/generated/models/UpdateLanguageDto.ts | 1 + src/generated/models/UpdateProfileDto.ts | 1 + src/generated/models/UpdateRoleDto.ts | 1 + src/generated/models/UpdateRuleDto.ts | 1 + src/generated/models/UpdateSchemaDto.ts | 1 + src/generated/models/UpdateSettingDto.ts | 1 + src/generated/models/UpdateTeamDto.ts | 1 + src/generated/models/UpdateUserDto.ts | 1 + src/generated/models/UpdateWorkflowDto.ts | 1 + src/generated/models/UpsertSchemaDto.ts | 1 + src/generated/models/UpsertSchemaFieldDto.ts | 1 + .../models/UpsertSchemaNestedFieldDto.ts | 1 + src/generated/models/UsageRuleTriggerDto.ts | 1 + src/generated/models/UserDto.ts | 1 + src/generated/models/UserProperty.ts | 1 + src/generated/models/UsersDto.ts | 1 + src/generated/models/WebhookRuleActionDto.ts | 1 + src/generated/models/WorkflowDto.ts | 1 + src/generated/models/WorkflowStepDto.ts | 1 + src/generated/models/WorkflowTransitionDto.ts | 1 + src/generated/models/WorkflowsDto.ts | 1 + templates/modelGeneric.mustache | 9 +++ 176 files changed, 336 insertions(+) diff --git a/src/generated/models/AddFieldDto.ts b/src/generated/models/AddFieldDto.ts index 9d89b98..9f08018 100644 --- a/src/generated/models/AddFieldDto.ts +++ b/src/generated/models/AddFieldDto.ts @@ -46,6 +46,7 @@ export interface AddFieldDto { properties: FieldPropertiesDto; } + /** * Check if a given object implements the AddFieldDto interface. */ diff --git a/src/generated/models/AddLanguageDto.ts b/src/generated/models/AddLanguageDto.ts index 8e1bb14..f19532a 100644 --- a/src/generated/models/AddLanguageDto.ts +++ b/src/generated/models/AddLanguageDto.ts @@ -27,6 +27,7 @@ export interface AddLanguageDto { language: string; } + /** * Check if a given object implements the AddLanguageDto interface. */ diff --git a/src/generated/models/AddRoleDto.ts b/src/generated/models/AddRoleDto.ts index 361e121..f01a534 100644 --- a/src/generated/models/AddRoleDto.ts +++ b/src/generated/models/AddRoleDto.ts @@ -27,6 +27,7 @@ export interface AddRoleDto { name: string; } + /** * Check if a given object implements the AddRoleDto interface. */ diff --git a/src/generated/models/AddWorkflowDto.ts b/src/generated/models/AddWorkflowDto.ts index 1da2c3d..4f2b1d0 100644 --- a/src/generated/models/AddWorkflowDto.ts +++ b/src/generated/models/AddWorkflowDto.ts @@ -27,6 +27,7 @@ export interface AddWorkflowDto { name: string; } + /** * Check if a given object implements the AddWorkflowDto interface. */ diff --git a/src/generated/models/AlgoliaRuleActionDto.ts b/src/generated/models/AlgoliaRuleActionDto.ts index 13f7b80..032fe6a 100644 --- a/src/generated/models/AlgoliaRuleActionDto.ts +++ b/src/generated/models/AlgoliaRuleActionDto.ts @@ -58,6 +58,7 @@ export interface AlgoliaRuleActionDto extends RuleActionDto { _delete?: string | null; } + /** * Check if a given object implements the AlgoliaRuleActionDto interface. */ diff --git a/src/generated/models/AllContentsByPostDto.ts b/src/generated/models/AllContentsByPostDto.ts index 5660d3d..3f7bfc7 100644 --- a/src/generated/models/AllContentsByPostDto.ts +++ b/src/generated/models/AllContentsByPostDto.ts @@ -63,6 +63,7 @@ export interface AllContentsByPostDto { q?: any | null; } + /** * Check if a given object implements the AllContentsByPostDto interface. */ diff --git a/src/generated/models/AnnotateAssetDto.ts b/src/generated/models/AnnotateAssetDto.ts index ea26a5a..9403ae7 100644 --- a/src/generated/models/AnnotateAssetDto.ts +++ b/src/generated/models/AnnotateAssetDto.ts @@ -51,6 +51,7 @@ export interface AnnotateAssetDto { metadata?: { [key: string]: any; } | null; } + /** * Check if a given object implements the AnnotateAssetDto interface. */ diff --git a/src/generated/models/AppDto.ts b/src/generated/models/AppDto.ts index be79906..d82745a 100644 --- a/src/generated/models/AppDto.ts +++ b/src/generated/models/AppDto.ts @@ -113,6 +113,7 @@ export interface AppDto { roleProperties: { [key: string]: any; }; } + /** * Check if a given object implements the AppDto interface. */ diff --git a/src/generated/models/AppLanguageDto.ts b/src/generated/models/AppLanguageDto.ts index 4779c7f..e356785 100644 --- a/src/generated/models/AppLanguageDto.ts +++ b/src/generated/models/AppLanguageDto.ts @@ -64,6 +64,7 @@ export interface AppLanguageDto { isOptional: boolean; } + /** * Check if a given object implements the AppLanguageDto interface. */ diff --git a/src/generated/models/AppLanguagesDto.ts b/src/generated/models/AppLanguagesDto.ts index f93e242..991d70a 100644 --- a/src/generated/models/AppLanguagesDto.ts +++ b/src/generated/models/AppLanguagesDto.ts @@ -46,6 +46,7 @@ export interface AppLanguagesDto { items: Array; } + /** * Check if a given object implements the AppLanguagesDto interface. */ diff --git a/src/generated/models/AppSettingsDto.ts b/src/generated/models/AppSettingsDto.ts index 1c40aab..08ef43d 100644 --- a/src/generated/models/AppSettingsDto.ts +++ b/src/generated/models/AppSettingsDto.ts @@ -76,6 +76,7 @@ export interface AppSettingsDto { version: number; } + /** * Check if a given object implements the AppSettingsDto interface. */ diff --git a/src/generated/models/ArrayFieldPropertiesDto.ts b/src/generated/models/ArrayFieldPropertiesDto.ts index 6a4ee84..30ff398 100644 --- a/src/generated/models/ArrayFieldPropertiesDto.ts +++ b/src/generated/models/ArrayFieldPropertiesDto.ts @@ -60,6 +60,7 @@ export interface ArrayFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the ArrayFieldPropertiesDto interface. */ diff --git a/src/generated/models/AssetChangedRuleTriggerDto.ts b/src/generated/models/AssetChangedRuleTriggerDto.ts index ee7638e..e92b90d 100644 --- a/src/generated/models/AssetChangedRuleTriggerDto.ts +++ b/src/generated/models/AssetChangedRuleTriggerDto.ts @@ -34,6 +34,7 @@ export interface AssetChangedRuleTriggerDto extends RuleTriggerDto { condition?: string | null; } + /** * Check if a given object implements the AssetChangedRuleTriggerDto interface. */ diff --git a/src/generated/models/AssetDto.ts b/src/generated/models/AssetDto.ts index 41d344b..f12ecd6 100644 --- a/src/generated/models/AssetDto.ts +++ b/src/generated/models/AssetDto.ts @@ -195,6 +195,7 @@ export interface AssetDto { + /** * Check if a given object implements the AssetDto interface. */ diff --git a/src/generated/models/AssetFolderDto.ts b/src/generated/models/AssetFolderDto.ts index 6e77ff0..5774d2f 100644 --- a/src/generated/models/AssetFolderDto.ts +++ b/src/generated/models/AssetFolderDto.ts @@ -58,6 +58,7 @@ export interface AssetFolderDto { version: number; } + /** * Check if a given object implements the AssetFolderDto interface. */ diff --git a/src/generated/models/AssetFoldersDto.ts b/src/generated/models/AssetFoldersDto.ts index de947b0..53c4817 100644 --- a/src/generated/models/AssetFoldersDto.ts +++ b/src/generated/models/AssetFoldersDto.ts @@ -58,6 +58,7 @@ export interface AssetFoldersDto { path: Array; } + /** * Check if a given object implements the AssetFoldersDto interface. */ diff --git a/src/generated/models/AssetMeta.ts b/src/generated/models/AssetMeta.ts index ff668c6..07f11ca 100644 --- a/src/generated/models/AssetMeta.ts +++ b/src/generated/models/AssetMeta.ts @@ -27,6 +27,7 @@ export interface AssetMeta { isDuplicate: string; } + /** * Check if a given object implements the AssetMeta interface. */ diff --git a/src/generated/models/AssetScriptsDto.ts b/src/generated/models/AssetScriptsDto.ts index 6e5fbfb..c24b223 100644 --- a/src/generated/models/AssetScriptsDto.ts +++ b/src/generated/models/AssetScriptsDto.ts @@ -82,6 +82,7 @@ export interface AssetScriptsDto { version: number; } + /** * Check if a given object implements the AssetScriptsDto interface. */ diff --git a/src/generated/models/AssetsDto.ts b/src/generated/models/AssetsDto.ts index 1e8bf63..a5b9b7b 100644 --- a/src/generated/models/AssetsDto.ts +++ b/src/generated/models/AssetsDto.ts @@ -52,6 +52,7 @@ export interface AssetsDto { items: Array; } + /** * Check if a given object implements the AssetsDto interface. */ diff --git a/src/generated/models/AssetsFieldPropertiesDto.ts b/src/generated/models/AssetsFieldPropertiesDto.ts index 9509fee..a78896d 100644 --- a/src/generated/models/AssetsFieldPropertiesDto.ts +++ b/src/generated/models/AssetsFieldPropertiesDto.ts @@ -170,6 +170,7 @@ export interface AssetsFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the AssetsFieldPropertiesDto interface. */ diff --git a/src/generated/models/AssignContributorDto.ts b/src/generated/models/AssignContributorDto.ts index bf3b46e..cc54977 100644 --- a/src/generated/models/AssignContributorDto.ts +++ b/src/generated/models/AssignContributorDto.ts @@ -39,6 +39,7 @@ export interface AssignContributorDto { invite?: boolean; } + /** * Check if a given object implements the AssignContributorDto interface. */ diff --git a/src/generated/models/AuthSchemeDto.ts b/src/generated/models/AuthSchemeDto.ts index df85b66..1629051 100644 --- a/src/generated/models/AuthSchemeDto.ts +++ b/src/generated/models/AuthSchemeDto.ts @@ -57,6 +57,7 @@ export interface AuthSchemeDto { signoutRedirectUrl?: string | null; } + /** * Check if a given object implements the AuthSchemeDto interface. */ diff --git a/src/generated/models/AuthSchemeResponseDto.ts b/src/generated/models/AuthSchemeResponseDto.ts index ef1baf3..48cef47 100644 --- a/src/generated/models/AuthSchemeResponseDto.ts +++ b/src/generated/models/AuthSchemeResponseDto.ts @@ -46,6 +46,7 @@ export interface AuthSchemeResponseDto { scheme?: AuthSchemeDto; } + /** * Check if a given object implements the AuthSchemeResponseDto interface. */ diff --git a/src/generated/models/AuthSchemeValueDto.ts b/src/generated/models/AuthSchemeValueDto.ts index d426e33..cf6b2a3 100644 --- a/src/generated/models/AuthSchemeValueDto.ts +++ b/src/generated/models/AuthSchemeValueDto.ts @@ -34,6 +34,7 @@ export interface AuthSchemeValueDto { scheme?: AuthSchemeDto; } + /** * Check if a given object implements the AuthSchemeValueDto interface. */ diff --git a/src/generated/models/AzureQueueRuleActionDto.ts b/src/generated/models/AzureQueueRuleActionDto.ts index 37be93a..9f417d5 100644 --- a/src/generated/models/AzureQueueRuleActionDto.ts +++ b/src/generated/models/AzureQueueRuleActionDto.ts @@ -46,6 +46,7 @@ export interface AzureQueueRuleActionDto extends RuleActionDto { payload?: string | null; } + /** * Check if a given object implements the AzureQueueRuleActionDto interface. */ diff --git a/src/generated/models/BackupJobDto.ts b/src/generated/models/BackupJobDto.ts index a41fe88..c759ae1 100644 --- a/src/generated/models/BackupJobDto.ts +++ b/src/generated/models/BackupJobDto.ts @@ -78,6 +78,7 @@ export interface BackupJobDto { + /** * Check if a given object implements the BackupJobDto interface. */ diff --git a/src/generated/models/BackupJobsDto.ts b/src/generated/models/BackupJobsDto.ts index 45b206b..40f7be1 100644 --- a/src/generated/models/BackupJobsDto.ts +++ b/src/generated/models/BackupJobsDto.ts @@ -46,6 +46,7 @@ export interface BackupJobsDto { items: Array; } + /** * Check if a given object implements the BackupJobsDto interface. */ diff --git a/src/generated/models/BooleanFieldPropertiesDto.ts b/src/generated/models/BooleanFieldPropertiesDto.ts index f2ee75b..992d6d1 100644 --- a/src/generated/models/BooleanFieldPropertiesDto.ts +++ b/src/generated/models/BooleanFieldPropertiesDto.ts @@ -60,6 +60,7 @@ export interface BooleanFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the BooleanFieldPropertiesDto interface. */ diff --git a/src/generated/models/BulkResultDto.ts b/src/generated/models/BulkResultDto.ts index c7f2a03..66465be 100644 --- a/src/generated/models/BulkResultDto.ts +++ b/src/generated/models/BulkResultDto.ts @@ -53,6 +53,7 @@ export interface BulkResultDto { contentId?: string | null; } + /** * Check if a given object implements the BulkResultDto interface. */ diff --git a/src/generated/models/BulkUpdateAssetsDto.ts b/src/generated/models/BulkUpdateAssetsDto.ts index 7b5c4a6..f035f4c 100644 --- a/src/generated/models/BulkUpdateAssetsDto.ts +++ b/src/generated/models/BulkUpdateAssetsDto.ts @@ -52,6 +52,7 @@ export interface BulkUpdateAssetsDto { doNotScript?: boolean; } + /** * Check if a given object implements the BulkUpdateAssetsDto interface. */ diff --git a/src/generated/models/BulkUpdateAssetsJobDto.ts b/src/generated/models/BulkUpdateAssetsJobDto.ts index bce1e43..5cbd07e 100644 --- a/src/generated/models/BulkUpdateAssetsJobDto.ts +++ b/src/generated/models/BulkUpdateAssetsJobDto.ts @@ -90,6 +90,7 @@ export interface BulkUpdateAssetsJobDto { + /** * Check if a given object implements the BulkUpdateAssetsJobDto interface. */ diff --git a/src/generated/models/BulkUpdateContentsDto.ts b/src/generated/models/BulkUpdateContentsDto.ts index fd07e57..e0430dd 100644 --- a/src/generated/models/BulkUpdateContentsDto.ts +++ b/src/generated/models/BulkUpdateContentsDto.ts @@ -78,6 +78,7 @@ export interface BulkUpdateContentsDto { optimizeValidation?: boolean; } + /** * Check if a given object implements the BulkUpdateContentsDto interface. */ diff --git a/src/generated/models/BulkUpdateContentsJobDto.ts b/src/generated/models/BulkUpdateContentsJobDto.ts index f9593a6..44f82a7 100644 --- a/src/generated/models/BulkUpdateContentsJobDto.ts +++ b/src/generated/models/BulkUpdateContentsJobDto.ts @@ -108,6 +108,7 @@ export interface BulkUpdateContentsJobDto { + /** * Check if a given object implements the BulkUpdateContentsJobDto interface. */ diff --git a/src/generated/models/CallsUsageDtoDto.ts b/src/generated/models/CallsUsageDtoDto.ts index fac1575..716b164 100644 --- a/src/generated/models/CallsUsageDtoDto.ts +++ b/src/generated/models/CallsUsageDtoDto.ts @@ -82,6 +82,7 @@ export interface CallsUsageDtoDto { details: { [key: string]: Array; }; } + /** * Check if a given object implements the CallsUsageDtoDto interface. */ diff --git a/src/generated/models/CallsUsagePerDateDto.ts b/src/generated/models/CallsUsagePerDateDto.ts index 96085a1..79c260f 100644 --- a/src/generated/models/CallsUsagePerDateDto.ts +++ b/src/generated/models/CallsUsagePerDateDto.ts @@ -45,6 +45,7 @@ export interface CallsUsagePerDateDto { averageElapsedMs: number; } + /** * Check if a given object implements the CallsUsagePerDateDto interface. */ diff --git a/src/generated/models/ChangeCategoryDto.ts b/src/generated/models/ChangeCategoryDto.ts index bb869c5..90adcd6 100644 --- a/src/generated/models/ChangeCategoryDto.ts +++ b/src/generated/models/ChangeCategoryDto.ts @@ -27,6 +27,7 @@ export interface ChangeCategoryDto { name?: string | null; } + /** * Check if a given object implements the ChangeCategoryDto interface. */ diff --git a/src/generated/models/ChangePlanDto.ts b/src/generated/models/ChangePlanDto.ts index fcc92dd..c8a0275 100644 --- a/src/generated/models/ChangePlanDto.ts +++ b/src/generated/models/ChangePlanDto.ts @@ -27,6 +27,7 @@ export interface ChangePlanDto { planId: string; } + /** * Check if a given object implements the ChangePlanDto interface. */ diff --git a/src/generated/models/ChangeStatusDto.ts b/src/generated/models/ChangeStatusDto.ts index f40e7c3..6344959 100644 --- a/src/generated/models/ChangeStatusDto.ts +++ b/src/generated/models/ChangeStatusDto.ts @@ -39,6 +39,7 @@ export interface ChangeStatusDto { checkReferrers?: boolean; } + /** * Check if a given object implements the ChangeStatusDto interface. */ diff --git a/src/generated/models/ClientDto.ts b/src/generated/models/ClientDto.ts index bfeb275..3e72ca2 100644 --- a/src/generated/models/ClientDto.ts +++ b/src/generated/models/ClientDto.ts @@ -76,6 +76,7 @@ export interface ClientDto { allowAnonymous: boolean; } + /** * Check if a given object implements the ClientDto interface. */ diff --git a/src/generated/models/ClientsDto.ts b/src/generated/models/ClientsDto.ts index 682a6a2..5b31f76 100644 --- a/src/generated/models/ClientsDto.ts +++ b/src/generated/models/ClientsDto.ts @@ -46,6 +46,7 @@ export interface ClientsDto { items: Array; } + /** * Check if a given object implements the ClientsDto interface. */ diff --git a/src/generated/models/CommentRuleActionDto.ts b/src/generated/models/CommentRuleActionDto.ts index f916db6..b4a3061 100644 --- a/src/generated/models/CommentRuleActionDto.ts +++ b/src/generated/models/CommentRuleActionDto.ts @@ -40,6 +40,7 @@ export interface CommentRuleActionDto extends RuleActionDto { client?: string | null; } + /** * Check if a given object implements the CommentRuleActionDto interface. */ diff --git a/src/generated/models/CommentRuleTriggerDto.ts b/src/generated/models/CommentRuleTriggerDto.ts index a4a413e..06977ed 100644 --- a/src/generated/models/CommentRuleTriggerDto.ts +++ b/src/generated/models/CommentRuleTriggerDto.ts @@ -34,6 +34,7 @@ export interface CommentRuleTriggerDto extends RuleTriggerDto { condition?: string | null; } + /** * Check if a given object implements the CommentRuleTriggerDto interface. */ diff --git a/src/generated/models/ComponentFieldPropertiesDto.ts b/src/generated/models/ComponentFieldPropertiesDto.ts index 065dc0b..485f44b 100644 --- a/src/generated/models/ComponentFieldPropertiesDto.ts +++ b/src/generated/models/ComponentFieldPropertiesDto.ts @@ -34,6 +34,7 @@ export interface ComponentFieldPropertiesDto extends FieldPropertiesDto { schemaIds?: Array | null; } + /** * Check if a given object implements the ComponentFieldPropertiesDto interface. */ diff --git a/src/generated/models/ComponentsFieldPropertiesDto.ts b/src/generated/models/ComponentsFieldPropertiesDto.ts index cf19832..60839d6 100644 --- a/src/generated/models/ComponentsFieldPropertiesDto.ts +++ b/src/generated/models/ComponentsFieldPropertiesDto.ts @@ -66,6 +66,7 @@ export interface ComponentsFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the ComponentsFieldPropertiesDto interface. */ diff --git a/src/generated/models/ConfigureFieldRulesDto.ts b/src/generated/models/ConfigureFieldRulesDto.ts index 898d0d5..e0e09d5 100644 --- a/src/generated/models/ConfigureFieldRulesDto.ts +++ b/src/generated/models/ConfigureFieldRulesDto.ts @@ -34,6 +34,7 @@ export interface ConfigureFieldRulesDto { fieldRules?: Array | null; } + /** * Check if a given object implements the ConfigureFieldRulesDto interface. */ diff --git a/src/generated/models/ConfigureUIFieldsDto.ts b/src/generated/models/ConfigureUIFieldsDto.ts index 9f00764..24bcee7 100644 --- a/src/generated/models/ConfigureUIFieldsDto.ts +++ b/src/generated/models/ConfigureUIFieldsDto.ts @@ -33,6 +33,7 @@ export interface ConfigureUIFieldsDto { fieldsInReferences?: Array | null; } + /** * Check if a given object implements the ConfigureUIFieldsDto interface. */ diff --git a/src/generated/models/ContentChangedRuleTriggerDto.ts b/src/generated/models/ContentChangedRuleTriggerDto.ts index c75f28c..de0de18 100644 --- a/src/generated/models/ContentChangedRuleTriggerDto.ts +++ b/src/generated/models/ContentChangedRuleTriggerDto.ts @@ -52,6 +52,7 @@ export interface ContentChangedRuleTriggerDto extends RuleTriggerDto { handleAll: boolean; } + /** * Check if a given object implements the ContentChangedRuleTriggerDto interface. */ diff --git a/src/generated/models/ContentDto.ts b/src/generated/models/ContentDto.ts index 0b19f4b..beb6bb9 100644 --- a/src/generated/models/ContentDto.ts +++ b/src/generated/models/ContentDto.ts @@ -160,6 +160,7 @@ export interface ContentDto { version: number; } + /** * Check if a given object implements the ContentDto interface. */ diff --git a/src/generated/models/ContentsDto.ts b/src/generated/models/ContentsDto.ts index 336df02..c2b26f6 100644 --- a/src/generated/models/ContentsDto.ts +++ b/src/generated/models/ContentsDto.ts @@ -64,6 +64,7 @@ export interface ContentsDto { statuses: Array; } + /** * Check if a given object implements the ContentsDto interface. */ diff --git a/src/generated/models/ContributorDto.ts b/src/generated/models/ContributorDto.ts index 89f3631..a2d6187 100644 --- a/src/generated/models/ContributorDto.ts +++ b/src/generated/models/ContributorDto.ts @@ -58,6 +58,7 @@ export interface ContributorDto { role?: string | null; } + /** * Check if a given object implements the ContributorDto interface. */ diff --git a/src/generated/models/ContributorsDto.ts b/src/generated/models/ContributorsDto.ts index 8e5fdf3..597059d 100644 --- a/src/generated/models/ContributorsDto.ts +++ b/src/generated/models/ContributorsDto.ts @@ -64,6 +64,7 @@ export interface ContributorsDto { meta?: ContributorsMetadata; } + /** * Check if a given object implements the ContributorsDto interface. */ diff --git a/src/generated/models/ContributorsMetadata.ts b/src/generated/models/ContributorsMetadata.ts index 609beff..53bcdde 100644 --- a/src/generated/models/ContributorsMetadata.ts +++ b/src/generated/models/ContributorsMetadata.ts @@ -27,6 +27,7 @@ export interface ContributorsMetadata { isInvited: string; } + /** * Check if a given object implements the ContributorsMetadata interface. */ diff --git a/src/generated/models/CreateAppDto.ts b/src/generated/models/CreateAppDto.ts index d3cb6de..2fabbf3 100644 --- a/src/generated/models/CreateAppDto.ts +++ b/src/generated/models/CreateAppDto.ts @@ -33,6 +33,7 @@ export interface CreateAppDto { template?: string | null; } + /** * Check if a given object implements the CreateAppDto interface. */ diff --git a/src/generated/models/CreateAssetFolderDto.ts b/src/generated/models/CreateAssetFolderDto.ts index 9483788..fa70e7d 100644 --- a/src/generated/models/CreateAssetFolderDto.ts +++ b/src/generated/models/CreateAssetFolderDto.ts @@ -33,6 +33,7 @@ export interface CreateAssetFolderDto { parentId?: string; } + /** * Check if a given object implements the CreateAssetFolderDto interface. */ diff --git a/src/generated/models/CreateClientDto.ts b/src/generated/models/CreateClientDto.ts index a2cf1a4..609f5ba 100644 --- a/src/generated/models/CreateClientDto.ts +++ b/src/generated/models/CreateClientDto.ts @@ -27,6 +27,7 @@ export interface CreateClientDto { id: string; } + /** * Check if a given object implements the CreateClientDto interface. */ diff --git a/src/generated/models/CreateContentRuleActionDto.ts b/src/generated/models/CreateContentRuleActionDto.ts index 3978ade..762e11f 100644 --- a/src/generated/models/CreateContentRuleActionDto.ts +++ b/src/generated/models/CreateContentRuleActionDto.ts @@ -52,6 +52,7 @@ export interface CreateContentRuleActionDto extends RuleActionDto { publish: boolean; } + /** * Check if a given object implements the CreateContentRuleActionDto interface. */ diff --git a/src/generated/models/CreateRuleDto.ts b/src/generated/models/CreateRuleDto.ts index 24ec27d..24308fc 100644 --- a/src/generated/models/CreateRuleDto.ts +++ b/src/generated/models/CreateRuleDto.ts @@ -46,6 +46,7 @@ export interface CreateRuleDto { action: RuleActionDto; } + /** * Check if a given object implements the CreateRuleDto interface. */ diff --git a/src/generated/models/CreateSchemaDto.ts b/src/generated/models/CreateSchemaDto.ts index 80c8cd1..297ea71 100644 --- a/src/generated/models/CreateSchemaDto.ts +++ b/src/generated/models/CreateSchemaDto.ts @@ -127,6 +127,7 @@ export interface CreateSchemaDto { + /** * Check if a given object implements the CreateSchemaDto interface. */ diff --git a/src/generated/models/CreateTeamDto.ts b/src/generated/models/CreateTeamDto.ts index acbc329..e24110b 100644 --- a/src/generated/models/CreateTeamDto.ts +++ b/src/generated/models/CreateTeamDto.ts @@ -27,6 +27,7 @@ export interface CreateTeamDto { name: string; } + /** * Check if a given object implements the CreateTeamDto interface. */ diff --git a/src/generated/models/CreateUserDto.ts b/src/generated/models/CreateUserDto.ts index 03cc4d6..7634a0f 100644 --- a/src/generated/models/CreateUserDto.ts +++ b/src/generated/models/CreateUserDto.ts @@ -45,6 +45,7 @@ export interface CreateUserDto { permissions: Array; } + /** * Check if a given object implements the CreateUserDto interface. */ diff --git a/src/generated/models/CurrentStorageDto.ts b/src/generated/models/CurrentStorageDto.ts index 04dafdf..619237a 100644 --- a/src/generated/models/CurrentStorageDto.ts +++ b/src/generated/models/CurrentStorageDto.ts @@ -33,6 +33,7 @@ export interface CurrentStorageDto { maxAllowed: number; } + /** * Check if a given object implements the CurrentStorageDto interface. */ diff --git a/src/generated/models/DateTimeFieldPropertiesDto.ts b/src/generated/models/DateTimeFieldPropertiesDto.ts index 7909052..ed50a1d 100644 --- a/src/generated/models/DateTimeFieldPropertiesDto.ts +++ b/src/generated/models/DateTimeFieldPropertiesDto.ts @@ -84,6 +84,7 @@ export interface DateTimeFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the DateTimeFieldPropertiesDto interface. */ diff --git a/src/generated/models/DiscourseRuleActionDto.ts b/src/generated/models/DiscourseRuleActionDto.ts index 1c75d4d..89b69ea 100644 --- a/src/generated/models/DiscourseRuleActionDto.ts +++ b/src/generated/models/DiscourseRuleActionDto.ts @@ -70,6 +70,7 @@ export interface DiscourseRuleActionDto extends RuleActionDto { category?: number | null; } + /** * Check if a given object implements the DiscourseRuleActionDto interface. */ diff --git a/src/generated/models/EditorDto.ts b/src/generated/models/EditorDto.ts index cdcf6d5..56d2233 100644 --- a/src/generated/models/EditorDto.ts +++ b/src/generated/models/EditorDto.ts @@ -33,6 +33,7 @@ export interface EditorDto { url: string; } + /** * Check if a given object implements the EditorDto interface. */ diff --git a/src/generated/models/ElasticSearchRuleActionDto.ts b/src/generated/models/ElasticSearchRuleActionDto.ts index 0f57590..abec035 100644 --- a/src/generated/models/ElasticSearchRuleActionDto.ts +++ b/src/generated/models/ElasticSearchRuleActionDto.ts @@ -64,6 +64,7 @@ export interface ElasticSearchRuleActionDto extends RuleActionDto { _delete?: string | null; } + /** * Check if a given object implements the ElasticSearchRuleActionDto interface. */ diff --git a/src/generated/models/EmailRuleActionDto.ts b/src/generated/models/EmailRuleActionDto.ts index da03e95..b4ee0c3 100644 --- a/src/generated/models/EmailRuleActionDto.ts +++ b/src/generated/models/EmailRuleActionDto.ts @@ -76,6 +76,7 @@ export interface EmailRuleActionDto extends RuleActionDto { messageBody: string; } + /** * Check if a given object implements the EmailRuleActionDto interface. */ diff --git a/src/generated/models/ErrorDto.ts b/src/generated/models/ErrorDto.ts index edb6c18..aef21d2 100644 --- a/src/generated/models/ErrorDto.ts +++ b/src/generated/models/ErrorDto.ts @@ -57,6 +57,7 @@ export interface ErrorDto { statusCode: number; } + /** * Check if a given object implements the ErrorDto interface. */ diff --git a/src/generated/models/EventConsumerDto.ts b/src/generated/models/EventConsumerDto.ts index 78f6361..257984f 100644 --- a/src/generated/models/EventConsumerDto.ts +++ b/src/generated/models/EventConsumerDto.ts @@ -70,6 +70,7 @@ export interface EventConsumerDto { position?: string | null; } + /** * Check if a given object implements the EventConsumerDto interface. */ diff --git a/src/generated/models/EventConsumersDto.ts b/src/generated/models/EventConsumersDto.ts index 7bf0c2c..701d6d5 100644 --- a/src/generated/models/EventConsumersDto.ts +++ b/src/generated/models/EventConsumersDto.ts @@ -46,6 +46,7 @@ export interface EventConsumersDto { items: Array; } + /** * Check if a given object implements the EventConsumersDto interface. */ diff --git a/src/generated/models/FastlyRuleActionDto.ts b/src/generated/models/FastlyRuleActionDto.ts index 837e01f..e97b188 100644 --- a/src/generated/models/FastlyRuleActionDto.ts +++ b/src/generated/models/FastlyRuleActionDto.ts @@ -40,6 +40,7 @@ export interface FastlyRuleActionDto extends RuleActionDto { serviceId: string; } + /** * Check if a given object implements the FastlyRuleActionDto interface. */ diff --git a/src/generated/models/FeatureDto.ts b/src/generated/models/FeatureDto.ts index bda6ade..cf9b477 100644 --- a/src/generated/models/FeatureDto.ts +++ b/src/generated/models/FeatureDto.ts @@ -33,6 +33,7 @@ export interface FeatureDto { text: string; } + /** * Check if a given object implements the FeatureDto interface. */ diff --git a/src/generated/models/FeaturesDto.ts b/src/generated/models/FeaturesDto.ts index e50c55a..bafd7b1 100644 --- a/src/generated/models/FeaturesDto.ts +++ b/src/generated/models/FeaturesDto.ts @@ -40,6 +40,7 @@ export interface FeaturesDto { version: number; } + /** * Check if a given object implements the FeaturesDto interface. */ diff --git a/src/generated/models/FieldDto.ts b/src/generated/models/FieldDto.ts index fdc2119..4cc188f 100644 --- a/src/generated/models/FieldDto.ts +++ b/src/generated/models/FieldDto.ts @@ -94,6 +94,7 @@ export interface FieldDto { nested?: Array | null; } + /** * Check if a given object implements the FieldDto interface. */ diff --git a/src/generated/models/FieldPropertiesDto.ts b/src/generated/models/FieldPropertiesDto.ts index af1f076..f6d4782 100644 --- a/src/generated/models/FieldPropertiesDto.ts +++ b/src/generated/models/FieldPropertiesDto.ts @@ -89,6 +89,63 @@ export interface FieldPropertiesDto { fieldType: string; } +export function isArrayFieldPropertiesDto(value: FieldPropertiesDto): value is ArrayFieldPropertiesDto { + return value['fieldType'] === 'Array'; +} + +export function isAssetsFieldPropertiesDto(value: FieldPropertiesDto): value is AssetsFieldPropertiesDto { + return value['fieldType'] === 'Assets'; +} + +export function isBooleanFieldPropertiesDto(value: FieldPropertiesDto): value is BooleanFieldPropertiesDto { + return value['fieldType'] === 'Boolean'; +} + +export function isComponentFieldPropertiesDto(value: FieldPropertiesDto): value is ComponentFieldPropertiesDto { + return value['fieldType'] === 'Component'; +} + +export function isComponentsFieldPropertiesDto(value: FieldPropertiesDto): value is ComponentsFieldPropertiesDto { + return value['fieldType'] === 'Components'; +} + +export function isDateTimeFieldPropertiesDto(value: FieldPropertiesDto): value is DateTimeFieldPropertiesDto { + return value['fieldType'] === 'DateTime'; +} + +export function isGeolocationFieldPropertiesDto(value: FieldPropertiesDto): value is GeolocationFieldPropertiesDto { + return value['fieldType'] === 'Geolocation'; +} + +export function isJsonFieldPropertiesDto(value: FieldPropertiesDto): value is JsonFieldPropertiesDto { + return value['fieldType'] === 'Json'; +} + +export function isNumberFieldPropertiesDto(value: FieldPropertiesDto): value is NumberFieldPropertiesDto { + return value['fieldType'] === 'Number'; +} + +export function isReferencesFieldPropertiesDto(value: FieldPropertiesDto): value is ReferencesFieldPropertiesDto { + return value['fieldType'] === 'References'; +} + +export function isRichTextFieldPropertiesDto(value: FieldPropertiesDto): value is RichTextFieldPropertiesDto { + return value['fieldType'] === 'RichText'; +} + +export function isStringFieldPropertiesDto(value: FieldPropertiesDto): value is StringFieldPropertiesDto { + return value['fieldType'] === 'String'; +} + +export function isTagsFieldPropertiesDto(value: FieldPropertiesDto): value is TagsFieldPropertiesDto { + return value['fieldType'] === 'Tags'; +} + +export function isUIFieldPropertiesDto(value: FieldPropertiesDto): value is UIFieldPropertiesDto { + return value['fieldType'] === 'UI'; +} + + /** * Check if a given object implements the FieldPropertiesDto interface. */ diff --git a/src/generated/models/FieldRuleDto.ts b/src/generated/models/FieldRuleDto.ts index 4c14d06..9c44c09 100644 --- a/src/generated/models/FieldRuleDto.ts +++ b/src/generated/models/FieldRuleDto.ts @@ -48,6 +48,7 @@ export interface FieldRuleDto { + /** * Check if a given object implements the FieldRuleDto interface. */ diff --git a/src/generated/models/GeolocationFieldPropertiesDto.ts b/src/generated/models/GeolocationFieldPropertiesDto.ts index cebfc50..4e98e69 100644 --- a/src/generated/models/GeolocationFieldPropertiesDto.ts +++ b/src/generated/models/GeolocationFieldPropertiesDto.ts @@ -42,6 +42,7 @@ export interface GeolocationFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the GeolocationFieldPropertiesDto interface. */ diff --git a/src/generated/models/HistoryEventDto.ts b/src/generated/models/HistoryEventDto.ts index de70b4a..22ee051 100644 --- a/src/generated/models/HistoryEventDto.ts +++ b/src/generated/models/HistoryEventDto.ts @@ -57,6 +57,7 @@ export interface HistoryEventDto { version: number; } + /** * Check if a given object implements the HistoryEventDto interface. */ diff --git a/src/generated/models/ImportContentsDto.ts b/src/generated/models/ImportContentsDto.ts index ebeb515..d126362 100644 --- a/src/generated/models/ImportContentsDto.ts +++ b/src/generated/models/ImportContentsDto.ts @@ -46,6 +46,7 @@ export interface ImportContentsDto { optimizeValidation?: boolean; } + /** * Check if a given object implements the ImportContentsDto interface. */ diff --git a/src/generated/models/JobDto.ts b/src/generated/models/JobDto.ts index 1d96f7a..8d95df7 100644 --- a/src/generated/models/JobDto.ts +++ b/src/generated/models/JobDto.ts @@ -102,6 +102,7 @@ export interface JobDto { + /** * Check if a given object implements the JobDto interface. */ diff --git a/src/generated/models/JobLogMessageDto.ts b/src/generated/models/JobLogMessageDto.ts index 08ff348..058a4a0 100644 --- a/src/generated/models/JobLogMessageDto.ts +++ b/src/generated/models/JobLogMessageDto.ts @@ -33,6 +33,7 @@ export interface JobLogMessageDto { message: string; } + /** * Check if a given object implements the JobLogMessageDto interface. */ diff --git a/src/generated/models/JobsDto.ts b/src/generated/models/JobsDto.ts index 0b0b739..ce48482 100644 --- a/src/generated/models/JobsDto.ts +++ b/src/generated/models/JobsDto.ts @@ -46,6 +46,7 @@ export interface JobsDto { items: Array; } + /** * Check if a given object implements the JobsDto interface. */ diff --git a/src/generated/models/JsonFieldPropertiesDto.ts b/src/generated/models/JsonFieldPropertiesDto.ts index 50c4c1c..d4d7ef4 100644 --- a/src/generated/models/JsonFieldPropertiesDto.ts +++ b/src/generated/models/JsonFieldPropertiesDto.ts @@ -34,6 +34,7 @@ export interface JsonFieldPropertiesDto extends FieldPropertiesDto { graphQLSchema?: string | null; } + /** * Check if a given object implements the JsonFieldPropertiesDto interface. */ diff --git a/src/generated/models/LanguageDto.ts b/src/generated/models/LanguageDto.ts index 4717e41..ee3a10c 100644 --- a/src/generated/models/LanguageDto.ts +++ b/src/generated/models/LanguageDto.ts @@ -39,6 +39,7 @@ export interface LanguageDto { nativeName: string; } + /** * Check if a given object implements the LanguageDto interface. */ diff --git a/src/generated/models/LogDownloadDto.ts b/src/generated/models/LogDownloadDto.ts index 07124d1..9c5ff4d 100644 --- a/src/generated/models/LogDownloadDto.ts +++ b/src/generated/models/LogDownloadDto.ts @@ -27,6 +27,7 @@ export interface LogDownloadDto { downloadUrl?: string | null; } + /** * Check if a given object implements the LogDownloadDto interface. */ diff --git a/src/generated/models/ManualRuleTriggerDto.ts b/src/generated/models/ManualRuleTriggerDto.ts index 7334ea9..7a04276 100644 --- a/src/generated/models/ManualRuleTriggerDto.ts +++ b/src/generated/models/ManualRuleTriggerDto.ts @@ -28,6 +28,7 @@ import { export interface ManualRuleTriggerDto extends RuleTriggerDto { } + /** * Check if a given object implements the ManualRuleTriggerDto interface. */ diff --git a/src/generated/models/MediumRuleActionDto.ts b/src/generated/models/MediumRuleActionDto.ts index 78b9b7d..f427402 100644 --- a/src/generated/models/MediumRuleActionDto.ts +++ b/src/generated/models/MediumRuleActionDto.ts @@ -70,6 +70,7 @@ export interface MediumRuleActionDto extends RuleActionDto { isHtml: boolean; } + /** * Check if a given object implements the MediumRuleActionDto interface. */ diff --git a/src/generated/models/MoveAssetDto.ts b/src/generated/models/MoveAssetDto.ts index bc73b98..2dd3b09 100644 --- a/src/generated/models/MoveAssetDto.ts +++ b/src/generated/models/MoveAssetDto.ts @@ -27,6 +27,7 @@ export interface MoveAssetDto { parentId?: string; } + /** * Check if a given object implements the MoveAssetDto interface. */ diff --git a/src/generated/models/MoveAssetFolderDto.ts b/src/generated/models/MoveAssetFolderDto.ts index 52b012f..d15dccd 100644 --- a/src/generated/models/MoveAssetFolderDto.ts +++ b/src/generated/models/MoveAssetFolderDto.ts @@ -27,6 +27,7 @@ export interface MoveAssetFolderDto { parentId?: string; } + /** * Check if a given object implements the MoveAssetFolderDto interface. */ diff --git a/src/generated/models/NestedFieldDto.ts b/src/generated/models/NestedFieldDto.ts index 8da0012..e06d368 100644 --- a/src/generated/models/NestedFieldDto.ts +++ b/src/generated/models/NestedFieldDto.ts @@ -76,6 +76,7 @@ export interface NestedFieldDto { properties: FieldPropertiesDto; } + /** * Check if a given object implements the NestedFieldDto interface. */ diff --git a/src/generated/models/NotificationRuleActionDto.ts b/src/generated/models/NotificationRuleActionDto.ts index 9c5936b..f189427 100644 --- a/src/generated/models/NotificationRuleActionDto.ts +++ b/src/generated/models/NotificationRuleActionDto.ts @@ -52,6 +52,7 @@ export interface NotificationRuleActionDto extends RuleActionDto { client?: string | null; } + /** * Check if a given object implements the NotificationRuleActionDto interface. */ diff --git a/src/generated/models/NumberFieldPropertiesDto.ts b/src/generated/models/NumberFieldPropertiesDto.ts index 17d0277..54e9225 100644 --- a/src/generated/models/NumberFieldPropertiesDto.ts +++ b/src/generated/models/NumberFieldPropertiesDto.ts @@ -84,6 +84,7 @@ export interface NumberFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the NumberFieldPropertiesDto interface. */ diff --git a/src/generated/models/OpenSearchRuleActionDto.ts b/src/generated/models/OpenSearchRuleActionDto.ts index 21ab1d0..8e7cec3 100644 --- a/src/generated/models/OpenSearchRuleActionDto.ts +++ b/src/generated/models/OpenSearchRuleActionDto.ts @@ -64,6 +64,7 @@ export interface OpenSearchRuleActionDto extends RuleActionDto { _delete?: string | null; } + /** * Check if a given object implements the OpenSearchRuleActionDto interface. */ diff --git a/src/generated/models/PatternDto.ts b/src/generated/models/PatternDto.ts index 3f3ffba..496061c 100644 --- a/src/generated/models/PatternDto.ts +++ b/src/generated/models/PatternDto.ts @@ -39,6 +39,7 @@ export interface PatternDto { message?: string | null; } + /** * Check if a given object implements the PatternDto interface. */ diff --git a/src/generated/models/PlanChangedDto.ts b/src/generated/models/PlanChangedDto.ts index 3213482..97f4b8a 100644 --- a/src/generated/models/PlanChangedDto.ts +++ b/src/generated/models/PlanChangedDto.ts @@ -27,6 +27,7 @@ export interface PlanChangedDto { redirectUri?: string | null; } + /** * Check if a given object implements the PlanChangedDto interface. */ diff --git a/src/generated/models/PlanDto.ts b/src/generated/models/PlanDto.ts index d1663c2..940210a 100644 --- a/src/generated/models/PlanDto.ts +++ b/src/generated/models/PlanDto.ts @@ -87,6 +87,7 @@ export interface PlanDto { maxContributors: number; } + /** * Check if a given object implements the PlanDto interface. */ diff --git a/src/generated/models/PlansDto.ts b/src/generated/models/PlansDto.ts index 907c99e..4deed12 100644 --- a/src/generated/models/PlansDto.ts +++ b/src/generated/models/PlansDto.ts @@ -78,6 +78,7 @@ export interface PlansDto { + /** * Check if a given object implements the PlansDto interface. */ diff --git a/src/generated/models/PrerenderRuleActionDto.ts b/src/generated/models/PrerenderRuleActionDto.ts index a280e3a..bcb5f83 100644 --- a/src/generated/models/PrerenderRuleActionDto.ts +++ b/src/generated/models/PrerenderRuleActionDto.ts @@ -40,6 +40,7 @@ export interface PrerenderRuleActionDto extends RuleActionDto { url: string; } + /** * Check if a given object implements the PrerenderRuleActionDto interface. */ diff --git a/src/generated/models/QueryDto.ts b/src/generated/models/QueryDto.ts index 1e29744..fb9f1d7 100644 --- a/src/generated/models/QueryDto.ts +++ b/src/generated/models/QueryDto.ts @@ -45,6 +45,7 @@ export interface QueryDto { parentId?: string | null; } + /** * Check if a given object implements the QueryDto interface. */ diff --git a/src/generated/models/QueryJsonDto.ts b/src/generated/models/QueryJsonDto.ts index e429b3e..c477b44 100644 --- a/src/generated/models/QueryJsonDto.ts +++ b/src/generated/models/QueryJsonDto.ts @@ -70,6 +70,7 @@ export interface QueryJsonDto { sort?: Array | null; } + /** * Check if a given object implements the QueryJsonDto interface. */ diff --git a/src/generated/models/ReferencesFieldPropertiesDto.ts b/src/generated/models/ReferencesFieldPropertiesDto.ts index 03b39d3..ee43959 100644 --- a/src/generated/models/ReferencesFieldPropertiesDto.ts +++ b/src/generated/models/ReferencesFieldPropertiesDto.ts @@ -96,6 +96,7 @@ export interface ReferencesFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the ReferencesFieldPropertiesDto interface. */ diff --git a/src/generated/models/ReferralInfo.ts b/src/generated/models/ReferralInfo.ts index 59b79bc..cb46ab3 100644 --- a/src/generated/models/ReferralInfo.ts +++ b/src/generated/models/ReferralInfo.ts @@ -39,6 +39,7 @@ export interface ReferralInfo { condition: string; } + /** * Check if a given object implements the ReferralInfo interface. */ diff --git a/src/generated/models/RenameAssetFolderDto.ts b/src/generated/models/RenameAssetFolderDto.ts index ef3bc11..dd15486 100644 --- a/src/generated/models/RenameAssetFolderDto.ts +++ b/src/generated/models/RenameAssetFolderDto.ts @@ -27,6 +27,7 @@ export interface RenameAssetFolderDto { folderName: string; } + /** * Check if a given object implements the RenameAssetFolderDto interface. */ diff --git a/src/generated/models/RenameTagDto.ts b/src/generated/models/RenameTagDto.ts index 1d412bb..c9130bb 100644 --- a/src/generated/models/RenameTagDto.ts +++ b/src/generated/models/RenameTagDto.ts @@ -27,6 +27,7 @@ export interface RenameTagDto { tagName: string; } + /** * Check if a given object implements the RenameTagDto interface. */ diff --git a/src/generated/models/ReorderFieldsDto.ts b/src/generated/models/ReorderFieldsDto.ts index 1e973f5..e51988f 100644 --- a/src/generated/models/ReorderFieldsDto.ts +++ b/src/generated/models/ReorderFieldsDto.ts @@ -27,6 +27,7 @@ export interface ReorderFieldsDto { fieldIds: Array; } + /** * Check if a given object implements the ReorderFieldsDto interface. */ diff --git a/src/generated/models/Resource.ts b/src/generated/models/Resource.ts index a979bfa..4df9135 100644 --- a/src/generated/models/Resource.ts +++ b/src/generated/models/Resource.ts @@ -34,6 +34,7 @@ export interface Resource { links: { [key: string]: ResourceLink; }; } + /** * Check if a given object implements the Resource interface. */ diff --git a/src/generated/models/ResourceLink.ts b/src/generated/models/ResourceLink.ts index a0fd580..a528c81 100644 --- a/src/generated/models/ResourceLink.ts +++ b/src/generated/models/ResourceLink.ts @@ -39,6 +39,7 @@ export interface ResourceLink { metadata?: string | null; } + /** * Check if a given object implements the ResourceLink interface. */ diff --git a/src/generated/models/ResourcesDto.ts b/src/generated/models/ResourcesDto.ts index c1ee727..6d4be49 100644 --- a/src/generated/models/ResourcesDto.ts +++ b/src/generated/models/ResourcesDto.ts @@ -34,6 +34,7 @@ export interface ResourcesDto { links: { [key: string]: ResourceLink; }; } + /** * Check if a given object implements the ResourcesDto interface. */ diff --git a/src/generated/models/RestoreJobDto.ts b/src/generated/models/RestoreJobDto.ts index 1d63896..44d18f9 100644 --- a/src/generated/models/RestoreJobDto.ts +++ b/src/generated/models/RestoreJobDto.ts @@ -60,6 +60,7 @@ export interface RestoreJobDto { + /** * Check if a given object implements the RestoreJobDto interface. */ diff --git a/src/generated/models/RestoreRequestDto.ts b/src/generated/models/RestoreRequestDto.ts index 81e059b..6ec16d0 100644 --- a/src/generated/models/RestoreRequestDto.ts +++ b/src/generated/models/RestoreRequestDto.ts @@ -33,6 +33,7 @@ export interface RestoreRequestDto { url: string; } + /** * Check if a given object implements the RestoreRequestDto interface. */ diff --git a/src/generated/models/RichTextFieldPropertiesDto.ts b/src/generated/models/RichTextFieldPropertiesDto.ts index bf8daff..dc01763 100644 --- a/src/generated/models/RichTextFieldPropertiesDto.ts +++ b/src/generated/models/RichTextFieldPropertiesDto.ts @@ -82,6 +82,7 @@ export interface RichTextFieldPropertiesDto extends FieldPropertiesDto { schemaIds?: Array | null; } + /** * Check if a given object implements the RichTextFieldPropertiesDto interface. */ diff --git a/src/generated/models/RoleDto.ts b/src/generated/models/RoleDto.ts index 378e00d..ce52aac 100644 --- a/src/generated/models/RoleDto.ts +++ b/src/generated/models/RoleDto.ts @@ -70,6 +70,7 @@ export interface RoleDto { properties: { [key: string]: any; }; } + /** * Check if a given object implements the RoleDto interface. */ diff --git a/src/generated/models/RolesDto.ts b/src/generated/models/RolesDto.ts index 8f286c9..6a0ab27 100644 --- a/src/generated/models/RolesDto.ts +++ b/src/generated/models/RolesDto.ts @@ -46,6 +46,7 @@ export interface RolesDto { items: Array; } + /** * Check if a given object implements the RolesDto interface. */ diff --git a/src/generated/models/RuleActionDto.ts b/src/generated/models/RuleActionDto.ts index 38553d0..b269b87 100644 --- a/src/generated/models/RuleActionDto.ts +++ b/src/generated/models/RuleActionDto.ts @@ -45,6 +45,79 @@ export interface RuleActionDto { actionType: string; } +export function isAlgoliaRuleActionDto(value: RuleActionDto): value is AlgoliaRuleActionDto { + return value['actionType'] === 'Algolia'; +} + +export function isAzureQueueRuleActionDto(value: RuleActionDto): value is AzureQueueRuleActionDto { + return value['actionType'] === 'AzureQueue'; +} + +export function isCommentRuleActionDto(value: RuleActionDto): value is CommentRuleActionDto { + return value['actionType'] === 'Comment'; +} + +export function isCreateContentRuleActionDto(value: RuleActionDto): value is CreateContentRuleActionDto { + return value['actionType'] === 'CreateContent'; +} + +export function isDiscourseRuleActionDto(value: RuleActionDto): value is DiscourseRuleActionDto { + return value['actionType'] === 'Discourse'; +} + +export function isElasticSearchRuleActionDto(value: RuleActionDto): value is ElasticSearchRuleActionDto { + return value['actionType'] === 'ElasticSearch'; +} + +export function isEmailRuleActionDto(value: RuleActionDto): value is EmailRuleActionDto { + return value['actionType'] === 'Email'; +} + +export function isFastlyRuleActionDto(value: RuleActionDto): value is FastlyRuleActionDto { + return value['actionType'] === 'Fastly'; +} + +export function isMediumRuleActionDto(value: RuleActionDto): value is MediumRuleActionDto { + return value['actionType'] === 'Medium'; +} + +export function isNotificationRuleActionDto(value: RuleActionDto): value is NotificationRuleActionDto { + return value['actionType'] === 'Notification'; +} + +export function isOpenSearchRuleActionDto(value: RuleActionDto): value is OpenSearchRuleActionDto { + return value['actionType'] === 'OpenSearch'; +} + +export function isPrerenderRuleActionDto(value: RuleActionDto): value is PrerenderRuleActionDto { + return value['actionType'] === 'Prerender'; +} + +export function isScriptRuleActionDto(value: RuleActionDto): value is ScriptRuleActionDto { + return value['actionType'] === 'Script'; +} + +export function isSignalRRuleActionDto(value: RuleActionDto): value is SignalRRuleActionDto { + return value['actionType'] === 'SignalR'; +} + +export function isSlackRuleActionDto(value: RuleActionDto): value is SlackRuleActionDto { + return value['actionType'] === 'Slack'; +} + +export function isTweetRuleActionDto(value: RuleActionDto): value is TweetRuleActionDto { + return value['actionType'] === 'Tweet'; +} + +export function isTypesenseRuleActionDto(value: RuleActionDto): value is TypesenseRuleActionDto { + return value['actionType'] === 'Typesense'; +} + +export function isWebhookRuleActionDto(value: RuleActionDto): value is WebhookRuleActionDto { + return value['actionType'] === 'Webhook'; +} + + /** * Check if a given object implements the RuleActionDto interface. */ diff --git a/src/generated/models/RuleDto.ts b/src/generated/models/RuleDto.ts index 21380ad..df729dd 100644 --- a/src/generated/models/RuleDto.ts +++ b/src/generated/models/RuleDto.ts @@ -125,6 +125,7 @@ export interface RuleDto { lastExecuted?: Date | null; } + /** * Check if a given object implements the RuleDto interface. */ diff --git a/src/generated/models/RuleElementDto.ts b/src/generated/models/RuleElementDto.ts index 1d5b344..f612668 100644 --- a/src/generated/models/RuleElementDto.ts +++ b/src/generated/models/RuleElementDto.ts @@ -70,6 +70,7 @@ export interface RuleElementDto { properties: Array; } + /** * Check if a given object implements the RuleElementDto interface. */ diff --git a/src/generated/models/RuleElementPropertyDto.ts b/src/generated/models/RuleElementPropertyDto.ts index 79e74da..9c291ec 100644 --- a/src/generated/models/RuleElementPropertyDto.ts +++ b/src/generated/models/RuleElementPropertyDto.ts @@ -72,6 +72,7 @@ export interface RuleElementPropertyDto { + /** * Check if a given object implements the RuleElementPropertyDto interface. */ diff --git a/src/generated/models/RuleEventDto.ts b/src/generated/models/RuleEventDto.ts index 09f914e..b1236b9 100644 --- a/src/generated/models/RuleEventDto.ts +++ b/src/generated/models/RuleEventDto.ts @@ -102,6 +102,7 @@ export interface RuleEventDto { + /** * Check if a given object implements the RuleEventDto interface. */ diff --git a/src/generated/models/RuleEventsDto.ts b/src/generated/models/RuleEventsDto.ts index 7d9ac7c..35f59ac 100644 --- a/src/generated/models/RuleEventsDto.ts +++ b/src/generated/models/RuleEventsDto.ts @@ -52,6 +52,7 @@ export interface RuleEventsDto { items: Array; } + /** * Check if a given object implements the RuleEventsDto interface. */ diff --git a/src/generated/models/RuleTriggerDto.ts b/src/generated/models/RuleTriggerDto.ts index a470d90..37b5d0f 100644 --- a/src/generated/models/RuleTriggerDto.ts +++ b/src/generated/models/RuleTriggerDto.ts @@ -33,6 +33,31 @@ export interface RuleTriggerDto { triggerType: string; } +export function isAssetChangedRuleTriggerDto(value: RuleTriggerDto): value is AssetChangedRuleTriggerDto { + return value['triggerType'] === 'AssetChanged'; +} + +export function isCommentRuleTriggerDto(value: RuleTriggerDto): value is CommentRuleTriggerDto { + return value['triggerType'] === 'Comment'; +} + +export function isContentChangedRuleTriggerDto(value: RuleTriggerDto): value is ContentChangedRuleTriggerDto { + return value['triggerType'] === 'ContentChanged'; +} + +export function isManualRuleTriggerDto(value: RuleTriggerDto): value is ManualRuleTriggerDto { + return value['triggerType'] === 'Manual'; +} + +export function isSchemaChangedRuleTriggerDto(value: RuleTriggerDto): value is SchemaChangedRuleTriggerDto { + return value['triggerType'] === 'SchemaChanged'; +} + +export function isUsageRuleTriggerDto(value: RuleTriggerDto): value is UsageRuleTriggerDto { + return value['triggerType'] === 'Usage'; +} + + /** * Check if a given object implements the RuleTriggerDto interface. */ diff --git a/src/generated/models/RulesDto.ts b/src/generated/models/RulesDto.ts index 55b791a..9ef3aeb 100644 --- a/src/generated/models/RulesDto.ts +++ b/src/generated/models/RulesDto.ts @@ -52,6 +52,7 @@ export interface RulesDto { runningRuleId?: string | null; } + /** * Check if a given object implements the RulesDto interface. */ diff --git a/src/generated/models/ScheduleJobDto.ts b/src/generated/models/ScheduleJobDto.ts index 357929a..908cec0 100644 --- a/src/generated/models/ScheduleJobDto.ts +++ b/src/generated/models/ScheduleJobDto.ts @@ -51,6 +51,7 @@ export interface ScheduleJobDto { scheduledBy: string; } + /** * Check if a given object implements the ScheduleJobDto interface. */ diff --git a/src/generated/models/SchemaChangedRuleTriggerDto.ts b/src/generated/models/SchemaChangedRuleTriggerDto.ts index d9f0e92..f16cad6 100644 --- a/src/generated/models/SchemaChangedRuleTriggerDto.ts +++ b/src/generated/models/SchemaChangedRuleTriggerDto.ts @@ -34,6 +34,7 @@ export interface SchemaChangedRuleTriggerDto extends RuleTriggerDto { condition?: string | null; } + /** * Check if a given object implements the SchemaChangedRuleTriggerDto interface. */ diff --git a/src/generated/models/SchemaCondition.ts b/src/generated/models/SchemaCondition.ts index c0ca27d..248fe3d 100644 --- a/src/generated/models/SchemaCondition.ts +++ b/src/generated/models/SchemaCondition.ts @@ -33,6 +33,7 @@ export interface SchemaCondition { condition?: string | null; } + /** * Check if a given object implements the SchemaCondition interface. */ diff --git a/src/generated/models/SchemaDto.ts b/src/generated/models/SchemaDto.ts index fd7b8ff..1434947 100644 --- a/src/generated/models/SchemaDto.ts +++ b/src/generated/models/SchemaDto.ts @@ -175,6 +175,7 @@ export interface SchemaDto { + /** * Check if a given object implements the SchemaDto interface. */ diff --git a/src/generated/models/SchemaPropertiesDto.ts b/src/generated/models/SchemaPropertiesDto.ts index 38a0943..808d4f6 100644 --- a/src/generated/models/SchemaPropertiesDto.ts +++ b/src/generated/models/SchemaPropertiesDto.ts @@ -75,6 +75,7 @@ export interface SchemaPropertiesDto { tags?: Array | null; } + /** * Check if a given object implements the SchemaPropertiesDto interface. */ diff --git a/src/generated/models/SchemaScriptsDto.ts b/src/generated/models/SchemaScriptsDto.ts index c7db9d3..a2cf0c0 100644 --- a/src/generated/models/SchemaScriptsDto.ts +++ b/src/generated/models/SchemaScriptsDto.ts @@ -57,6 +57,7 @@ export interface SchemaScriptsDto { change?: string | null; } + /** * Check if a given object implements the SchemaScriptsDto interface. */ diff --git a/src/generated/models/SchemasDto.ts b/src/generated/models/SchemasDto.ts index 81857b8..ba2e9de 100644 --- a/src/generated/models/SchemasDto.ts +++ b/src/generated/models/SchemasDto.ts @@ -46,6 +46,7 @@ export interface SchemasDto { items: Array; } + /** * Check if a given object implements the SchemasDto interface. */ diff --git a/src/generated/models/ScriptRuleActionDto.ts b/src/generated/models/ScriptRuleActionDto.ts index fa9243f..669f5dd 100644 --- a/src/generated/models/ScriptRuleActionDto.ts +++ b/src/generated/models/ScriptRuleActionDto.ts @@ -34,6 +34,7 @@ export interface ScriptRuleActionDto extends RuleActionDto { script: string; } + /** * Check if a given object implements the ScriptRuleActionDto interface. */ diff --git a/src/generated/models/SearchResultDto.ts b/src/generated/models/SearchResultDto.ts index a7dde07..48645f5 100644 --- a/src/generated/models/SearchResultDto.ts +++ b/src/generated/models/SearchResultDto.ts @@ -60,6 +60,7 @@ export interface SearchResultDto { + /** * Check if a given object implements the SearchResultDto interface. */ diff --git a/src/generated/models/SignalRRuleActionDto.ts b/src/generated/models/SignalRRuleActionDto.ts index b14c183..70f3c4b 100644 --- a/src/generated/models/SignalRRuleActionDto.ts +++ b/src/generated/models/SignalRRuleActionDto.ts @@ -72,6 +72,7 @@ export interface SignalRRuleActionDto extends RuleActionDto { + /** * Check if a given object implements the SignalRRuleActionDto interface. */ diff --git a/src/generated/models/SimulatedRuleEventDto.ts b/src/generated/models/SimulatedRuleEventDto.ts index 8ea4a23..c771be8 100644 --- a/src/generated/models/SimulatedRuleEventDto.ts +++ b/src/generated/models/SimulatedRuleEventDto.ts @@ -82,6 +82,7 @@ export interface SimulatedRuleEventDto { skipReasons: Array; } + /** * Check if a given object implements the SimulatedRuleEventDto interface. */ diff --git a/src/generated/models/SimulatedRuleEventsDto.ts b/src/generated/models/SimulatedRuleEventsDto.ts index e5a585d..d044cd8 100644 --- a/src/generated/models/SimulatedRuleEventsDto.ts +++ b/src/generated/models/SimulatedRuleEventsDto.ts @@ -52,6 +52,7 @@ export interface SimulatedRuleEventsDto { items: Array; } + /** * Check if a given object implements the SimulatedRuleEventsDto interface. */ diff --git a/src/generated/models/SlackRuleActionDto.ts b/src/generated/models/SlackRuleActionDto.ts index ef489d2..e02afaa 100644 --- a/src/generated/models/SlackRuleActionDto.ts +++ b/src/generated/models/SlackRuleActionDto.ts @@ -40,6 +40,7 @@ export interface SlackRuleActionDto extends RuleActionDto { text: string; } + /** * Check if a given object implements the SlackRuleActionDto interface. */ diff --git a/src/generated/models/SortNode.ts b/src/generated/models/SortNode.ts index 36ee763..8b03c9f 100644 --- a/src/generated/models/SortNode.ts +++ b/src/generated/models/SortNode.ts @@ -42,6 +42,7 @@ export interface SortNode { + /** * Check if a given object implements the SortNode interface. */ diff --git a/src/generated/models/StatusInfoDto.ts b/src/generated/models/StatusInfoDto.ts index b55cb5c..5bf19df 100644 --- a/src/generated/models/StatusInfoDto.ts +++ b/src/generated/models/StatusInfoDto.ts @@ -33,6 +33,7 @@ export interface StatusInfoDto { color: string; } + /** * Check if a given object implements the StatusInfoDto interface. */ diff --git a/src/generated/models/StorageUsagePerDateDto.ts b/src/generated/models/StorageUsagePerDateDto.ts index 52bff0b..6da4efb 100644 --- a/src/generated/models/StorageUsagePerDateDto.ts +++ b/src/generated/models/StorageUsagePerDateDto.ts @@ -39,6 +39,7 @@ export interface StorageUsagePerDateDto { totalSize: number; } + /** * Check if a given object implements the StorageUsagePerDateDto interface. */ diff --git a/src/generated/models/StringFieldPropertiesDto.ts b/src/generated/models/StringFieldPropertiesDto.ts index cb886e5..d8911cd 100644 --- a/src/generated/models/StringFieldPropertiesDto.ts +++ b/src/generated/models/StringFieldPropertiesDto.ts @@ -162,6 +162,7 @@ export interface StringFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the StringFieldPropertiesDto interface. */ diff --git a/src/generated/models/SynchronizeSchemaDto.ts b/src/generated/models/SynchronizeSchemaDto.ts index 56e9a72..9ddfce9 100644 --- a/src/generated/models/SynchronizeSchemaDto.ts +++ b/src/generated/models/SynchronizeSchemaDto.ts @@ -112,6 +112,7 @@ export interface SynchronizeSchemaDto { noFieldRecreation?: boolean; } + /** * Check if a given object implements the SynchronizeSchemaDto interface. */ diff --git a/src/generated/models/TagsFieldPropertiesDto.ts b/src/generated/models/TagsFieldPropertiesDto.ts index a9effdd..3a50037 100644 --- a/src/generated/models/TagsFieldPropertiesDto.ts +++ b/src/generated/models/TagsFieldPropertiesDto.ts @@ -78,6 +78,7 @@ export interface TagsFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the TagsFieldPropertiesDto interface. */ diff --git a/src/generated/models/TeamDto.ts b/src/generated/models/TeamDto.ts index 5e48043..e37cec7 100644 --- a/src/generated/models/TeamDto.ts +++ b/src/generated/models/TeamDto.ts @@ -70,6 +70,7 @@ export interface TeamDto { roleName?: string | null; } + /** * Check if a given object implements the TeamDto interface. */ diff --git a/src/generated/models/TemplateDetailsDto.ts b/src/generated/models/TemplateDetailsDto.ts index d039b42..1f903d6 100644 --- a/src/generated/models/TemplateDetailsDto.ts +++ b/src/generated/models/TemplateDetailsDto.ts @@ -40,6 +40,7 @@ export interface TemplateDetailsDto { details: string; } + /** * Check if a given object implements the TemplateDetailsDto interface. */ diff --git a/src/generated/models/TemplateDto.ts b/src/generated/models/TemplateDto.ts index 923318e..e132776 100644 --- a/src/generated/models/TemplateDto.ts +++ b/src/generated/models/TemplateDto.ts @@ -58,6 +58,7 @@ export interface TemplateDto { isStarter: boolean; } + /** * Check if a given object implements the TemplateDto interface. */ diff --git a/src/generated/models/TemplatesDto.ts b/src/generated/models/TemplatesDto.ts index 89de0c7..22ad7af 100644 --- a/src/generated/models/TemplatesDto.ts +++ b/src/generated/models/TemplatesDto.ts @@ -46,6 +46,7 @@ export interface TemplatesDto { items: Array; } + /** * Check if a given object implements the TemplatesDto interface. */ diff --git a/src/generated/models/TransferToTeamDto.ts b/src/generated/models/TransferToTeamDto.ts index 7a71fbb..76f7f54 100644 --- a/src/generated/models/TransferToTeamDto.ts +++ b/src/generated/models/TransferToTeamDto.ts @@ -27,6 +27,7 @@ export interface TransferToTeamDto { teamId?: string | null; } + /** * Check if a given object implements the TransferToTeamDto interface. */ diff --git a/src/generated/models/TranslateDto.ts b/src/generated/models/TranslateDto.ts index 0d8c647..7eae5fb 100644 --- a/src/generated/models/TranslateDto.ts +++ b/src/generated/models/TranslateDto.ts @@ -39,6 +39,7 @@ export interface TranslateDto { sourceLanguage?: string; } + /** * Check if a given object implements the TranslateDto interface. */ diff --git a/src/generated/models/TranslationDto.ts b/src/generated/models/TranslationDto.ts index 8230bf5..fff5341 100644 --- a/src/generated/models/TranslationDto.ts +++ b/src/generated/models/TranslationDto.ts @@ -48,6 +48,7 @@ export interface TranslationDto { + /** * Check if a given object implements the TranslationDto interface. */ diff --git a/src/generated/models/TweetRuleActionDto.ts b/src/generated/models/TweetRuleActionDto.ts index d86a7b4..bf710c9 100644 --- a/src/generated/models/TweetRuleActionDto.ts +++ b/src/generated/models/TweetRuleActionDto.ts @@ -46,6 +46,7 @@ export interface TweetRuleActionDto extends RuleActionDto { text: string; } + /** * Check if a given object implements the TweetRuleActionDto interface. */ diff --git a/src/generated/models/TypesenseRuleActionDto.ts b/src/generated/models/TypesenseRuleActionDto.ts index 0aca8a2..9e35ef4 100644 --- a/src/generated/models/TypesenseRuleActionDto.ts +++ b/src/generated/models/TypesenseRuleActionDto.ts @@ -58,6 +58,7 @@ export interface TypesenseRuleActionDto extends RuleActionDto { _delete?: string | null; } + /** * Check if a given object implements the TypesenseRuleActionDto interface. */ diff --git a/src/generated/models/UIFieldPropertiesDto.ts b/src/generated/models/UIFieldPropertiesDto.ts index 3167a50..0146a38 100644 --- a/src/generated/models/UIFieldPropertiesDto.ts +++ b/src/generated/models/UIFieldPropertiesDto.ts @@ -42,6 +42,7 @@ export interface UIFieldPropertiesDto extends FieldPropertiesDto { + /** * Check if a given object implements the UIFieldPropertiesDto interface. */ diff --git a/src/generated/models/UpdateAppDto.ts b/src/generated/models/UpdateAppDto.ts index 8973a1e..d4840f2 100644 --- a/src/generated/models/UpdateAppDto.ts +++ b/src/generated/models/UpdateAppDto.ts @@ -33,6 +33,7 @@ export interface UpdateAppDto { description?: string | null; } + /** * Check if a given object implements the UpdateAppDto interface. */ diff --git a/src/generated/models/UpdateAppSettingsDto.ts b/src/generated/models/UpdateAppSettingsDto.ts index ee99d04..e6feb59 100644 --- a/src/generated/models/UpdateAppSettingsDto.ts +++ b/src/generated/models/UpdateAppSettingsDto.ts @@ -58,6 +58,7 @@ export interface UpdateAppSettingsDto { hideDateTimeModeButton?: boolean; } + /** * Check if a given object implements the UpdateAppSettingsDto interface. */ diff --git a/src/generated/models/UpdateAssetScriptsDto.ts b/src/generated/models/UpdateAssetScriptsDto.ts index 43d4b22..a405f53 100644 --- a/src/generated/models/UpdateAssetScriptsDto.ts +++ b/src/generated/models/UpdateAssetScriptsDto.ts @@ -63,6 +63,7 @@ export interface UpdateAssetScriptsDto { _delete?: string | null; } + /** * Check if a given object implements the UpdateAssetScriptsDto interface. */ diff --git a/src/generated/models/UpdateClientDto.ts b/src/generated/models/UpdateClientDto.ts index f0931b9..725c113 100644 --- a/src/generated/models/UpdateClientDto.ts +++ b/src/generated/models/UpdateClientDto.ts @@ -51,6 +51,7 @@ export interface UpdateClientDto { apiTrafficLimit?: number | null; } + /** * Check if a given object implements the UpdateClientDto interface. */ diff --git a/src/generated/models/UpdateFieldDto.ts b/src/generated/models/UpdateFieldDto.ts index c24bbad..3ccb60c 100644 --- a/src/generated/models/UpdateFieldDto.ts +++ b/src/generated/models/UpdateFieldDto.ts @@ -34,6 +34,7 @@ export interface UpdateFieldDto { properties: FieldPropertiesDto; } + /** * Check if a given object implements the UpdateFieldDto interface. */ diff --git a/src/generated/models/UpdateLanguageDto.ts b/src/generated/models/UpdateLanguageDto.ts index cacfdd8..7a90d8c 100644 --- a/src/generated/models/UpdateLanguageDto.ts +++ b/src/generated/models/UpdateLanguageDto.ts @@ -39,6 +39,7 @@ export interface UpdateLanguageDto { fallback?: Array | null; } + /** * Check if a given object implements the UpdateLanguageDto interface. */ diff --git a/src/generated/models/UpdateProfileDto.ts b/src/generated/models/UpdateProfileDto.ts index eda200e..9494860 100644 --- a/src/generated/models/UpdateProfileDto.ts +++ b/src/generated/models/UpdateProfileDto.ts @@ -27,6 +27,7 @@ export interface UpdateProfileDto { answers?: { [key: string]: string | null; } | null; } + /** * Check if a given object implements the UpdateProfileDto interface. */ diff --git a/src/generated/models/UpdateRoleDto.ts b/src/generated/models/UpdateRoleDto.ts index 4421d5b..98fc2a5 100644 --- a/src/generated/models/UpdateRoleDto.ts +++ b/src/generated/models/UpdateRoleDto.ts @@ -33,6 +33,7 @@ export interface UpdateRoleDto { properties?: { [key: string]: any; }; } + /** * Check if a given object implements the UpdateRoleDto interface. */ diff --git a/src/generated/models/UpdateRuleDto.ts b/src/generated/models/UpdateRuleDto.ts index f02da43..a31951e 100644 --- a/src/generated/models/UpdateRuleDto.ts +++ b/src/generated/models/UpdateRuleDto.ts @@ -58,6 +58,7 @@ export interface UpdateRuleDto { isEnabled?: boolean | null; } + /** * Check if a given object implements the UpdateRuleDto interface. */ diff --git a/src/generated/models/UpdateSchemaDto.ts b/src/generated/models/UpdateSchemaDto.ts index cfcd10a..22dc5cb 100644 --- a/src/generated/models/UpdateSchemaDto.ts +++ b/src/generated/models/UpdateSchemaDto.ts @@ -63,6 +63,7 @@ export interface UpdateSchemaDto { tags?: Array | null; } + /** * Check if a given object implements the UpdateSchemaDto interface. */ diff --git a/src/generated/models/UpdateSettingDto.ts b/src/generated/models/UpdateSettingDto.ts index 1903fcf..b64d318 100644 --- a/src/generated/models/UpdateSettingDto.ts +++ b/src/generated/models/UpdateSettingDto.ts @@ -27,6 +27,7 @@ export interface UpdateSettingDto { value: any | null; } + /** * Check if a given object implements the UpdateSettingDto interface. */ diff --git a/src/generated/models/UpdateTeamDto.ts b/src/generated/models/UpdateTeamDto.ts index baeb6b7..df61ad7 100644 --- a/src/generated/models/UpdateTeamDto.ts +++ b/src/generated/models/UpdateTeamDto.ts @@ -27,6 +27,7 @@ export interface UpdateTeamDto { name: string; } + /** * Check if a given object implements the UpdateTeamDto interface. */ diff --git a/src/generated/models/UpdateUserDto.ts b/src/generated/models/UpdateUserDto.ts index 06a8618..a448d9b 100644 --- a/src/generated/models/UpdateUserDto.ts +++ b/src/generated/models/UpdateUserDto.ts @@ -45,6 +45,7 @@ export interface UpdateUserDto { permissions: Array; } + /** * Check if a given object implements the UpdateUserDto interface. */ diff --git a/src/generated/models/UpdateWorkflowDto.ts b/src/generated/models/UpdateWorkflowDto.ts index 5ff6ed3..d1d1c09 100644 --- a/src/generated/models/UpdateWorkflowDto.ts +++ b/src/generated/models/UpdateWorkflowDto.ts @@ -52,6 +52,7 @@ export interface UpdateWorkflowDto { initial: string; } + /** * Check if a given object implements the UpdateWorkflowDto interface. */ diff --git a/src/generated/models/UpsertSchemaDto.ts b/src/generated/models/UpsertSchemaDto.ts index f843e58..abd8e93 100644 --- a/src/generated/models/UpsertSchemaDto.ts +++ b/src/generated/models/UpsertSchemaDto.ts @@ -100,6 +100,7 @@ export interface UpsertSchemaDto { isPublished?: boolean; } + /** * Check if a given object implements the UpsertSchemaDto interface. */ diff --git a/src/generated/models/UpsertSchemaFieldDto.ts b/src/generated/models/UpsertSchemaFieldDto.ts index cc3762d..6c74c49 100644 --- a/src/generated/models/UpsertSchemaFieldDto.ts +++ b/src/generated/models/UpsertSchemaFieldDto.ts @@ -76,6 +76,7 @@ export interface UpsertSchemaFieldDto { nested?: Array | null; } + /** * Check if a given object implements the UpsertSchemaFieldDto interface. */ diff --git a/src/generated/models/UpsertSchemaNestedFieldDto.ts b/src/generated/models/UpsertSchemaNestedFieldDto.ts index 81de061..19a2c9f 100644 --- a/src/generated/models/UpsertSchemaNestedFieldDto.ts +++ b/src/generated/models/UpsertSchemaNestedFieldDto.ts @@ -58,6 +58,7 @@ export interface UpsertSchemaNestedFieldDto { properties: FieldPropertiesDto; } + /** * Check if a given object implements the UpsertSchemaNestedFieldDto interface. */ diff --git a/src/generated/models/UsageRuleTriggerDto.ts b/src/generated/models/UsageRuleTriggerDto.ts index b328fda..2fd0316 100644 --- a/src/generated/models/UsageRuleTriggerDto.ts +++ b/src/generated/models/UsageRuleTriggerDto.ts @@ -40,6 +40,7 @@ export interface UsageRuleTriggerDto extends RuleTriggerDto { numDays?: number | null; } + /** * Check if a given object implements the UsageRuleTriggerDto interface. */ diff --git a/src/generated/models/UserDto.ts b/src/generated/models/UserDto.ts index 3ffde4a..4eaa001 100644 --- a/src/generated/models/UserDto.ts +++ b/src/generated/models/UserDto.ts @@ -64,6 +64,7 @@ export interface UserDto { permissions: Array; } + /** * Check if a given object implements the UserDto interface. */ diff --git a/src/generated/models/UserProperty.ts b/src/generated/models/UserProperty.ts index a9fa845..6aab7a5 100644 --- a/src/generated/models/UserProperty.ts +++ b/src/generated/models/UserProperty.ts @@ -33,6 +33,7 @@ export interface UserProperty { value: string; } + /** * Check if a given object implements the UserProperty interface. */ diff --git a/src/generated/models/UsersDto.ts b/src/generated/models/UsersDto.ts index c5ca215..f7d56a5 100644 --- a/src/generated/models/UsersDto.ts +++ b/src/generated/models/UsersDto.ts @@ -52,6 +52,7 @@ export interface UsersDto { items: Array; } + /** * Check if a given object implements the UsersDto interface. */ diff --git a/src/generated/models/WebhookRuleActionDto.ts b/src/generated/models/WebhookRuleActionDto.ts index 9665b80..617bb2e 100644 --- a/src/generated/models/WebhookRuleActionDto.ts +++ b/src/generated/models/WebhookRuleActionDto.ts @@ -72,6 +72,7 @@ export interface WebhookRuleActionDto extends RuleActionDto { + /** * Check if a given object implements the WebhookRuleActionDto interface. */ diff --git a/src/generated/models/WorkflowDto.ts b/src/generated/models/WorkflowDto.ts index 5696ded..b42d1e4 100644 --- a/src/generated/models/WorkflowDto.ts +++ b/src/generated/models/WorkflowDto.ts @@ -70,6 +70,7 @@ export interface WorkflowDto { initial: string; } + /** * Check if a given object implements the WorkflowDto interface. */ diff --git a/src/generated/models/WorkflowStepDto.ts b/src/generated/models/WorkflowStepDto.ts index 7bcbc22..1218fa9 100644 --- a/src/generated/models/WorkflowStepDto.ts +++ b/src/generated/models/WorkflowStepDto.ts @@ -64,6 +64,7 @@ export interface WorkflowStepDto { noUpdateRoles?: Array | null; } + /** * Check if a given object implements the WorkflowStepDto interface. */ diff --git a/src/generated/models/WorkflowTransitionDto.ts b/src/generated/models/WorkflowTransitionDto.ts index 1e5535b..0818001 100644 --- a/src/generated/models/WorkflowTransitionDto.ts +++ b/src/generated/models/WorkflowTransitionDto.ts @@ -33,6 +33,7 @@ export interface WorkflowTransitionDto { roles?: Array | null; } + /** * Check if a given object implements the WorkflowTransitionDto interface. */ diff --git a/src/generated/models/WorkflowsDto.ts b/src/generated/models/WorkflowsDto.ts index 68efe61..4851f11 100644 --- a/src/generated/models/WorkflowsDto.ts +++ b/src/generated/models/WorkflowsDto.ts @@ -52,6 +52,7 @@ export interface WorkflowsDto { errors: Array; } + /** * Check if a given object implements the WorkflowsDto interface. */ diff --git a/templates/modelGeneric.mustache b/templates/modelGeneric.mustache index ed8aaef..998c416 100644 --- a/templates/modelGeneric.mustache +++ b/templates/modelGeneric.mustache @@ -17,6 +17,15 @@ import { {{modelName}}, {{modelName}}FromJSONTyped, {{modelName}}ToJSON } from ' {{/discriminator}} {{>modelGenericInterfaces}} +{{#discriminator}} +{{#discriminator.mappedModels}} +export function is{{modelName}}(value: {{classname}}): value is {{modelName}} { + return value['{{discriminator.propertyBaseName}}'] === '{{mappingName}}'; +} + +{{/discriminator.mappedModels}} +{{/discriminator}} + /** * Check if a given object implements the {{classname}} interface. */ From 4a8c9a0be5a8a11ba2d1234c02eb402dd599c28e Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 17:45:28 +0200 Subject: [PATCH 05/16] Fix CI. --- .github/workflows/test.yml | 4 ++-- package.json | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22df967..0229621 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,8 +26,8 @@ jobs: volumes: ${{ github.workspace }}:/src run: | cd /src - yarn install - ./test.sh + npm install + npm test - name: Test - Dump docker logs on failure if: failure() diff --git a/package.json b/package.json index e5dd7d1..eaf3b3a 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,9 @@ "format:tests": "prettier --write tests/**/*.ts", "build": "tsc", "prepack": "cp -rv dist/. .", - "test": "jest tests/assets.test.ts" + "test": "jest tests" }, "dependencies": { - "@types/url-join": "4.0.1", - "@ungap/url-search-params": "0.2.2", - "axios": "0.27.2", - "form-data": "4.0.0", - "js-base64": "3.7.2", "url-join": "4.0.1" }, "devDependencies": { From 0c8b074b2d8353ee6bc6daeee03b943179b59e59 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 18:06:10 +0200 Subject: [PATCH 06/16] Simplify templates. --- openapi.json | 2572 +++-------------------- src/generated/apis/AppsApi.ts | 275 +-- src/generated/apis/AssetsApi.ts | 85 +- src/generated/apis/BackupsApi.ts | 46 +- src/generated/apis/ContentsApi.ts | 88 +- src/generated/apis/DiagnosticsApi.ts | 4 +- src/generated/apis/EventConsumersApi.ts | 11 +- src/generated/apis/HistoryApi.ts | 8 +- src/generated/apis/JobsApi.ts | 22 +- src/generated/apis/LanguagesApi.ts | 2 +- src/generated/apis/NewsApi.ts | 3 +- src/generated/apis/PingApi.ts | 20 +- src/generated/apis/PlansApi.ts | 25 +- src/generated/apis/RulesApi.ts | 96 +- src/generated/apis/SchemasApi.ts | 106 +- src/generated/apis/SearchApi.ts | 5 +- src/generated/apis/StatisticsApi.ts | 47 +- src/generated/apis/TeamsApi.ts | 32 +- src/generated/apis/TemplatesApi.ts | 5 +- src/generated/apis/TranslationsApi.ts | 3 +- src/generated/apis/UserManagementApi.ts | 21 +- src/generated/apis/UsersApi.ts | 14 +- templates/apis.mustache | 33 +- tests/assets.test.ts | 2 +- 24 files changed, 648 insertions(+), 2877 deletions(-) diff --git a/openapi.json b/openapi.json index 64a45c3..5f5699b 100644 --- a/openapi.json +++ b/openapi.json @@ -86,8 +86,7 @@ ] } ], - "x-fern-sdk-group-name": "userManagement", - "x-fern-sdk-method-name": "getUsers" + "x-method-name": "getUsers" }, "post": { "tags": [ @@ -147,8 +146,7 @@ ] } ], - "x-fern-sdk-group-name": "userManagement", - "x-fern-sdk-method-name": "postUser" + "x-method-name": "postUser" } }, "/api/user-management/{id}": { @@ -202,8 +200,7 @@ ] } ], - "x-fern-sdk-group-name": "userManagement", - "x-fern-sdk-method-name": "getUser" + "x-method-name": "getUser" }, "put": { "tags": [ @@ -278,8 +275,7 @@ ] } ], - "x-fern-sdk-group-name": "userManagement", - "x-fern-sdk-method-name": "putUser" + "x-method-name": "putUser" }, "delete": { "tags": [ @@ -344,8 +340,7 @@ ] } ], - "x-fern-sdk-group-name": "userManagement", - "x-fern-sdk-method-name": "deleteUser" + "x-method-name": "deleteUser" } }, "/api/user-management/{id}/lock": { @@ -419,8 +414,7 @@ ] } ], - "x-fern-sdk-group-name": "userManagement", - "x-fern-sdk-method-name": "lockUser" + "x-method-name": "lockUser" } }, "/api/user-management/{id}/unlock": { @@ -494,8 +488,7 @@ ] } ], - "x-fern-sdk-group-name": "userManagement", - "x-fern-sdk-method-name": "unlockUser" + "x-method-name": "unlockUser" } }, "/api": { @@ -532,8 +525,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "users", - "x-fern-sdk-method-name": "getUserResources" + "x-method-name": "getUserResources" } }, "/api/user": { @@ -586,8 +578,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "users", - "x-fern-sdk-method-name": "postUser" + "x-method-name": "postUser" } }, "/api/users": { @@ -639,8 +630,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "users", - "x-fern-sdk-method-name": "getUsers" + "x-method-name": "getUsers" } }, "/api/users/{id}": { @@ -692,8 +682,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "users", - "x-fern-sdk-method-name": "getUser" + "x-method-name": "getUser" } }, "/api/users/{id}/picture": { @@ -741,31 +730,16 @@ } } }, - "x-fern-sdk-group-name": "users", - "x-fern-sdk-method-name": "getUserPicture" + "x-method-name": "getUserPicture" } }, - "/api/apps/{app}/translations": { + "/api/apps/$app$/translations": { "post": { "tags": [ "Translations" ], "summary": "Translate a text.", "operationId": "Translations_PostTranslation", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The translation request.", @@ -818,8 +792,7 @@ ] } ], - "x-fern-sdk-group-name": "translations", - "x-fern-sdk-method-name": "postTranslation" + "x-method-name": "postTranslation" } }, "/api/templates": { @@ -856,8 +829,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "templates", - "x-fern-sdk-method-name": "getTemplates" + "x-method-name": "getTemplates" } }, "/api/templates/{name}": { @@ -909,8 +881,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "templates", - "x-fern-sdk-method-name": "getTemplate" + "x-method-name": "getTemplate" } }, "/api/teams/{team}/contributors": { @@ -964,8 +935,7 @@ ] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "getContributors" + "x-method-name": "getContributors" }, "post": { "tags": [ @@ -1040,8 +1010,7 @@ ] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "postContributor" + "x-method-name": "postContributor" } }, "/api/teams/{team}/contributors/me": { @@ -1103,8 +1072,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "deleteMyself" + "x-method-name": "deleteMyself" } }, "/api/teams/{team}/contributors/{id}": { @@ -1178,8 +1146,7 @@ ] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "deleteContributor" + "x-method-name": "deleteContributor" } }, "/api/teams": { @@ -1220,8 +1187,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "getTeams" + "x-method-name": "getTeams" }, "post": { "tags": [ @@ -1280,8 +1246,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "postTeam" + "x-method-name": "postTeam" } }, "/api/teams/{team}": { @@ -1333,8 +1298,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "getTeam" + "x-method-name": "getTeam" }, "put": { "tags": [ @@ -1409,8 +1373,7 @@ ] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "putTeam" + "x-method-name": "putTeam" }, "delete": { "tags": [ @@ -1465,8 +1428,7 @@ ] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "deleteTeam" + "x-method-name": "deleteTeam" } }, "/api/teams/{team}/auth": { @@ -1520,8 +1482,7 @@ ] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "getTeamAuth" + "x-method-name": "getTeamAuth" }, "put": { "tags": [ @@ -1596,31 +1557,16 @@ ] } ], - "x-fern-sdk-group-name": "teams", - "x-fern-sdk-method-name": "putTeamAuth" + "x-method-name": "putTeamAuth" } }, - "/api/apps/{app}/usages/log": { + "/api/apps/$app$/usages/log": { "get": { "tags": [ "Statistics" ], "summary": "Get api calls as log file.", "operationId": "Usages_GetLog", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Usage tracking results returned.", @@ -1653,11 +1599,10 @@ ] } ], - "x-fern-sdk-group-name": "statistics", - "x-fern-sdk-method-name": "getLog" + "x-method-name": "getLog" } }, - "/api/apps/{app}/usages/calls/{fromDate}/{toDate}": { + "/api/apps/$app$/usages/calls/{fromDate}/{toDate}": { "get": { "tags": [ "Statistics" @@ -1665,18 +1610,6 @@ "summary": "Get api calls in date range for app.", "operationId": "Usages_GetUsages", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "fromDate", "in": "path", @@ -1732,8 +1665,7 @@ ] } ], - "x-fern-sdk-group-name": "statistics", - "x-fern-sdk-method-name": "getUsages" + "x-method-name": "getUsages" } }, "/api/teams/{team}/usages/calls/{fromDate}/{toDate}": { @@ -1809,31 +1741,16 @@ ] } ], - "x-fern-sdk-group-name": "statistics", - "x-fern-sdk-method-name": "getUsagesForTeam" + "x-method-name": "getUsagesForTeam" } }, - "/api/apps/{app}/usages/storage/today": { + "/api/apps/$app$/usages/storage/today": { "get": { "tags": [ "Statistics" ], "summary": "Get total asset size for app.", "operationId": "Usages_GetCurrentStorageSize", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Storage usage returned.", @@ -1866,8 +1783,7 @@ ] } ], - "x-fern-sdk-group-name": "statistics", - "x-fern-sdk-method-name": "getCurrentStorageSize" + "x-method-name": "getCurrentStorageSize" } }, "/api/teams/{team}/usages/storage/today": { @@ -1921,11 +1837,10 @@ ] } ], - "x-fern-sdk-group-name": "statistics", - "x-fern-sdk-method-name": "getTeamCurrentStorageSizeForTeam" + "x-method-name": "getTeamCurrentStorageSizeForTeam" } }, - "/api/apps/{app}/usages/storage/{fromDate}/{toDate}": { + "/api/apps/$app$/usages/storage/{fromDate}/{toDate}": { "get": { "tags": [ "Statistics" @@ -1933,18 +1848,6 @@ "summary": "Get asset usage by date for app.", "operationId": "Usages_GetStorageSizes", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "fromDate", "in": "path", @@ -2003,8 +1906,7 @@ ] } ], - "x-fern-sdk-group-name": "statistics", - "x-fern-sdk-method-name": "getStorageSizes" + "x-method-name": "getStorageSizes" } }, "/api/teams/{team}/usages/storage/{fromDate}/{toDate}": { @@ -2083,11 +1985,10 @@ ] } ], - "x-fern-sdk-group-name": "statistics", - "x-fern-sdk-method-name": "getStorageSizesForTeam" + "x-method-name": "getStorageSizesForTeam" } }, - "/api/apps/{app}/search": { + "/api/apps/$app$/search": { "get": { "tags": [ "Search" @@ -2095,18 +1996,6 @@ "summary": "Get search results.", "operationId": "Search_GetSearchResults", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "query", "in": "query", @@ -2153,11 +2042,10 @@ ] } ], - "x-fern-sdk-group-name": "search", - "x-fern-sdk-method-name": "getSearchResults" + "x-method-name": "getSearchResults" } }, - "/api/apps/{app}/schemas/{schema}/fields": { + "/api/apps/$app$/schemas/{schema}/fields": { "post": { "tags": [ "Schemas" @@ -2165,18 +2053,6 @@ "summary": "Add a schema field.", "operationId": "SchemaFields_PostField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2253,11 +2129,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "postField" + "x-method-name": "postField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested": { "post": { "tags": [ "Schemas" @@ -2265,18 +2140,6 @@ "summary": "Add a nested field.", "operationId": "SchemaFields_PostNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2364,11 +2227,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "postNestedField" + "x-method-name": "postNestedField" } }, - "/api/apps/{app}/schemas/{schema}/fields/ui": { + "/api/apps/$app$/schemas/{schema}/fields/ui": { "put": { "tags": [ "Schemas" @@ -2376,18 +2238,6 @@ "summary": "Configure UI fields.", "operationId": "SchemaFields_PutSchemaUIFields", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2454,11 +2304,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putSchemaUIFields" + "x-method-name": "putSchemaUIFields" } }, - "/api/apps/{app}/schemas/{schema}/fields/ordering": { + "/api/apps/$app$/schemas/{schema}/fields/ordering": { "put": { "tags": [ "Schemas" @@ -2466,18 +2315,6 @@ "summary": "Reorder all fields.", "operationId": "SchemaFields_PutSchemaFieldOrdering", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2544,11 +2381,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putSchemaFieldOrdering" + "x-method-name": "putSchemaFieldOrdering" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/ordering": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/ordering": { "put": { "tags": [ "Schemas" @@ -2556,18 +2392,6 @@ "summary": "Reorder all nested fields.", "operationId": "SchemaFields_PutNestedFieldOrdering", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2645,11 +2469,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putNestedFieldOrdering" + "x-method-name": "putNestedFieldOrdering" } }, - "/api/apps/{app}/schemas/{schema}/fields/{id}": { + "/api/apps/$app$/schemas/{schema}/fields/{id}": { "put": { "tags": [ "Schemas" @@ -2657,18 +2480,6 @@ "summary": "Update a schema field.", "operationId": "SchemaFields_PutField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2746,8 +2557,7 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putField" + "x-method-name": "putField" }, "delete": { "tags": [ @@ -2756,18 +2566,6 @@ "summary": "Delete a schema field.", "operationId": "SchemaFields_DeleteField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2832,11 +2630,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "deleteField" + "x-method-name": "deleteField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}": { "put": { "tags": [ "Schemas" @@ -2844,18 +2641,6 @@ "summary": "Update a nested field.", "operationId": "SchemaFields_PutNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -2944,8 +2729,7 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putNestedField" + "x-method-name": "putNestedField" }, "delete": { "tags": [ @@ -2954,18 +2738,6 @@ "summary": "Delete a nested field.", "operationId": "SchemaFields_DeleteNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3041,11 +2813,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "deleteNestedField" + "x-method-name": "deleteNestedField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{id}/lock": { + "/api/apps/$app$/schemas/{schema}/fields/{id}/lock": { "put": { "tags": [ "Schemas" @@ -3054,18 +2825,6 @@ "description": "A locked field cannot be updated or deleted.", "operationId": "SchemaFields_LockField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3130,11 +2889,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "lockField" + "x-method-name": "lockField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/lock": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/lock": { "put": { "tags": [ "Schemas" @@ -3143,18 +2901,6 @@ "description": "A locked field cannot be edited or deleted.", "operationId": "SchemaFields_LockNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3230,11 +2976,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "lockNestedField" + "x-method-name": "lockNestedField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{id}/hide": { + "/api/apps/$app$/schemas/{schema}/fields/{id}/hide": { "put": { "tags": [ "Schemas" @@ -3243,18 +2988,6 @@ "description": "A hidden field is not part of the API response, but can still be edited in the portal.", "operationId": "SchemaFields_HideField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3319,11 +3052,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "hideField" + "x-method-name": "hideField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/hide": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/hide": { "put": { "tags": [ "Schemas" @@ -3332,18 +3064,6 @@ "description": "A hidden field is not part of the API response, but can still be edited in the portal.", "operationId": "SchemaFields_HideNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3419,11 +3139,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "hideNestedField" + "x-method-name": "hideNestedField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{id}/show": { + "/api/apps/$app$/schemas/{schema}/fields/{id}/show": { "put": { "tags": [ "Schemas" @@ -3432,18 +3151,6 @@ "description": "A hidden field is not part of the API response, but can still be edited in the portal.", "operationId": "SchemaFields_ShowField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3508,11 +3215,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "showField" + "x-method-name": "showField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/show": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/show": { "put": { "tags": [ "Schemas" @@ -3521,18 +3227,6 @@ "description": "A hidden field is not part of the API response, but can still be edited in the portal.", "operationId": "SchemaFields_ShowNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3608,11 +3302,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "showNestedField" + "x-method-name": "showNestedField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{id}/enable": { + "/api/apps/$app$/schemas/{schema}/fields/{id}/enable": { "put": { "tags": [ "Schemas" @@ -3621,18 +3314,6 @@ "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", "operationId": "SchemaFields_EnableField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3697,11 +3378,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "enableField" + "x-method-name": "enableField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/enable": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/enable": { "put": { "tags": [ "Schemas" @@ -3710,18 +3390,6 @@ "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", "operationId": "SchemaFields_EnableNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3797,11 +3465,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "enableNestedField" + "x-method-name": "enableNestedField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{id}/disable": { + "/api/apps/$app$/schemas/{schema}/fields/{id}/disable": { "put": { "tags": [ "Schemas" @@ -3810,18 +3477,6 @@ "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", "operationId": "SchemaFields_DisableField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3886,11 +3541,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "disableField" + "x-method-name": "disableField" } }, - "/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/disable": { + "/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/disable": { "put": { "tags": [ "Schemas" @@ -3899,18 +3553,6 @@ "description": "A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response.", "operationId": "SchemaFields_DisableNestedField", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -3986,31 +3628,16 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "disableNestedField" + "x-method-name": "disableNestedField" } }, - "/api/apps/{app}/schemas": { + "/api/apps/$app$/schemas": { "get": { "tags": [ "Schemas" ], "summary": "Get schemas.", "operationId": "Schemas_GetSchemas", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Schemas returned.", @@ -4043,8 +3670,7 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "getSchemas" + "x-method-name": "getSchemas" }, "post": { "tags": [ @@ -4052,20 +3678,6 @@ ], "summary": "Create a new schema.", "operationId": "Schemas_PostSchema", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The schema object that needs to be added to the app.", @@ -4128,11 +3740,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "postSchema" + "x-method-name": "postSchema" } }, - "/api/apps/{app}/schemas/{schema}": { + "/api/apps/$app$/schemas/{schema}": { "get": { "tags": [ "Schemas" @@ -4141,19 +3752,7 @@ "operationId": "Schemas_GetSchema", "parameters": [ { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, - { - "name": "schema", + "name": "schema", "in": "path", "required": true, "description": "The name of the schema to retrieve.", @@ -4195,8 +3794,7 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "getSchema" + "x-method-name": "getSchema" }, "put": { "tags": [ @@ -4205,18 +3803,6 @@ "summary": "Update a schema.", "operationId": "Schemas_PutSchema", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4283,8 +3869,7 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putSchema" + "x-method-name": "putSchema" }, "delete": { "tags": [ @@ -4293,18 +3878,6 @@ "summary": "Delete a schema.", "operationId": "Schemas_DeleteSchema", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4351,11 +3924,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "deleteSchema" + "x-method-name": "deleteSchema" } }, - "/api/apps/{app}/schemas/{schema}/sync": { + "/api/apps/$app$/schemas/{schema}/sync": { "put": { "tags": [ "Schemas" @@ -4363,18 +3935,6 @@ "summary": "Synchronize a schema.", "operationId": "Schemas_PutSchemaSync", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4441,11 +4001,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putSchemaSync" + "x-method-name": "putSchemaSync" } }, - "/api/apps/{app}/schemas/{schema}/category": { + "/api/apps/$app$/schemas/{schema}/category": { "put": { "tags": [ "Schemas" @@ -4453,18 +4012,6 @@ "summary": "Update a schema category.", "operationId": "Schemas_PutCategory", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4531,11 +4078,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putCategory" + "x-method-name": "putCategory" } }, - "/api/apps/{app}/schemas/{schema}/preview-urls": { + "/api/apps/$app$/schemas/{schema}/preview-urls": { "put": { "tags": [ "Schemas" @@ -4543,18 +4089,6 @@ "summary": "Update the preview urls.", "operationId": "Schemas_PutPreviewUrls", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4621,11 +4155,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putPreviewUrls" + "x-method-name": "putPreviewUrls" } }, - "/api/apps/{app}/schemas/{schema}/scripts": { + "/api/apps/$app$/schemas/{schema}/scripts": { "put": { "tags": [ "Schemas" @@ -4633,18 +4166,6 @@ "summary": "Update the scripts.", "operationId": "Schemas_PutScripts", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4711,11 +4232,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putScripts" + "x-method-name": "putScripts" } }, - "/api/apps/{app}/schemas/{schema}/rules": { + "/api/apps/$app$/schemas/{schema}/rules": { "put": { "tags": [ "Schemas" @@ -4723,18 +4243,6 @@ "summary": "Update the rules.", "operationId": "Schemas_PutRules", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4801,11 +4309,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "putRules" + "x-method-name": "putRules" } }, - "/api/apps/{app}/schemas/{schema}/publish": { + "/api/apps/$app$/schemas/{schema}/publish": { "put": { "tags": [ "Schemas" @@ -4813,18 +4320,6 @@ "summary": "Publish a schema.", "operationId": "Schemas_PublishSchema", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4878,11 +4373,10 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "publishSchema" + "x-method-name": "publishSchema" } }, - "/api/apps/{app}/schemas/{schema}/unpublish": { + "/api/apps/$app$/schemas/{schema}/unpublish": { "put": { "tags": [ "Schemas" @@ -4890,18 +4384,6 @@ "summary": "Unpublish a schema.", "operationId": "Schemas_UnpublishSchema", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -4955,8 +4437,7 @@ ] } ], - "x-fern-sdk-group-name": "schemas", - "x-fern-sdk-method-name": "unpublishSchema" + "x-method-name": "unpublishSchema" } }, "/api/rules/actions": { @@ -4996,31 +4477,16 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "getActions" + "x-method-name": "getActions" } }, - "/api/apps/{app}/rules": { + "/api/apps/$app$/rules": { "get": { "tags": [ "Rules" ], "summary": "Get rules.", "operationId": "Rules_GetRules", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Rules returned.", @@ -5053,8 +4519,7 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "getRules" + "x-method-name": "getRules" }, "post": { "tags": [ @@ -5062,20 +4527,6 @@ ], "summary": "Create a new rule.", "operationId": "Rules_PostRule", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The rule object that needs to be added to the app.", @@ -5131,31 +4582,16 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "postRule" + "x-method-name": "postRule" } }, - "/api/apps/{app}/rules/run": { + "/api/apps/$app$/rules/run": { "delete": { "tags": [ "Rules" ], "summary": "Cancel the current run.", "operationId": "Rules_DeleteRuleRun", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "204": { "description": "Rule run cancelled." @@ -5188,11 +4624,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "deleteRuleRun" + "x-method-name": "deleteRuleRun" } }, - "/api/apps/{app}/rules/{id}": { + "/api/apps/$app$/rules/{id}": { "put": { "tags": [ "Rules" @@ -5200,18 +4635,6 @@ "summary": "Update a rule.", "operationId": "Rules_PutRule", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5278,8 +4701,7 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "putRule" + "x-method-name": "putRule" }, "delete": { "tags": [ @@ -5288,18 +4710,6 @@ "summary": "Delete a rule.", "operationId": "Rules_DeleteRule", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5346,11 +4756,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "deleteRule" + "x-method-name": "deleteRule" } }, - "/api/apps/{app}/rules/{id}/enable": { + "/api/apps/$app$/rules/{id}/enable": { "put": { "tags": [ "Rules" @@ -5358,18 +4767,6 @@ "summary": "Enable a rule.", "operationId": "Rules_EnableRule", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5423,11 +4820,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "enableRule" + "x-method-name": "enableRule" } }, - "/api/apps/{app}/rules/{id}/disable": { + "/api/apps/$app$/rules/{id}/disable": { "put": { "tags": [ "Rules" @@ -5435,18 +4831,6 @@ "summary": "Disable a rule.", "operationId": "Rules_DisableRule", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5500,11 +4884,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "disableRule" + "x-method-name": "disableRule" } }, - "/api/apps/{app}/rules/{id}/trigger": { + "/api/apps/$app$/rules/{id}/trigger": { "put": { "tags": [ "Rules" @@ -5512,18 +4895,6 @@ "summary": "Trigger a rule.", "operationId": "Rules_TriggerRule", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5570,11 +4941,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "triggerRule" + "x-method-name": "triggerRule" } }, - "/api/apps/{app}/rules/{id}/run": { + "/api/apps/$app$/rules/{id}/run": { "put": { "tags": [ "Rules" @@ -5582,18 +4952,6 @@ "summary": "Run a rule.", "operationId": "Rules_PutRuleRun", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5647,11 +5005,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "putRuleRun" + "x-method-name": "putRuleRun" } }, - "/api/apps/{app}/rules/{id}/events": { + "/api/apps/$app$/rules/{id}/events": { "delete": { "tags": [ "Rules" @@ -5659,18 +5016,6 @@ "summary": "Cancels all rule events.", "operationId": "Rules_DeleteRuleEvents", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5714,31 +5059,16 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "deleteRuleEvents" + "x-method-name": "deleteRuleEvents" } }, - "/api/apps/{app}/rules/simulate": { + "/api/apps/$app$/rules/simulate": { "post": { "tags": [ "Rules" ], "summary": "Simulate a rule.", "operationId": "Rules_SimulatePOST", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The rule to simulate.", @@ -5794,11 +5124,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "simulatePOST" + "x-method-name": "simulatePOST" } }, - "/api/apps/{app}/rules/{id}/simulate": { + "/api/apps/$app$/rules/{id}/simulate": { "get": { "tags": [ "Rules" @@ -5806,18 +5135,6 @@ "summary": "Simulate a rule.", "operationId": "Rules_SimulateGET", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -5861,11 +5178,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "simulateGET" + "x-method-name": "simulateGET" } }, - "/api/apps/{app}/rules/events": { + "/api/apps/$app$/rules/events": { "get": { "tags": [ "Rules" @@ -5873,18 +5189,6 @@ "summary": "Get rule events.", "operationId": "Rules_GetEvents", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "ruleId", "in": "query", @@ -5950,8 +5254,7 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "getEvents" + "x-method-name": "getEvents" }, "delete": { "tags": [ @@ -5959,20 +5262,6 @@ ], "summary": "Cancels all events.", "operationId": "Rules_DeleteEvents", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "204": { "description": "Events cancelled." @@ -6005,11 +5294,10 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "deleteEvents" + "x-method-name": "deleteEvents" } }, - "/api/apps/{app}/rules/events/{id}": { + "/api/apps/$app$/rules/events/{id}": { "put": { "tags": [ "Rules" @@ -6017,18 +5305,6 @@ "summary": "Retry the event immediately.", "operationId": "Rules_PutEvent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -6075,8 +5351,7 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "putEvent" + "x-method-name": "putEvent" }, "delete": { "tags": [ @@ -6085,18 +5360,6 @@ "summary": "Cancels an event.", "operationId": "Rules_DeleteEvent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -6143,8 +5406,7 @@ ] } ], - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "deleteEvent" + "x-method-name": "deleteEvent" } }, "/api/rules/eventtypes": { @@ -6179,8 +5441,7 @@ } } }, - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "getEventTypes" + "x-method-name": "getEventTypes" } }, "/api/rules/eventtypes/{type}": { @@ -6225,31 +5486,16 @@ } } }, - "x-fern-sdk-group-name": "rules", - "x-fern-sdk-method-name": "getEventSchema" + "x-method-name": "getEventSchema" } }, - "/api/apps/{app}/plans": { + "/api/apps/$app$/plans": { "get": { "tags": [ "Plans" ], "summary": "Get app plan information.", "operationId": "AppPlans_GetPlans", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "App plan information returned.", @@ -6282,31 +5528,16 @@ ] } ], - "x-fern-sdk-group-name": "plans", - "x-fern-sdk-method-name": "getPlans" + "x-method-name": "getPlans" } }, - "/api/apps/{app}/plan": { + "/api/apps/$app$/plan": { "put": { "tags": [ "Plans" ], "summary": "Change the app plan.", "operationId": "AppPlans_PutPlan", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "Plan object that needs to be changed.", @@ -6362,8 +5593,7 @@ ] } ], - "x-fern-sdk-group-name": "plans", - "x-fern-sdk-method-name": "putPlan" + "x-method-name": "putPlan" } }, "/api/teams/{team}/plans": { @@ -6417,8 +5647,7 @@ ] } ], - "x-fern-sdk-group-name": "plans", - "x-fern-sdk-method-name": "getTeamPlans" + "x-method-name": "getTeamPlans" } }, "/api/teams/{team}/plan": { @@ -6495,8 +5724,7 @@ ] } ], - "x-fern-sdk-group-name": "plans", - "x-fern-sdk-method-name": "putTeamPlan" + "x-method-name": "putTeamPlan" } }, "/api/info": { @@ -6528,8 +5756,7 @@ } } }, - "x-fern-sdk-group-name": "ping", - "x-fern-sdk-method-name": "getInfo" + "x-method-name": "getInfo" } }, "/api/ping": { @@ -6555,11 +5782,10 @@ } } }, - "x-fern-sdk-group-name": "ping", - "x-fern-sdk-method-name": "getPing" + "x-method-name": "getPing" } }, - "/api/ping/{app}": { + "/api/ping/$app$": { "get": { "tags": [ "Ping" @@ -6567,20 +5793,6 @@ "summary": "Get ping status.", "description": "Can be used to test, if the Squidex API is alive and responding.", "operationId": "Ping_GetAppPing", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "204": { "description": "Service ping successful." @@ -6603,8 +5815,7 @@ ] } ], - "x-fern-sdk-group-name": "ping", - "x-fern-sdk-method-name": "getAppPing" + "x-method-name": "getAppPing" } }, "/api/news/features": { @@ -6654,8 +5865,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "news", - "x-fern-sdk-method-name": "getNews" + "x-method-name": "getNews" } }, "/api/languages": { @@ -6696,8 +5906,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "languages", - "x-fern-sdk-method-name": "getLanguages" + "x-method-name": "getLanguages" } }, "/api/apps/jobs/{id}": { @@ -6754,31 +5963,16 @@ } } }, - "x-fern-sdk-group-name": "jobs", - "x-fern-sdk-method-name": "getJobContent" + "x-method-name": "getJobContent" } }, - "/api/apps/{app}/jobs": { + "/api/apps/$app$/jobs": { "get": { "tags": [ "Jobs" ], "summary": "Get all jobs.", "operationId": "Jobs_GetJobs", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Jobs returned.", @@ -6811,11 +6005,10 @@ ] } ], - "x-fern-sdk-group-name": "jobs", - "x-fern-sdk-method-name": "getJobs" + "x-method-name": "getJobs" } }, - "/api/apps/{app}/jobs/{id}": { + "/api/apps/$app$/jobs/{id}": { "delete": { "tags": [ "Jobs" @@ -6823,18 +6016,6 @@ "summary": "Delete a job.", "operationId": "Jobs_DeleteJob", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -6881,11 +6062,10 @@ ] } ], - "x-fern-sdk-group-name": "jobs", - "x-fern-sdk-method-name": "deleteJob" + "x-method-name": "deleteJob" } }, - "/api/apps/{app}/history": { + "/api/apps/$app$/history": { "get": { "tags": [ "History" @@ -6893,18 +6073,6 @@ "summary": "Get the app history.", "operationId": "History_GetAppHistory", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "channel", "in": "query", @@ -6950,8 +6118,7 @@ ] } ], - "x-fern-sdk-group-name": "history", - "x-fern-sdk-method-name": "getAppHistory" + "x-method-name": "getAppHistory" } }, "/api/teams/{team}/history": { @@ -7017,8 +6184,7 @@ ] } ], - "x-fern-sdk-group-name": "history", - "x-fern-sdk-method-name": "getTeamHistory" + "x-method-name": "getTeamHistory" } }, "/api/event-consumers": { @@ -7057,8 +6223,7 @@ ] } ], - "x-fern-sdk-group-name": "eventConsumers", - "x-fern-sdk-method-name": "getEventConsumers" + "x-method-name": "getEventConsumers" } }, "/api/event-consumers/{consumerName}/start": { @@ -7122,8 +6287,7 @@ ] } ], - "x-fern-sdk-group-name": "eventConsumers", - "x-fern-sdk-method-name": "startEventConsumer" + "x-method-name": "startEventConsumer" } }, "/api/event-consumers/{consumerName}/stop": { @@ -7187,8 +6351,7 @@ ] } ], - "x-fern-sdk-group-name": "eventConsumers", - "x-fern-sdk-method-name": "stopEventConsumer" + "x-method-name": "stopEventConsumer" } }, "/api/event-consumers/{consumerName}/reset": { @@ -7252,8 +6415,7 @@ ] } ], - "x-fern-sdk-group-name": "eventConsumers", - "x-fern-sdk-method-name": "resetEventConsumer" + "x-method-name": "resetEventConsumer" } }, "/api/diagnostics/dump": { @@ -7295,8 +6457,7 @@ ] } ], - "x-fern-sdk-group-name": "diagnostics", - "x-fern-sdk-method-name": "getDump" + "x-method-name": "getDump" } }, "/api/diagnostics/gcdump": { @@ -7338,11 +6499,10 @@ ] } ], - "x-fern-sdk-group-name": "diagnostics", - "x-fern-sdk-method-name": "getGCDump" + "x-method-name": "getGCDump" } }, - "/api/content/{app}/{schema}": { + "/api/content/$app$/{schema}": { "get": { "tags": [ "Contents" @@ -7351,18 +6511,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_GetContents", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -7523,8 +6671,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getContents" + "x-method-name": "getContents" }, "post": { "tags": [ @@ -7534,18 +6681,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_PostContent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -7659,11 +6794,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "postContent" + "x-method-name": "postContent" } }, - "/api/content/{app}/{schema}/query": { + "/api/content/$app$/{schema}/query": { "post": { "tags": [ "Contents" @@ -7672,18 +6806,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_GetContentsPost", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -7802,31 +6924,18 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getContentsPost" + "x-method-name": "getContentsPost" } }, - "/api/content/{app}/{schema}/{id}": { - "get": { - "tags": [ - "Contents" - ], - "summary": "Get a content item.", - "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", - "operationId": "Contents_GetContent", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, + "/api/content/$app$/{schema}/{id}": { + "get": { + "tags": [ + "Contents" + ], + "summary": "Get a content item.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "Contents_GetContent", + "parameters": [ { "name": "schema", "in": "path", @@ -7925,8 +7034,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getContent" + "x-method-name": "getContent" }, "post": { "tags": [ @@ -7936,18 +7044,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_PostUpsertContent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8079,8 +7175,7 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "postUpsertContent" + "x-method-name": "postUpsertContent" }, "put": { "tags": [ @@ -8090,18 +7185,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_PutContent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8205,8 +7288,7 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "putContent" + "x-method-name": "putContent" }, "patch": { "tags": [ @@ -8216,18 +7298,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_PatchContent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8322,8 +7392,7 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "patchContent" + "x-method-name": "patchContent" }, "delete": { "tags": [ @@ -8333,18 +7402,6 @@ "description": "You can create an generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_DeleteContent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8419,11 +7476,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "deleteContent" + "x-method-name": "deleteContent" } }, - "/api/content/{app}/{schema}/{id}/validity": { + "/api/content/$app$/{schema}/{id}/validity": { "get": { "tags": [ "Contents" @@ -8432,18 +7488,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_GetContentValidity", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8498,11 +7542,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getContentValidity" + "x-method-name": "getContentValidity" } }, - "/api/content/{app}/{schema}/{id}/references": { + "/api/content/$app$/{schema}/{id}/references": { "get": { "tags": [ "Contents" @@ -8511,18 +7554,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_GetReferences", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8638,11 +7669,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getReferences" + "x-method-name": "getReferences" } }, - "/api/content/{app}/{schema}/{id}/referencing": { + "/api/content/$app$/{schema}/{id}/referencing": { "get": { "tags": [ "Contents" @@ -8651,18 +7681,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_GetReferencing", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8778,11 +7796,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getReferencing" + "x-method-name": "getReferencing" } }, - "/api/content/{app}/{schema}/{id}/{version}": { + "/api/content/$app$/{schema}/{id}/{version}": { "get": { "tags": [ "Contents" @@ -8791,18 +7808,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_GetContentVersion", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8887,11 +7892,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getContentVersion" + "x-method-name": "getContentVersion" } }, - "/api/content/{app}/{schema}/import": { + "/api/content/$app$/{schema}/import": { "post": { "tags": [ "Contents" @@ -8900,18 +7904,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_PostContents", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -8982,11 +7974,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "postContents" + "x-method-name": "postContents" } }, - "/api/content/{app}/{schema}/bulk": { + "/api/content/$app$/{schema}/bulk": { "post": { "tags": [ "Contents" @@ -8995,18 +7986,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_BulkUpdateContents", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -9076,11 +8055,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "bulkUpdateContents" + "x-method-name": "bulkUpdateContents" } }, - "/api/content/{app}/{schema}/{id}/defaults": { + "/api/content/$app$/{schema}/{id}/defaults": { "put": { "tags": [ "Contents" @@ -9089,18 +8067,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_PutContentDefaults", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -9191,11 +8157,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "putContentDefaults" + "x-method-name": "putContentDefaults" } }, - "/api/content/{app}/{schema}/{id}/status": { + "/api/content/$app$/{schema}/{id}/status": { "put": { "tags": [ "Contents" @@ -9204,18 +8169,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_PutContentStatus", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -9310,8 +8263,7 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "putContentStatus" + "x-method-name": "putContentStatus" }, "delete": { "tags": [ @@ -9321,18 +8273,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_DeleteContentStatus", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -9414,11 +8354,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "deleteContentStatus" + "x-method-name": "deleteContentStatus" } }, - "/api/content/{app}/{schema}/{id}/draft": { + "/api/content/$app$/{schema}/{id}/draft": { "post": { "tags": [ "Contents" @@ -9427,18 +8366,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_CreateDraft", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -9520,8 +8447,7 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "createDraft" + "x-method-name": "createDraft" }, "delete": { "tags": [ @@ -9531,18 +8457,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "Contents_DeleteVersion", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "path", @@ -9624,11 +8538,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "deleteVersion" + "x-method-name": "deleteVersion" } }, - "/api/content/{app}/graphql": { + "/api/content/$app$/graphql": { "get": { "tags": [ "Contents" @@ -9637,18 +8550,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "ContentsShared_GetGraphQL", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "The query string", "in": "query", @@ -9716,8 +8617,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getGraphQL" + "x-method-name": "getGraphQL" }, "post": { "tags": [ @@ -9727,18 +8627,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "ContentsShared_PostGraphQL", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "X-Unpublished", "in": "header", @@ -9797,11 +8685,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "postGraphQL" + "x-method-name": "postGraphQL" } }, - "/api/content/{app}/graphql/batch": { + "/api/content/$app$/graphql/batch": { "get": { "tags": [ "Contents" @@ -9810,18 +8697,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "ContentsShared_GetGraphQLBatch", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "The query string", "in": "query", @@ -9889,8 +8764,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getGraphQLBatch" + "x-method-name": "getGraphQLBatch" }, "post": { "tags": [ @@ -9900,18 +8774,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "ContentsShared_PostGraphQLBatch", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "X-Unpublished", "in": "header", @@ -9970,11 +8832,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "postGraphQLBatch" + "x-method-name": "postGraphQLBatch" } }, - "/api/content/{app}": { + "/api/content/$app$": { "get": { "tags": [ "Contents" @@ -9983,18 +8844,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "ContentsShared_GetAllContents", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "ids", "in": "query", @@ -10142,8 +8991,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getAllContents" + "x-method-name": "getAllContents" }, "post": { "tags": [ @@ -10153,18 +9001,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "ContentsShared_GetAllContentsPost", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "X-Fields", "in": "header", @@ -10273,11 +9109,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "getAllContentsPost" + "x-method-name": "getAllContentsPost" } }, - "/api/content/{app}/bulk": { + "/api/content/$app$/bulk": { "post": { "tags": [ "Contents" @@ -10286,18 +9121,6 @@ "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "operationId": "ContentsShared_BulkUpdateAllContents", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "schema", "in": "query", @@ -10366,11 +9189,10 @@ ] } ], - "x-fern-sdk-group-name": "contents", - "x-fern-sdk-method-name": "bulkUpdateAllContents" + "x-method-name": "bulkUpdateAllContents" } }, - "/api/apps/{app}/backups/{id}": { + "/api/apps/$app$/backups/{id}": { "get": { "tags": [ "Backups" @@ -10378,18 +9200,6 @@ "summary": "Get the backup content.", "operationId": "BackupContent_GetBackupContent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -10428,8 +9238,7 @@ } }, "deprecated": true, - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getBackupContent" + "x-method-name": "getBackupContent" }, "delete": { "tags": [ @@ -10438,18 +9247,6 @@ "summary": "Delete a backup.", "operationId": "Backups_DeleteBackup", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -10497,8 +9294,7 @@ ] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "deleteBackup" + "x-method-name": "deleteBackup" } }, "/api/apps/backups/{id}": { @@ -10566,31 +9362,16 @@ } }, "deprecated": true, - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getBackupContentV2" + "x-method-name": "getBackupContentV2" } }, - "/api/apps/{app}/backups": { + "/api/apps/$app$/backups": { "get": { "tags": [ "Backups" ], "summary": "Get all backup jobs.", "operationId": "Backups_GetBackups", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Backups returned.", @@ -10619,34 +9400,19 @@ "deprecated": true, "security": [ { - "squidex-oauth-auth": [ - "squidex.apps.{app}.jobs.read" - ] - } - ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getBackups" - }, - "post": { - "tags": [ - "Backups" - ], - "summary": "Start a new backup.", - "operationId": "Backups_PostBackup", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" + "squidex-oauth-auth": [ + "squidex.apps.{app}.jobs.read" + ] } ], + "x-method-name": "getBackups" + }, + "post": { + "tags": [ + "Backups" + ], + "summary": "Start a new backup.", + "operationId": "Backups_PostBackup", "responses": { "204": { "description": "Backup started." @@ -10682,8 +9448,7 @@ ] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "postBackup" + "x-method-name": "postBackup" } }, "/api/apps/restore": { @@ -10722,8 +9487,7 @@ ] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getRestoreJob" + "x-method-name": "getRestoreJob" }, "post": { "tags": [ @@ -10776,11 +9540,10 @@ ] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "postRestoreJob" + "x-method-name": "postRestoreJob" } }, - "/api/assets/{app}/{idOrSlug}/{more}": { + "/api/assets/$app$/{idOrSlug}/": { "get": { "tags": [ "Assets" @@ -10788,18 +9551,6 @@ "summary": "Get the asset content.", "operationId": "AssetContent_GetAssetContentBySlug", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "idOrSlug", "in": "path", @@ -10960,16 +9711,6 @@ "$ref": "#/components/schemas/ImageFormat" }, "x-position": 17 - }, - { - "name": "more", - "in": "path", - "required": true, - "description": "Optional suffix that can be used to seo-optimize the link to the image Has not effect.", - "schema": { - "type": "string" - }, - "x-position": 18 } ], "responses": { @@ -11003,8 +9744,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "getAssetContentBySlug" + "x-method-name": "getAssetContentBySlug" } }, "/api/assets/{id}": { @@ -11209,11 +9949,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "getAssetContent" + "x-method-name": "getAssetContent" } }, - "/api/apps/{app}/assets/folders": { + "/api/apps/$app$/assets/folders": { "get": { "tags": [ "Assets" @@ -11222,18 +9961,6 @@ "description": "Get all asset folders for the app.", "operationId": "AssetFolders_GetAssetFolders", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "parentId", "in": "query", @@ -11287,8 +10014,7 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "getAssetFolders" + "x-method-name": "getAssetFolders" }, "post": { "tags": [ @@ -11296,20 +10022,6 @@ ], "summary": "Create an asset folder.", "operationId": "AssetFolders_PostAssetFolder", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The asset folder object that needs to be added to the App.", @@ -11365,11 +10077,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "postAssetFolder" + "x-method-name": "postAssetFolder" } }, - "/api/apps/{app}/assets/folders/{id}": { + "/api/apps/$app$/assets/folders/{id}": { "put": { "tags": [ "Assets" @@ -11377,18 +10088,6 @@ "summary": "Update an asset folder.", "operationId": "AssetFolders_PutAssetFolder", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -11455,8 +10154,7 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "putAssetFolder" + "x-method-name": "putAssetFolder" }, "delete": { "tags": [ @@ -11465,18 +10163,6 @@ "summary": "Delete an asset folder.", "operationId": "AssetFolders_DeleteAssetFolder", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -11523,11 +10209,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "deleteAssetFolder" + "x-method-name": "deleteAssetFolder" } }, - "/api/apps/{app}/assets/folders/{id}/parent": { + "/api/apps/$app$/assets/folders/{id}/parent": { "put": { "tags": [ "Assets" @@ -11535,18 +10220,6 @@ "summary": "Move an asset folder.", "operationId": "AssetFolders_PutAssetFolderParent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -11613,11 +10286,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "putAssetFolderParent" + "x-method-name": "putAssetFolderParent" } }, - "/api/apps/{app}/assets/tags": { + "/api/apps/$app$/assets/tags": { "get": { "tags": [ "Assets" @@ -11625,20 +10297,6 @@ "summary": "Get assets tags.", "description": "Get all tags for assets.", "operationId": "Assets_GetTags", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Assets tags returned.", @@ -11675,11 +10333,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "getTags" + "x-method-name": "getTags" } }, - "/api/apps/{app}/assets/tags/{name}": { + "/api/apps/$app$/assets/tags/{name}": { "put": { "tags": [ "Assets" @@ -11687,18 +10344,6 @@ "summary": "Rename an asset tag.", "operationId": "Assets_PutTag", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "name", "in": "path", @@ -11769,11 +10414,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "putTag" + "x-method-name": "putTag" } }, - "/api/apps/{app}/assets": { + "/api/apps/$app$/assets": { "get": { "tags": [ "Assets" @@ -11782,18 +10426,6 @@ "description": "Get all assets for the app.", "operationId": "Assets_GetAssets", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "parentId", "in": "query", @@ -11911,8 +10543,7 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "getAssets" + "x-method-name": "getAssets" }, "post": { "tags": [ @@ -11922,18 +10553,6 @@ "description": "You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly.", "operationId": "Assets_PostAsset", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "ParentId", "in": "query", @@ -12036,11 +10655,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "postAsset" + "x-method-name": "postAsset" } }, - "/api/apps/{app}/assets/query": { + "/api/apps/$app$/assets/query": { "post": { "tags": [ "Assets" @@ -12049,18 +10667,6 @@ "description": "Get all assets for the app.", "operationId": "Assets_GetAssetsPost", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 0, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "X-NoTotal", "in": "header", @@ -12135,11 +10741,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "getAssetsPost" + "x-method-name": "getAssetsPost" } }, - "/api/apps/{app}/assets/{id}": { + "/api/apps/$app$/assets/{id}": { "get": { "tags": [ "Assets" @@ -12147,18 +10752,6 @@ "summary": "Get an asset by id.", "operationId": "Assets_GetAsset", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -12202,8 +10795,7 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "getAsset" + "x-method-name": "getAsset" }, "post": { "tags": [ @@ -12213,18 +10805,6 @@ "description": "You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly.", "operationId": "Assets_PostUpsertAsset", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -12327,8 +10907,7 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "postUpsertAsset" + "x-method-name": "postUpsertAsset" }, "put": { "tags": [ @@ -12337,18 +10916,6 @@ "summary": "Update an asset.", "operationId": "Assets_PutAsset", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -12415,8 +10982,7 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "putAsset" + "x-method-name": "putAsset" }, "delete": { "tags": [ @@ -12425,18 +10991,6 @@ "summary": "Delete an asset.", "operationId": "Assets_DeleteAsset", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -12501,31 +11055,16 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "deleteAsset" + "x-method-name": "deleteAsset" } }, - "/api/apps/{app}/assets/bulk": { + "/api/apps/$app$/assets/bulk": { "post": { "tags": [ "Assets" ], "summary": "Bulk update assets.", "operationId": "Assets_BulkUpdateAssets", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The bulk update request.", @@ -12584,11 +11123,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "bulkUpdateAssets" + "x-method-name": "bulkUpdateAssets" } }, - "/api/apps/{app}/assets/{id}/content": { + "/api/apps/$app$/assets/{id}/content": { "put": { "tags": [ "Assets" @@ -12597,18 +11135,6 @@ "description": "Use multipart request to upload an asset.", "operationId": "Assets_PutAssetContent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -12693,11 +11219,10 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "putAssetContent" + "x-method-name": "putAssetContent" } }, - "/api/apps/{app}/assets/{id}/parent": { + "/api/apps/$app$/assets/{id}/parent": { "put": { "tags": [ "Assets" @@ -12705,18 +11230,6 @@ "summary": "Moves the asset.", "operationId": "Assets_PutAssetParent", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -12783,31 +11296,16 @@ ] } ], - "x-fern-sdk-group-name": "assets", - "x-fern-sdk-method-name": "putAssetParent" + "x-method-name": "putAssetParent" } }, - "/api/apps/{app}/assets/scripts": { + "/api/apps/$app$/assets/scripts": { "get": { "tags": [ "Apps" ], "summary": "Get the app asset scripts.", "operationId": "AppAssets_GetAssetScripts", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to get the asset scripts for.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Asset scripts returned.", @@ -12840,8 +11338,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getAssetScripts" + "x-method-name": "getAssetScripts" }, "put": { "tags": [ @@ -12849,20 +11346,6 @@ ], "summary": "Update the asset scripts.", "operationId": "AppAssets_PutAssetScripts", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to update.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The values to update.", @@ -12918,11 +11401,10 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putAssetScripts" + "x-method-name": "putAssetScripts" } }, - "/api/apps/{app}/clients": { + "/api/apps/$app$/clients": { "get": { "tags": [ "Apps" @@ -12930,20 +11412,6 @@ "summary": "Get app clients.", "description": "Gets all configured clients for the app with the specified name.", "operationId": "AppClients_GetClients", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Clients returned.", @@ -12976,8 +11444,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getClients" + "x-method-name": "getClients" }, "post": { "tags": [ @@ -12986,20 +11453,6 @@ "summary": "Create a new app client.", "description": "Create a new client for the app with the specified name.\nThe client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days.", "operationId": "AppClients_PostClient", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "Client object that needs to be added to the app.", @@ -13055,11 +11508,10 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "postClient" + "x-method-name": "postClient" } }, - "/api/apps/{app}/clients/{id}": { + "/api/apps/$app$/clients/{id}": { "put": { "tags": [ "Apps" @@ -13068,18 +11520,6 @@ "description": "Only the display name can be changed, create a new client if necessary.", "operationId": "AppClients_PutClient", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -13146,8 +11586,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putClient" + "x-method-name": "putClient" }, "delete": { "tags": [ @@ -13157,18 +11596,6 @@ "description": "The application that uses this client credentials cannot access the API after it has been revoked.", "operationId": "AppClients_DeleteClient", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -13222,31 +11649,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteClient" + "x-method-name": "deleteClient" } }, - "/api/apps/{app}/contributors": { + "/api/apps/$app$/contributors": { "get": { "tags": [ "Apps" ], "summary": "Get app contributors.", "operationId": "AppContributors_GetContributors", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Contributors returned.", @@ -13279,8 +11691,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getContributors" + "x-method-name": "getContributors" }, "post": { "tags": [ @@ -13288,20 +11699,6 @@ ], "summary": "Assign contributor to app.", "operationId": "AppContributors_PostContributor", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "Contributor object that needs to be added to the app.", @@ -13357,31 +11754,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "postContributor" + "x-method-name": "postContributor" } }, - "/api/apps/{app}/contributors/me": { + "/api/apps/$app$/contributors/me": { "delete": { "tags": [ "Apps" ], "summary": "Remove yourself.", "operationId": "AppContributors_DeleteMyself", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Contributor removed.", @@ -13422,11 +11804,10 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteMyself" + "x-method-name": "deleteMyself" } }, - "/api/apps/{app}/contributors/{id}": { + "/api/apps/$app$/contributors/{id}": { "delete": { "tags": [ "Apps" @@ -13434,18 +11815,6 @@ "summary": "Remove contributor.", "operationId": "AppContributors_DeleteContributor", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -13499,31 +11868,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteContributor" + "x-method-name": "deleteContributor" } }, - "/api/apps/{app}/image": { + "/api/apps/$app$/image": { "get": { "tags": [ "Apps" ], "summary": "Get the app image.", "operationId": "AppImage_GetImage", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "App image found and content or (resized) image returned.", @@ -13550,8 +11904,7 @@ } } }, - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getImage" + "x-method-name": "getImage" }, "post": { "tags": [ @@ -13559,20 +11912,6 @@ ], "summary": "Upload the app image.", "operationId": "Apps_UploadImage", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to update.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "content": { "multipart/form-data": { @@ -13636,8 +11975,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "uploadImage" + "x-method-name": "uploadImage" }, "delete": { "tags": [ @@ -13645,20 +11983,6 @@ ], "summary": "Remove the app image.", "operationId": "Apps_DeleteImage", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to update.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "App image removed.", @@ -13701,31 +12025,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteImage" + "x-method-name": "deleteImage" } }, - "/api/apps/{app}/languages": { + "/api/apps/$app$/languages": { "get": { "tags": [ "Apps" ], "summary": "Get app languages.", "operationId": "AppLanguages_GetLanguages", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Languages returned.", @@ -13758,8 +12067,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getLanguages" + "x-method-name": "getLanguages" }, "post": { "tags": [ @@ -13767,20 +12075,6 @@ ], "summary": "Add an app language.", "operationId": "AppLanguages_PostLanguage", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The language to add to the app.", @@ -13836,11 +12130,10 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "postLanguage" + "x-method-name": "postLanguage" } }, - "/api/apps/{app}/languages/{language}": { + "/api/apps/$app$/languages/{language}": { "put": { "tags": [ "Apps" @@ -13848,18 +12141,6 @@ "summary": "Updates an app language.", "operationId": "AppLanguages_PutLanguage", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "language", "in": "path", @@ -13926,8 +12207,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putLanguage" + "x-method-name": "putLanguage" }, "delete": { "tags": [ @@ -13936,18 +12216,6 @@ "summary": "Deletes an app language.", "operationId": "AppLanguages_DeleteLanguage", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "language", "in": "path", @@ -14001,31 +12269,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteLanguage" + "x-method-name": "deleteLanguage" } }, - "/api/apps/{app}/roles": { + "/api/apps/$app$/roles": { "get": { "tags": [ "Apps" ], "summary": "Get app roles.", "operationId": "AppRoles_GetRoles", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Roles returned.", @@ -14058,8 +12311,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getRoles" + "x-method-name": "getRoles" }, "post": { "tags": [ @@ -14067,20 +12319,6 @@ ], "summary": "Add role to app.", "operationId": "AppRoles_PostRole", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "Role object that needs to be added to the app.", @@ -14136,31 +12374,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "postRole" + "x-method-name": "postRole" } }, - "/api/apps/{app}/roles/permissions": { + "/api/apps/$app$/roles/permissions": { "get": { "tags": [ "Apps" ], "summary": "Get app permissions.", "operationId": "AppRoles_GetPermissions", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "App permissions returned.", @@ -14196,11 +12419,10 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getPermissions" + "x-method-name": "getPermissions" } }, - "/api/apps/{app}/roles/{roleName}": { + "/api/apps/$app$/roles/{roleName}": { "put": { "tags": [ "Apps" @@ -14208,18 +12430,6 @@ "summary": "Update an app role.", "operationId": "AppRoles_PutRole", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "roleName", "in": "path", @@ -14286,8 +12496,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putRole" + "x-method-name": "putRole" }, "delete": { "tags": [ @@ -14296,18 +12505,6 @@ "summary": "Remove role from app.", "operationId": "AppRoles_DeleteRole", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "roleName", "in": "path", @@ -14361,8 +12558,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteRole" + "x-method-name": "deleteRole" } }, "/api/apps": { @@ -14403,8 +12599,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getApps" + "x-method-name": "getApps" }, "post": { "tags": [ @@ -14473,8 +12668,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "postApp" + "x-method-name": "postApp" } }, "/api/teams/{team}/apps": { @@ -14527,31 +12721,16 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getTeamApps" + "x-method-name": "getTeamApps" } }, - "/api/apps/{app}": { + "/api/apps/$app$": { "get": { "tags": [ "Apps" ], "summary": "Get an app by name.", "operationId": "Apps_GetApp", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Apps returned.", @@ -14582,8 +12761,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getApp" + "x-method-name": "getApp" }, "put": { "tags": [ @@ -14591,20 +12769,6 @@ ], "summary": "Update the app.", "operationId": "Apps_PutApp", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to update.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The values to update.", @@ -14660,8 +12824,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putApp" + "x-method-name": "putApp" }, "delete": { "tags": [ @@ -14669,20 +12832,6 @@ ], "summary": "Delete the app.", "operationId": "Apps_DeleteApp", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to delete.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "204": { "description": "App deleted." @@ -14718,31 +12867,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteApp" + "x-method-name": "deleteApp" } }, - "/api/apps/{app}/team": { + "/api/apps/$app$/team": { "put": { "tags": [ "Apps" ], "summary": "Transfer the app.", "operationId": "Apps_PutAppTeam", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to update.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The team information.", @@ -14798,31 +12932,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putAppTeam" + "x-method-name": "putAppTeam" } }, - "/api/apps/{app}/settings": { + "/api/apps/$app$/settings": { "get": { "tags": [ "Apps" ], "summary": "Get the app settings.", "operationId": "AppSettings_GetSettings", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to get the settings for.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "App settings returned.", @@ -14853,8 +12972,7 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getSettings" + "x-method-name": "getSettings" }, "put": { "tags": [ @@ -14862,20 +12980,6 @@ ], "summary": "Update the settings.", "operationId": "AppSettings_PutSettings", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app to update.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The values to update.", @@ -14931,31 +13035,16 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putSettings" + "x-method-name": "putSettings" } }, - "/api/apps/{app}/workflows": { + "/api/apps/$app$/workflows": { "get": { "tags": [ "Apps" ], "summary": "Get app workflow.", "operationId": "AppWorkflows_GetWorkflows", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "responses": { "200": { "description": "Workflows returned.", @@ -14988,8 +13077,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "getWorkflows" + "x-method-name": "getWorkflows" }, "post": { "tags": [ @@ -14997,20 +13085,6 @@ ], "summary": "Create a workflow.", "operationId": "AppWorkflows_PostWorkflow", - "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - } - ], "requestBody": { "x-name": "request", "description": "The new workflow.", @@ -15066,11 +13140,10 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "postWorkflow" + "x-method-name": "postWorkflow" } }, - "/api/apps/{app}/workflows/{id}": { + "/api/apps/$app$/workflows/{id}": { "put": { "tags": [ "Apps" @@ -15078,18 +13151,6 @@ "summary": "Update a workflow.", "operationId": "AppWorkflows_PutWorkflow", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -15156,8 +13217,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "putWorkflow" + "x-method-name": "putWorkflow" }, "delete": { "tags": [ @@ -15166,18 +13226,6 @@ "summary": "Delete a workflow.", "operationId": "AppWorkflows_DeleteWorkflow", "parameters": [ - { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", - "schema": { - "type": "string" - }, - "x-position": 1, - "x-fern-sdk-variable": "appName", - "x-hidden": "true" - }, { "name": "id", "in": "path", @@ -15231,8 +13279,7 @@ ] } ], - "x-fern-sdk-group-name": "apps", - "x-fern-sdk-method-name": "deleteWorkflow" + "x-method-name": "deleteWorkflow" } } }, @@ -22097,10 +20144,5 @@ ], "externalDocs": { "url": "https://docs.squidex.io" - }, - "x-fern-sdk-variables": { - "appName": { - "type": "string" - } } } \ No newline at end of file diff --git a/src/generated/apis/AppsApi.ts b/src/generated/apis/AppsApi.ts index 45f4ea9..c68fc03 100644 --- a/src/generated/apis/AppsApi.ts +++ b/src/generated/apis/AppsApi.ts @@ -88,9 +88,6 @@ import { WorkflowsDtoToJSON, } from '../models/index'; -export interface AppAssetsGetAssetScriptsRequest { -} - export interface AppAssetsPutAssetScriptsRequest { updateAssetScriptsDto: UpdateAssetScriptsDto; } @@ -99,9 +96,6 @@ export interface AppClientsDeleteClientRequest { id: string; } -export interface AppClientsGetClientsRequest { -} - export interface AppClientsPostClientRequest { createClientDto: CreateClientDto; } @@ -115,26 +109,14 @@ export interface AppContributorsDeleteContributorRequest { id: string; } -export interface AppContributorsDeleteMyselfRequest { -} - -export interface AppContributorsGetContributorsRequest { -} - export interface AppContributorsPostContributorRequest { assignContributorDto: AssignContributorDto; } -export interface AppImageGetImageRequest { -} - export interface AppLanguagesDeleteLanguageRequest { language: string; } -export interface AppLanguagesGetLanguagesRequest { -} - export interface AppLanguagesPostLanguageRequest { addLanguageDto: AddLanguageDto; } @@ -148,12 +130,6 @@ export interface AppRolesDeleteRoleRequest { roleName: string; } -export interface AppRolesGetPermissionsRequest { -} - -export interface AppRolesGetRolesRequest { -} - export interface AppRolesPostRoleRequest { addRoleDto: AddRoleDto; } @@ -163,9 +139,6 @@ export interface AppRolesPutRoleRequest { updateRoleDto: UpdateRoleDto; } -export interface AppSettingsGetSettingsRequest { -} - export interface AppSettingsPutSettingsRequest { updateAppSettingsDto: UpdateAppSettingsDto; } @@ -174,9 +147,6 @@ export interface AppWorkflowsDeleteWorkflowRequest { id: string; } -export interface AppWorkflowsGetWorkflowsRequest { -} - export interface AppWorkflowsPostWorkflowRequest { addWorkflowDto: AddWorkflowDto; } @@ -186,15 +156,6 @@ export interface AppWorkflowsPutWorkflowRequest { updateWorkflowDto: UpdateWorkflowDto; } -export interface AppsDeleteAppRequest { -} - -export interface AppsDeleteImageRequest { -} - -export interface AppsGetAppRequest { -} - export interface AppsGetTeamAppsRequest { team: string; } @@ -231,12 +192,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getAssetScriptsRaw(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAssetScriptsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the app asset scripts. */ - getAssetScripts(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAssetScripts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -276,13 +237,13 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getClientsRaw(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Gets all configured clients for the app with the specified name. * Get app clients. */ - getClients(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. @@ -339,12 +300,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteMyselfRaw(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteMyselfRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove yourself. */ - deleteMyself(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteMyself(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -353,12 +314,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getContributorsRaw(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getContributorsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get app contributors. */ - getContributors(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getContributors(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -382,12 +343,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getImageRaw(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getImageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the app image. */ - getImage(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getImage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -411,12 +372,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getLanguagesRaw(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getLanguagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get app languages. */ - getLanguages(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getLanguages(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -471,12 +432,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getPermissionsRaw(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Get app permissions. */ - getPermissions(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * @@ -485,12 +446,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getRolesRaw(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getRolesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get app roles. */ - getRoles(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getRoles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -530,12 +491,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getSettingsRaw(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the app settings. */ - getSettings(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -574,12 +535,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getWorkflowsRaw(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getWorkflowsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get app workflow. */ - getWorkflows(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getWorkflows(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -619,12 +580,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteAppRaw(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete the app. */ - deleteApp(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteApp(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -633,12 +594,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteImageRaw(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteImageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove the app image. */ - deleteImage(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteImage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -647,12 +608,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getAppRaw(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get an app by name. */ - getApp(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getApp(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. @@ -758,14 +719,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get the app asset scripts. */ - async getAssetScriptsRaw(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getAssetScriptsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/assets/scripts`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets/scripts`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -777,8 +737,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get the app asset scripts. */ - async getAssetScripts(requestParameters: AppAssetsGetAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAssetScriptsRaw(requestParameters, initOverrides); + async getAssetScripts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetScriptsRaw(initOverrides); return await response.value(); } @@ -793,7 +753,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -801,7 +760,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/scripts`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets/scripts`.replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -831,13 +790,12 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/clients/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -859,14 +817,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Gets all configured clients for the app with the specified name. * Get app clients. */ - async getClientsRaw(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/clients`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/clients`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -879,8 +836,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Gets all configured clients for the app with the specified name. * Get app clients. */ - async getClients(requestParameters: AppClientsGetClientsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getClientsRaw(requestParameters, initOverrides); + async getClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getClientsRaw(initOverrides); return await response.value(); } @@ -896,7 +853,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -904,7 +860,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/clients`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/clients`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -942,7 +898,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -950,7 +905,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/clients/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -980,13 +935,12 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/contributors/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/contributors/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1006,14 +960,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Remove yourself. */ - async deleteMyselfRaw(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async deleteMyselfRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/contributors/me`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/contributors/me`.replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1025,22 +978,21 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Remove yourself. */ - async deleteMyself(requestParameters: AppContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteMyselfRaw(requestParameters, initOverrides); + async deleteMyself(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteMyselfRaw(initOverrides); return await response.value(); } /** * Get app contributors. */ - async getContributorsRaw(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getContributorsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/contributors`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/contributors`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1052,8 +1004,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app contributors. */ - async getContributors(requestParameters: AppContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getContributorsRaw(requestParameters, initOverrides); + async getContributors(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContributorsRaw(initOverrides); return await response.value(); } @@ -1068,7 +1020,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1076,7 +1027,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/contributors`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/contributors`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1097,14 +1048,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get the app image. */ - async getImageRaw(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getImageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/image`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/image`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1116,8 +1066,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get the app image. */ - async getImage(requestParameters: AppImageGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getImageRaw(requestParameters, initOverrides); + async getImage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getImageRaw(initOverrides); return await response.value(); } @@ -1132,13 +1082,12 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/languages/{language}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))), + path: `/api/apps/$app$/languages/{language}`.replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1158,14 +1107,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app languages. */ - async getLanguagesRaw(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getLanguagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/languages`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/languages`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1177,8 +1125,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app languages. */ - async getLanguages(requestParameters: AppLanguagesGetLanguagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getLanguagesRaw(requestParameters, initOverrides); + async getLanguages(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getLanguagesRaw(initOverrides); return await response.value(); } @@ -1193,7 +1141,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1201,7 +1148,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/languages`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/languages`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1237,7 +1184,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1245,7 +1191,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/languages/{language}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))), + path: `/api/apps/$app$/languages/{language}`.replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1274,13 +1220,12 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/roles/{roleName}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))), + path: `/api/apps/$app$/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1300,14 +1245,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app permissions. */ - async getPermissionsRaw(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - (requestParameters as any)['app'] = this.appName; + async getPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/roles/permissions`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/roles/permissions`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1319,22 +1263,21 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app permissions. */ - async getPermissions(requestParameters: AppRolesGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getPermissionsRaw(requestParameters, initOverrides); + async getPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getPermissionsRaw(initOverrides); return await response.value(); } /** * Get app roles. */ - async getRolesRaw(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getRolesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/roles`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/roles`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1346,8 +1289,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app roles. */ - async getRoles(requestParameters: AppRolesGetRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getRolesRaw(requestParameters, initOverrides); + async getRoles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getRolesRaw(initOverrides); return await response.value(); } @@ -1362,7 +1305,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1370,7 +1312,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/roles`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/roles`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1406,7 +1348,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1414,7 +1355,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/roles/{roleName}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))), + path: `/api/apps/$app$/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1435,14 +1376,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get the app settings. */ - async getSettingsRaw(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/settings`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/settings`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1454,8 +1394,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get the app settings. */ - async getSettings(requestParameters: AppSettingsGetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSettingsRaw(requestParameters, initOverrides); + async getSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSettingsRaw(initOverrides); return await response.value(); } @@ -1470,7 +1410,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1478,7 +1417,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/settings`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/settings`.replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1507,13 +1446,12 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/workflows/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/workflows/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1533,14 +1471,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app workflow. */ - async getWorkflowsRaw(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getWorkflowsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/workflows`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/workflows`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1552,8 +1489,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get app workflow. */ - async getWorkflows(requestParameters: AppWorkflowsGetWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getWorkflowsRaw(requestParameters, initOverrides); + async getWorkflows(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getWorkflowsRaw(initOverrides); return await response.value(); } @@ -1568,7 +1505,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1576,7 +1512,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/workflows`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/workflows`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1612,7 +1548,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1620,7 +1555,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/workflows/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/workflows/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1641,14 +1576,13 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Delete the app. */ - async deleteAppRaw(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async deleteAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$`.replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1660,21 +1594,20 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Delete the app. */ - async deleteApp(requestParameters: AppsDeleteAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteAppRaw(requestParameters, initOverrides); + async deleteApp(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteAppRaw(initOverrides); } /** * Remove the app image. */ - async deleteImageRaw(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async deleteImageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/image`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/image`.replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1686,22 +1619,21 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Remove the app image. */ - async deleteImage(requestParameters: AppsDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteImageRaw(requestParameters, initOverrides); + async deleteImage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteImageRaw(initOverrides); return await response.value(); } /** * Get an app by name. */ - async getAppRaw(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1713,8 +1645,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Get an app by name. */ - async getApp(requestParameters: AppsGetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAppRaw(requestParameters, initOverrides); + async getApp(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAppRaw(initOverrides); return await response.value(); } @@ -1728,7 +1660,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps`, + path: `/api/apps`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1758,13 +1690,12 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/apps`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/apps`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1794,7 +1725,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1802,7 +1732,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps`, + path: `/api/apps`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1832,7 +1762,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1840,7 +1769,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$`.replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1869,7 +1798,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1877,7 +1805,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/team`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/team`.replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1899,7 +1827,6 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Upload the app image. */ async uploadImageRaw(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1933,7 +1860,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { } const response = await this.request({ - path: `/api/apps/{app}/image`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/image`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1946,7 +1873,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Upload the app image. */ - async uploadImage(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async uploadImage(requestParameters: AppsUploadImageRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.uploadImageRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/src/generated/apis/AssetsApi.ts b/src/generated/apis/AssetsApi.ts index 5a76a6f..d085b08 100644 --- a/src/generated/apis/AssetsApi.ts +++ b/src/generated/apis/AssetsApi.ts @@ -91,7 +91,6 @@ export interface AssetContentGetAssetContentRequest { export interface AssetContentGetAssetContentBySlugRequest { idOrSlug: string; - more: string; version?: number; cache?: number; download?: number; @@ -164,9 +163,6 @@ export interface AssetsGetAssetsPostRequest { xNoSlowTotal?: boolean; } -export interface AssetsGetTagsRequest { -} - export interface AssetsPostAssetRequest { parentId?: string; id?: string | null; @@ -250,7 +246,6 @@ export interface AssetsApiInterface { * * @summary Get the asset content. * @param {string} idOrSlug The id or slug of the asset. - * @param {string} more Optional suffix that can be used to seo-optimize the link to the image Has not effect. * @param {number} [version] The optional version of the asset. * @param {number} [cache] The cache duration in seconds. * @param {number} [download] Set it to 0 to prevent download. @@ -452,13 +447,13 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - getTagsRaw(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTagsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get all tags for assets. * Get assets tags. */ - getTags(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }>; + getTags(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }>; /** * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. @@ -588,7 +583,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['version'] != null) { @@ -654,7 +648,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -683,14 +677,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - if (requestParameters['more'] == null) { - throw new runtime.RequiredError( - 'more', - 'Required parameter "more" was null or undefined when calling ().' - ); - } - - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['version'] != null) { @@ -756,7 +742,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/assets/{app}/{idOrSlug}/{more}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"idOrSlug"}}`, encodeURIComponent(String((requestParameters as any)['idOrSlug']))).replace(`{${"more"}}`, encodeURIComponent(String((requestParameters as any)['more']))), + path: `/api/assets/$app$/{idOrSlug}/`.replace(`{${"idOrSlug"}}`, encodeURIComponent(String((requestParameters as any)['idOrSlug']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -784,13 +770,12 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/assets/folders/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -811,7 +796,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get asset folders. */ async getAssetFoldersRaw(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['parentId'] != null) { @@ -825,7 +809,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/assets/folders`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets/folders`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -838,7 +822,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get all asset folders for the app. * Get asset folders. */ - async getAssetFolders(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async getAssetFolders(requestParameters: AssetFoldersGetAssetFoldersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getAssetFoldersRaw(requestParameters, initOverrides); return await response.value(); } @@ -854,7 +838,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -862,7 +845,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/folders`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets/folders`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -898,7 +881,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -906,7 +888,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/folders/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -942,7 +924,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -950,7 +931,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/folders/{id}/parent`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/folders/{id}/parent`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -979,7 +960,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -987,7 +967,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/bulk`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets/bulk`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1016,7 +996,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['checkReferrers'] != null) { @@ -1030,7 +1009,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1057,13 +1036,12 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1085,7 +1063,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get assets. */ async getAssetsRaw(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['parentId'] != null) { @@ -1127,7 +1104,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { } const response = await this.request({ - path: `/api/apps/{app}/assets`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1140,7 +1117,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get all assets for the app. * Get assets. */ - async getAssets(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async getAssets(requestParameters: AssetsGetAssetsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getAssetsRaw(requestParameters, initOverrides); return await response.value(); } @@ -1157,7 +1134,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1173,7 +1149,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { } const response = await this.request({ - path: `/api/apps/{app}/assets/query`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets/query`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1196,14 +1172,13 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get all tags for assets. * Get assets tags. */ - async getTagsRaw(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getTagsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/assets/tags`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets/tags`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1216,8 +1191,8 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get all tags for assets. * Get assets tags. */ - async getTags(requestParameters: AssetsGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }> { - const response = await this.getTagsRaw(requestParameters, initOverrides); + async getTags(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }> { + const response = await this.getTagsRaw(initOverrides); return await response.value(); } @@ -1226,7 +1201,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Upload a new asset. */ async postAssetRaw(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['parentId'] != null) { @@ -1272,7 +1246,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { } const response = await this.request({ - path: `/api/apps/{app}/assets`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/assets`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1286,7 +1260,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. * Upload a new asset. */ - async postAsset(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async postAsset(requestParameters: AssetsPostAssetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.postAssetRaw(requestParameters, initOverrides); return await response.value(); } @@ -1303,7 +1277,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['parentId'] != null) { @@ -1345,7 +1318,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { } const response = await this.request({ - path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1382,7 +1355,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1390,7 +1362,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1420,7 +1392,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1454,7 +1425,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { } const response = await this.request({ - path: `/api/apps/{app}/assets/{id}/content`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1491,7 +1462,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1499,7 +1469,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/{id}/parent`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/assets/{id}/parent`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1535,7 +1505,6 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1543,7 +1512,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/assets/tags/{name}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))), + path: `/api/apps/$app$/assets/tags/{name}`.replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/BackupsApi.ts b/src/generated/apis/BackupsApi.ts index d9b5ffe..2f78796 100644 --- a/src/generated/apis/BackupsApi.ts +++ b/src/generated/apis/BackupsApi.ts @@ -45,12 +45,6 @@ export interface BackupsDeleteBackupRequest { id: string; } -export interface BackupsGetBackupsRequest { -} - -export interface BackupsPostBackupRequest { -} - export interface RestorePostRestoreJobRequest { restoreRequestDto: RestoreRequestDto; } @@ -123,13 +117,13 @@ export interface BackupsApiInterface { * @throws {RequiredError} * @memberof BackupsApiInterface */ - getBackupsRaw(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getBackupsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get all backup jobs. * @deprecated */ - getBackups(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getBackups(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -138,12 +132,12 @@ export interface BackupsApiInterface { * @throws {RequiredError} * @memberof BackupsApiInterface */ - postBackupRaw(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postBackupRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Start a new backup. */ - postBackup(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postBackup(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -193,13 +187,12 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/backups/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -229,7 +222,6 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['appId'] != null) { @@ -243,7 +235,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -273,13 +265,12 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/backups/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -300,14 +291,13 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Get all backup jobs. * @deprecated */ - async getBackupsRaw(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getBackupsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/backups`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/backups`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -320,22 +310,21 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Get all backup jobs. * @deprecated */ - async getBackups(requestParameters: BackupsGetBackupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getBackupsRaw(requestParameters, initOverrides); + async getBackups(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getBackupsRaw(initOverrides); return await response.value(); } /** * Start a new backup. */ - async postBackupRaw(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async postBackupRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/backups`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/backups`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -347,8 +336,8 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { /** * Start a new backup. */ - async postBackup(requestParameters: BackupsPostBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.postBackupRaw(requestParameters, initOverrides); + async postBackup(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.postBackupRaw(initOverrides); } /** @@ -360,7 +349,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/restore`, + path: `/api/apps/restore`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -388,7 +377,6 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -396,7 +384,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/restore`, + path: `/api/apps/restore`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/ContentsApi.ts b/src/generated/apis/ContentsApi.ts index f05dde0..a8148c9 100644 --- a/src/generated/apis/ContentsApi.ts +++ b/src/generated/apis/ContentsApi.ts @@ -839,7 +839,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -847,7 +846,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/content/{app}/{schema}/bulk`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/content/$app$/{schema}/bulk`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -885,7 +884,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -899,7 +897,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/draft`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/draft`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -936,7 +934,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['checkReferrers'] != null) { @@ -950,7 +947,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -986,7 +983,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1000,7 +996,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/status`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/status`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1037,7 +1033,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1051,7 +1046,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/draft`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/draft`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1088,7 +1083,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['version'] != null) { @@ -1114,7 +1108,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1151,13 +1145,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/validity`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/validity`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1201,7 +1194,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1215,7 +1207,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/{version}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace(`{${"version"}}`, encodeURIComponent(String((requestParameters as any)['version']))), + path: `/api/content/$app$/{schema}/{id}/{version}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace(`{${"version"}}`, encodeURIComponent(String((requestParameters as any)['version']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1246,7 +1238,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['ids'] != null) { @@ -1304,7 +1295,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/content/$app$/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1341,7 +1332,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1373,7 +1363,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/query`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/content/$app$/{schema}/query`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1411,7 +1401,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['q'] != null) { @@ -1445,7 +1434,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/references`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/references`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1482,7 +1471,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['q'] != null) { @@ -1516,7 +1504,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/referencing`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/referencing`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1560,7 +1548,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1576,7 +1563,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PATCH', headers: headerParameters, query: queryParameters, @@ -1614,7 +1601,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['status'] != null) { @@ -1642,7 +1628,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/content/$app$/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1681,7 +1667,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1689,7 +1674,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/content/{app}/{schema}/import`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/content/$app$/{schema}/import`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1735,7 +1720,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['status'] != null) { @@ -1767,7 +1751,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1812,7 +1796,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['enrichDefaults'] != null) { @@ -1832,7 +1815,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1870,7 +1853,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['enrichRequiredFields'] != null) { @@ -1888,7 +1870,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/defaults`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/defaults`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1932,7 +1914,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1948,7 +1929,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/{schema}/{id}/status`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/content/$app$/{schema}/{id}/status`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1979,7 +1960,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['schema'] != null) { @@ -1991,7 +1971,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/content/{app}/bulk`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/content/$app$/bulk`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -2015,7 +1995,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * Queries contents. */ async getAllContentsRaw(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['ids'] != null) { @@ -2069,7 +2048,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/content/$app$`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -2082,7 +2061,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - async getAllContents(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async getAllContents(requestParameters: ContentsSharedGetAllContentsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getAllContentsRaw(requestParameters, initOverrides); return await response.value(); } @@ -2099,7 +2078,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -2131,7 +2109,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/content/$app$`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -2155,7 +2133,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL endpoint. */ async getGraphQLRaw(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['theQueryString'] != null) { @@ -2177,7 +2154,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/graphql`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/content/$app$/graphql`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -2194,7 +2171,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL endpoint. */ - async getGraphQL(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async getGraphQL(requestParameters: ContentsSharedGetGraphQLRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getGraphQLRaw(requestParameters, initOverrides); return await response.value(); } @@ -2204,7 +2181,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL batch endpoint. */ async getGraphQLBatchRaw(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['theQueryString'] != null) { @@ -2226,7 +2202,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/graphql/batch`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/content/$app$/graphql/batch`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -2243,7 +2219,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL batch endpoint. */ - async getGraphQLBatch(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async getGraphQLBatch(requestParameters: ContentsSharedGetGraphQLBatchRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getGraphQLBatchRaw(requestParameters, initOverrides); return await response.value(); } @@ -2253,7 +2229,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL endpoint. */ async postGraphQLRaw(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -2265,7 +2240,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/graphql`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/content/$app$/graphql`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -2283,7 +2258,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL endpoint. */ - async postGraphQL(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async postGraphQL(requestParameters: ContentsSharedPostGraphQLRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.postGraphQLRaw(requestParameters, initOverrides); return await response.value(); } @@ -2293,7 +2268,6 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL batch endpoint. */ async postGraphQLBatchRaw(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -2305,7 +2279,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface } const response = await this.request({ - path: `/api/content/{app}/graphql/batch`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/content/$app$/graphql/batch`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -2323,7 +2297,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL batch endpoint. */ - async postGraphQLBatch(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async postGraphQLBatch(requestParameters: ContentsSharedPostGraphQLBatchRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.postGraphQLBatchRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/src/generated/apis/DiagnosticsApi.ts b/src/generated/apis/DiagnosticsApi.ts index 38f3642..e51f15e 100644 --- a/src/generated/apis/DiagnosticsApi.ts +++ b/src/generated/apis/DiagnosticsApi.ts @@ -73,7 +73,7 @@ export class DiagnosticsApi extends runtime.BaseAPI implements DiagnosticsApiInt const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/diagnostics/dump`, + path: `/api/diagnostics/dump`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -98,7 +98,7 @@ export class DiagnosticsApi extends runtime.BaseAPI implements DiagnosticsApiInt const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/diagnostics/gcdump`, + path: `/api/diagnostics/gcdump`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/EventConsumersApi.ts b/src/generated/apis/EventConsumersApi.ts index 7806aae..ff06339 100644 --- a/src/generated/apis/EventConsumersApi.ts +++ b/src/generated/apis/EventConsumersApi.ts @@ -122,7 +122,7 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/event-consumers`, + path: `/api/event-consumers`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -150,13 +150,12 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/event-consumers/{consumerName}/reset`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))), + path: `/api/event-consumers/{consumerName}/reset`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -184,13 +183,12 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/event-consumers/{consumerName}/start`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))), + path: `/api/event-consumers/{consumerName}/start`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -218,13 +216,12 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/event-consumers/{consumerName}/stop`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))), + path: `/api/event-consumers/{consumerName}/stop`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/HistoryApi.ts b/src/generated/apis/HistoryApi.ts index adfdb71..1c092c1 100644 --- a/src/generated/apis/HistoryApi.ts +++ b/src/generated/apis/HistoryApi.ts @@ -83,7 +83,6 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { * Get the app history. */ async getAppHistoryRaw(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['channel'] != null) { @@ -93,7 +92,7 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/history`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/history`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -105,7 +104,7 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { /** * Get the app history. */ - async getAppHistory(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getAppHistory(requestParameters: HistoryGetAppHistoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.getAppHistoryRaw(requestParameters, initOverrides); return await response.value(); } @@ -121,7 +120,6 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['channel'] != null) { @@ -131,7 +129,7 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/history`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/history`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/JobsApi.ts b/src/generated/apis/JobsApi.ts index dd9927a..85968e2 100644 --- a/src/generated/apis/JobsApi.ts +++ b/src/generated/apis/JobsApi.ts @@ -34,9 +34,6 @@ export interface JobsDeleteJobRequest { id: string; } -export interface JobsGetJobsRequest { -} - /** * JobsApi - interface * @@ -82,12 +79,12 @@ export interface JobsApiInterface { * @throws {RequiredError} * @memberof JobsApiInterface */ - getJobsRaw(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getJobsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get all jobs. */ - getJobs(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getJobs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -107,7 +104,6 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['appId'] != null) { @@ -117,7 +113,7 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -145,13 +141,12 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/jobs/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -170,14 +165,13 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { /** * Get all jobs. */ - async getJobsRaw(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getJobsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/jobs`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/jobs`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -189,8 +183,8 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { /** * Get all jobs. */ - async getJobs(requestParameters: JobsGetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getJobsRaw(requestParameters, initOverrides); + async getJobs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getJobsRaw(initOverrides); return await response.value(); } diff --git a/src/generated/apis/LanguagesApi.ts b/src/generated/apis/LanguagesApi.ts index 96fdbec..cd3ce73 100644 --- a/src/generated/apis/LanguagesApi.ts +++ b/src/generated/apis/LanguagesApi.ts @@ -64,7 +64,7 @@ export class LanguagesApi extends runtime.BaseAPI implements LanguagesApiInterfa const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/languages`, + path: `/api/languages`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/NewsApi.ts b/src/generated/apis/NewsApi.ts index 2b57aef..a2cf56d 100644 --- a/src/generated/apis/NewsApi.ts +++ b/src/generated/apis/NewsApi.ts @@ -62,7 +62,6 @@ export class NewsApi extends runtime.BaseAPI implements NewsApiInterface { * Get features since version. */ async getNewsRaw(requestParameters: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['version'] != null) { @@ -72,7 +71,7 @@ export class NewsApi extends runtime.BaseAPI implements NewsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/news/features`, + path: `/api/news/features`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/PingApi.ts b/src/generated/apis/PingApi.ts index 09441bb..ca51153 100644 --- a/src/generated/apis/PingApi.ts +++ b/src/generated/apis/PingApi.ts @@ -22,9 +22,6 @@ import { ErrorDtoToJSON, } from '../models/index'; -export interface PingGetAppPingRequest { -} - /** * PingApi - interface * @@ -39,13 +36,13 @@ export interface PingApiInterface { * @throws {RequiredError} * @memberof PingApiInterface */ - getAppPingRaw(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAppPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Can be used to test, if the Squidex API is alive and responding. * Get ping status. */ - getAppPing(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAppPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -87,14 +84,13 @@ export class PingApi extends runtime.BaseAPI implements PingApiInterface { * Can be used to test, if the Squidex API is alive and responding. * Get ping status. */ - async getAppPingRaw(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getAppPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/ping/{app}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/ping/$app$`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -107,8 +103,8 @@ export class PingApi extends runtime.BaseAPI implements PingApiInterface { * Can be used to test, if the Squidex API is alive and responding. * Get ping status. */ - async getAppPing(requestParameters: PingGetAppPingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.getAppPingRaw(requestParameters, initOverrides); + async getAppPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.getAppPingRaw(initOverrides); } /** @@ -120,7 +116,7 @@ export class PingApi extends runtime.BaseAPI implements PingApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/info`, + path: `/api/info`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -147,7 +143,7 @@ export class PingApi extends runtime.BaseAPI implements PingApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/ping`, + path: `/api/ping`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/PlansApi.ts b/src/generated/apis/PlansApi.ts index 9fa3225..a8a0a78 100644 --- a/src/generated/apis/PlansApi.ts +++ b/src/generated/apis/PlansApi.ts @@ -31,9 +31,6 @@ import { PlansDtoToJSON, } from '../models/index'; -export interface AppPlansGetPlansRequest { -} - export interface AppPlansPutPlanRequest { changePlanDto: ChangePlanDto; } @@ -61,12 +58,12 @@ export interface PlansApiInterface { * @throws {RequiredError} * @memberof PlansApiInterface */ - getPlansRaw(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get app plan information. */ - getPlans(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -124,14 +121,13 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { /** * Get app plan information. */ - async getPlansRaw(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/plans`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/plans`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -143,8 +139,8 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { /** * Get app plan information. */ - async getPlans(requestParameters: AppPlansGetPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getPlansRaw(requestParameters, initOverrides); + async getPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getPlansRaw(initOverrides); return await response.value(); } @@ -159,7 +155,6 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -167,7 +162,7 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/plan`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/plan`.replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -196,13 +191,12 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/plans`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/plans`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -237,7 +231,6 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -245,7 +238,7 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}/plan`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/plan`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/RulesApi.ts b/src/generated/apis/RulesApi.ts index 4d63fe8..006ee75 100644 --- a/src/generated/apis/RulesApi.ts +++ b/src/generated/apis/RulesApi.ts @@ -47,9 +47,6 @@ export interface RulesDeleteEventRequest { id: string; } -export interface RulesDeleteEventsRequest { -} - export interface RulesDeleteRuleRequest { id: string; } @@ -58,9 +55,6 @@ export interface RulesDeleteRuleEventsRequest { id: string; } -export interface RulesDeleteRuleRunRequest { -} - export interface RulesDisableRuleRequest { id: string; } @@ -79,9 +73,6 @@ export interface RulesGetEventsRequest { take?: number; } -export interface RulesGetRulesRequest { -} - export interface RulesPostRuleRequest { createRuleDto: CreateRuleDto; } @@ -141,12 +132,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - deleteEventsRaw(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteEventsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Cancels all events. */ - deleteEvents(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteEvents(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -185,12 +176,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - deleteRuleRunRaw(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteRuleRunRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Cancel the current run. */ - deleteRuleRun(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteRuleRun(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -289,12 +280,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - getRulesRaw(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get rules. */ - getRules(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getRules(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -421,13 +412,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/events/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -446,14 +436,13 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Cancels all events. */ - async deleteEventsRaw(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async deleteEventsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/events`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/rules/events`.replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -465,8 +454,8 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Cancels all events. */ - async deleteEvents(requestParameters: RulesDeleteEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteEventsRaw(requestParameters, initOverrides); + async deleteEvents(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteEventsRaw(initOverrides); } /** @@ -480,13 +469,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -513,13 +501,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}/events`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -538,14 +525,13 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Cancel the current run. */ - async deleteRuleRunRaw(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async deleteRuleRunRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/run`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/rules/run`.replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -557,8 +543,8 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Cancel the current run. */ - async deleteRuleRun(requestParameters: RulesDeleteRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteRuleRunRaw(requestParameters, initOverrides); + async deleteRuleRun(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteRuleRunRaw(initOverrides); } /** @@ -572,13 +558,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}/disable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}/disable`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -606,13 +591,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}/enable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}/enable`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -638,7 +622,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/rules/actions`, + path: `/api/rules/actions`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -666,13 +650,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/rules/eventtypes/{type}`.replace(`{${"type"}}`, encodeURIComponent(String((requestParameters as any)['type']))), + path: `/api/rules/eventtypes/{type}`.replace(`{${"type"}}`, encodeURIComponent(String((requestParameters as any)['type']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -702,7 +685,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/rules/eventtypes`, + path: `/api/rules/eventtypes`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -723,7 +706,6 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { * Get rule events. */ async getEventsRaw(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['ruleId'] != null) { @@ -741,7 +723,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/events`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/rules/events`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -753,7 +735,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Get rule events. */ - async getEvents(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async getEvents(requestParameters: RulesGetEventsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getEventsRaw(requestParameters, initOverrides); return await response.value(); } @@ -761,14 +743,13 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Get rules. */ - async getRulesRaw(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/rules`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -780,8 +761,8 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Get rules. */ - async getRules(requestParameters: RulesGetRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getRulesRaw(requestParameters, initOverrides); + async getRules(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getRulesRaw(initOverrides); return await response.value(); } @@ -796,7 +777,6 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -804,7 +784,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/rules`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/rules`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -833,13 +813,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/events/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -873,7 +852,6 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -881,7 +859,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -910,7 +888,6 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['fromSnapshots'] != null) { @@ -920,7 +897,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}/run`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}/run`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -947,13 +924,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}/simulate`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}/simulate`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -981,7 +957,6 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -989,7 +964,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/rules/simulate`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/rules/simulate`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1018,13 +993,12 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/rules/{id}/trigger`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/rules/{id}/trigger`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/SchemasApi.ts b/src/generated/apis/SchemasApi.ts index e5c4f59..9aa71e3 100644 --- a/src/generated/apis/SchemasApi.ts +++ b/src/generated/apis/SchemasApi.ts @@ -172,9 +172,6 @@ export interface SchemasGetSchemaRequest { schema: string; } -export interface SchemasGetSchemasRequest { -} - export interface SchemasPostSchemaRequest { createSchemaDto: CreateSchemaDto; } @@ -586,12 +583,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - getSchemasRaw(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getSchemasRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get schemas. */ - getSchemas(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getSchemas(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -759,13 +756,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -807,13 +803,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -849,13 +844,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{id}/disable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/disable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -899,13 +893,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/disable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/disable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -942,13 +935,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{id}/enable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/enable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -992,13 +984,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/enable`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/enable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1035,13 +1026,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{id}/hide`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/hide`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1085,13 +1075,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/hide`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/hide`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1128,13 +1117,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{id}/lock`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/lock`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1178,13 +1166,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/lock`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/lock`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1220,7 +1207,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1228,7 +1214,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/fields`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1271,7 +1257,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1279,7 +1264,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1322,7 +1307,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1330,7 +1314,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1380,7 +1364,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1388,7 +1371,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1431,7 +1414,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1439,7 +1421,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/ordering`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/ordering`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1475,7 +1457,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1483,7 +1464,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/ordering`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/fields/ordering`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1519,7 +1500,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1527,7 +1507,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/ui`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/fields/ui`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1564,13 +1544,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{id}/show`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/show`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1614,13 +1593,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/fields/{parentId}/nested/{id}/show`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/show`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1649,13 +1627,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1682,13 +1659,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1708,14 +1684,13 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Get schemas. */ - async getSchemasRaw(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getSchemasRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/schemas`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1727,8 +1702,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Get schemas. */ - async getSchemas(requestParameters: SchemasGetSchemasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSchemasRaw(requestParameters, initOverrides); + async getSchemas(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSchemasRaw(initOverrides); return await response.value(); } @@ -1743,7 +1718,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1751,7 +1725,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/schemas`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1780,13 +1754,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/publish`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/publish`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1821,7 +1794,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1829,7 +1801,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/category`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/category`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1865,7 +1837,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1873,7 +1844,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/preview-urls`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/preview-urls`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1909,7 +1880,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1917,7 +1887,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/rules`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/rules`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1953,7 +1923,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1961,7 +1930,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1997,7 +1966,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -2005,7 +1973,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/sync`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/sync`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -2041,7 +2009,6 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -2049,7 +2016,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/scripts`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/scripts`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -2078,13 +2045,12 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/schemas/{schema}/unpublish`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))), + path: `/api/apps/$app$/schemas/{schema}/unpublish`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/SearchApi.ts b/src/generated/apis/SearchApi.ts index 4234c60..cc45518 100644 --- a/src/generated/apis/SearchApi.ts +++ b/src/generated/apis/SearchApi.ts @@ -62,7 +62,6 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { * Get search results. */ async getSearchResultsRaw(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['query'] != null) { @@ -72,7 +71,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/search`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/search`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -84,7 +83,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { /** * Get search results. */ - async getSearchResults(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getSearchResults(requestParameters: SearchGetSearchResultsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.getSearchResultsRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/src/generated/apis/StatisticsApi.ts b/src/generated/apis/StatisticsApi.ts index 7265060..c47404a 100644 --- a/src/generated/apis/StatisticsApi.ts +++ b/src/generated/apis/StatisticsApi.ts @@ -34,12 +34,6 @@ import { StorageUsagePerDateDtoToJSON, } from '../models/index'; -export interface UsagesGetCurrentStorageSizeRequest { -} - -export interface UsagesGetLogRequest { -} - export interface UsagesGetStorageSizesRequest { fromDate: Date; toDate: Date; @@ -80,12 +74,12 @@ export interface StatisticsApiInterface { * @throws {RequiredError} * @memberof StatisticsApiInterface */ - getCurrentStorageSizeRaw(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getCurrentStorageSizeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get total asset size for app. */ - getCurrentStorageSize(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getCurrentStorageSize(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -94,12 +88,12 @@ export interface StatisticsApiInterface { * @throws {RequiredError} * @memberof StatisticsApiInterface */ - getLogRaw(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getLogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get api calls as log file. */ - getLog(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getLog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -192,14 +186,13 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get total asset size for app. */ - async getCurrentStorageSizeRaw(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getCurrentStorageSizeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/usages/storage/today`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/usages/storage/today`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -211,22 +204,21 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get total asset size for app. */ - async getCurrentStorageSize(requestParameters: UsagesGetCurrentStorageSizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCurrentStorageSizeRaw(requestParameters, initOverrides); + async getCurrentStorageSize(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCurrentStorageSizeRaw(initOverrides); return await response.value(); } /** * Get api calls as log file. */ - async getLogRaw(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; + async getLogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/usages/log`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/usages/log`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -238,8 +230,8 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get api calls as log file. */ - async getLog(requestParameters: UsagesGetLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getLogRaw(requestParameters, initOverrides); + async getLog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getLogRaw(initOverrides); return await response.value(); } @@ -261,13 +253,12 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/usages/storage/{fromDate}/{toDate}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + path: `/api/apps/$app$/usages/storage/{fromDate}/{toDate}`.replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -309,13 +300,12 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/usages/storage/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + path: `/api/teams/{team}/usages/storage/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -343,13 +333,12 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/usages/storage/today`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/usages/storage/today`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -384,13 +373,12 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/{app}/usages/calls/{fromDate}/{toDate}`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + path: `/api/apps/$app$/usages/calls/{fromDate}/{toDate}`.replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -432,13 +420,12 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/usages/calls/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))), + path: `/api/teams/{team}/usages/calls/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/TeamsApi.ts b/src/generated/apis/TeamsApi.ts index 8e4261b..7aaad5c 100644 --- a/src/generated/apis/TeamsApi.ts +++ b/src/generated/apis/TeamsApi.ts @@ -289,13 +289,12 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/contributors/{id}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/teams/{team}/contributors/{id}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -323,13 +322,12 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/contributors/me`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/contributors/me`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -357,13 +355,12 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -398,7 +395,6 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -406,7 +402,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -435,13 +431,12 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -468,13 +463,12 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -502,13 +496,12 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -535,7 +528,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams`, + path: `/api/teams`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -565,7 +558,6 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -573,7 +565,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams`, + path: `/api/teams`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -610,7 +602,6 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -618,7 +609,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -654,7 +645,6 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -662,7 +652,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))), + path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/TemplatesApi.ts b/src/generated/apis/TemplatesApi.ts index 8751363..65d64fd 100644 --- a/src/generated/apis/TemplatesApi.ts +++ b/src/generated/apis/TemplatesApi.ts @@ -86,13 +86,12 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/templates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))), + path: `/api/templates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -118,7 +117,7 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/templates`, + path: `/api/templates`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/TranslationsApi.ts b/src/generated/apis/TranslationsApi.ts index 0d48cf8..eb0c582 100644 --- a/src/generated/apis/TranslationsApi.ts +++ b/src/generated/apis/TranslationsApi.ts @@ -72,7 +72,6 @@ export class TranslationsApi extends runtime.BaseAPI implements TranslationsApiI ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -80,7 +79,7 @@ export class TranslationsApi extends runtime.BaseAPI implements TranslationsApiI headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/{app}/translations`.replace(`{${"app"}}`, encodeURIComponent(String((requestParameters as any)['app']))), + path: `/api/apps/$app$/translations`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/UserManagementApi.ts b/src/generated/apis/UserManagementApi.ts index 553da6f..db1e33a 100644 --- a/src/generated/apis/UserManagementApi.ts +++ b/src/generated/apis/UserManagementApi.ts @@ -198,13 +198,12 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -231,13 +230,12 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -258,7 +256,6 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement * Get users by query. */ async getUsersRaw(requestParameters: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['query'] != null) { @@ -276,7 +273,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management`, + path: `/api/user-management`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -304,13 +301,12 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}/lock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/user-management/{id}/lock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -338,7 +334,6 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -346,7 +341,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/user-management`, + path: `/api/user-management`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -382,7 +377,6 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -390,7 +384,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -419,13 +413,12 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}/unlock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/user-management/{id}/unlock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/src/generated/apis/UsersApi.ts b/src/generated/apis/UsersApi.ts index 709bf85..ec9da47 100644 --- a/src/generated/apis/UsersApi.ts +++ b/src/generated/apis/UsersApi.ts @@ -147,13 +147,12 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -181,13 +180,12 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/users/{id}/picture`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))), + path: `/api/users/{id}/picture`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -213,7 +211,7 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api`, + path: `/api`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -235,7 +233,6 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { * Get users by query. */ async getUsersRaw(requestParameters: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; if (requestParameters['query'] != null) { @@ -245,7 +242,7 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/users`, + path: `/api/users`.replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -274,7 +271,6 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { ); } - (requestParameters as any)['app'] = this.appName; const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -282,7 +278,7 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/user`, + path: `/api/user`.replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/templates/apis.mustache b/templates/apis.mustache index 825a1ee..7fa3d98 100644 --- a/templates/apis.mustache +++ b/templates/apis.mustache @@ -24,9 +24,7 @@ import { {{#allParams.0}} export interface {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request { {{#allParams}} -{{^vendorExtensions.x-hidden}} {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#hasReadOnly}}Omit<{{{dataType}}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{{dataType}}}{{/hasReadOnly}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}; -{{/vendorExtensions.x-hidden}} {{/allParams}} } @@ -49,9 +47,7 @@ export interface {{classname}}Interface { * @summary {{&summary}} {{/summary}} {{#allParams}} - {{^vendorExtensions.x-hidden}} * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}} - {{/vendorExtensions.x-hidden}} {{/allParams}} * @param {*} [options] Override http request option. {{#isDeprecated}} @@ -60,7 +56,7 @@ export interface {{classname}}Interface { * @throws {RequiredError} * @memberof {{classname}}Interface */ - {{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + {{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** {{#notes}} @@ -74,10 +70,10 @@ export interface {{classname}}Interface { {{/isDeprecated}} */ {{^useSingleRequestParameter}} - {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/vendorExtensions.x-hidden}}{{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; + {{vendorExtensions.x-method-name}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; {{/useSingleRequestParameter}} {{#useSingleRequestParameter}} - {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; + {{vendorExtensions.x-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; {{/useSingleRequestParameter}} {{/operation}} @@ -108,23 +104,18 @@ export class {{classname}} extends runtime.BaseAPI { * @deprecated {{/isDeprecated}} */ - async {{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async {{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { {{#allParams}} - {{^vendorExtensions.x-hidden}} {{#required}} if (requestParameters['{{paramName}}'] == null) { throw new runtime.RequiredError( '{{paramName}}', - 'Required parameter "{{paramName}}" was null or undefined when calling {{vendorExtensions.x-fern-sdk-method-name}}().' + 'Required parameter "{{paramName}}" was null or undefined when calling {{vendorExtensions.x-method-name}}().' ); } {{/required}} - {{/vendorExtensions.x-hidden}} {{/allParams}} - {{#allParams.0}} - (requestParameters as any)['app'] = this.appName; - {{/allParams.0}} const queryParameters: any = {}; {{#queryParams}} @@ -287,7 +278,7 @@ export class {{classname}} extends runtime.BaseAPI { {{/formParams}} {{/hasFormParams}} const response = await this.request({ - path: `{{{path}}}`{{#pathParams}}.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String((requestParameters as any)['{{paramName}}']))){{/pathParams}}, + path: `{{{path}}}`{{#pathParams}}.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String((requestParameters as any)['{{paramName}}']))){{/pathParams}}.replace("$app$", encodeURIComponent(this.appName)), method: '{{httpMethod}}', headers: headerParameters, query: queryParameters, @@ -373,9 +364,9 @@ export class {{classname}} extends runtime.BaseAPI { {{/isDeprecated}} */ {{^useSingleRequestParameter}} - async {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/vendorExtensions.x-hidden}}{{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { + async {{vendorExtensions.x-method-name}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { {{#returnType}} - const response = await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}{ {{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-hidden}}{{/allParams}} }, {{/allParams.0}}initOverrides); + const response = await this.{{vendorExtensions.x-method-name}}Raw({{#allParams.0}}{ {{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }, {{/allParams.0}}initOverrides); {{#isResponseOptional}} switch (response.raw.status) { {{#responses}} @@ -393,14 +384,14 @@ export class {{classname}} extends runtime.BaseAPI { {{/isResponseOptional}} {{/returnType}} {{^returnType}} - await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}{ {{#allParams}}{{^vendorExtensions.x-hidden}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-hidden}}{{/allParams}} }, {{/allParams.0}}initOverrides); + await this.{{vendorExtensions.x-method-name}}Raw({{#allParams.0}}{ {{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }, {{/allParams.0}}initOverrides); {{/returnType}} } {{/useSingleRequestParameter}} {{#useSingleRequestParameter}} - async {{vendorExtensions.x-fern-sdk-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { + async {{vendorExtensions.x-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { {{#returnType}} - const response = await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + const response = await this.{{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); {{#isResponseOptional}} switch (response.raw.status) { {{#responses}} @@ -418,7 +409,7 @@ export class {{classname}} extends runtime.BaseAPI { {{/isResponseOptional}} {{/returnType}} {{^returnType}} - await this.{{vendorExtensions.x-fern-sdk-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + await this.{{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); {{/returnType}} } {{/useSingleRequestParameter}} diff --git a/tests/assets.test.ts b/tests/assets.test.ts index d11a680..20008e8 100644 --- a/tests/assets.test.ts +++ b/tests/assets.test.ts @@ -25,7 +25,7 @@ describe("Assets", () => { const createdAsset = await client.assets.postAsset({ file: fileBlob }); - const assetResponse = await client.assets.getAssetContentBySlugRaw({ idOrSlug: createdAsset.id, more: "" }); + const assetResponse = await client.assets.getAssetContentBySlugRaw({ idOrSlug: createdAsset.id }); const assetBlob = await assetResponse.value(); expect(assetResponse.raw.headers.get("Content-Type")).toEqual("image/png"); From 989e18cd135cbb457f8e96abbf511ea8a18c2426 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 21:56:56 +0200 Subject: [PATCH 07/16] Fix header param name. --- README.md | 30 +- jest.config.js | 12 +- openapi-config.yml | 12 +- openapi.json | 340 ++++++++++++-------- package-lock.json | 130 ++------ package.json | 8 +- src/generated/apis/AssetsApi.ts | 32 +- src/generated/apis/ContentsApi.ts | 512 +++++++++++++++--------------- src/wrapper/SquidexClient.ts | 2 +- src/wrapper/headers.ts | 2 +- templates/apis.mustache | 4 +- tests/_utils.ts | 2 +- tests/globalSetup.ts | 18 +- 13 files changed, 542 insertions(+), 562 deletions(-) diff --git a/README.md b/README.md index ce8ce38..d99acc3 100644 --- a/README.md +++ b/README.md @@ -57,25 +57,25 @@ try { fromSnapshots: true, }); } catch (err) { - if (err instanceof Squidex.BadRequestError) { - console.log(err.statusCode); - console.log(err.message); - console.log(err.body); - } + if (err instanceof Squidex.BadRequestError) { + console.log(err.statusCode); + console.log(err.message); + console.log(err.body); + } } ``` Error codes are as followed: -| Status Code | Error Type | -| ----------- | -------------------------- | -| 400 | `BadRequestError` | -| 403 | `ForbiddenError` | -| 404 | `NotFoundError` | -| 409 | `ConflictError` | -| 413 | `ContentTooLargeError` | -| 500 | `InternalServerError` | -| 501 | `NotImplementedError` | +| Status Code | Error Type | +| ----------- | ---------------------- | +| 400 | `BadRequestError` | +| 403 | `ForbiddenError` | +| 404 | `NotFoundError` | +| 409 | `ConflictError` | +| 413 | `ContentTooLargeError` | +| 500 | `InternalServerError` | +| 501 | `NotImplementedError` | ## Release Candidate status @@ -83,7 +83,7 @@ This SDK is a release candidate, and there may be breaking changes between versi ## Usage in TypeScript ESM Projects -Learn more about ESM [here](https://www.typescriptlang.org/docs/handbook/esm-node.html). +Learn more about ESM [here](https://www.typescriptlang.org/docs/handbook/esm-node.html). To ensure maximum compatability, the Squidex Node SDK is transpiled to CJS JavaScript. If your project is TypeScript ESM, make sure to enable [`esModuleInterop`](https://www.typescriptlang.org/tsconfig#esModuleInterop) in your tsconfig.json so that the imports in this package work correctly. diff --git a/jest.config.js b/jest.config.js index 49b8dad..82438bd 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,8 +1,8 @@ /** @type {import('jest').Config} */ const config = { - globalSetup: './tests/globalSetup.ts', - globalTeardown: './tests/globalTeardown.ts', - testTimeout: 5000 - }; - - module.exports = config; \ No newline at end of file + globalSetup: "./tests/globalSetup.ts", + globalTeardown: "./tests/globalTeardown.ts", + testTimeout: 5000, +}; + +module.exports = config; diff --git a/openapi-config.yml b/openapi-config.yml index 5958781..e179d2c 100644 --- a/openapi-config.yml +++ b/openapi-config.yml @@ -1,9 +1,9 @@ globalProperties: - apiDocs: false - apiTests: false - modelDocs: false - modelTests: false + apiDocs: false + apiTests: false + modelDocs: false + modelTests: false additionalProperties: - withInterfaces: true - useSingleRequestParameter: true \ No newline at end of file + withInterfaces: true + useSingleRequestParameter: true diff --git a/openapi.json b/openapi.json index 5f5699b..e24d29b 100644 --- a/openapi.json +++ b/openapi.json @@ -6587,58 +6587,64 @@ "x-position": 8 }, { - "name": "X-Fields", + "name": "fields", "in": "header", "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-position": 9 + "x-position": 9, + "x-header-name": "X-Fields" }, { - "name": "X-Flatten", + "name": "flatten", "in": "header", "description": "Provide the data as flat object.", "schema": { "type": "boolean" }, - "x-position": 10 + "x-position": 10, + "x-header-name": "X-Flatten" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 11 + "x-position": 11, + "x-header-name": "X-Languages" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 12 + "x-position": 12, + "x-header-name": "X-NoSlowTotal" }, { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 13 + "x-position": 13, + "x-header-name": "X-NoTotal" }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 14 + "x-position": 14, + "x-header-name": "X-Unpublished" } ], "responses": { @@ -6721,22 +6727,24 @@ "x-position": 5 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 6 + "x-position": 6, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 7 + "x-position": 7, + "x-header-name": "X-Languages" } ], "requestBody": { @@ -6817,58 +6825,64 @@ "x-position": 1 }, { - "name": "X-Fields", + "name": "fields", "in": "header", "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-position": 3 + "x-position": 3, + "x-header-name": "X-Fields" }, { - "name": "X-Flatten", + "name": "flatten", "in": "header", "description": "Provide the data as flat object.", "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Flatten" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Languages" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 6 + "x-position": 6, + "x-header-name": "X-NoSlowTotal" }, { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 7, + "x-header-name": "X-NoTotal" }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 8, + "x-header-name": "X-Unpublished" } ], "requestBody": { @@ -6968,40 +6982,44 @@ "x-position": 3 }, { - "name": "X-Fields", + "name": "fields", "in": "header", "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Fields" }, { - "name": "X-Flatten", + "name": "flatten", "in": "header", "description": "Provide the data as flat object.", "schema": { "type": "boolean" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Flatten" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 6 + "x-position": 6, + "x-header-name": "X-Languages" }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 7, + "x-header-name": "X-Unpublished" } ], "responses": { @@ -7102,22 +7120,24 @@ "x-position": 7 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 8, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 9 + "x-position": 9, + "x-header-name": "X-Languages" } ], "requestBody": { @@ -7215,22 +7235,24 @@ "x-position": 4 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 6 + "x-position": 6, + "x-header-name": "X-Languages" } ], "requestBody": { @@ -7319,22 +7341,24 @@ "x-position": 2 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Languages" } ], "requestBody": { @@ -7585,58 +7609,64 @@ "x-position": 3 }, { - "name": "X-Fields", + "name": "fields", "in": "header", "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Fields" }, { - "name": "X-Flatten", + "name": "flatten", "in": "header", "description": "Provide the data as flat object.", "schema": { "type": "boolean" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Flatten" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 6 + "x-position": 6, + "x-header-name": "X-Languages" }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 7, + "x-header-name": "X-Unpublished" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 8, + "x-header-name": "X-NoSlowTotal" }, { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 9 + "x-position": 9, + "x-header-name": "X-NoTotal" } ], "responses": { @@ -7712,58 +7742,64 @@ "x-position": 3 }, { - "name": "X-Fields", + "name": "fields", "in": "header", "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Fields" }, { - "name": "X-Flatten", + "name": "flatten", "in": "header", "description": "Provide the data as flat object.", "schema": { "type": "boolean" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Flatten" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 6 + "x-position": 6, + "x-header-name": "X-Languages" }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 7, + "x-header-name": "X-Unpublished" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 8, + "x-header-name": "X-NoSlowTotal" }, { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 9 + "x-position": 9, + "x-header-name": "X-NoTotal" } ], "responses": { @@ -7840,22 +7876,24 @@ "x-position": 3 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Languages" } ], "responses": { @@ -8097,22 +8135,24 @@ "x-position": 3 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Languages" } ], "responses": { @@ -8190,22 +8230,24 @@ "x-position": 2 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-Languages" } ], "requestBody": { @@ -8294,22 +8336,24 @@ "x-position": 2 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 3 + "x-position": 3, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Languages" } ], "responses": { @@ -8387,22 +8431,24 @@ "x-position": 2 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 3 + "x-position": 3, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Languages" } ], "responses": { @@ -8478,22 +8524,24 @@ "x-position": 2 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 3 + "x-position": 3, + "x-header-name": "X-Unpublished" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Languages" } ], "responses": { @@ -8580,13 +8628,14 @@ "x-position": 3 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Unpublished" } ], "responses": { @@ -8628,13 +8677,14 @@ "operationId": "ContentsShared_PostGraphQL", "parameters": [ { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 2 + "x-position": 2, + "x-header-name": "X-Unpublished" } ], "requestBody": { @@ -8727,13 +8777,14 @@ "x-position": 3 }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Unpublished" } ], "responses": { @@ -8775,13 +8826,14 @@ "operationId": "ContentsShared_PostGraphQLBatch", "parameters": [ { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 2 + "x-position": 2, + "x-header-name": "X-Unpublished" } ], "requestBody": { @@ -8907,58 +8959,64 @@ "x-position": 6 }, { - "name": "X-Fields", + "name": "fields", "in": "header", "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-position": 7 + "x-position": 7, + "x-header-name": "X-Fields" }, { - "name": "X-Flatten", + "name": "flatten", "in": "header", "description": "Provide the data as flat object.", "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 8, + "x-header-name": "X-Flatten" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 9 + "x-position": 9, + "x-header-name": "X-Languages" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 10 + "x-position": 10, + "x-header-name": "X-NoSlowTotal" }, { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 11 + "x-position": 11, + "x-header-name": "X-NoTotal" }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 12 + "x-position": 12, + "x-header-name": "X-Unpublished" } ], "responses": { @@ -9002,58 +9060,64 @@ "operationId": "ContentsShared_GetAllContentsPost", "parameters": [ { - "name": "X-Fields", + "name": "fields", "in": "header", "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-position": 2 + "x-position": 2, + "x-header-name": "X-Fields" }, { - "name": "X-Flatten", + "name": "flatten", "in": "header", "description": "Provide the data as flat object.", "schema": { "type": "boolean" }, - "x-position": 3 + "x-position": 3, + "x-header-name": "X-Flatten" }, { - "name": "X-Languages", + "name": "languages", "in": "header", "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 4, + "x-header-name": "X-Languages" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 5 + "x-position": 5, + "x-header-name": "X-NoSlowTotal" }, { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 6 + "x-position": 6, + "x-header-name": "X-NoTotal" }, { - "name": "X-Unpublished", + "name": "unpublished", "in": "header", "description": "Return unpublished content items.", "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 7, + "x-header-name": "X-Unpublished" } ], "requestBody": { @@ -10493,22 +10557,24 @@ "x-position": 7 }, { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 8, + "x-header-name": "X-NoTotal" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 9 + "x-position": 9, + "x-header-name": "X-NoSlowTotal" } ], "responses": { @@ -10668,22 +10734,24 @@ "operationId": "Assets_GetAssetsPost", "parameters": [ { - "name": "X-NoTotal", + "name": "noTotal", "in": "header", "description": "Do not return the total amount.", "schema": { "type": "boolean" }, - "x-position": 2 + "x-position": 2, + "x-header-name": "X-NoTotal" }, { - "name": "X-NoSlowTotal", + "name": "noSlowTotal", "in": "header", "description": "Do not return the total amount, if it would be slow.", "schema": { "type": "boolean" }, - "x-position": 3 + "x-position": 3, + "x-header-name": "X-NoSlowTotal" } ], "requestBody": { diff --git a/package-lock.json b/package-lock.json index de8edca..df2ba53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,11 +8,7 @@ "name": "@squidex/squidex", "version": "1.2.1", "dependencies": { - "@types/url-join": "4.0.1", - "@ungap/url-search-params": "0.2.2", - "axios": "0.27.2", - "form-data": "4.0.0", - "js-base64": "3.7.2", + "cross-env": "^7.0.3", "url-join": "4.0.1" }, "devDependencies": { @@ -2603,11 +2599,6 @@ "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "dev": true }, - "node_modules/@types/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ==" - }, "node_modules/@types/yargs": { "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", @@ -2623,11 +2614,6 @@ "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true }, - "node_modules/@ungap/url-search-params": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@ungap/url-search-params/-/url-search-params-0.2.2.tgz", - "integrity": "sha512-qQsguKXZVKdCixOHX9jqnX/K/1HekPDpGKyEcXHT+zR6EjGA7S4boSuelL4uuPv6YfhN0n8c4UxW+v/Z3gM2iw==" - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -2686,20 +2672,6 @@ "sprintf-js": "~1.0.2" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/axios": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", - "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", - "dependencies": { - "follow-redirects": "^1.14.9", - "form-data": "^4.0.0" - } - }, "node_modules/babel-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", @@ -3121,17 +3093,6 @@ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -3248,11 +3209,27 @@ "node": ">=8" } }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3302,14 +3279,6 @@ "node": ">=0.10.0" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", @@ -3489,38 +3458,6 @@ "node": ">=8" } }, - "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -3769,8 +3706,7 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", @@ -5427,11 +5363,6 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/js-base64": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", - "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -5587,25 +5518,6 @@ "node": ">=8.6" } }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -5787,7 +5699,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, "engines": { "node": ">=8" } @@ -6053,7 +5964,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -6065,7 +5975,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, "engines": { "node": ">=8" } @@ -6407,7 +6316,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, "dependencies": { "isexe": "^2.0.0" }, diff --git a/package.json b/package.json index eaf3b3a..e50fd87 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,12 @@ "main": "./index.js", "types": "./index.d.ts", "scripts": { - "format": "prettier --write src/wrapper/**/*.ts", - "format:tests": "prettier --write tests/**/*.ts", "build": "tsc", + "format:tests": "prettier --write tests/**/*.ts", + "format:source": "prettier --write src/wrapper/**/*.ts", + "generate:help": "cross-env-shell docker run --rm -v $INIT_CWD:/local openapitools/openapi-generator-cli config-help -g typescript-fetch", + "generate:run": "cross-env-shell docker run --rm -v $INIT_CWD:/local openapitools/openapi-generator-cli generate -i /local/openapi.json -g typescript-fetch --template-dir /local/templates -o /local/src/generated -c /local/openapi-config.yml", + "generate": "npm run generate:run && npm run format:source && npm run format:tests", "prepack": "cp -rv dist/. .", "test": "jest tests" }, @@ -21,6 +24,7 @@ "@babel/preset-typescript": "^7.24.7", "@types/jest": "^29.5.12", "@types/node": "17.0.33", + "cross-env": "^7.0.3", "jest": "^29.7.0", "prettier": "2.7.1", "typescript": "4.6.4" diff --git a/src/generated/apis/AssetsApi.ts b/src/generated/apis/AssetsApi.ts index d085b08..bbe5408 100644 --- a/src/generated/apis/AssetsApi.ts +++ b/src/generated/apis/AssetsApi.ts @@ -153,14 +153,14 @@ export interface AssetsGetAssetsRequest { $skip?: number; $orderby?: string; $filter?: string; - xNoTotal?: boolean; - xNoSlowTotal?: boolean; + noTotal?: boolean; + noSlowTotal?: boolean; } export interface AssetsGetAssetsPostRequest { queryDto: QueryDto; - xNoTotal?: boolean; - xNoSlowTotal?: boolean; + noTotal?: boolean; + noSlowTotal?: boolean; } export interface AssetsPostAssetRequest { @@ -408,8 +408,8 @@ export interface AssetsApiInterface { * @param {number} [$skip] Optional number of items to skip. * @param {string} [$orderby] Optional OData order definition. * @param {string} [$filter] Optional OData filter. - * @param {boolean} [xNoTotal] Do not return the total amount. - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssetsApiInterface @@ -426,8 +426,8 @@ export interface AssetsApiInterface { * Get all assets for the app. * @summary Get assets. * @param {QueryDto} queryDto The required query object. - * @param {boolean} [xNoTotal] Do not return the total amount. - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssetsApiInterface @@ -1095,12 +1095,12 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } const response = await this.request({ @@ -1140,12 +1140,12 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } const response = await this.request({ diff --git a/src/generated/apis/ContentsApi.ts b/src/generated/apis/ContentsApi.ts index a8148c9..710b412 100644 --- a/src/generated/apis/ContentsApi.ts +++ b/src/generated/apis/ContentsApi.ts @@ -54,8 +54,8 @@ export interface ContentsBulkUpdateContentsRequest { export interface ContentsCreateDraftRequest { schema: string; id: string; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsDeleteContentRequest { @@ -68,25 +68,25 @@ export interface ContentsDeleteContentRequest { export interface ContentsDeleteContentStatusRequest { schema: string; id: string; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsDeleteVersionRequest { schema: string; id: string; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsGetContentRequest { schema: string; id: string; version?: number; - xFields?: string; - xFlatten?: boolean; - xLanguages?: string; - xUnpublished?: boolean; + fields?: string; + flatten?: boolean; + languages?: string; + unpublished?: boolean; } export interface ContentsGetContentValidityRequest { @@ -98,8 +98,8 @@ export interface ContentsGetContentVersionRequest { schema: string; id: string; version: number; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsGetContentsRequest { @@ -111,55 +111,55 @@ export interface ContentsGetContentsRequest { $skip?: number; $orderby?: string; $filter?: string; - xFields?: string; - xFlatten?: boolean; - xLanguages?: string; - xNoSlowTotal?: boolean; - xNoTotal?: boolean; - xUnpublished?: boolean; + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; } export interface ContentsGetContentsPostRequest { schema: string; queryDto: QueryDto; - xFields?: string; - xFlatten?: boolean; - xLanguages?: string; - xNoSlowTotal?: boolean; - xNoTotal?: boolean; - xUnpublished?: boolean; + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; } export interface ContentsGetReferencesRequest { schema: string; id: string; q?: string | null; - xFields?: string; - xFlatten?: boolean; - xLanguages?: string; - xUnpublished?: boolean; - xNoSlowTotal?: boolean; - xNoTotal?: boolean; + fields?: string; + flatten?: boolean; + languages?: string; + unpublished?: boolean; + noSlowTotal?: boolean; + noTotal?: boolean; } export interface ContentsGetReferencingRequest { schema: string; id: string; q?: string | null; - xFields?: string; - xFlatten?: boolean; - xLanguages?: string; - xUnpublished?: boolean; - xNoSlowTotal?: boolean; - xNoTotal?: boolean; + fields?: string; + flatten?: boolean; + languages?: string; + unpublished?: boolean; + noSlowTotal?: boolean; + noTotal?: boolean; } export interface ContentsPatchContentRequest { schema: string; id: string; requestBody: { [key: string]: { [key: string]: any; }; }; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsPostContentRequest { @@ -168,8 +168,8 @@ export interface ContentsPostContentRequest { status?: string | null; id?: string | null; publish?: boolean; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsPostContentsRequest { @@ -185,8 +185,8 @@ export interface ContentsPostUpsertContentRequest { patch?: boolean; enrichDefaults?: boolean; publish?: boolean; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsPutContentRequest { @@ -194,24 +194,24 @@ export interface ContentsPutContentRequest { id: string; requestBody: { [key: string]: { [key: string]: any; }; }; enrichDefaults?: boolean; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsPutContentDefaultsRequest { schema: string; id: string; enrichRequiredFields?: boolean; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsPutContentStatusRequest { schema: string; id: string; changeStatusDto: ChangeStatusDto; - xUnpublished?: boolean; - xLanguages?: string; + unpublished?: boolean; + languages?: string; } export interface ContentsSharedBulkUpdateAllContentsRequest { @@ -226,45 +226,45 @@ export interface ContentsSharedGetAllContentsRequest { referencing?: string | null; references?: string | null; q?: string | null; - xFields?: string; - xFlatten?: boolean; - xLanguages?: string; - xNoSlowTotal?: boolean; - xNoTotal?: boolean; - xUnpublished?: boolean; + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; } export interface ContentsSharedGetAllContentsPostRequest { allContentsByPostDto: AllContentsByPostDto; - xFields?: string; - xFlatten?: boolean; - xLanguages?: string; - xNoSlowTotal?: boolean; - xNoTotal?: boolean; - xUnpublished?: boolean; + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; } export interface ContentsSharedGetGraphQLRequest { theQueryString?: string; variables?: string | null; operationName?: string | null; - xUnpublished?: boolean; + unpublished?: boolean; } export interface ContentsSharedGetGraphQLBatchRequest { theQueryString?: string; variables?: string | null; operationName?: string | null; - xUnpublished?: boolean; + unpublished?: boolean; } export interface ContentsSharedPostGraphQLRequest { - xUnpublished?: boolean; + unpublished?: boolean; body?: any | null; } export interface ContentsSharedPostGraphQLBatchRequest { - xUnpublished?: boolean; + unpublished?: boolean; body?: any | null; } @@ -297,8 +297,8 @@ export interface ContentsApiInterface { * @summary Create a new draft version. * @param {string} schema The name of the schema. * @param {string} id The ID of the content item to create the draft for. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -335,8 +335,8 @@ export interface ContentsApiInterface { * @summary Cancel status change of a content item. * @param {string} schema The name of the schema. * @param {string} id The ID of the content item to cancel. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -354,8 +354,8 @@ export interface ContentsApiInterface { * @summary Delete the draft version. * @param {string} schema The name of the schema. * @param {string} id The ID of the content item to delete the draft from. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -374,10 +374,10 @@ export interface ContentsApiInterface { * @param {string} schema The name of the schema. * @param {string} id The ID of the content to fetch. * @param {number} [version] The optional version. - * @param {string} [xFields] The list of content fields (comma-separated). - * @param {boolean} [xFlatten] Provide the data as flat object. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [fields] The list of content fields (comma-separated). + * @param {boolean} [flatten] Provide the data as flat object. + * @param {string} [languages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -413,8 +413,8 @@ export interface ContentsApiInterface { * @param {string} schema The name of the schema. * @param {string} id The ID of the content to fetch. * @param {number} version The version fo the content to fetch. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} @@ -440,12 +440,12 @@ export interface ContentsApiInterface { * @param {number} [$skip] Optional number of items to skip. * @param {string} [$orderby] Optional OData order definition. * @param {string} [$filter] Optional OData filter. - * @param {string} [xFields] The list of content fields (comma-separated). - * @param {boolean} [xFlatten] Provide the data as flat object. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. - * @param {boolean} [xNoTotal] Do not return the total amount. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [fields] The list of content fields (comma-separated). + * @param {boolean} [flatten] Provide the data as flat object. + * @param {string} [languages] The list of languages to resolve (comma-separated). + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. + * @param {boolean} [unpublished] Return unpublished content items. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -463,12 +463,12 @@ export interface ContentsApiInterface { * @summary Queries contents. * @param {string} schema The name of the schema. * @param {QueryDto} queryDto The required query object. - * @param {string} [xFields] The list of content fields (comma-separated). - * @param {boolean} [xFlatten] Provide the data as flat object. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. - * @param {boolean} [xNoTotal] Do not return the total amount. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [fields] The list of content fields (comma-separated). + * @param {boolean} [flatten] Provide the data as flat object. + * @param {string} [languages] The list of languages to resolve (comma-separated). + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. + * @param {boolean} [unpublished] Return unpublished content items. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -487,12 +487,12 @@ export interface ContentsApiInterface { * @param {string} schema The name of the schema. * @param {string} id The ID of the content to fetch. * @param {string} [q] The optional json query. - * @param {string} [xFields] The list of content fields (comma-separated). - * @param {boolean} [xFlatten] Provide the data as flat object. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. - * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {string} [fields] The list of content fields (comma-separated). + * @param {boolean} [flatten] Provide the data as flat object. + * @param {string} [languages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -511,12 +511,12 @@ export interface ContentsApiInterface { * @param {string} schema The name of the schema. * @param {string} id The ID of the content to fetch. * @param {string} [q] The optional json query. - * @param {string} [xFields] The list of content fields (comma-separated). - * @param {boolean} [xFlatten] Provide the data as flat object. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. - * @param {boolean} [xNoTotal] Do not return the total amount. + * @param {string} [fields] The list of content fields (comma-separated). + * @param {boolean} [flatten] Provide the data as flat object. + * @param {string} [languages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -535,8 +535,8 @@ export interface ContentsApiInterface { * @param {string} schema The name of the schema. * @param {string} id The ID of the content item to patch. * @param {{ [key: string]: { [key: string]: any; }; }} requestBody The patch for the content item. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -557,8 +557,8 @@ export interface ContentsApiInterface { * @param {string} [status] The initial status. * @param {string} [id] The optional custom content id. * @param {boolean} [publish] True to automatically publish the content. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -600,8 +600,8 @@ export interface ContentsApiInterface { * @param {boolean} [patch] Makes the update as patch. * @param {boolean} [enrichDefaults] Enrich the content with defaults. * @param {boolean} [publish] True to automatically publish the content. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -621,8 +621,8 @@ export interface ContentsApiInterface { * @param {string} id The ID of the content item to update. * @param {{ [key: string]: { [key: string]: any; }; }} requestBody The full data for the content item. * @param {boolean} [enrichDefaults] Enrich the content with defaults. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -641,8 +641,8 @@ export interface ContentsApiInterface { * @param {string} schema The name of the schema. * @param {string} id The ID of the content item to update. * @param {boolean} [enrichRequiredFields] True, to also enrich required fields. Default: false. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -661,8 +661,8 @@ export interface ContentsApiInterface { * @param {string} schema The name of the schema. * @param {string} id The ID of the content item to change. * @param {ChangeStatusDto} changeStatusDto The status request. - * @param {boolean} [xUnpublished] Return unpublished content items. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). + * @param {boolean} [unpublished] Return unpublished content items. + * @param {string} [languages] The list of languages to resolve (comma-separated). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -701,12 +701,12 @@ export interface ContentsApiInterface { * @param {string} [referencing] The ID of the referencing content item. * @param {string} [references] The ID of the reference content item. * @param {string} [q] The optional json query. - * @param {string} [xFields] The list of content fields (comma-separated). - * @param {boolean} [xFlatten] Provide the data as flat object. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. - * @param {boolean} [xNoTotal] Do not return the total amount. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [fields] The list of content fields (comma-separated). + * @param {boolean} [flatten] Provide the data as flat object. + * @param {string} [languages] The list of languages to resolve (comma-separated). + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. + * @param {boolean} [unpublished] Return unpublished content items. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -723,12 +723,12 @@ export interface ContentsApiInterface { * You can read the generated documentation for your app at /api/content/{appName}/docs. * @summary Queries contents. * @param {AllContentsByPostDto} allContentsByPostDto The required query object. - * @param {string} [xFields] The list of content fields (comma-separated). - * @param {boolean} [xFlatten] Provide the data as flat object. - * @param {string} [xLanguages] The list of languages to resolve (comma-separated). - * @param {boolean} [xNoSlowTotal] Do not return the total amount, if it would be slow. - * @param {boolean} [xNoTotal] Do not return the total amount. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {string} [fields] The list of content fields (comma-separated). + * @param {boolean} [flatten] Provide the data as flat object. + * @param {string} [languages] The list of languages to resolve (comma-separated). + * @param {boolean} [noSlowTotal] Do not return the total amount, if it would be slow. + * @param {boolean} [noTotal] Do not return the total amount. + * @param {boolean} [unpublished] Return unpublished content items. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -747,7 +747,7 @@ export interface ContentsApiInterface { * @param {string} [theQueryString] The optional version of the asset. * @param {string} [variables] The optional operation variables. * @param {string} [operationName] The optional operation name. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {boolean} [unpublished] Return unpublished content items. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -766,7 +766,7 @@ export interface ContentsApiInterface { * @param {string} [theQueryString] The optional version of the asset. * @param {string} [variables] The optional operation variables. * @param {string} [operationName] The optional operation name. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {boolean} [unpublished] Return unpublished content items. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentsApiInterface @@ -782,7 +782,7 @@ export interface ContentsApiInterface { /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * @summary GraphQL endpoint. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {boolean} [unpublished] Return unpublished content items. * @param {any} [body] The graphql request. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -799,7 +799,7 @@ export interface ContentsApiInterface { /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * @summary GraphQL batch endpoint. - * @param {boolean} [xUnpublished] Return unpublished content items. + * @param {boolean} [unpublished] Return unpublished content items. * @param {any} [body] The graphql request. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -888,12 +888,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -987,12 +987,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1037,12 +1037,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1091,20 +1091,20 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xFields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['xFields']); + if (requestParameters['fields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['fields']); } - if (requestParameters['xFlatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + if (requestParameters['flatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['flatten']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -1198,12 +1198,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1270,28 +1270,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xFields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['xFields']); + if (requestParameters['fields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['fields']); } - if (requestParameters['xFlatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + if (requestParameters['flatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['flatten']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -1338,28 +1338,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xFields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['xFields']); + if (requestParameters['fields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['fields']); } - if (requestParameters['xFlatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + if (requestParameters['flatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['flatten']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -1409,28 +1409,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xFields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['xFields']); + if (requestParameters['fields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['fields']); } - if (requestParameters['xFlatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + if (requestParameters['flatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['flatten']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } const response = await this.request({ @@ -1479,28 +1479,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xFields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['xFields']); + if (requestParameters['fields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['fields']); } - if (requestParameters['xFlatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + if (requestParameters['flatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['flatten']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } const response = await this.request({ @@ -1554,12 +1554,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1619,12 +1619,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1742,12 +1742,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1806,12 +1806,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1861,12 +1861,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -1920,12 +1920,12 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } const response = await this.request({ @@ -2023,28 +2023,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xFields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['xFields']); + if (requestParameters['fields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['fields']); } - if (requestParameters['xFlatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + if (requestParameters['flatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['flatten']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -2084,28 +2084,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xFields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['xFields']); + if (requestParameters['fields'] != null) { + headerParameters['X-Fields'] = String(requestParameters['fields']); } - if (requestParameters['xFlatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['xFlatten']); + if (requestParameters['flatten'] != null) { + headerParameters['X-Flatten'] = String(requestParameters['flatten']); } - if (requestParameters['xLanguages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['xLanguages']); + if (requestParameters['languages'] != null) { + headerParameters['X-Languages'] = String(requestParameters['languages']); } - if (requestParameters['xNoSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['xNoSlowTotal']); + if (requestParameters['noSlowTotal'] != null) { + headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); } - if (requestParameters['xNoTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['xNoTotal']); + if (requestParameters['noTotal'] != null) { + headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); } - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -2149,8 +2149,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -2197,8 +2197,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -2235,8 +2235,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ @@ -2274,8 +2274,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['xUnpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['xUnpublished']); + if (requestParameters['unpublished'] != null) { + headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); } const response = await this.request({ diff --git a/src/wrapper/SquidexClient.ts b/src/wrapper/SquidexClient.ts index 4f55c97..71bf722 100644 --- a/src/wrapper/SquidexClient.ts +++ b/src/wrapper/SquidexClient.ts @@ -341,7 +341,7 @@ export class SquidexClients { } ); - const body = await response.json() as { access_token: string; expires_in: number }; + const body = (await response.json()) as { access_token: string; expires_in: number }; if (typeof body.access_token !== "string") { throw new SquidexUnauthorizedError(undefined, undefined, "Token is not a string"); diff --git a/src/wrapper/headers.ts b/src/wrapper/headers.ts index cbf3311..23dcb09 100644 --- a/src/wrapper/headers.ts +++ b/src/wrapper/headers.ts @@ -1,6 +1,6 @@ export function getHeader(init: RequestInit, key: string) { if (Array.isArray(init.headers)) { - return init.headers.find(x => x[0] === key)?.[1]; + return init.headers.find((x) => x[0] === key)?.[1]; } else if (init.headers instanceof Headers) { return init.headers.get(key); } else if (init.headers) { diff --git a/templates/apis.mustache b/templates/apis.mustache index 7fa3d98..1dc6fbe 100644 --- a/templates/apis.mustache +++ b/templates/apis.mustache @@ -162,13 +162,13 @@ export class {{classname}} extends runtime.BaseAPI { {{#headerParams}} {{#isArray}} if (requestParameters['{{paramName}}'] != null) { - headerParameters['{{baseName}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); + headerParameters['{{vendorExtensions.x-header-name}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); } {{/isArray}} {{^isArray}} if (requestParameters['{{paramName}}'] != null) { - headerParameters['{{baseName}}'] = String(requestParameters['{{paramName}}']); + headerParameters['{{vendorExtensions.x-header-name}}'] = String(requestParameters['{{paramName}}']); } {{/isArray}} diff --git a/tests/_utils.ts b/tests/_utils.ts index 8fe9971..b8bf2f7 100644 --- a/tests/_utils.ts +++ b/tests/_utils.ts @@ -20,7 +20,7 @@ export function getClient() { environment, middleware: { pre: async ({ init }) => { - (init as any)['agent'] = new https.Agent({ + (init as any)["agent"] = new https.Agent({ rejectUnauthorized: false, }); }, diff --git a/tests/globalSetup.ts b/tests/globalSetup.ts index ad41e50..1fb456b 100644 --- a/tests/globalSetup.ts +++ b/tests/globalSetup.ts @@ -18,12 +18,12 @@ async function setup() { console.log("Waiting for server is skipped."); return; } - + console.log(`Waiting ${waitTime} seconds to access server.`); - + const timeout = waitTime * 1000; const timeStart = getTime(); - + while (true) { try { await client.ping.getPing(); @@ -32,21 +32,21 @@ async function setup() { if (error instanceof SquidexError) { throw error; } - + const elapsed = getTime() - timeStart; - + if (elapsed > timeout) { throw new Error(`Cannot connect to test system with: ${error}.`); } } - + await delay(100); } - + console.log("Connected to server."); - } + }; - await waitForServer(); + await waitForServer(); try { await client.apps.postApp({ createAppDto: { name: client.appName } }); From 5241006316c48f7ff3a570169b0b985bd1e8c852 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 22:57:36 +0200 Subject: [PATCH 08/16] Fix build error. --- .github/workflows/ci.yml | 6 +++--- package-lock.json | 11 +++++++++-- src/generated/models/AddFieldDto.ts | 2 +- src/generated/models/AddLanguageDto.ts | 2 +- src/generated/models/AddRoleDto.ts | 2 +- src/generated/models/AddWorkflowDto.ts | 2 +- src/generated/models/AlgoliaRuleActionDto.ts | 2 +- src/generated/models/AllContentsByPostDto.ts | 2 +- src/generated/models/AnnotateAssetDto.ts | 2 +- src/generated/models/AppDto.ts | 4 ++-- src/generated/models/AppLanguageDto.ts | 4 ++-- src/generated/models/AppLanguagesDto.ts | 6 +++--- src/generated/models/AppSettingsDto.ts | 8 ++++---- src/generated/models/ArrayFieldPropertiesDto.ts | 2 +- src/generated/models/AssetChangedRuleTriggerDto.ts | 2 +- src/generated/models/AssetDto.ts | 4 ++-- src/generated/models/AssetFolderDto.ts | 4 ++-- src/generated/models/AssetFoldersDto.ts | 8 ++++---- src/generated/models/AssetMeta.ts | 2 +- src/generated/models/AssetScriptsDto.ts | 4 ++-- src/generated/models/AssetsDto.ts | 6 +++--- src/generated/models/AssetsFieldPropertiesDto.ts | 2 +- src/generated/models/AssignContributorDto.ts | 2 +- src/generated/models/AuthSchemeDto.ts | 2 +- src/generated/models/AuthSchemeResponseDto.ts | 4 ++-- src/generated/models/AuthSchemeValueDto.ts | 2 +- src/generated/models/AzureQueueRuleActionDto.ts | 2 +- src/generated/models/BackupJobDto.ts | 4 ++-- src/generated/models/BackupJobsDto.ts | 6 +++--- src/generated/models/BooleanFieldPropertiesDto.ts | 2 +- src/generated/models/BulkResultDto.ts | 2 +- src/generated/models/BulkUpdateAssetsDto.ts | 4 ++-- src/generated/models/BulkUpdateAssetsJobDto.ts | 2 +- src/generated/models/BulkUpdateContentsDto.ts | 4 ++-- src/generated/models/BulkUpdateContentsJobDto.ts | 2 +- src/generated/models/CallsUsageDtoDto.ts | 2 +- src/generated/models/CallsUsagePerDateDto.ts | 2 +- src/generated/models/ChangeCategoryDto.ts | 2 +- src/generated/models/ChangePlanDto.ts | 2 +- src/generated/models/ChangeStatusDto.ts | 2 +- src/generated/models/ClientDto.ts | 4 ++-- src/generated/models/ClientsDto.ts | 6 +++--- src/generated/models/CommentRuleActionDto.ts | 2 +- src/generated/models/CommentRuleTriggerDto.ts | 2 +- src/generated/models/ComponentFieldPropertiesDto.ts | 2 +- src/generated/models/ComponentsFieldPropertiesDto.ts | 2 +- src/generated/models/ConfigureFieldRulesDto.ts | 4 ++-- src/generated/models/ConfigureUIFieldsDto.ts | 2 +- src/generated/models/ContentChangedRuleTriggerDto.ts | 6 +++--- src/generated/models/ContentDto.ts | 6 +++--- src/generated/models/ContentsDto.ts | 8 ++++---- src/generated/models/ContributorDto.ts | 4 ++-- src/generated/models/ContributorsDto.ts | 6 +++--- src/generated/models/ContributorsMetadata.ts | 2 +- src/generated/models/CreateAppDto.ts | 2 +- src/generated/models/CreateAssetFolderDto.ts | 2 +- src/generated/models/CreateClientDto.ts | 2 +- src/generated/models/CreateContentRuleActionDto.ts | 2 +- src/generated/models/CreateRuleDto.ts | 2 +- src/generated/models/CreateSchemaDto.ts | 6 +++--- src/generated/models/CreateTeamDto.ts | 2 +- src/generated/models/CreateUserDto.ts | 2 +- src/generated/models/CurrentStorageDto.ts | 2 +- src/generated/models/DateTimeFieldPropertiesDto.ts | 2 +- src/generated/models/DiscourseRuleActionDto.ts | 2 +- src/generated/models/EditorDto.ts | 2 +- src/generated/models/ElasticSearchRuleActionDto.ts | 2 +- src/generated/models/EmailRuleActionDto.ts | 2 +- src/generated/models/ErrorDto.ts | 2 +- src/generated/models/EventConsumerDto.ts | 4 ++-- src/generated/models/EventConsumersDto.ts | 6 +++--- src/generated/models/FastlyRuleActionDto.ts | 2 +- src/generated/models/FeatureDto.ts | 2 +- src/generated/models/FeaturesDto.ts | 4 ++-- src/generated/models/FieldDto.ts | 6 +++--- src/generated/models/FieldPropertiesDto.ts | 2 +- src/generated/models/FieldRuleDto.ts | 2 +- src/generated/models/GeolocationFieldPropertiesDto.ts | 2 +- src/generated/models/HistoryEventDto.ts | 2 +- src/generated/models/ImportContentsDto.ts | 2 +- src/generated/models/JobDto.ts | 6 +++--- src/generated/models/JobLogMessageDto.ts | 2 +- src/generated/models/JobsDto.ts | 6 +++--- src/generated/models/JsonFieldPropertiesDto.ts | 2 +- src/generated/models/LanguageDto.ts | 2 +- src/generated/models/LogDownloadDto.ts | 2 +- src/generated/models/ManualRuleTriggerDto.ts | 2 +- src/generated/models/MediumRuleActionDto.ts | 2 +- src/generated/models/MoveAssetDto.ts | 2 +- src/generated/models/MoveAssetFolderDto.ts | 2 +- src/generated/models/NestedFieldDto.ts | 4 ++-- src/generated/models/NotificationRuleActionDto.ts | 2 +- src/generated/models/NumberFieldPropertiesDto.ts | 2 +- src/generated/models/OpenSearchRuleActionDto.ts | 2 +- src/generated/models/PatternDto.ts | 2 +- src/generated/models/PlanChangedDto.ts | 2 +- src/generated/models/PlanDto.ts | 2 +- src/generated/models/PlansDto.ts | 4 ++-- src/generated/models/PrerenderRuleActionDto.ts | 2 +- src/generated/models/QueryDto.ts | 2 +- src/generated/models/QueryJsonDto.ts | 4 ++-- src/generated/models/ReferencesFieldPropertiesDto.ts | 2 +- src/generated/models/ReferralInfo.ts | 2 +- src/generated/models/RenameAssetFolderDto.ts | 2 +- src/generated/models/RenameTagDto.ts | 2 +- src/generated/models/ReorderFieldsDto.ts | 2 +- src/generated/models/Resource.ts | 4 ++-- src/generated/models/ResourceLink.ts | 2 +- src/generated/models/ResourcesDto.ts | 4 ++-- src/generated/models/RestoreJobDto.ts | 2 +- src/generated/models/RestoreRequestDto.ts | 2 +- src/generated/models/RichTextFieldPropertiesDto.ts | 2 +- src/generated/models/RoleDto.ts | 4 ++-- src/generated/models/RolesDto.ts | 6 +++--- src/generated/models/RuleActionDto.ts | 2 +- src/generated/models/RuleDto.ts | 4 ++-- src/generated/models/RuleElementDto.ts | 4 ++-- src/generated/models/RuleElementPropertyDto.ts | 2 +- src/generated/models/RuleEventDto.ts | 4 ++-- src/generated/models/RuleEventsDto.ts | 6 +++--- src/generated/models/RuleTriggerDto.ts | 2 +- src/generated/models/RulesDto.ts | 6 +++--- src/generated/models/ScheduleJobDto.ts | 2 +- src/generated/models/SchemaChangedRuleTriggerDto.ts | 2 +- src/generated/models/SchemaCondition.ts | 2 +- src/generated/models/SchemaDto.ts | 8 ++++---- src/generated/models/SchemaPropertiesDto.ts | 2 +- src/generated/models/SchemaScriptsDto.ts | 2 +- src/generated/models/SchemasDto.ts | 6 +++--- src/generated/models/ScriptRuleActionDto.ts | 2 +- src/generated/models/SearchResultDto.ts | 4 ++-- src/generated/models/SignalRRuleActionDto.ts | 2 +- src/generated/models/SimulatedRuleEventDto.ts | 4 ++-- src/generated/models/SimulatedRuleEventsDto.ts | 6 +++--- src/generated/models/SlackRuleActionDto.ts | 2 +- src/generated/models/SortNode.ts | 2 +- src/generated/models/StatusInfoDto.ts | 2 +- src/generated/models/StorageUsagePerDateDto.ts | 2 +- src/generated/models/StringFieldPropertiesDto.ts | 2 +- src/generated/models/SynchronizeSchemaDto.ts | 6 +++--- src/generated/models/TagsFieldPropertiesDto.ts | 2 +- src/generated/models/TeamDto.ts | 4 ++-- src/generated/models/TemplateDetailsDto.ts | 4 ++-- src/generated/models/TemplateDto.ts | 4 ++-- src/generated/models/TemplatesDto.ts | 6 +++--- src/generated/models/TransferToTeamDto.ts | 2 +- src/generated/models/TranslateDto.ts | 2 +- src/generated/models/TranslationDto.ts | 2 +- src/generated/models/TweetRuleActionDto.ts | 2 +- src/generated/models/TypesenseRuleActionDto.ts | 2 +- src/generated/models/UIFieldPropertiesDto.ts | 2 +- src/generated/models/UpdateAppDto.ts | 2 +- src/generated/models/UpdateAppSettingsDto.ts | 6 +++--- src/generated/models/UpdateAssetScriptsDto.ts | 2 +- src/generated/models/UpdateClientDto.ts | 2 +- src/generated/models/UpdateFieldDto.ts | 2 +- src/generated/models/UpdateLanguageDto.ts | 2 +- src/generated/models/UpdateProfileDto.ts | 2 +- src/generated/models/UpdateRoleDto.ts | 2 +- src/generated/models/UpdateRuleDto.ts | 2 +- src/generated/models/UpdateSchemaDto.ts | 2 +- src/generated/models/UpdateSettingDto.ts | 2 +- src/generated/models/UpdateTeamDto.ts | 2 +- src/generated/models/UpdateUserDto.ts | 2 +- src/generated/models/UpdateWorkflowDto.ts | 4 ++-- src/generated/models/UpsertSchemaDto.ts | 6 +++--- src/generated/models/UpsertSchemaFieldDto.ts | 4 ++-- src/generated/models/UpsertSchemaNestedFieldDto.ts | 2 +- src/generated/models/UsageRuleTriggerDto.ts | 2 +- src/generated/models/UserDto.ts | 4 ++-- src/generated/models/UserProperty.ts | 2 +- src/generated/models/UsersDto.ts | 6 +++--- src/generated/models/WebhookRuleActionDto.ts | 2 +- src/generated/models/WorkflowDto.ts | 6 +++--- src/generated/models/WorkflowStepDto.ts | 4 ++-- src/generated/models/WorkflowTransitionDto.ts | 2 +- src/generated/models/WorkflowsDto.ts | 6 +++--- src/wrapper/SquidexClient.ts | 4 ++-- templates/modelGeneric.mustache | 8 ++++---- tests/contents.test.ts | 2 +- 180 files changed, 286 insertions(+), 279 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 689de7a..e7b27c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-node@v3 - name: Compile - run: yarn && yarn build + run: npm build publish: needs: [ compile ] @@ -29,10 +29,10 @@ jobs: uses: actions/setup-node@v3 - name: Install dependencies - run: yarn install + run: npm install - name: Build - run: yarn build + run: npm build - name: Publish to npm run: | diff --git a/package-lock.json b/package-lock.json index df2ba53..4a104d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,6 @@ "name": "@squidex/squidex", "version": "1.2.1", "dependencies": { - "cross-env": "^7.0.3", "url-join": "4.0.1" }, "devDependencies": { @@ -17,6 +16,7 @@ "@babel/preset-typescript": "^7.24.7", "@types/jest": "^29.5.12", "@types/node": "17.0.33", + "cross-env": "^7.0.3", "jest": "^29.7.0", "prettier": "2.7.1", "typescript": "4.6.4" @@ -3213,6 +3213,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, "dependencies": { "cross-spawn": "^7.0.1" }, @@ -3230,6 +3231,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3706,7 +3708,8 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", @@ -5699,6 +5702,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, "engines": { "node": ">=8" } @@ -5964,6 +5968,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -5975,6 +5980,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, "engines": { "node": ">=8" } @@ -6316,6 +6322,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "dependencies": { "isexe": "^2.0.0" }, diff --git a/src/generated/models/AddFieldDto.ts b/src/generated/models/AddFieldDto.ts index 9f08018..ae11ef8 100644 --- a/src/generated/models/AddFieldDto.ts +++ b/src/generated/models/AddFieldDto.ts @@ -50,7 +50,7 @@ export interface AddFieldDto { /** * Check if a given object implements the AddFieldDto interface. */ -export function instanceOfAddFieldDto(value: object): value is AddFieldDto { +export function instanceOfAddFieldDto(value: any): value is AddFieldDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; diff --git a/src/generated/models/AddLanguageDto.ts b/src/generated/models/AddLanguageDto.ts index f19532a..5aaaa65 100644 --- a/src/generated/models/AddLanguageDto.ts +++ b/src/generated/models/AddLanguageDto.ts @@ -31,7 +31,7 @@ export interface AddLanguageDto { /** * Check if a given object implements the AddLanguageDto interface. */ -export function instanceOfAddLanguageDto(value: object): value is AddLanguageDto { +export function instanceOfAddLanguageDto(value: any): value is AddLanguageDto { if (!('language' in value) || value['language'] === undefined) return false; return true; } diff --git a/src/generated/models/AddRoleDto.ts b/src/generated/models/AddRoleDto.ts index f01a534..3a82e52 100644 --- a/src/generated/models/AddRoleDto.ts +++ b/src/generated/models/AddRoleDto.ts @@ -31,7 +31,7 @@ export interface AddRoleDto { /** * Check if a given object implements the AddRoleDto interface. */ -export function instanceOfAddRoleDto(value: object): value is AddRoleDto { +export function instanceOfAddRoleDto(value: any): value is AddRoleDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/AddWorkflowDto.ts b/src/generated/models/AddWorkflowDto.ts index 4f2b1d0..eaceaf7 100644 --- a/src/generated/models/AddWorkflowDto.ts +++ b/src/generated/models/AddWorkflowDto.ts @@ -31,7 +31,7 @@ export interface AddWorkflowDto { /** * Check if a given object implements the AddWorkflowDto interface. */ -export function instanceOfAddWorkflowDto(value: object): value is AddWorkflowDto { +export function instanceOfAddWorkflowDto(value: any): value is AddWorkflowDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/AlgoliaRuleActionDto.ts b/src/generated/models/AlgoliaRuleActionDto.ts index 032fe6a..3f1be70 100644 --- a/src/generated/models/AlgoliaRuleActionDto.ts +++ b/src/generated/models/AlgoliaRuleActionDto.ts @@ -62,7 +62,7 @@ export interface AlgoliaRuleActionDto extends RuleActionDto { /** * Check if a given object implements the AlgoliaRuleActionDto interface. */ -export function instanceOfAlgoliaRuleActionDto(value: object): value is AlgoliaRuleActionDto { +export function instanceOfAlgoliaRuleActionDto(value: any): value is AlgoliaRuleActionDto { if (!('appId' in value) || value['appId'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; diff --git a/src/generated/models/AllContentsByPostDto.ts b/src/generated/models/AllContentsByPostDto.ts index 3f7bfc7..010303a 100644 --- a/src/generated/models/AllContentsByPostDto.ts +++ b/src/generated/models/AllContentsByPostDto.ts @@ -67,7 +67,7 @@ export interface AllContentsByPostDto { /** * Check if a given object implements the AllContentsByPostDto interface. */ -export function instanceOfAllContentsByPostDto(value: object): value is AllContentsByPostDto { +export function instanceOfAllContentsByPostDto(value: any): value is AllContentsByPostDto { return true; } diff --git a/src/generated/models/AnnotateAssetDto.ts b/src/generated/models/AnnotateAssetDto.ts index 9403ae7..b68353f 100644 --- a/src/generated/models/AnnotateAssetDto.ts +++ b/src/generated/models/AnnotateAssetDto.ts @@ -55,7 +55,7 @@ export interface AnnotateAssetDto { /** * Check if a given object implements the AnnotateAssetDto interface. */ -export function instanceOfAnnotateAssetDto(value: object): value is AnnotateAssetDto { +export function instanceOfAnnotateAssetDto(value: any): value is AnnotateAssetDto { return true; } diff --git a/src/generated/models/AppDto.ts b/src/generated/models/AppDto.ts index d82745a..4414518 100644 --- a/src/generated/models/AppDto.ts +++ b/src/generated/models/AppDto.ts @@ -117,7 +117,7 @@ export interface AppDto { /** * Check if a given object implements the AppDto interface. */ -export function instanceOfAppDto(value: object): value is AppDto { +export function instanceOfAppDto(value: any): value is AppDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -164,7 +164,7 @@ export function AppDtoToJSON(value?: AppDto | null, ignoreDiscriminator = false) } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'name': value['name'], 'label': value['label'], diff --git a/src/generated/models/AppLanguageDto.ts b/src/generated/models/AppLanguageDto.ts index e356785..2d87e33 100644 --- a/src/generated/models/AppLanguageDto.ts +++ b/src/generated/models/AppLanguageDto.ts @@ -68,7 +68,7 @@ export interface AppLanguageDto { /** * Check if a given object implements the AppLanguageDto interface. */ -export function instanceOfAppLanguageDto(value: object): value is AppLanguageDto { +export function instanceOfAppLanguageDto(value: any): value is AppLanguageDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; if (!('englishName' in value) || value['englishName'] === undefined) return false; @@ -103,7 +103,7 @@ export function AppLanguageDtoToJSON(value?: AppLanguageDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'iso2Code': value['iso2Code'], 'englishName': value['englishName'], 'fallback': value['fallback'], diff --git a/src/generated/models/AppLanguagesDto.ts b/src/generated/models/AppLanguagesDto.ts index 991d70a..400832b 100644 --- a/src/generated/models/AppLanguagesDto.ts +++ b/src/generated/models/AppLanguagesDto.ts @@ -50,7 +50,7 @@ export interface AppLanguagesDto { /** * Check if a given object implements the AppLanguagesDto interface. */ -export function instanceOfAppLanguagesDto(value: object): value is AppLanguagesDto { +export function instanceOfAppLanguagesDto(value: any): value is AppLanguagesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function AppLanguagesDtoToJSON(value?: AppLanguagesDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(AppLanguageDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => AppLanguageDtoToJSON(x))), }; } diff --git a/src/generated/models/AppSettingsDto.ts b/src/generated/models/AppSettingsDto.ts index 08ef43d..4b238ed 100644 --- a/src/generated/models/AppSettingsDto.ts +++ b/src/generated/models/AppSettingsDto.ts @@ -80,7 +80,7 @@ export interface AppSettingsDto { /** * Check if a given object implements the AppSettingsDto interface. */ -export function instanceOfAppSettingsDto(value: object): value is AppSettingsDto { +export function instanceOfAppSettingsDto(value: any): value is AppSettingsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('patterns' in value) || value['patterns'] === undefined) return false; if (!('editors' in value) || value['editors'] === undefined) return false; @@ -115,9 +115,9 @@ export function AppSettingsDtoToJSON(value?: AppSettingsDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'patterns': ((value['patterns'] as Array).map(PatternDtoToJSON)), - 'editors': ((value['editors'] as Array).map(EditorDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'patterns': ((value['patterns'] as Array).map(x => PatternDtoToJSON(x))), + 'editors': ((value['editors'] as Array).map(x => EditorDtoToJSON(x))), 'hideScheduler': value['hideScheduler'], 'hideDateTimeModeButton': value['hideDateTimeModeButton'], 'version': value['version'], diff --git a/src/generated/models/ArrayFieldPropertiesDto.ts b/src/generated/models/ArrayFieldPropertiesDto.ts index 30ff398..07741fe 100644 --- a/src/generated/models/ArrayFieldPropertiesDto.ts +++ b/src/generated/models/ArrayFieldPropertiesDto.ts @@ -64,7 +64,7 @@ export interface ArrayFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ArrayFieldPropertiesDto interface. */ -export function instanceOfArrayFieldPropertiesDto(value: object): value is ArrayFieldPropertiesDto { +export function instanceOfArrayFieldPropertiesDto(value: any): value is ArrayFieldPropertiesDto { return true; } diff --git a/src/generated/models/AssetChangedRuleTriggerDto.ts b/src/generated/models/AssetChangedRuleTriggerDto.ts index e92b90d..b8f6569 100644 --- a/src/generated/models/AssetChangedRuleTriggerDto.ts +++ b/src/generated/models/AssetChangedRuleTriggerDto.ts @@ -38,7 +38,7 @@ export interface AssetChangedRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the AssetChangedRuleTriggerDto interface. */ -export function instanceOfAssetChangedRuleTriggerDto(value: object): value is AssetChangedRuleTriggerDto { +export function instanceOfAssetChangedRuleTriggerDto(value: any): value is AssetChangedRuleTriggerDto { return true; } diff --git a/src/generated/models/AssetDto.ts b/src/generated/models/AssetDto.ts index f12ecd6..2dc1a06 100644 --- a/src/generated/models/AssetDto.ts +++ b/src/generated/models/AssetDto.ts @@ -199,7 +199,7 @@ export interface AssetDto { /** * Check if a given object implements the AssetDto interface. */ -export function instanceOfAssetDto(value: object): value is AssetDto { +export function instanceOfAssetDto(value: any): value is AssetDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('parentId' in value) || value['parentId'] === undefined) return false; @@ -266,7 +266,7 @@ export function AssetDtoToJSON(value?: AssetDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'parentId': value['parentId'], 'fileName': value['fileName'], diff --git a/src/generated/models/AssetFolderDto.ts b/src/generated/models/AssetFolderDto.ts index 5774d2f..40f1209 100644 --- a/src/generated/models/AssetFolderDto.ts +++ b/src/generated/models/AssetFolderDto.ts @@ -62,7 +62,7 @@ export interface AssetFolderDto { /** * Check if a given object implements the AssetFolderDto interface. */ -export function instanceOfAssetFolderDto(value: object): value is AssetFolderDto { +export function instanceOfAssetFolderDto(value: any): value is AssetFolderDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('parentId' in value) || value['parentId'] === undefined) return false; @@ -95,7 +95,7 @@ export function AssetFolderDtoToJSON(value?: AssetFolderDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'parentId': value['parentId'], 'folderName': value['folderName'], diff --git a/src/generated/models/AssetFoldersDto.ts b/src/generated/models/AssetFoldersDto.ts index 53c4817..e320d0b 100644 --- a/src/generated/models/AssetFoldersDto.ts +++ b/src/generated/models/AssetFoldersDto.ts @@ -62,7 +62,7 @@ export interface AssetFoldersDto { /** * Check if a given object implements the AssetFoldersDto interface. */ -export function instanceOfAssetFoldersDto(value: object): value is AssetFoldersDto { +export function instanceOfAssetFoldersDto(value: any): value is AssetFoldersDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -93,9 +93,9 @@ export function AssetFoldersDtoToJSON(value?: AssetFoldersDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(AssetFolderDtoToJSON)), - 'path': ((value['path'] as Array).map(AssetFolderDtoToJSON)), + 'items': ((value['items'] as Array).map(x => AssetFolderDtoToJSON(x))), + 'path': ((value['path'] as Array).map(x => AssetFolderDtoToJSON(x))), }; } diff --git a/src/generated/models/AssetMeta.ts b/src/generated/models/AssetMeta.ts index 07f11ca..f407c06 100644 --- a/src/generated/models/AssetMeta.ts +++ b/src/generated/models/AssetMeta.ts @@ -31,7 +31,7 @@ export interface AssetMeta { /** * Check if a given object implements the AssetMeta interface. */ -export function instanceOfAssetMeta(value: object): value is AssetMeta { +export function instanceOfAssetMeta(value: any): value is AssetMeta { if (!('isDuplicate' in value) || value['isDuplicate'] === undefined) return false; return true; } diff --git a/src/generated/models/AssetScriptsDto.ts b/src/generated/models/AssetScriptsDto.ts index c24b223..32b86d2 100644 --- a/src/generated/models/AssetScriptsDto.ts +++ b/src/generated/models/AssetScriptsDto.ts @@ -86,7 +86,7 @@ export interface AssetScriptsDto { /** * Check if a given object implements the AssetScriptsDto interface. */ -export function instanceOfAssetScriptsDto(value: object): value is AssetScriptsDto { +export function instanceOfAssetScriptsDto(value: any): value is AssetScriptsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; @@ -120,7 +120,7 @@ export function AssetScriptsDtoToJSON(value?: AssetScriptsDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'query': value['query'], 'queryPre': value['queryPre'], 'create': value['create'], diff --git a/src/generated/models/AssetsDto.ts b/src/generated/models/AssetsDto.ts index a5b9b7b..152732d 100644 --- a/src/generated/models/AssetsDto.ts +++ b/src/generated/models/AssetsDto.ts @@ -56,7 +56,7 @@ export interface AssetsDto { /** * Check if a given object implements the AssetsDto interface. */ -export function instanceOfAssetsDto(value: object): value is AssetsDto { +export function instanceOfAssetsDto(value: any): value is AssetsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function AssetsDtoToJSON(value?: AssetsDto | null, ignoreDiscriminator = } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(AssetDtoToJSON)), + 'items': ((value['items'] as Array).map(x => AssetDtoToJSON(x))), }; } diff --git a/src/generated/models/AssetsFieldPropertiesDto.ts b/src/generated/models/AssetsFieldPropertiesDto.ts index a78896d..4964cf1 100644 --- a/src/generated/models/AssetsFieldPropertiesDto.ts +++ b/src/generated/models/AssetsFieldPropertiesDto.ts @@ -174,7 +174,7 @@ export interface AssetsFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the AssetsFieldPropertiesDto interface. */ -export function instanceOfAssetsFieldPropertiesDto(value: object): value is AssetsFieldPropertiesDto { +export function instanceOfAssetsFieldPropertiesDto(value: any): value is AssetsFieldPropertiesDto { return true; } diff --git a/src/generated/models/AssignContributorDto.ts b/src/generated/models/AssignContributorDto.ts index cc54977..698ff1e 100644 --- a/src/generated/models/AssignContributorDto.ts +++ b/src/generated/models/AssignContributorDto.ts @@ -43,7 +43,7 @@ export interface AssignContributorDto { /** * Check if a given object implements the AssignContributorDto interface. */ -export function instanceOfAssignContributorDto(value: object): value is AssignContributorDto { +export function instanceOfAssignContributorDto(value: any): value is AssignContributorDto { if (!('contributorId' in value) || value['contributorId'] === undefined) return false; return true; } diff --git a/src/generated/models/AuthSchemeDto.ts b/src/generated/models/AuthSchemeDto.ts index 1629051..00773ac 100644 --- a/src/generated/models/AuthSchemeDto.ts +++ b/src/generated/models/AuthSchemeDto.ts @@ -61,7 +61,7 @@ export interface AuthSchemeDto { /** * Check if a given object implements the AuthSchemeDto interface. */ -export function instanceOfAuthSchemeDto(value: object): value is AuthSchemeDto { +export function instanceOfAuthSchemeDto(value: any): value is AuthSchemeDto { if (!('domain' in value) || value['domain'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('clientId' in value) || value['clientId'] === undefined) return false; diff --git a/src/generated/models/AuthSchemeResponseDto.ts b/src/generated/models/AuthSchemeResponseDto.ts index 48cef47..230cedb 100644 --- a/src/generated/models/AuthSchemeResponseDto.ts +++ b/src/generated/models/AuthSchemeResponseDto.ts @@ -50,7 +50,7 @@ export interface AuthSchemeResponseDto { /** * Check if a given object implements the AuthSchemeResponseDto interface. */ -export function instanceOfAuthSchemeResponseDto(value: object): value is AuthSchemeResponseDto { +export function instanceOfAuthSchemeResponseDto(value: any): value is AuthSchemeResponseDto { if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -76,7 +76,7 @@ export function AuthSchemeResponseDtoToJSON(value?: AuthSchemeResponseDto | null } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'scheme': AuthSchemeDtoToJSON(value['scheme']), }; } diff --git a/src/generated/models/AuthSchemeValueDto.ts b/src/generated/models/AuthSchemeValueDto.ts index cf6b2a3..18e018f 100644 --- a/src/generated/models/AuthSchemeValueDto.ts +++ b/src/generated/models/AuthSchemeValueDto.ts @@ -38,7 +38,7 @@ export interface AuthSchemeValueDto { /** * Check if a given object implements the AuthSchemeValueDto interface. */ -export function instanceOfAuthSchemeValueDto(value: object): value is AuthSchemeValueDto { +export function instanceOfAuthSchemeValueDto(value: any): value is AuthSchemeValueDto { return true; } diff --git a/src/generated/models/AzureQueueRuleActionDto.ts b/src/generated/models/AzureQueueRuleActionDto.ts index 9f417d5..cb3c341 100644 --- a/src/generated/models/AzureQueueRuleActionDto.ts +++ b/src/generated/models/AzureQueueRuleActionDto.ts @@ -50,7 +50,7 @@ export interface AzureQueueRuleActionDto extends RuleActionDto { /** * Check if a given object implements the AzureQueueRuleActionDto interface. */ -export function instanceOfAzureQueueRuleActionDto(value: object): value is AzureQueueRuleActionDto { +export function instanceOfAzureQueueRuleActionDto(value: any): value is AzureQueueRuleActionDto { if (!('connectionString' in value) || value['connectionString'] === undefined) return false; if (!('queue' in value) || value['queue'] === undefined) return false; return true; diff --git a/src/generated/models/BackupJobDto.ts b/src/generated/models/BackupJobDto.ts index c759ae1..7f6ece4 100644 --- a/src/generated/models/BackupJobDto.ts +++ b/src/generated/models/BackupJobDto.ts @@ -82,7 +82,7 @@ export interface BackupJobDto { /** * Check if a given object implements the BackupJobDto interface. */ -export function instanceOfBackupJobDto(value: object): value is BackupJobDto { +export function instanceOfBackupJobDto(value: any): value is BackupJobDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; @@ -118,7 +118,7 @@ export function BackupJobDtoToJSON(value?: BackupJobDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'started': ((value['started']).toISOString()), 'stopped': value['stopped'] == null ? undefined : ((value['stopped'] as any).toISOString()), diff --git a/src/generated/models/BackupJobsDto.ts b/src/generated/models/BackupJobsDto.ts index 40f7be1..c65b4c9 100644 --- a/src/generated/models/BackupJobsDto.ts +++ b/src/generated/models/BackupJobsDto.ts @@ -50,7 +50,7 @@ export interface BackupJobsDto { /** * Check if a given object implements the BackupJobsDto interface. */ -export function instanceOfBackupJobsDto(value: object): value is BackupJobsDto { +export function instanceOfBackupJobsDto(value: any): value is BackupJobsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function BackupJobsDtoToJSON(value?: BackupJobsDto | null, ignoreDiscrimi } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(BackupJobDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => BackupJobDtoToJSON(x))), }; } diff --git a/src/generated/models/BooleanFieldPropertiesDto.ts b/src/generated/models/BooleanFieldPropertiesDto.ts index 992d6d1..8feb58c 100644 --- a/src/generated/models/BooleanFieldPropertiesDto.ts +++ b/src/generated/models/BooleanFieldPropertiesDto.ts @@ -64,7 +64,7 @@ export interface BooleanFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the BooleanFieldPropertiesDto interface. */ -export function instanceOfBooleanFieldPropertiesDto(value: object): value is BooleanFieldPropertiesDto { +export function instanceOfBooleanFieldPropertiesDto(value: any): value is BooleanFieldPropertiesDto { return true; } diff --git a/src/generated/models/BulkResultDto.ts b/src/generated/models/BulkResultDto.ts index 66465be..8e6785f 100644 --- a/src/generated/models/BulkResultDto.ts +++ b/src/generated/models/BulkResultDto.ts @@ -57,7 +57,7 @@ export interface BulkResultDto { /** * Check if a given object implements the BulkResultDto interface. */ -export function instanceOfBulkResultDto(value: object): value is BulkResultDto { +export function instanceOfBulkResultDto(value: any): value is BulkResultDto { if (!('jobIndex' in value) || value['jobIndex'] === undefined) return false; return true; } diff --git a/src/generated/models/BulkUpdateAssetsDto.ts b/src/generated/models/BulkUpdateAssetsDto.ts index f035f4c..4ebcbc8 100644 --- a/src/generated/models/BulkUpdateAssetsDto.ts +++ b/src/generated/models/BulkUpdateAssetsDto.ts @@ -56,7 +56,7 @@ export interface BulkUpdateAssetsDto { /** * Check if a given object implements the BulkUpdateAssetsDto interface. */ -export function instanceOfBulkUpdateAssetsDto(value: object): value is BulkUpdateAssetsDto { +export function instanceOfBulkUpdateAssetsDto(value: any): value is BulkUpdateAssetsDto { return true; } @@ -83,7 +83,7 @@ export function BulkUpdateAssetsDtoToJSON(value?: BulkUpdateAssetsDto | null, ig } return { - 'jobs': value['jobs'] == null ? undefined : ((value['jobs'] as Array).map(BulkUpdateAssetsJobDtoToJSON)), + 'jobs': value['jobs'] == null ? undefined : ((value['jobs'] as Array).map(x => BulkUpdateAssetsJobDtoToJSON(x))), 'checkReferrers': value['checkReferrers'], 'optimizeValidation': value['optimizeValidation'], 'doNotScript': value['doNotScript'], diff --git a/src/generated/models/BulkUpdateAssetsJobDto.ts b/src/generated/models/BulkUpdateAssetsJobDto.ts index 5cbd07e..2f88e9b 100644 --- a/src/generated/models/BulkUpdateAssetsJobDto.ts +++ b/src/generated/models/BulkUpdateAssetsJobDto.ts @@ -94,7 +94,7 @@ export interface BulkUpdateAssetsJobDto { /** * Check if a given object implements the BulkUpdateAssetsJobDto interface. */ -export function instanceOfBulkUpdateAssetsJobDto(value: object): value is BulkUpdateAssetsJobDto { +export function instanceOfBulkUpdateAssetsJobDto(value: any): value is BulkUpdateAssetsJobDto { return true; } diff --git a/src/generated/models/BulkUpdateContentsDto.ts b/src/generated/models/BulkUpdateContentsDto.ts index e0430dd..4340533 100644 --- a/src/generated/models/BulkUpdateContentsDto.ts +++ b/src/generated/models/BulkUpdateContentsDto.ts @@ -82,7 +82,7 @@ export interface BulkUpdateContentsDto { /** * Check if a given object implements the BulkUpdateContentsDto interface. */ -export function instanceOfBulkUpdateContentsDto(value: object): value is BulkUpdateContentsDto { +export function instanceOfBulkUpdateContentsDto(value: any): value is BulkUpdateContentsDto { if (!('jobs' in value) || value['jobs'] === undefined) return false; return true; } @@ -114,7 +114,7 @@ export function BulkUpdateContentsDtoToJSON(value?: BulkUpdateContentsDto | null } return { - 'jobs': ((value['jobs'] as Array).map(BulkUpdateContentsJobDtoToJSON)), + 'jobs': ((value['jobs'] as Array).map(x => BulkUpdateContentsJobDtoToJSON(x))), 'publish': value['publish'], 'doNotScript': value['doNotScript'], 'enrichRequiredFields': value['enrichRequiredFields'], diff --git a/src/generated/models/BulkUpdateContentsJobDto.ts b/src/generated/models/BulkUpdateContentsJobDto.ts index 44f82a7..bcd26b9 100644 --- a/src/generated/models/BulkUpdateContentsJobDto.ts +++ b/src/generated/models/BulkUpdateContentsJobDto.ts @@ -112,7 +112,7 @@ export interface BulkUpdateContentsJobDto { /** * Check if a given object implements the BulkUpdateContentsJobDto interface. */ -export function instanceOfBulkUpdateContentsJobDto(value: object): value is BulkUpdateContentsJobDto { +export function instanceOfBulkUpdateContentsJobDto(value: any): value is BulkUpdateContentsJobDto { return true; } diff --git a/src/generated/models/CallsUsageDtoDto.ts b/src/generated/models/CallsUsageDtoDto.ts index 716b164..3388797 100644 --- a/src/generated/models/CallsUsageDtoDto.ts +++ b/src/generated/models/CallsUsageDtoDto.ts @@ -86,7 +86,7 @@ export interface CallsUsageDtoDto { /** * Check if a given object implements the CallsUsageDtoDto interface. */ -export function instanceOfCallsUsageDtoDto(value: object): value is CallsUsageDtoDto { +export function instanceOfCallsUsageDtoDto(value: any): value is CallsUsageDtoDto { if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; if (!('monthCalls' in value) || value['monthCalls'] === undefined) return false; diff --git a/src/generated/models/CallsUsagePerDateDto.ts b/src/generated/models/CallsUsagePerDateDto.ts index 79c260f..1a9eb72 100644 --- a/src/generated/models/CallsUsagePerDateDto.ts +++ b/src/generated/models/CallsUsagePerDateDto.ts @@ -49,7 +49,7 @@ export interface CallsUsagePerDateDto { /** * Check if a given object implements the CallsUsagePerDateDto interface. */ -export function instanceOfCallsUsagePerDateDto(value: object): value is CallsUsagePerDateDto { +export function instanceOfCallsUsagePerDateDto(value: any): value is CallsUsagePerDateDto { if (!('date' in value) || value['date'] === undefined) return false; if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; diff --git a/src/generated/models/ChangeCategoryDto.ts b/src/generated/models/ChangeCategoryDto.ts index 90adcd6..5bdfb6d 100644 --- a/src/generated/models/ChangeCategoryDto.ts +++ b/src/generated/models/ChangeCategoryDto.ts @@ -31,7 +31,7 @@ export interface ChangeCategoryDto { /** * Check if a given object implements the ChangeCategoryDto interface. */ -export function instanceOfChangeCategoryDto(value: object): value is ChangeCategoryDto { +export function instanceOfChangeCategoryDto(value: any): value is ChangeCategoryDto { return true; } diff --git a/src/generated/models/ChangePlanDto.ts b/src/generated/models/ChangePlanDto.ts index c8a0275..d1b6de7 100644 --- a/src/generated/models/ChangePlanDto.ts +++ b/src/generated/models/ChangePlanDto.ts @@ -31,7 +31,7 @@ export interface ChangePlanDto { /** * Check if a given object implements the ChangePlanDto interface. */ -export function instanceOfChangePlanDto(value: object): value is ChangePlanDto { +export function instanceOfChangePlanDto(value: any): value is ChangePlanDto { if (!('planId' in value) || value['planId'] === undefined) return false; return true; } diff --git a/src/generated/models/ChangeStatusDto.ts b/src/generated/models/ChangeStatusDto.ts index 6344959..72d55a5 100644 --- a/src/generated/models/ChangeStatusDto.ts +++ b/src/generated/models/ChangeStatusDto.ts @@ -43,7 +43,7 @@ export interface ChangeStatusDto { /** * Check if a given object implements the ChangeStatusDto interface. */ -export function instanceOfChangeStatusDto(value: object): value is ChangeStatusDto { +export function instanceOfChangeStatusDto(value: any): value is ChangeStatusDto { if (!('status' in value) || value['status'] === undefined) return false; return true; } diff --git a/src/generated/models/ClientDto.ts b/src/generated/models/ClientDto.ts index 3e72ca2..31ea544 100644 --- a/src/generated/models/ClientDto.ts +++ b/src/generated/models/ClientDto.ts @@ -80,7 +80,7 @@ export interface ClientDto { /** * Check if a given object implements the ClientDto interface. */ -export function instanceOfClientDto(value: object): value is ClientDto { +export function instanceOfClientDto(value: any): value is ClientDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('secret' in value) || value['secret'] === undefined) return false; @@ -118,7 +118,7 @@ export function ClientDtoToJSON(value?: ClientDto | null, ignoreDiscriminator = } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'secret': value['secret'], 'name': value['name'], diff --git a/src/generated/models/ClientsDto.ts b/src/generated/models/ClientsDto.ts index 5b31f76..eaec908 100644 --- a/src/generated/models/ClientsDto.ts +++ b/src/generated/models/ClientsDto.ts @@ -50,7 +50,7 @@ export interface ClientsDto { /** * Check if a given object implements the ClientsDto interface. */ -export function instanceOfClientsDto(value: object): value is ClientsDto { +export function instanceOfClientsDto(value: any): value is ClientsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function ClientsDtoToJSON(value?: ClientsDto | null, ignoreDiscriminator } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(ClientDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => ClientDtoToJSON(x))), }; } diff --git a/src/generated/models/CommentRuleActionDto.ts b/src/generated/models/CommentRuleActionDto.ts index b4a3061..9e4b02b 100644 --- a/src/generated/models/CommentRuleActionDto.ts +++ b/src/generated/models/CommentRuleActionDto.ts @@ -44,7 +44,7 @@ export interface CommentRuleActionDto extends RuleActionDto { /** * Check if a given object implements the CommentRuleActionDto interface. */ -export function instanceOfCommentRuleActionDto(value: object): value is CommentRuleActionDto { +export function instanceOfCommentRuleActionDto(value: any): value is CommentRuleActionDto { if (!('text' in value) || value['text'] === undefined) return false; return true; } diff --git a/src/generated/models/CommentRuleTriggerDto.ts b/src/generated/models/CommentRuleTriggerDto.ts index 06977ed..f394e45 100644 --- a/src/generated/models/CommentRuleTriggerDto.ts +++ b/src/generated/models/CommentRuleTriggerDto.ts @@ -38,7 +38,7 @@ export interface CommentRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the CommentRuleTriggerDto interface. */ -export function instanceOfCommentRuleTriggerDto(value: object): value is CommentRuleTriggerDto { +export function instanceOfCommentRuleTriggerDto(value: any): value is CommentRuleTriggerDto { return true; } diff --git a/src/generated/models/ComponentFieldPropertiesDto.ts b/src/generated/models/ComponentFieldPropertiesDto.ts index 485f44b..f914b79 100644 --- a/src/generated/models/ComponentFieldPropertiesDto.ts +++ b/src/generated/models/ComponentFieldPropertiesDto.ts @@ -38,7 +38,7 @@ export interface ComponentFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ComponentFieldPropertiesDto interface. */ -export function instanceOfComponentFieldPropertiesDto(value: object): value is ComponentFieldPropertiesDto { +export function instanceOfComponentFieldPropertiesDto(value: any): value is ComponentFieldPropertiesDto { return true; } diff --git a/src/generated/models/ComponentsFieldPropertiesDto.ts b/src/generated/models/ComponentsFieldPropertiesDto.ts index 60839d6..5155806 100644 --- a/src/generated/models/ComponentsFieldPropertiesDto.ts +++ b/src/generated/models/ComponentsFieldPropertiesDto.ts @@ -70,7 +70,7 @@ export interface ComponentsFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ComponentsFieldPropertiesDto interface. */ -export function instanceOfComponentsFieldPropertiesDto(value: object): value is ComponentsFieldPropertiesDto { +export function instanceOfComponentsFieldPropertiesDto(value: any): value is ComponentsFieldPropertiesDto { return true; } diff --git a/src/generated/models/ConfigureFieldRulesDto.ts b/src/generated/models/ConfigureFieldRulesDto.ts index e0e09d5..194ef27 100644 --- a/src/generated/models/ConfigureFieldRulesDto.ts +++ b/src/generated/models/ConfigureFieldRulesDto.ts @@ -38,7 +38,7 @@ export interface ConfigureFieldRulesDto { /** * Check if a given object implements the ConfigureFieldRulesDto interface. */ -export function instanceOfConfigureFieldRulesDto(value: object): value is ConfigureFieldRulesDto { +export function instanceOfConfigureFieldRulesDto(value: any): value is ConfigureFieldRulesDto { return true; } @@ -62,6 +62,6 @@ export function ConfigureFieldRulesDtoToJSON(value?: ConfigureFieldRulesDto | nu } return { - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), }; } diff --git a/src/generated/models/ConfigureUIFieldsDto.ts b/src/generated/models/ConfigureUIFieldsDto.ts index 24bcee7..de54d11 100644 --- a/src/generated/models/ConfigureUIFieldsDto.ts +++ b/src/generated/models/ConfigureUIFieldsDto.ts @@ -37,7 +37,7 @@ export interface ConfigureUIFieldsDto { /** * Check if a given object implements the ConfigureUIFieldsDto interface. */ -export function instanceOfConfigureUIFieldsDto(value: object): value is ConfigureUIFieldsDto { +export function instanceOfConfigureUIFieldsDto(value: any): value is ConfigureUIFieldsDto { return true; } diff --git a/src/generated/models/ContentChangedRuleTriggerDto.ts b/src/generated/models/ContentChangedRuleTriggerDto.ts index de0de18..8789988 100644 --- a/src/generated/models/ContentChangedRuleTriggerDto.ts +++ b/src/generated/models/ContentChangedRuleTriggerDto.ts @@ -56,7 +56,7 @@ export interface ContentChangedRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the ContentChangedRuleTriggerDto interface. */ -export function instanceOfContentChangedRuleTriggerDto(value: object): value is ContentChangedRuleTriggerDto { +export function instanceOfContentChangedRuleTriggerDto(value: any): value is ContentChangedRuleTriggerDto { if (!('handleAll' in value) || value['handleAll'] === undefined) return false; return true; } @@ -83,8 +83,8 @@ export function ContentChangedRuleTriggerDtoToJSON(value?: ContentChangedRuleTri } return { ...RuleTriggerDtoToJSON(value, true), - 'schemas': value['schemas'] == null ? undefined : ((value['schemas'] as Array).map(SchemaConditionToJSON)), - 'referencedSchemas': value['referencedSchemas'] == null ? undefined : ((value['referencedSchemas'] as Array).map(SchemaConditionToJSON)), + 'schemas': value['schemas'] == null ? undefined : ((value['schemas'] as Array).map(x => SchemaConditionToJSON(x))), + 'referencedSchemas': value['referencedSchemas'] == null ? undefined : ((value['referencedSchemas'] as Array).map(x => SchemaConditionToJSON(x))), 'handleAll': value['handleAll'], }; } diff --git a/src/generated/models/ContentDto.ts b/src/generated/models/ContentDto.ts index beb6bb9..e1e69e6 100644 --- a/src/generated/models/ContentDto.ts +++ b/src/generated/models/ContentDto.ts @@ -164,7 +164,7 @@ export interface ContentDto { /** * Check if a given object implements the ContentDto interface. */ -export function instanceOfContentDto(value: object): value is ContentDto { +export function instanceOfContentDto(value: any): value is ContentDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -219,7 +219,7 @@ export function ContentDtoToJSON(value?: ContentDto | null, ignoreDiscriminator } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'createdBy': value['createdBy'], 'lastModifiedBy': value['lastModifiedBy'], @@ -236,7 +236,7 @@ export function ContentDtoToJSON(value?: ContentDto | null, ignoreDiscriminator 'schemaId': value['schemaId'], 'schemaName': value['schemaName'], 'schemaDisplayName': value['schemaDisplayName'], - 'referenceFields': value['referenceFields'] == null ? undefined : ((value['referenceFields'] as Array).map(FieldDtoToJSON)), + 'referenceFields': value['referenceFields'] == null ? undefined : ((value['referenceFields'] as Array).map(x => FieldDtoToJSON(x))), 'isDeleted': value['isDeleted'], 'version': value['version'], }; diff --git a/src/generated/models/ContentsDto.ts b/src/generated/models/ContentsDto.ts index c2b26f6..c5550fe 100644 --- a/src/generated/models/ContentsDto.ts +++ b/src/generated/models/ContentsDto.ts @@ -68,7 +68,7 @@ export interface ContentsDto { /** * Check if a given object implements the ContentsDto interface. */ -export function instanceOfContentsDto(value: object): value is ContentsDto { +export function instanceOfContentsDto(value: any): value is ContentsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -99,9 +99,9 @@ export function ContentsDtoToJSON(value?: ContentsDto | null, ignoreDiscriminato } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(ContentDtoToJSON)), - 'statuses': ((value['statuses'] as Array).map(StatusInfoDtoToJSON)), + 'items': ((value['items'] as Array).map(x => ContentDtoToJSON(x))), + 'statuses': ((value['statuses'] as Array).map(x => StatusInfoDtoToJSON(x))), }; } diff --git a/src/generated/models/ContributorDto.ts b/src/generated/models/ContributorDto.ts index a2d6187..6bd0a92 100644 --- a/src/generated/models/ContributorDto.ts +++ b/src/generated/models/ContributorDto.ts @@ -62,7 +62,7 @@ export interface ContributorDto { /** * Check if a given object implements the ContributorDto interface. */ -export function instanceOfContributorDto(value: object): value is ContributorDto { +export function instanceOfContributorDto(value: any): value is ContributorDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('contributorId' in value) || value['contributorId'] === undefined) return false; if (!('contributorName' in value) || value['contributorName'] === undefined) return false; @@ -94,7 +94,7 @@ export function ContributorDtoToJSON(value?: ContributorDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'contributorId': value['contributorId'], 'contributorName': value['contributorName'], 'contributorEmail': value['contributorEmail'], diff --git a/src/generated/models/ContributorsDto.ts b/src/generated/models/ContributorsDto.ts index 597059d..6424180 100644 --- a/src/generated/models/ContributorsDto.ts +++ b/src/generated/models/ContributorsDto.ts @@ -68,7 +68,7 @@ export interface ContributorsDto { /** * Check if a given object implements the ContributorsDto interface. */ -export function instanceOfContributorsDto(value: object): value is ContributorsDto { +export function instanceOfContributorsDto(value: any): value is ContributorsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; if (!('maxContributors' in value) || value['maxContributors'] === undefined) return false; @@ -98,8 +98,8 @@ export function ContributorsDtoToJSON(value?: ContributorsDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(ContributorDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => ContributorDtoToJSON(x))), 'maxContributors': value['maxContributors'], '_meta': ContributorsMetadataToJSON(value['meta']), }; diff --git a/src/generated/models/ContributorsMetadata.ts b/src/generated/models/ContributorsMetadata.ts index 53bcdde..586cd0a 100644 --- a/src/generated/models/ContributorsMetadata.ts +++ b/src/generated/models/ContributorsMetadata.ts @@ -31,7 +31,7 @@ export interface ContributorsMetadata { /** * Check if a given object implements the ContributorsMetadata interface. */ -export function instanceOfContributorsMetadata(value: object): value is ContributorsMetadata { +export function instanceOfContributorsMetadata(value: any): value is ContributorsMetadata { if (!('isInvited' in value) || value['isInvited'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateAppDto.ts b/src/generated/models/CreateAppDto.ts index 2fabbf3..9e5bfe7 100644 --- a/src/generated/models/CreateAppDto.ts +++ b/src/generated/models/CreateAppDto.ts @@ -37,7 +37,7 @@ export interface CreateAppDto { /** * Check if a given object implements the CreateAppDto interface. */ -export function instanceOfCreateAppDto(value: object): value is CreateAppDto { +export function instanceOfCreateAppDto(value: any): value is CreateAppDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateAssetFolderDto.ts b/src/generated/models/CreateAssetFolderDto.ts index fa70e7d..db160a7 100644 --- a/src/generated/models/CreateAssetFolderDto.ts +++ b/src/generated/models/CreateAssetFolderDto.ts @@ -37,7 +37,7 @@ export interface CreateAssetFolderDto { /** * Check if a given object implements the CreateAssetFolderDto interface. */ -export function instanceOfCreateAssetFolderDto(value: object): value is CreateAssetFolderDto { +export function instanceOfCreateAssetFolderDto(value: any): value is CreateAssetFolderDto { if (!('folderName' in value) || value['folderName'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateClientDto.ts b/src/generated/models/CreateClientDto.ts index 609f5ba..5fb3f96 100644 --- a/src/generated/models/CreateClientDto.ts +++ b/src/generated/models/CreateClientDto.ts @@ -31,7 +31,7 @@ export interface CreateClientDto { /** * Check if a given object implements the CreateClientDto interface. */ -export function instanceOfCreateClientDto(value: object): value is CreateClientDto { +export function instanceOfCreateClientDto(value: any): value is CreateClientDto { if (!('id' in value) || value['id'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateContentRuleActionDto.ts b/src/generated/models/CreateContentRuleActionDto.ts index 762e11f..c601eaf 100644 --- a/src/generated/models/CreateContentRuleActionDto.ts +++ b/src/generated/models/CreateContentRuleActionDto.ts @@ -56,7 +56,7 @@ export interface CreateContentRuleActionDto extends RuleActionDto { /** * Check if a given object implements the CreateContentRuleActionDto interface. */ -export function instanceOfCreateContentRuleActionDto(value: object): value is CreateContentRuleActionDto { +export function instanceOfCreateContentRuleActionDto(value: any): value is CreateContentRuleActionDto { if (!('data' in value) || value['data'] === undefined) return false; if (!('schema' in value) || value['schema'] === undefined) return false; if (!('client' in value) || value['client'] === undefined) return false; diff --git a/src/generated/models/CreateRuleDto.ts b/src/generated/models/CreateRuleDto.ts index 24308fc..eef9b1c 100644 --- a/src/generated/models/CreateRuleDto.ts +++ b/src/generated/models/CreateRuleDto.ts @@ -50,7 +50,7 @@ export interface CreateRuleDto { /** * Check if a given object implements the CreateRuleDto interface. */ -export function instanceOfCreateRuleDto(value: object): value is CreateRuleDto { +export function instanceOfCreateRuleDto(value: any): value is CreateRuleDto { if (!('trigger' in value) || value['trigger'] === undefined) return false; if (!('action' in value) || value['action'] === undefined) return false; return true; diff --git a/src/generated/models/CreateSchemaDto.ts b/src/generated/models/CreateSchemaDto.ts index 297ea71..003e01b 100644 --- a/src/generated/models/CreateSchemaDto.ts +++ b/src/generated/models/CreateSchemaDto.ts @@ -131,7 +131,7 @@ export interface CreateSchemaDto { /** * Check if a given object implements the CreateSchemaDto interface. */ -export function instanceOfCreateSchemaDto(value: object): value is CreateSchemaDto { +export function instanceOfCreateSchemaDto(value: any): value is CreateSchemaDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -171,9 +171,9 @@ export function CreateSchemaDtoToJSON(value?: CreateSchemaDto | null, ignoreDisc 'scripts': SchemaScriptsDtoToJSON(value['scripts']), 'fieldsInReferences': value['fieldsInReferences'], 'fieldsInLists': value['fieldsInLists'], - 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(x => UpsertSchemaFieldDtoToJSON(x))), 'previewUrls': value['previewUrls'], - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), 'category': value['category'], 'isPublished': value['isPublished'], 'name': value['name'], diff --git a/src/generated/models/CreateTeamDto.ts b/src/generated/models/CreateTeamDto.ts index e24110b..4a352ec 100644 --- a/src/generated/models/CreateTeamDto.ts +++ b/src/generated/models/CreateTeamDto.ts @@ -31,7 +31,7 @@ export interface CreateTeamDto { /** * Check if a given object implements the CreateTeamDto interface. */ -export function instanceOfCreateTeamDto(value: object): value is CreateTeamDto { +export function instanceOfCreateTeamDto(value: any): value is CreateTeamDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/CreateUserDto.ts b/src/generated/models/CreateUserDto.ts index 7634a0f..d3187a1 100644 --- a/src/generated/models/CreateUserDto.ts +++ b/src/generated/models/CreateUserDto.ts @@ -49,7 +49,7 @@ export interface CreateUserDto { /** * Check if a given object implements the CreateUserDto interface. */ -export function instanceOfCreateUserDto(value: object): value is CreateUserDto { +export function instanceOfCreateUserDto(value: any): value is CreateUserDto { if (!('email' in value) || value['email'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; diff --git a/src/generated/models/CurrentStorageDto.ts b/src/generated/models/CurrentStorageDto.ts index 619237a..0369f4a 100644 --- a/src/generated/models/CurrentStorageDto.ts +++ b/src/generated/models/CurrentStorageDto.ts @@ -37,7 +37,7 @@ export interface CurrentStorageDto { /** * Check if a given object implements the CurrentStorageDto interface. */ -export function instanceOfCurrentStorageDto(value: object): value is CurrentStorageDto { +export function instanceOfCurrentStorageDto(value: any): value is CurrentStorageDto { if (!('size' in value) || value['size'] === undefined) return false; if (!('maxAllowed' in value) || value['maxAllowed'] === undefined) return false; return true; diff --git a/src/generated/models/DateTimeFieldPropertiesDto.ts b/src/generated/models/DateTimeFieldPropertiesDto.ts index ed50a1d..c6589f2 100644 --- a/src/generated/models/DateTimeFieldPropertiesDto.ts +++ b/src/generated/models/DateTimeFieldPropertiesDto.ts @@ -88,7 +88,7 @@ export interface DateTimeFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the DateTimeFieldPropertiesDto interface. */ -export function instanceOfDateTimeFieldPropertiesDto(value: object): value is DateTimeFieldPropertiesDto { +export function instanceOfDateTimeFieldPropertiesDto(value: any): value is DateTimeFieldPropertiesDto { return true; } diff --git a/src/generated/models/DiscourseRuleActionDto.ts b/src/generated/models/DiscourseRuleActionDto.ts index 89b69ea..bd33b32 100644 --- a/src/generated/models/DiscourseRuleActionDto.ts +++ b/src/generated/models/DiscourseRuleActionDto.ts @@ -74,7 +74,7 @@ export interface DiscourseRuleActionDto extends RuleActionDto { /** * Check if a given object implements the DiscourseRuleActionDto interface. */ -export function instanceOfDiscourseRuleActionDto(value: object): value is DiscourseRuleActionDto { +export function instanceOfDiscourseRuleActionDto(value: any): value is DiscourseRuleActionDto { if (!('url' in value) || value['url'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('apiUsername' in value) || value['apiUsername'] === undefined) return false; diff --git a/src/generated/models/EditorDto.ts b/src/generated/models/EditorDto.ts index 56d2233..5e7efed 100644 --- a/src/generated/models/EditorDto.ts +++ b/src/generated/models/EditorDto.ts @@ -37,7 +37,7 @@ export interface EditorDto { /** * Check if a given object implements the EditorDto interface. */ -export function instanceOfEditorDto(value: object): value is EditorDto { +export function instanceOfEditorDto(value: any): value is EditorDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; diff --git a/src/generated/models/ElasticSearchRuleActionDto.ts b/src/generated/models/ElasticSearchRuleActionDto.ts index abec035..4114167 100644 --- a/src/generated/models/ElasticSearchRuleActionDto.ts +++ b/src/generated/models/ElasticSearchRuleActionDto.ts @@ -68,7 +68,7 @@ export interface ElasticSearchRuleActionDto extends RuleActionDto { /** * Check if a given object implements the ElasticSearchRuleActionDto interface. */ -export function instanceOfElasticSearchRuleActionDto(value: object): value is ElasticSearchRuleActionDto { +export function instanceOfElasticSearchRuleActionDto(value: any): value is ElasticSearchRuleActionDto { if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; return true; diff --git a/src/generated/models/EmailRuleActionDto.ts b/src/generated/models/EmailRuleActionDto.ts index b4ee0c3..124dd06 100644 --- a/src/generated/models/EmailRuleActionDto.ts +++ b/src/generated/models/EmailRuleActionDto.ts @@ -80,7 +80,7 @@ export interface EmailRuleActionDto extends RuleActionDto { /** * Check if a given object implements the EmailRuleActionDto interface. */ -export function instanceOfEmailRuleActionDto(value: object): value is EmailRuleActionDto { +export function instanceOfEmailRuleActionDto(value: any): value is EmailRuleActionDto { if (!('serverHost' in value) || value['serverHost'] === undefined) return false; if (!('serverPort' in value) || value['serverPort'] === undefined) return false; if (!('serverUsername' in value) || value['serverUsername'] === undefined) return false; diff --git a/src/generated/models/ErrorDto.ts b/src/generated/models/ErrorDto.ts index aef21d2..706365d 100644 --- a/src/generated/models/ErrorDto.ts +++ b/src/generated/models/ErrorDto.ts @@ -61,7 +61,7 @@ export interface ErrorDto { /** * Check if a given object implements the ErrorDto interface. */ -export function instanceOfErrorDto(value: object): value is ErrorDto { +export function instanceOfErrorDto(value: any): value is ErrorDto { if (!('message' in value) || value['message'] === undefined) return false; if (!('statusCode' in value) || value['statusCode'] === undefined) return false; return true; diff --git a/src/generated/models/EventConsumerDto.ts b/src/generated/models/EventConsumerDto.ts index 257984f..8467700 100644 --- a/src/generated/models/EventConsumerDto.ts +++ b/src/generated/models/EventConsumerDto.ts @@ -74,7 +74,7 @@ export interface EventConsumerDto { /** * Check if a given object implements the EventConsumerDto interface. */ -export function instanceOfEventConsumerDto(value: object): value is EventConsumerDto { +export function instanceOfEventConsumerDto(value: any): value is EventConsumerDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('isStopped' in value) || value['isStopped'] === undefined) return false; if (!('isResetting' in value) || value['isResetting'] === undefined) return false; @@ -109,7 +109,7 @@ export function EventConsumerDtoToJSON(value?: EventConsumerDto | null, ignoreDi } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'isStopped': value['isStopped'], 'isResetting': value['isResetting'], 'count': value['count'], diff --git a/src/generated/models/EventConsumersDto.ts b/src/generated/models/EventConsumersDto.ts index 701d6d5..3383c80 100644 --- a/src/generated/models/EventConsumersDto.ts +++ b/src/generated/models/EventConsumersDto.ts @@ -50,7 +50,7 @@ export interface EventConsumersDto { /** * Check if a given object implements the EventConsumersDto interface. */ -export function instanceOfEventConsumersDto(value: object): value is EventConsumersDto { +export function instanceOfEventConsumersDto(value: any): value is EventConsumersDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function EventConsumersDtoToJSON(value?: EventConsumersDto | null, ignore } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(EventConsumerDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => EventConsumerDtoToJSON(x))), }; } diff --git a/src/generated/models/FastlyRuleActionDto.ts b/src/generated/models/FastlyRuleActionDto.ts index e97b188..400c2d7 100644 --- a/src/generated/models/FastlyRuleActionDto.ts +++ b/src/generated/models/FastlyRuleActionDto.ts @@ -44,7 +44,7 @@ export interface FastlyRuleActionDto extends RuleActionDto { /** * Check if a given object implements the FastlyRuleActionDto interface. */ -export function instanceOfFastlyRuleActionDto(value: object): value is FastlyRuleActionDto { +export function instanceOfFastlyRuleActionDto(value: any): value is FastlyRuleActionDto { if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('serviceId' in value) || value['serviceId'] === undefined) return false; return true; diff --git a/src/generated/models/FeatureDto.ts b/src/generated/models/FeatureDto.ts index cf9b477..6e9baa7 100644 --- a/src/generated/models/FeatureDto.ts +++ b/src/generated/models/FeatureDto.ts @@ -37,7 +37,7 @@ export interface FeatureDto { /** * Check if a given object implements the FeatureDto interface. */ -export function instanceOfFeatureDto(value: object): value is FeatureDto { +export function instanceOfFeatureDto(value: any): value is FeatureDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; diff --git a/src/generated/models/FeaturesDto.ts b/src/generated/models/FeaturesDto.ts index bafd7b1..3abb8c3 100644 --- a/src/generated/models/FeaturesDto.ts +++ b/src/generated/models/FeaturesDto.ts @@ -44,7 +44,7 @@ export interface FeaturesDto { /** * Check if a given object implements the FeaturesDto interface. */ -export function instanceOfFeaturesDto(value: object): value is FeaturesDto { +export function instanceOfFeaturesDto(value: any): value is FeaturesDto { if (!('features' in value) || value['features'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; @@ -71,7 +71,7 @@ export function FeaturesDtoToJSON(value?: FeaturesDto | null, ignoreDiscriminato } return { - 'features': ((value['features'] as Array).map(FeatureDtoToJSON)), + 'features': ((value['features'] as Array).map(x => FeatureDtoToJSON(x))), 'version': value['version'], }; } diff --git a/src/generated/models/FieldDto.ts b/src/generated/models/FieldDto.ts index 4cc188f..9c09105 100644 --- a/src/generated/models/FieldDto.ts +++ b/src/generated/models/FieldDto.ts @@ -98,7 +98,7 @@ export interface FieldDto { /** * Check if a given object implements the FieldDto interface. */ -export function instanceOfFieldDto(value: object): value is FieldDto { +export function instanceOfFieldDto(value: any): value is FieldDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('fieldId' in value) || value['fieldId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -138,7 +138,7 @@ export function FieldDtoToJSON(value?: FieldDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'fieldId': value['fieldId'], 'name': value['name'], 'isHidden': value['isHidden'], @@ -146,6 +146,6 @@ export function FieldDtoToJSON(value?: FieldDto | null, ignoreDiscriminator = fa 'isDisabled': value['isDisabled'], 'partitioning': value['partitioning'], 'properties': FieldPropertiesDtoToJSON(value['properties']), - 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(NestedFieldDtoToJSON)), + 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(x => NestedFieldDtoToJSON(x))), }; } diff --git a/src/generated/models/FieldPropertiesDto.ts b/src/generated/models/FieldPropertiesDto.ts index f6d4782..70b4198 100644 --- a/src/generated/models/FieldPropertiesDto.ts +++ b/src/generated/models/FieldPropertiesDto.ts @@ -149,7 +149,7 @@ export function isUIFieldPropertiesDto(value: FieldPropertiesDto): value is UIFi /** * Check if a given object implements the FieldPropertiesDto interface. */ -export function instanceOfFieldPropertiesDto(value: object): value is FieldPropertiesDto { +export function instanceOfFieldPropertiesDto(value: any): value is FieldPropertiesDto { if (!('fieldType' in value) || value['fieldType'] === undefined) return false; return true; } diff --git a/src/generated/models/FieldRuleDto.ts b/src/generated/models/FieldRuleDto.ts index 9c44c09..616227c 100644 --- a/src/generated/models/FieldRuleDto.ts +++ b/src/generated/models/FieldRuleDto.ts @@ -52,7 +52,7 @@ export interface FieldRuleDto { /** * Check if a given object implements the FieldRuleDto interface. */ -export function instanceOfFieldRuleDto(value: object): value is FieldRuleDto { +export function instanceOfFieldRuleDto(value: any): value is FieldRuleDto { if (!('action' in value) || value['action'] === undefined) return false; if (!('field' in value) || value['field'] === undefined) return false; return true; diff --git a/src/generated/models/GeolocationFieldPropertiesDto.ts b/src/generated/models/GeolocationFieldPropertiesDto.ts index 4e98e69..e70352d 100644 --- a/src/generated/models/GeolocationFieldPropertiesDto.ts +++ b/src/generated/models/GeolocationFieldPropertiesDto.ts @@ -46,7 +46,7 @@ export interface GeolocationFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the GeolocationFieldPropertiesDto interface. */ -export function instanceOfGeolocationFieldPropertiesDto(value: object): value is GeolocationFieldPropertiesDto { +export function instanceOfGeolocationFieldPropertiesDto(value: any): value is GeolocationFieldPropertiesDto { return true; } diff --git a/src/generated/models/HistoryEventDto.ts b/src/generated/models/HistoryEventDto.ts index 22ee051..1c55f7f 100644 --- a/src/generated/models/HistoryEventDto.ts +++ b/src/generated/models/HistoryEventDto.ts @@ -61,7 +61,7 @@ export interface HistoryEventDto { /** * Check if a given object implements the HistoryEventDto interface. */ -export function instanceOfHistoryEventDto(value: object): value is HistoryEventDto { +export function instanceOfHistoryEventDto(value: any): value is HistoryEventDto { if (!('message' in value) || value['message'] === undefined) return false; if (!('eventType' in value) || value['eventType'] === undefined) return false; if (!('actor' in value) || value['actor'] === undefined) return false; diff --git a/src/generated/models/ImportContentsDto.ts b/src/generated/models/ImportContentsDto.ts index d126362..e20dc2b 100644 --- a/src/generated/models/ImportContentsDto.ts +++ b/src/generated/models/ImportContentsDto.ts @@ -50,7 +50,7 @@ export interface ImportContentsDto { /** * Check if a given object implements the ImportContentsDto interface. */ -export function instanceOfImportContentsDto(value: object): value is ImportContentsDto { +export function instanceOfImportContentsDto(value: any): value is ImportContentsDto { if (!('datas' in value) || value['datas'] === undefined) return false; return true; } diff --git a/src/generated/models/JobDto.ts b/src/generated/models/JobDto.ts index 8d95df7..44f78c1 100644 --- a/src/generated/models/JobDto.ts +++ b/src/generated/models/JobDto.ts @@ -106,7 +106,7 @@ export interface JobDto { /** * Check if a given object implements the JobDto interface. */ -export function instanceOfJobDto(value: object): value is JobDto { +export function instanceOfJobDto(value: any): value is JobDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; @@ -148,7 +148,7 @@ export function JobDtoToJSON(value?: JobDto | null, ignoreDiscriminator = false) } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'started': ((value['started']).toISOString()), 'stopped': value['stopped'] == null ? undefined : ((value['stopped'] as any).toISOString()), @@ -156,7 +156,7 @@ export function JobDtoToJSON(value?: JobDto | null, ignoreDiscriminator = false) 'taskName': value['taskName'], 'description': value['description'], 'taskArguments': value['taskArguments'], - 'log': ((value['log'] as Array).map(JobLogMessageDtoToJSON)), + 'log': ((value['log'] as Array).map(x => JobLogMessageDtoToJSON(x))), 'canDownload': value['canDownload'], }; } diff --git a/src/generated/models/JobLogMessageDto.ts b/src/generated/models/JobLogMessageDto.ts index 058a4a0..42fdcaa 100644 --- a/src/generated/models/JobLogMessageDto.ts +++ b/src/generated/models/JobLogMessageDto.ts @@ -37,7 +37,7 @@ export interface JobLogMessageDto { /** * Check if a given object implements the JobLogMessageDto interface. */ -export function instanceOfJobLogMessageDto(value: object): value is JobLogMessageDto { +export function instanceOfJobLogMessageDto(value: any): value is JobLogMessageDto { if (!('timestamp' in value) || value['timestamp'] === undefined) return false; if (!('message' in value) || value['message'] === undefined) return false; return true; diff --git a/src/generated/models/JobsDto.ts b/src/generated/models/JobsDto.ts index ce48482..c3e269b 100644 --- a/src/generated/models/JobsDto.ts +++ b/src/generated/models/JobsDto.ts @@ -50,7 +50,7 @@ export interface JobsDto { /** * Check if a given object implements the JobsDto interface. */ -export function instanceOfJobsDto(value: object): value is JobsDto { +export function instanceOfJobsDto(value: any): value is JobsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function JobsDtoToJSON(value?: JobsDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(JobDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => JobDtoToJSON(x))), }; } diff --git a/src/generated/models/JsonFieldPropertiesDto.ts b/src/generated/models/JsonFieldPropertiesDto.ts index d4d7ef4..001254c 100644 --- a/src/generated/models/JsonFieldPropertiesDto.ts +++ b/src/generated/models/JsonFieldPropertiesDto.ts @@ -38,7 +38,7 @@ export interface JsonFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the JsonFieldPropertiesDto interface. */ -export function instanceOfJsonFieldPropertiesDto(value: object): value is JsonFieldPropertiesDto { +export function instanceOfJsonFieldPropertiesDto(value: any): value is JsonFieldPropertiesDto { return true; } diff --git a/src/generated/models/LanguageDto.ts b/src/generated/models/LanguageDto.ts index ee3a10c..889f952 100644 --- a/src/generated/models/LanguageDto.ts +++ b/src/generated/models/LanguageDto.ts @@ -43,7 +43,7 @@ export interface LanguageDto { /** * Check if a given object implements the LanguageDto interface. */ -export function instanceOfLanguageDto(value: object): value is LanguageDto { +export function instanceOfLanguageDto(value: any): value is LanguageDto { if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; if (!('englishName' in value) || value['englishName'] === undefined) return false; if (!('nativeName' in value) || value['nativeName'] === undefined) return false; diff --git a/src/generated/models/LogDownloadDto.ts b/src/generated/models/LogDownloadDto.ts index 9c5ff4d..344e031 100644 --- a/src/generated/models/LogDownloadDto.ts +++ b/src/generated/models/LogDownloadDto.ts @@ -31,7 +31,7 @@ export interface LogDownloadDto { /** * Check if a given object implements the LogDownloadDto interface. */ -export function instanceOfLogDownloadDto(value: object): value is LogDownloadDto { +export function instanceOfLogDownloadDto(value: any): value is LogDownloadDto { return true; } diff --git a/src/generated/models/ManualRuleTriggerDto.ts b/src/generated/models/ManualRuleTriggerDto.ts index 7a04276..89c5b9d 100644 --- a/src/generated/models/ManualRuleTriggerDto.ts +++ b/src/generated/models/ManualRuleTriggerDto.ts @@ -32,7 +32,7 @@ export interface ManualRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the ManualRuleTriggerDto interface. */ -export function instanceOfManualRuleTriggerDto(value: object): value is ManualRuleTriggerDto { +export function instanceOfManualRuleTriggerDto(value: any): value is ManualRuleTriggerDto { return true; } diff --git a/src/generated/models/MediumRuleActionDto.ts b/src/generated/models/MediumRuleActionDto.ts index f427402..c166788 100644 --- a/src/generated/models/MediumRuleActionDto.ts +++ b/src/generated/models/MediumRuleActionDto.ts @@ -74,7 +74,7 @@ export interface MediumRuleActionDto extends RuleActionDto { /** * Check if a given object implements the MediumRuleActionDto interface. */ -export function instanceOfMediumRuleActionDto(value: object): value is MediumRuleActionDto { +export function instanceOfMediumRuleActionDto(value: any): value is MediumRuleActionDto { if (!('accessToken' in value) || value['accessToken'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; if (!('content' in value) || value['content'] === undefined) return false; diff --git a/src/generated/models/MoveAssetDto.ts b/src/generated/models/MoveAssetDto.ts index 2dd3b09..70e0c85 100644 --- a/src/generated/models/MoveAssetDto.ts +++ b/src/generated/models/MoveAssetDto.ts @@ -31,7 +31,7 @@ export interface MoveAssetDto { /** * Check if a given object implements the MoveAssetDto interface. */ -export function instanceOfMoveAssetDto(value: object): value is MoveAssetDto { +export function instanceOfMoveAssetDto(value: any): value is MoveAssetDto { return true; } diff --git a/src/generated/models/MoveAssetFolderDto.ts b/src/generated/models/MoveAssetFolderDto.ts index d15dccd..4895a40 100644 --- a/src/generated/models/MoveAssetFolderDto.ts +++ b/src/generated/models/MoveAssetFolderDto.ts @@ -31,7 +31,7 @@ export interface MoveAssetFolderDto { /** * Check if a given object implements the MoveAssetFolderDto interface. */ -export function instanceOfMoveAssetFolderDto(value: object): value is MoveAssetFolderDto { +export function instanceOfMoveAssetFolderDto(value: any): value is MoveAssetFolderDto { return true; } diff --git a/src/generated/models/NestedFieldDto.ts b/src/generated/models/NestedFieldDto.ts index e06d368..f9d36af 100644 --- a/src/generated/models/NestedFieldDto.ts +++ b/src/generated/models/NestedFieldDto.ts @@ -80,7 +80,7 @@ export interface NestedFieldDto { /** * Check if a given object implements the NestedFieldDto interface. */ -export function instanceOfNestedFieldDto(value: object): value is NestedFieldDto { +export function instanceOfNestedFieldDto(value: any): value is NestedFieldDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('fieldId' in value) || value['fieldId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -117,7 +117,7 @@ export function NestedFieldDtoToJSON(value?: NestedFieldDto | null, ignoreDiscri } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'fieldId': value['fieldId'], 'name': value['name'], 'isHidden': value['isHidden'], diff --git a/src/generated/models/NotificationRuleActionDto.ts b/src/generated/models/NotificationRuleActionDto.ts index f189427..05a3b92 100644 --- a/src/generated/models/NotificationRuleActionDto.ts +++ b/src/generated/models/NotificationRuleActionDto.ts @@ -56,7 +56,7 @@ export interface NotificationRuleActionDto extends RuleActionDto { /** * Check if a given object implements the NotificationRuleActionDto interface. */ -export function instanceOfNotificationRuleActionDto(value: object): value is NotificationRuleActionDto { +export function instanceOfNotificationRuleActionDto(value: any): value is NotificationRuleActionDto { if (!('user' in value) || value['user'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; diff --git a/src/generated/models/NumberFieldPropertiesDto.ts b/src/generated/models/NumberFieldPropertiesDto.ts index 54e9225..9c0066c 100644 --- a/src/generated/models/NumberFieldPropertiesDto.ts +++ b/src/generated/models/NumberFieldPropertiesDto.ts @@ -88,7 +88,7 @@ export interface NumberFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the NumberFieldPropertiesDto interface. */ -export function instanceOfNumberFieldPropertiesDto(value: object): value is NumberFieldPropertiesDto { +export function instanceOfNumberFieldPropertiesDto(value: any): value is NumberFieldPropertiesDto { return true; } diff --git a/src/generated/models/OpenSearchRuleActionDto.ts b/src/generated/models/OpenSearchRuleActionDto.ts index 8e7cec3..2b9ffa2 100644 --- a/src/generated/models/OpenSearchRuleActionDto.ts +++ b/src/generated/models/OpenSearchRuleActionDto.ts @@ -68,7 +68,7 @@ export interface OpenSearchRuleActionDto extends RuleActionDto { /** * Check if a given object implements the OpenSearchRuleActionDto interface. */ -export function instanceOfOpenSearchRuleActionDto(value: object): value is OpenSearchRuleActionDto { +export function instanceOfOpenSearchRuleActionDto(value: any): value is OpenSearchRuleActionDto { if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; return true; diff --git a/src/generated/models/PatternDto.ts b/src/generated/models/PatternDto.ts index 496061c..f20de17 100644 --- a/src/generated/models/PatternDto.ts +++ b/src/generated/models/PatternDto.ts @@ -43,7 +43,7 @@ export interface PatternDto { /** * Check if a given object implements the PatternDto interface. */ -export function instanceOfPatternDto(value: object): value is PatternDto { +export function instanceOfPatternDto(value: any): value is PatternDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('regex' in value) || value['regex'] === undefined) return false; return true; diff --git a/src/generated/models/PlanChangedDto.ts b/src/generated/models/PlanChangedDto.ts index 97f4b8a..97d4c23 100644 --- a/src/generated/models/PlanChangedDto.ts +++ b/src/generated/models/PlanChangedDto.ts @@ -31,7 +31,7 @@ export interface PlanChangedDto { /** * Check if a given object implements the PlanChangedDto interface. */ -export function instanceOfPlanChangedDto(value: object): value is PlanChangedDto { +export function instanceOfPlanChangedDto(value: any): value is PlanChangedDto { return true; } diff --git a/src/generated/models/PlanDto.ts b/src/generated/models/PlanDto.ts index 940210a..358a020 100644 --- a/src/generated/models/PlanDto.ts +++ b/src/generated/models/PlanDto.ts @@ -91,7 +91,7 @@ export interface PlanDto { /** * Check if a given object implements the PlanDto interface. */ -export function instanceOfPlanDto(value: object): value is PlanDto { +export function instanceOfPlanDto(value: any): value is PlanDto { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('costs' in value) || value['costs'] === undefined) return false; diff --git a/src/generated/models/PlansDto.ts b/src/generated/models/PlansDto.ts index 4deed12..ded5535 100644 --- a/src/generated/models/PlansDto.ts +++ b/src/generated/models/PlansDto.ts @@ -82,7 +82,7 @@ export interface PlansDto { /** * Check if a given object implements the PlansDto interface. */ -export function instanceOfPlansDto(value: object): value is PlansDto { +export function instanceOfPlansDto(value: any): value is PlansDto { if (!('plans' in value) || value['plans'] === undefined) return false; if (!('locked' in value) || value['locked'] === undefined) return false; return true; @@ -113,7 +113,7 @@ export function PlansDtoToJSON(value?: PlansDto | null, ignoreDiscriminator = fa } return { - 'plans': ((value['plans'] as Array).map(PlanDtoToJSON)), + 'plans': ((value['plans'] as Array).map(x => PlanDtoToJSON(x))), 'currentPlanId': value['currentPlanId'], 'planOwner': value['planOwner'], 'portalLink': value['portalLink'], diff --git a/src/generated/models/PrerenderRuleActionDto.ts b/src/generated/models/PrerenderRuleActionDto.ts index bcb5f83..471fbf4 100644 --- a/src/generated/models/PrerenderRuleActionDto.ts +++ b/src/generated/models/PrerenderRuleActionDto.ts @@ -44,7 +44,7 @@ export interface PrerenderRuleActionDto extends RuleActionDto { /** * Check if a given object implements the PrerenderRuleActionDto interface. */ -export function instanceOfPrerenderRuleActionDto(value: object): value is PrerenderRuleActionDto { +export function instanceOfPrerenderRuleActionDto(value: any): value is PrerenderRuleActionDto { if (!('token' in value) || value['token'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; diff --git a/src/generated/models/QueryDto.ts b/src/generated/models/QueryDto.ts index fb9f1d7..5447af2 100644 --- a/src/generated/models/QueryDto.ts +++ b/src/generated/models/QueryDto.ts @@ -49,7 +49,7 @@ export interface QueryDto { /** * Check if a given object implements the QueryDto interface. */ -export function instanceOfQueryDto(value: object): value is QueryDto { +export function instanceOfQueryDto(value: any): value is QueryDto { return true; } diff --git a/src/generated/models/QueryJsonDto.ts b/src/generated/models/QueryJsonDto.ts index c477b44..c758a22 100644 --- a/src/generated/models/QueryJsonDto.ts +++ b/src/generated/models/QueryJsonDto.ts @@ -74,7 +74,7 @@ export interface QueryJsonDto { /** * Check if a given object implements the QueryJsonDto interface. */ -export function instanceOfQueryJsonDto(value: object): value is QueryJsonDto { +export function instanceOfQueryJsonDto(value: any): value is QueryJsonDto { if (!('skip' in value) || value['skip'] === undefined) return false; if (!('take' in value) || value['take'] === undefined) return false; if (!('random' in value) || value['random'] === undefined) return false; @@ -114,6 +114,6 @@ export function QueryJsonDtoToJSON(value?: QueryJsonDto | null, ignoreDiscrimina 'take': value['take'], 'random': value['random'], 'top': value['top'], - 'sort': value['sort'] == null ? undefined : ((value['sort'] as Array).map(SortNodeToJSON)), + 'sort': value['sort'] == null ? undefined : ((value['sort'] as Array).map(x => SortNodeToJSON(x))), }; } diff --git a/src/generated/models/ReferencesFieldPropertiesDto.ts b/src/generated/models/ReferencesFieldPropertiesDto.ts index ee43959..549086e 100644 --- a/src/generated/models/ReferencesFieldPropertiesDto.ts +++ b/src/generated/models/ReferencesFieldPropertiesDto.ts @@ -100,7 +100,7 @@ export interface ReferencesFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the ReferencesFieldPropertiesDto interface. */ -export function instanceOfReferencesFieldPropertiesDto(value: object): value is ReferencesFieldPropertiesDto { +export function instanceOfReferencesFieldPropertiesDto(value: any): value is ReferencesFieldPropertiesDto { return true; } diff --git a/src/generated/models/ReferralInfo.ts b/src/generated/models/ReferralInfo.ts index cb46ab3..c288798 100644 --- a/src/generated/models/ReferralInfo.ts +++ b/src/generated/models/ReferralInfo.ts @@ -43,7 +43,7 @@ export interface ReferralInfo { /** * Check if a given object implements the ReferralInfo interface. */ -export function instanceOfReferralInfo(value: object): value is ReferralInfo { +export function instanceOfReferralInfo(value: any): value is ReferralInfo { if (!('code' in value) || value['code'] === undefined) return false; if (!('earned' in value) || value['earned'] === undefined) return false; if (!('condition' in value) || value['condition'] === undefined) return false; diff --git a/src/generated/models/RenameAssetFolderDto.ts b/src/generated/models/RenameAssetFolderDto.ts index dd15486..aadbef2 100644 --- a/src/generated/models/RenameAssetFolderDto.ts +++ b/src/generated/models/RenameAssetFolderDto.ts @@ -31,7 +31,7 @@ export interface RenameAssetFolderDto { /** * Check if a given object implements the RenameAssetFolderDto interface. */ -export function instanceOfRenameAssetFolderDto(value: object): value is RenameAssetFolderDto { +export function instanceOfRenameAssetFolderDto(value: any): value is RenameAssetFolderDto { if (!('folderName' in value) || value['folderName'] === undefined) return false; return true; } diff --git a/src/generated/models/RenameTagDto.ts b/src/generated/models/RenameTagDto.ts index c9130bb..1c4d493 100644 --- a/src/generated/models/RenameTagDto.ts +++ b/src/generated/models/RenameTagDto.ts @@ -31,7 +31,7 @@ export interface RenameTagDto { /** * Check if a given object implements the RenameTagDto interface. */ -export function instanceOfRenameTagDto(value: object): value is RenameTagDto { +export function instanceOfRenameTagDto(value: any): value is RenameTagDto { if (!('tagName' in value) || value['tagName'] === undefined) return false; return true; } diff --git a/src/generated/models/ReorderFieldsDto.ts b/src/generated/models/ReorderFieldsDto.ts index e51988f..1a29cde 100644 --- a/src/generated/models/ReorderFieldsDto.ts +++ b/src/generated/models/ReorderFieldsDto.ts @@ -31,7 +31,7 @@ export interface ReorderFieldsDto { /** * Check if a given object implements the ReorderFieldsDto interface. */ -export function instanceOfReorderFieldsDto(value: object): value is ReorderFieldsDto { +export function instanceOfReorderFieldsDto(value: any): value is ReorderFieldsDto { if (!('fieldIds' in value) || value['fieldIds'] === undefined) return false; return true; } diff --git a/src/generated/models/Resource.ts b/src/generated/models/Resource.ts index 4df9135..f21b0d9 100644 --- a/src/generated/models/Resource.ts +++ b/src/generated/models/Resource.ts @@ -38,7 +38,7 @@ export interface Resource { /** * Check if a given object implements the Resource interface. */ -export function instanceOfResource(value: object): value is Resource { +export function instanceOfResource(value: any): value is Resource { if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -63,6 +63,6 @@ export function ResourceToJSON(value?: Resource | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), }; } diff --git a/src/generated/models/ResourceLink.ts b/src/generated/models/ResourceLink.ts index a528c81..9eb3862 100644 --- a/src/generated/models/ResourceLink.ts +++ b/src/generated/models/ResourceLink.ts @@ -43,7 +43,7 @@ export interface ResourceLink { /** * Check if a given object implements the ResourceLink interface. */ -export function instanceOfResourceLink(value: object): value is ResourceLink { +export function instanceOfResourceLink(value: any): value is ResourceLink { if (!('href' in value) || value['href'] === undefined) return false; if (!('method' in value) || value['method'] === undefined) return false; return true; diff --git a/src/generated/models/ResourcesDto.ts b/src/generated/models/ResourcesDto.ts index 6d4be49..b0a6cfc 100644 --- a/src/generated/models/ResourcesDto.ts +++ b/src/generated/models/ResourcesDto.ts @@ -38,7 +38,7 @@ export interface ResourcesDto { /** * Check if a given object implements the ResourcesDto interface. */ -export function instanceOfResourcesDto(value: object): value is ResourcesDto { +export function instanceOfResourcesDto(value: any): value is ResourcesDto { if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -63,6 +63,6 @@ export function ResourcesDtoToJSON(value?: ResourcesDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), }; } diff --git a/src/generated/models/RestoreJobDto.ts b/src/generated/models/RestoreJobDto.ts index 44d18f9..7b41bae 100644 --- a/src/generated/models/RestoreJobDto.ts +++ b/src/generated/models/RestoreJobDto.ts @@ -64,7 +64,7 @@ export interface RestoreJobDto { /** * Check if a given object implements the RestoreJobDto interface. */ -export function instanceOfRestoreJobDto(value: object): value is RestoreJobDto { +export function instanceOfRestoreJobDto(value: any): value is RestoreJobDto { if (!('url' in value) || value['url'] === undefined) return false; if (!('log' in value) || value['log'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; diff --git a/src/generated/models/RestoreRequestDto.ts b/src/generated/models/RestoreRequestDto.ts index 6ec16d0..a468151 100644 --- a/src/generated/models/RestoreRequestDto.ts +++ b/src/generated/models/RestoreRequestDto.ts @@ -37,7 +37,7 @@ export interface RestoreRequestDto { /** * Check if a given object implements the RestoreRequestDto interface. */ -export function instanceOfRestoreRequestDto(value: object): value is RestoreRequestDto { +export function instanceOfRestoreRequestDto(value: any): value is RestoreRequestDto { if (!('url' in value) || value['url'] === undefined) return false; return true; } diff --git a/src/generated/models/RichTextFieldPropertiesDto.ts b/src/generated/models/RichTextFieldPropertiesDto.ts index dc01763..aabc576 100644 --- a/src/generated/models/RichTextFieldPropertiesDto.ts +++ b/src/generated/models/RichTextFieldPropertiesDto.ts @@ -86,7 +86,7 @@ export interface RichTextFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the RichTextFieldPropertiesDto interface. */ -export function instanceOfRichTextFieldPropertiesDto(value: object): value is RichTextFieldPropertiesDto { +export function instanceOfRichTextFieldPropertiesDto(value: any): value is RichTextFieldPropertiesDto { return true; } diff --git a/src/generated/models/RoleDto.ts b/src/generated/models/RoleDto.ts index ce52aac..c893b1d 100644 --- a/src/generated/models/RoleDto.ts +++ b/src/generated/models/RoleDto.ts @@ -74,7 +74,7 @@ export interface RoleDto { /** * Check if a given object implements the RoleDto interface. */ -export function instanceOfRoleDto(value: object): value is RoleDto { +export function instanceOfRoleDto(value: any): value is RoleDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('numClients' in value) || value['numClients'] === undefined) return false; @@ -111,7 +111,7 @@ export function RoleDtoToJSON(value?: RoleDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'name': value['name'], 'numClients': value['numClients'], 'numContributors': value['numContributors'], diff --git a/src/generated/models/RolesDto.ts b/src/generated/models/RolesDto.ts index 6a0ab27..bbcad2f 100644 --- a/src/generated/models/RolesDto.ts +++ b/src/generated/models/RolesDto.ts @@ -50,7 +50,7 @@ export interface RolesDto { /** * Check if a given object implements the RolesDto interface. */ -export function instanceOfRolesDto(value: object): value is RolesDto { +export function instanceOfRolesDto(value: any): value is RolesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function RolesDtoToJSON(value?: RolesDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(RoleDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => RoleDtoToJSON(x))), }; } diff --git a/src/generated/models/RuleActionDto.ts b/src/generated/models/RuleActionDto.ts index b269b87..0775939 100644 --- a/src/generated/models/RuleActionDto.ts +++ b/src/generated/models/RuleActionDto.ts @@ -121,7 +121,7 @@ export function isWebhookRuleActionDto(value: RuleActionDto): value is WebhookRu /** * Check if a given object implements the RuleActionDto interface. */ -export function instanceOfRuleActionDto(value: object): value is RuleActionDto { +export function instanceOfRuleActionDto(value: any): value is RuleActionDto { if (!('actionType' in value) || value['actionType'] === undefined) return false; return true; } diff --git a/src/generated/models/RuleDto.ts b/src/generated/models/RuleDto.ts index df729dd..d6d50e1 100644 --- a/src/generated/models/RuleDto.ts +++ b/src/generated/models/RuleDto.ts @@ -129,7 +129,7 @@ export interface RuleDto { /** * Check if a given object implements the RuleDto interface. */ -export function instanceOfRuleDto(value: object): value is RuleDto { +export function instanceOfRuleDto(value: any): value is RuleDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -178,7 +178,7 @@ export function RuleDtoToJSON(value?: RuleDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'createdBy': value['createdBy'], 'lastModifiedBy': value['lastModifiedBy'], diff --git a/src/generated/models/RuleElementDto.ts b/src/generated/models/RuleElementDto.ts index f612668..d43a23b 100644 --- a/src/generated/models/RuleElementDto.ts +++ b/src/generated/models/RuleElementDto.ts @@ -74,7 +74,7 @@ export interface RuleElementDto { /** * Check if a given object implements the RuleElementDto interface. */ -export function instanceOfRuleElementDto(value: object): value is RuleElementDto { +export function instanceOfRuleElementDto(value: any): value is RuleElementDto { if (!('description' in value) || value['description'] === undefined) return false; if (!('display' in value) || value['display'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; @@ -113,6 +113,6 @@ export function RuleElementDtoToJSON(value?: RuleElementDto | null, ignoreDiscri 'iconColor': value['iconColor'], 'iconImage': value['iconImage'], 'readMore': value['readMore'], - 'properties': ((value['properties'] as Array).map(RuleElementPropertyDtoToJSON)), + 'properties': ((value['properties'] as Array).map(x => RuleElementPropertyDtoToJSON(x))), }; } diff --git a/src/generated/models/RuleElementPropertyDto.ts b/src/generated/models/RuleElementPropertyDto.ts index 9c291ec..330dd4f 100644 --- a/src/generated/models/RuleElementPropertyDto.ts +++ b/src/generated/models/RuleElementPropertyDto.ts @@ -76,7 +76,7 @@ export interface RuleElementPropertyDto { /** * Check if a given object implements the RuleElementPropertyDto interface. */ -export function instanceOfRuleElementPropertyDto(value: object): value is RuleElementPropertyDto { +export function instanceOfRuleElementPropertyDto(value: any): value is RuleElementPropertyDto { if (!('editor' in value) || value['editor'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('display' in value) || value['display'] === undefined) return false; diff --git a/src/generated/models/RuleEventDto.ts b/src/generated/models/RuleEventDto.ts index b1236b9..35997e7 100644 --- a/src/generated/models/RuleEventDto.ts +++ b/src/generated/models/RuleEventDto.ts @@ -106,7 +106,7 @@ export interface RuleEventDto { /** * Check if a given object implements the RuleEventDto interface. */ -export function instanceOfRuleEventDto(value: object): value is RuleEventDto { +export function instanceOfRuleEventDto(value: any): value is RuleEventDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('created' in value) || value['created'] === undefined) return false; @@ -147,7 +147,7 @@ export function RuleEventDtoToJSON(value?: RuleEventDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'created': ((value['created']).toISOString()), 'description': value['description'], diff --git a/src/generated/models/RuleEventsDto.ts b/src/generated/models/RuleEventsDto.ts index 35f59ac..26ab9a9 100644 --- a/src/generated/models/RuleEventsDto.ts +++ b/src/generated/models/RuleEventsDto.ts @@ -56,7 +56,7 @@ export interface RuleEventsDto { /** * Check if a given object implements the RuleEventsDto interface. */ -export function instanceOfRuleEventsDto(value: object): value is RuleEventsDto { +export function instanceOfRuleEventsDto(value: any): value is RuleEventsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function RuleEventsDtoToJSON(value?: RuleEventsDto | null, ignoreDiscrimi } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(RuleEventDtoToJSON)), + 'items': ((value['items'] as Array).map(x => RuleEventDtoToJSON(x))), }; } diff --git a/src/generated/models/RuleTriggerDto.ts b/src/generated/models/RuleTriggerDto.ts index 37b5d0f..7a1f9bc 100644 --- a/src/generated/models/RuleTriggerDto.ts +++ b/src/generated/models/RuleTriggerDto.ts @@ -61,7 +61,7 @@ export function isUsageRuleTriggerDto(value: RuleTriggerDto): value is UsageRule /** * Check if a given object implements the RuleTriggerDto interface. */ -export function instanceOfRuleTriggerDto(value: object): value is RuleTriggerDto { +export function instanceOfRuleTriggerDto(value: any): value is RuleTriggerDto { if (!('triggerType' in value) || value['triggerType'] === undefined) return false; return true; } diff --git a/src/generated/models/RulesDto.ts b/src/generated/models/RulesDto.ts index 9ef3aeb..b50068a 100644 --- a/src/generated/models/RulesDto.ts +++ b/src/generated/models/RulesDto.ts @@ -56,7 +56,7 @@ export interface RulesDto { /** * Check if a given object implements the RulesDto interface. */ -export function instanceOfRulesDto(value: object): value is RulesDto { +export function instanceOfRulesDto(value: any): value is RulesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -84,8 +84,8 @@ export function RulesDtoToJSON(value?: RulesDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(RuleDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => RuleDtoToJSON(x))), 'runningRuleId': value['runningRuleId'], }; } diff --git a/src/generated/models/ScheduleJobDto.ts b/src/generated/models/ScheduleJobDto.ts index 908cec0..3b1cb82 100644 --- a/src/generated/models/ScheduleJobDto.ts +++ b/src/generated/models/ScheduleJobDto.ts @@ -55,7 +55,7 @@ export interface ScheduleJobDto { /** * Check if a given object implements the ScheduleJobDto interface. */ -export function instanceOfScheduleJobDto(value: object): value is ScheduleJobDto { +export function instanceOfScheduleJobDto(value: any): value is ScheduleJobDto { if (!('id' in value) || value['id'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('dueTime' in value) || value['dueTime'] === undefined) return false; diff --git a/src/generated/models/SchemaChangedRuleTriggerDto.ts b/src/generated/models/SchemaChangedRuleTriggerDto.ts index f16cad6..44ac329 100644 --- a/src/generated/models/SchemaChangedRuleTriggerDto.ts +++ b/src/generated/models/SchemaChangedRuleTriggerDto.ts @@ -38,7 +38,7 @@ export interface SchemaChangedRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the SchemaChangedRuleTriggerDto interface. */ -export function instanceOfSchemaChangedRuleTriggerDto(value: object): value is SchemaChangedRuleTriggerDto { +export function instanceOfSchemaChangedRuleTriggerDto(value: any): value is SchemaChangedRuleTriggerDto { return true; } diff --git a/src/generated/models/SchemaCondition.ts b/src/generated/models/SchemaCondition.ts index 248fe3d..88a5748 100644 --- a/src/generated/models/SchemaCondition.ts +++ b/src/generated/models/SchemaCondition.ts @@ -37,7 +37,7 @@ export interface SchemaCondition { /** * Check if a given object implements the SchemaCondition interface. */ -export function instanceOfSchemaCondition(value: object): value is SchemaCondition { +export function instanceOfSchemaCondition(value: any): value is SchemaCondition { if (!('schemaId' in value) || value['schemaId'] === undefined) return false; return true; } diff --git a/src/generated/models/SchemaDto.ts b/src/generated/models/SchemaDto.ts index 1434947..de88e17 100644 --- a/src/generated/models/SchemaDto.ts +++ b/src/generated/models/SchemaDto.ts @@ -179,7 +179,7 @@ export interface SchemaDto { /** * Check if a given object implements the SchemaDto interface. */ -export function instanceOfSchemaDto(value: object): value is SchemaDto { +export function instanceOfSchemaDto(value: any): value is SchemaDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -239,7 +239,7 @@ export function SchemaDtoToJSON(value?: SchemaDto | null, ignoreDiscriminator = } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'createdBy': value['createdBy'], 'lastModifiedBy': value['lastModifiedBy'], @@ -256,7 +256,7 @@ export function SchemaDtoToJSON(value?: SchemaDto | null, ignoreDiscriminator = 'previewUrls': value['previewUrls'], 'fieldsInLists': value['fieldsInLists'], 'fieldsInReferences': value['fieldsInReferences'], - 'fieldRules': ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), - 'fields': ((value['fields'] as Array).map(FieldDtoToJSON)), + 'fieldRules': ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), + 'fields': ((value['fields'] as Array).map(x => FieldDtoToJSON(x))), }; } diff --git a/src/generated/models/SchemaPropertiesDto.ts b/src/generated/models/SchemaPropertiesDto.ts index 808d4f6..ec92d30 100644 --- a/src/generated/models/SchemaPropertiesDto.ts +++ b/src/generated/models/SchemaPropertiesDto.ts @@ -79,7 +79,7 @@ export interface SchemaPropertiesDto { /** * Check if a given object implements the SchemaPropertiesDto interface. */ -export function instanceOfSchemaPropertiesDto(value: object): value is SchemaPropertiesDto { +export function instanceOfSchemaPropertiesDto(value: any): value is SchemaPropertiesDto { if (!('validateOnPublish' in value) || value['validateOnPublish'] === undefined) return false; return true; } diff --git a/src/generated/models/SchemaScriptsDto.ts b/src/generated/models/SchemaScriptsDto.ts index a2cf0c0..7517f1f 100644 --- a/src/generated/models/SchemaScriptsDto.ts +++ b/src/generated/models/SchemaScriptsDto.ts @@ -61,7 +61,7 @@ export interface SchemaScriptsDto { /** * Check if a given object implements the SchemaScriptsDto interface. */ -export function instanceOfSchemaScriptsDto(value: object): value is SchemaScriptsDto { +export function instanceOfSchemaScriptsDto(value: any): value is SchemaScriptsDto { return true; } diff --git a/src/generated/models/SchemasDto.ts b/src/generated/models/SchemasDto.ts index ba2e9de..89fd592 100644 --- a/src/generated/models/SchemasDto.ts +++ b/src/generated/models/SchemasDto.ts @@ -50,7 +50,7 @@ export interface SchemasDto { /** * Check if a given object implements the SchemasDto interface. */ -export function instanceOfSchemasDto(value: object): value is SchemasDto { +export function instanceOfSchemasDto(value: any): value is SchemasDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function SchemasDtoToJSON(value?: SchemasDto | null, ignoreDiscriminator } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(SchemaDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => SchemaDtoToJSON(x))), }; } diff --git a/src/generated/models/ScriptRuleActionDto.ts b/src/generated/models/ScriptRuleActionDto.ts index 669f5dd..02a526b 100644 --- a/src/generated/models/ScriptRuleActionDto.ts +++ b/src/generated/models/ScriptRuleActionDto.ts @@ -38,7 +38,7 @@ export interface ScriptRuleActionDto extends RuleActionDto { /** * Check if a given object implements the ScriptRuleActionDto interface. */ -export function instanceOfScriptRuleActionDto(value: object): value is ScriptRuleActionDto { +export function instanceOfScriptRuleActionDto(value: any): value is ScriptRuleActionDto { if (!('script' in value) || value['script'] === undefined) return false; return true; } diff --git a/src/generated/models/SearchResultDto.ts b/src/generated/models/SearchResultDto.ts index 48645f5..a35f258 100644 --- a/src/generated/models/SearchResultDto.ts +++ b/src/generated/models/SearchResultDto.ts @@ -64,7 +64,7 @@ export interface SearchResultDto { /** * Check if a given object implements the SearchResultDto interface. */ -export function instanceOfSearchResultDto(value: object): value is SearchResultDto { +export function instanceOfSearchResultDto(value: any): value is SearchResultDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; @@ -94,7 +94,7 @@ export function SearchResultDtoToJSON(value?: SearchResultDto | null, ignoreDisc } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'name': value['name'], 'type': SearchResultTypeToJSON(value['type']), 'label': value['label'], diff --git a/src/generated/models/SignalRRuleActionDto.ts b/src/generated/models/SignalRRuleActionDto.ts index 70f3c4b..a16b250 100644 --- a/src/generated/models/SignalRRuleActionDto.ts +++ b/src/generated/models/SignalRRuleActionDto.ts @@ -76,7 +76,7 @@ export interface SignalRRuleActionDto extends RuleActionDto { /** * Check if a given object implements the SignalRRuleActionDto interface. */ -export function instanceOfSignalRRuleActionDto(value: object): value is SignalRRuleActionDto { +export function instanceOfSignalRRuleActionDto(value: any): value is SignalRRuleActionDto { if (!('connectionString' in value) || value['connectionString'] === undefined) return false; if (!('hubName' in value) || value['hubName'] === undefined) return false; if (!('action' in value) || value['action'] === undefined) return false; diff --git a/src/generated/models/SimulatedRuleEventDto.ts b/src/generated/models/SimulatedRuleEventDto.ts index c771be8..9c04c60 100644 --- a/src/generated/models/SimulatedRuleEventDto.ts +++ b/src/generated/models/SimulatedRuleEventDto.ts @@ -86,7 +86,7 @@ export interface SimulatedRuleEventDto { /** * Check if a given object implements the SimulatedRuleEventDto interface. */ -export function instanceOfSimulatedRuleEventDto(value: object): value is SimulatedRuleEventDto { +export function instanceOfSimulatedRuleEventDto(value: any): value is SimulatedRuleEventDto { if (!('eventId' in value) || value['eventId'] === undefined) return false; if (!('uniqueId' in value) || value['uniqueId'] === undefined) return false; if (!('eventName' in value) || value['eventName'] === undefined) return false; @@ -131,6 +131,6 @@ export function SimulatedRuleEventDtoToJSON(value?: SimulatedRuleEventDto | null 'actionName': value['actionName'], 'actionData': value['actionData'], 'error': value['error'], - 'skipReasons': ((value['skipReasons'] as Array).map(SkipReasonToJSON)), + 'skipReasons': ((value['skipReasons'] as Array).map(x => SkipReasonToJSON(x))), }; } diff --git a/src/generated/models/SimulatedRuleEventsDto.ts b/src/generated/models/SimulatedRuleEventsDto.ts index d044cd8..06e0dc3 100644 --- a/src/generated/models/SimulatedRuleEventsDto.ts +++ b/src/generated/models/SimulatedRuleEventsDto.ts @@ -56,7 +56,7 @@ export interface SimulatedRuleEventsDto { /** * Check if a given object implements the SimulatedRuleEventsDto interface. */ -export function instanceOfSimulatedRuleEventsDto(value: object): value is SimulatedRuleEventsDto { +export function instanceOfSimulatedRuleEventsDto(value: any): value is SimulatedRuleEventsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function SimulatedRuleEventsDtoToJSON(value?: SimulatedRuleEventsDto | nu } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(SimulatedRuleEventDtoToJSON)), + 'items': ((value['items'] as Array).map(x => SimulatedRuleEventDtoToJSON(x))), }; } diff --git a/src/generated/models/SlackRuleActionDto.ts b/src/generated/models/SlackRuleActionDto.ts index e02afaa..e5eb2ef 100644 --- a/src/generated/models/SlackRuleActionDto.ts +++ b/src/generated/models/SlackRuleActionDto.ts @@ -44,7 +44,7 @@ export interface SlackRuleActionDto extends RuleActionDto { /** * Check if a given object implements the SlackRuleActionDto interface. */ -export function instanceOfSlackRuleActionDto(value: object): value is SlackRuleActionDto { +export function instanceOfSlackRuleActionDto(value: any): value is SlackRuleActionDto { if (!('webhookUrl' in value) || value['webhookUrl'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; diff --git a/src/generated/models/SortNode.ts b/src/generated/models/SortNode.ts index 8b03c9f..76cad1d 100644 --- a/src/generated/models/SortNode.ts +++ b/src/generated/models/SortNode.ts @@ -46,7 +46,7 @@ export interface SortNode { /** * Check if a given object implements the SortNode interface. */ -export function instanceOfSortNode(value: object): value is SortNode { +export function instanceOfSortNode(value: any): value is SortNode { if (!('path' in value) || value['path'] === undefined) return false; if (!('order' in value) || value['order'] === undefined) return false; return true; diff --git a/src/generated/models/StatusInfoDto.ts b/src/generated/models/StatusInfoDto.ts index 5bf19df..d20c7cb 100644 --- a/src/generated/models/StatusInfoDto.ts +++ b/src/generated/models/StatusInfoDto.ts @@ -37,7 +37,7 @@ export interface StatusInfoDto { /** * Check if a given object implements the StatusInfoDto interface. */ -export function instanceOfStatusInfoDto(value: object): value is StatusInfoDto { +export function instanceOfStatusInfoDto(value: any): value is StatusInfoDto { if (!('status' in value) || value['status'] === undefined) return false; if (!('color' in value) || value['color'] === undefined) return false; return true; diff --git a/src/generated/models/StorageUsagePerDateDto.ts b/src/generated/models/StorageUsagePerDateDto.ts index 6da4efb..9b1c152 100644 --- a/src/generated/models/StorageUsagePerDateDto.ts +++ b/src/generated/models/StorageUsagePerDateDto.ts @@ -43,7 +43,7 @@ export interface StorageUsagePerDateDto { /** * Check if a given object implements the StorageUsagePerDateDto interface. */ -export function instanceOfStorageUsagePerDateDto(value: object): value is StorageUsagePerDateDto { +export function instanceOfStorageUsagePerDateDto(value: any): value is StorageUsagePerDateDto { if (!('date' in value) || value['date'] === undefined) return false; if (!('totalCount' in value) || value['totalCount'] === undefined) return false; if (!('totalSize' in value) || value['totalSize'] === undefined) return false; diff --git a/src/generated/models/StringFieldPropertiesDto.ts b/src/generated/models/StringFieldPropertiesDto.ts index d8911cd..43b8546 100644 --- a/src/generated/models/StringFieldPropertiesDto.ts +++ b/src/generated/models/StringFieldPropertiesDto.ts @@ -166,7 +166,7 @@ export interface StringFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the StringFieldPropertiesDto interface. */ -export function instanceOfStringFieldPropertiesDto(value: object): value is StringFieldPropertiesDto { +export function instanceOfStringFieldPropertiesDto(value: any): value is StringFieldPropertiesDto { return true; } diff --git a/src/generated/models/SynchronizeSchemaDto.ts b/src/generated/models/SynchronizeSchemaDto.ts index 9ddfce9..6f0abea 100644 --- a/src/generated/models/SynchronizeSchemaDto.ts +++ b/src/generated/models/SynchronizeSchemaDto.ts @@ -116,7 +116,7 @@ export interface SynchronizeSchemaDto { /** * Check if a given object implements the SynchronizeSchemaDto interface. */ -export function instanceOfSynchronizeSchemaDto(value: object): value is SynchronizeSchemaDto { +export function instanceOfSynchronizeSchemaDto(value: any): value is SynchronizeSchemaDto { return true; } @@ -154,9 +154,9 @@ export function SynchronizeSchemaDtoToJSON(value?: SynchronizeSchemaDto | null, 'scripts': SchemaScriptsDtoToJSON(value['scripts']), 'fieldsInReferences': value['fieldsInReferences'], 'fieldsInLists': value['fieldsInLists'], - 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(x => UpsertSchemaFieldDtoToJSON(x))), 'previewUrls': value['previewUrls'], - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), 'category': value['category'], 'isPublished': value['isPublished'], 'noFieldDeletion': value['noFieldDeletion'], diff --git a/src/generated/models/TagsFieldPropertiesDto.ts b/src/generated/models/TagsFieldPropertiesDto.ts index 3a50037..50da182 100644 --- a/src/generated/models/TagsFieldPropertiesDto.ts +++ b/src/generated/models/TagsFieldPropertiesDto.ts @@ -82,7 +82,7 @@ export interface TagsFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the TagsFieldPropertiesDto interface. */ -export function instanceOfTagsFieldPropertiesDto(value: object): value is TagsFieldPropertiesDto { +export function instanceOfTagsFieldPropertiesDto(value: any): value is TagsFieldPropertiesDto { return true; } diff --git a/src/generated/models/TeamDto.ts b/src/generated/models/TeamDto.ts index e37cec7..063224a 100644 --- a/src/generated/models/TeamDto.ts +++ b/src/generated/models/TeamDto.ts @@ -74,7 +74,7 @@ export interface TeamDto { /** * Check if a given object implements the TeamDto interface. */ -export function instanceOfTeamDto(value: object): value is TeamDto { +export function instanceOfTeamDto(value: any): value is TeamDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -110,7 +110,7 @@ export function TeamDtoToJSON(value?: TeamDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'name': value['name'], 'version': value['version'], diff --git a/src/generated/models/TemplateDetailsDto.ts b/src/generated/models/TemplateDetailsDto.ts index 1f903d6..9b426d8 100644 --- a/src/generated/models/TemplateDetailsDto.ts +++ b/src/generated/models/TemplateDetailsDto.ts @@ -44,7 +44,7 @@ export interface TemplateDetailsDto { /** * Check if a given object implements the TemplateDetailsDto interface. */ -export function instanceOfTemplateDetailsDto(value: object): value is TemplateDetailsDto { +export function instanceOfTemplateDetailsDto(value: any): value is TemplateDetailsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('details' in value) || value['details'] === undefined) return false; return true; @@ -71,7 +71,7 @@ export function TemplateDetailsDtoToJSON(value?: TemplateDetailsDto | null, igno } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'details': value['details'], }; } diff --git a/src/generated/models/TemplateDto.ts b/src/generated/models/TemplateDto.ts index e132776..9b24dbb 100644 --- a/src/generated/models/TemplateDto.ts +++ b/src/generated/models/TemplateDto.ts @@ -62,7 +62,7 @@ export interface TemplateDto { /** * Check if a given object implements the TemplateDto interface. */ -export function instanceOfTemplateDto(value: object): value is TemplateDto { +export function instanceOfTemplateDto(value: any): value is TemplateDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; @@ -95,7 +95,7 @@ export function TemplateDtoToJSON(value?: TemplateDto | null, ignoreDiscriminato } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'name': value['name'], 'title': value['title'], 'description': value['description'], diff --git a/src/generated/models/TemplatesDto.ts b/src/generated/models/TemplatesDto.ts index 22ad7af..cd91104 100644 --- a/src/generated/models/TemplatesDto.ts +++ b/src/generated/models/TemplatesDto.ts @@ -50,7 +50,7 @@ export interface TemplatesDto { /** * Check if a given object implements the TemplatesDto interface. */ -export function instanceOfTemplatesDto(value: object): value is TemplatesDto { +export function instanceOfTemplatesDto(value: any): value is TemplatesDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -77,7 +77,7 @@ export function TemplatesDtoToJSON(value?: TemplatesDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(TemplateDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => TemplateDtoToJSON(x))), }; } diff --git a/src/generated/models/TransferToTeamDto.ts b/src/generated/models/TransferToTeamDto.ts index 76f7f54..c5dab8f 100644 --- a/src/generated/models/TransferToTeamDto.ts +++ b/src/generated/models/TransferToTeamDto.ts @@ -31,7 +31,7 @@ export interface TransferToTeamDto { /** * Check if a given object implements the TransferToTeamDto interface. */ -export function instanceOfTransferToTeamDto(value: object): value is TransferToTeamDto { +export function instanceOfTransferToTeamDto(value: any): value is TransferToTeamDto { return true; } diff --git a/src/generated/models/TranslateDto.ts b/src/generated/models/TranslateDto.ts index 7eae5fb..2cc503f 100644 --- a/src/generated/models/TranslateDto.ts +++ b/src/generated/models/TranslateDto.ts @@ -43,7 +43,7 @@ export interface TranslateDto { /** * Check if a given object implements the TranslateDto interface. */ -export function instanceOfTranslateDto(value: object): value is TranslateDto { +export function instanceOfTranslateDto(value: any): value is TranslateDto { if (!('text' in value) || value['text'] === undefined) return false; if (!('targetLanguage' in value) || value['targetLanguage'] === undefined) return false; return true; diff --git a/src/generated/models/TranslationDto.ts b/src/generated/models/TranslationDto.ts index fff5341..3ac2d4e 100644 --- a/src/generated/models/TranslationDto.ts +++ b/src/generated/models/TranslationDto.ts @@ -52,7 +52,7 @@ export interface TranslationDto { /** * Check if a given object implements the TranslationDto interface. */ -export function instanceOfTranslationDto(value: object): value is TranslationDto { +export function instanceOfTranslationDto(value: any): value is TranslationDto { if (!('status' in value) || value['status'] === undefined) return false; if (!('result' in value) || value['result'] === undefined) return false; return true; diff --git a/src/generated/models/TweetRuleActionDto.ts b/src/generated/models/TweetRuleActionDto.ts index bf710c9..bfa1816 100644 --- a/src/generated/models/TweetRuleActionDto.ts +++ b/src/generated/models/TweetRuleActionDto.ts @@ -50,7 +50,7 @@ export interface TweetRuleActionDto extends RuleActionDto { /** * Check if a given object implements the TweetRuleActionDto interface. */ -export function instanceOfTweetRuleActionDto(value: object): value is TweetRuleActionDto { +export function instanceOfTweetRuleActionDto(value: any): value is TweetRuleActionDto { if (!('accessToken' in value) || value['accessToken'] === undefined) return false; if (!('accessSecret' in value) || value['accessSecret'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; diff --git a/src/generated/models/TypesenseRuleActionDto.ts b/src/generated/models/TypesenseRuleActionDto.ts index 9e35ef4..a9bb535 100644 --- a/src/generated/models/TypesenseRuleActionDto.ts +++ b/src/generated/models/TypesenseRuleActionDto.ts @@ -62,7 +62,7 @@ export interface TypesenseRuleActionDto extends RuleActionDto { /** * Check if a given object implements the TypesenseRuleActionDto interface. */ -export function instanceOfTypesenseRuleActionDto(value: object): value is TypesenseRuleActionDto { +export function instanceOfTypesenseRuleActionDto(value: any): value is TypesenseRuleActionDto { if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; diff --git a/src/generated/models/UIFieldPropertiesDto.ts b/src/generated/models/UIFieldPropertiesDto.ts index 0146a38..662a6e9 100644 --- a/src/generated/models/UIFieldPropertiesDto.ts +++ b/src/generated/models/UIFieldPropertiesDto.ts @@ -46,7 +46,7 @@ export interface UIFieldPropertiesDto extends FieldPropertiesDto { /** * Check if a given object implements the UIFieldPropertiesDto interface. */ -export function instanceOfUIFieldPropertiesDto(value: object): value is UIFieldPropertiesDto { +export function instanceOfUIFieldPropertiesDto(value: any): value is UIFieldPropertiesDto { return true; } diff --git a/src/generated/models/UpdateAppDto.ts b/src/generated/models/UpdateAppDto.ts index d4840f2..2e09c2c 100644 --- a/src/generated/models/UpdateAppDto.ts +++ b/src/generated/models/UpdateAppDto.ts @@ -37,7 +37,7 @@ export interface UpdateAppDto { /** * Check if a given object implements the UpdateAppDto interface. */ -export function instanceOfUpdateAppDto(value: object): value is UpdateAppDto { +export function instanceOfUpdateAppDto(value: any): value is UpdateAppDto { return true; } diff --git a/src/generated/models/UpdateAppSettingsDto.ts b/src/generated/models/UpdateAppSettingsDto.ts index e6feb59..491e30f 100644 --- a/src/generated/models/UpdateAppSettingsDto.ts +++ b/src/generated/models/UpdateAppSettingsDto.ts @@ -62,7 +62,7 @@ export interface UpdateAppSettingsDto { /** * Check if a given object implements the UpdateAppSettingsDto interface. */ -export function instanceOfUpdateAppSettingsDto(value: object): value is UpdateAppSettingsDto { +export function instanceOfUpdateAppSettingsDto(value: any): value is UpdateAppSettingsDto { if (!('patterns' in value) || value['patterns'] === undefined) return false; if (!('editors' in value) || value['editors'] === undefined) return false; return true; @@ -91,8 +91,8 @@ export function UpdateAppSettingsDtoToJSON(value?: UpdateAppSettingsDto | null, } return { - 'patterns': ((value['patterns'] as Array).map(PatternDtoToJSON)), - 'editors': ((value['editors'] as Array).map(EditorDtoToJSON)), + 'patterns': ((value['patterns'] as Array).map(x => PatternDtoToJSON(x))), + 'editors': ((value['editors'] as Array).map(x => EditorDtoToJSON(x))), 'hideScheduler': value['hideScheduler'], 'hideDateTimeModeButton': value['hideDateTimeModeButton'], }; diff --git a/src/generated/models/UpdateAssetScriptsDto.ts b/src/generated/models/UpdateAssetScriptsDto.ts index a405f53..707555d 100644 --- a/src/generated/models/UpdateAssetScriptsDto.ts +++ b/src/generated/models/UpdateAssetScriptsDto.ts @@ -67,7 +67,7 @@ export interface UpdateAssetScriptsDto { /** * Check if a given object implements the UpdateAssetScriptsDto interface. */ -export function instanceOfUpdateAssetScriptsDto(value: object): value is UpdateAssetScriptsDto { +export function instanceOfUpdateAssetScriptsDto(value: any): value is UpdateAssetScriptsDto { return true; } diff --git a/src/generated/models/UpdateClientDto.ts b/src/generated/models/UpdateClientDto.ts index 725c113..2e46973 100644 --- a/src/generated/models/UpdateClientDto.ts +++ b/src/generated/models/UpdateClientDto.ts @@ -55,7 +55,7 @@ export interface UpdateClientDto { /** * Check if a given object implements the UpdateClientDto interface. */ -export function instanceOfUpdateClientDto(value: object): value is UpdateClientDto { +export function instanceOfUpdateClientDto(value: any): value is UpdateClientDto { return true; } diff --git a/src/generated/models/UpdateFieldDto.ts b/src/generated/models/UpdateFieldDto.ts index 3ccb60c..03a3143 100644 --- a/src/generated/models/UpdateFieldDto.ts +++ b/src/generated/models/UpdateFieldDto.ts @@ -38,7 +38,7 @@ export interface UpdateFieldDto { /** * Check if a given object implements the UpdateFieldDto interface. */ -export function instanceOfUpdateFieldDto(value: object): value is UpdateFieldDto { +export function instanceOfUpdateFieldDto(value: any): value is UpdateFieldDto { if (!('properties' in value) || value['properties'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateLanguageDto.ts b/src/generated/models/UpdateLanguageDto.ts index 7a90d8c..5f834ba 100644 --- a/src/generated/models/UpdateLanguageDto.ts +++ b/src/generated/models/UpdateLanguageDto.ts @@ -43,7 +43,7 @@ export interface UpdateLanguageDto { /** * Check if a given object implements the UpdateLanguageDto interface. */ -export function instanceOfUpdateLanguageDto(value: object): value is UpdateLanguageDto { +export function instanceOfUpdateLanguageDto(value: any): value is UpdateLanguageDto { return true; } diff --git a/src/generated/models/UpdateProfileDto.ts b/src/generated/models/UpdateProfileDto.ts index 9494860..fa88856 100644 --- a/src/generated/models/UpdateProfileDto.ts +++ b/src/generated/models/UpdateProfileDto.ts @@ -31,7 +31,7 @@ export interface UpdateProfileDto { /** * Check if a given object implements the UpdateProfileDto interface. */ -export function instanceOfUpdateProfileDto(value: object): value is UpdateProfileDto { +export function instanceOfUpdateProfileDto(value: any): value is UpdateProfileDto { return true; } diff --git a/src/generated/models/UpdateRoleDto.ts b/src/generated/models/UpdateRoleDto.ts index 98fc2a5..14191f4 100644 --- a/src/generated/models/UpdateRoleDto.ts +++ b/src/generated/models/UpdateRoleDto.ts @@ -37,7 +37,7 @@ export interface UpdateRoleDto { /** * Check if a given object implements the UpdateRoleDto interface. */ -export function instanceOfUpdateRoleDto(value: object): value is UpdateRoleDto { +export function instanceOfUpdateRoleDto(value: any): value is UpdateRoleDto { if (!('permissions' in value) || value['permissions'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateRuleDto.ts b/src/generated/models/UpdateRuleDto.ts index a31951e..b01a68d 100644 --- a/src/generated/models/UpdateRuleDto.ts +++ b/src/generated/models/UpdateRuleDto.ts @@ -62,7 +62,7 @@ export interface UpdateRuleDto { /** * Check if a given object implements the UpdateRuleDto interface. */ -export function instanceOfUpdateRuleDto(value: object): value is UpdateRuleDto { +export function instanceOfUpdateRuleDto(value: any): value is UpdateRuleDto { return true; } diff --git a/src/generated/models/UpdateSchemaDto.ts b/src/generated/models/UpdateSchemaDto.ts index 22dc5cb..29bcbe2 100644 --- a/src/generated/models/UpdateSchemaDto.ts +++ b/src/generated/models/UpdateSchemaDto.ts @@ -67,7 +67,7 @@ export interface UpdateSchemaDto { /** * Check if a given object implements the UpdateSchemaDto interface. */ -export function instanceOfUpdateSchemaDto(value: object): value is UpdateSchemaDto { +export function instanceOfUpdateSchemaDto(value: any): value is UpdateSchemaDto { return true; } diff --git a/src/generated/models/UpdateSettingDto.ts b/src/generated/models/UpdateSettingDto.ts index b64d318..2370eec 100644 --- a/src/generated/models/UpdateSettingDto.ts +++ b/src/generated/models/UpdateSettingDto.ts @@ -31,7 +31,7 @@ export interface UpdateSettingDto { /** * Check if a given object implements the UpdateSettingDto interface. */ -export function instanceOfUpdateSettingDto(value: object): value is UpdateSettingDto { +export function instanceOfUpdateSettingDto(value: any): value is UpdateSettingDto { if (!('value' in value) || value['value'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateTeamDto.ts b/src/generated/models/UpdateTeamDto.ts index df61ad7..8ae1afe 100644 --- a/src/generated/models/UpdateTeamDto.ts +++ b/src/generated/models/UpdateTeamDto.ts @@ -31,7 +31,7 @@ export interface UpdateTeamDto { /** * Check if a given object implements the UpdateTeamDto interface. */ -export function instanceOfUpdateTeamDto(value: object): value is UpdateTeamDto { +export function instanceOfUpdateTeamDto(value: any): value is UpdateTeamDto { if (!('name' in value) || value['name'] === undefined) return false; return true; } diff --git a/src/generated/models/UpdateUserDto.ts b/src/generated/models/UpdateUserDto.ts index a448d9b..a29ff20 100644 --- a/src/generated/models/UpdateUserDto.ts +++ b/src/generated/models/UpdateUserDto.ts @@ -49,7 +49,7 @@ export interface UpdateUserDto { /** * Check if a given object implements the UpdateUserDto interface. */ -export function instanceOfUpdateUserDto(value: object): value is UpdateUserDto { +export function instanceOfUpdateUserDto(value: any): value is UpdateUserDto { if (!('email' in value) || value['email'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('permissions' in value) || value['permissions'] === undefined) return false; diff --git a/src/generated/models/UpdateWorkflowDto.ts b/src/generated/models/UpdateWorkflowDto.ts index d1d1c09..eae87da 100644 --- a/src/generated/models/UpdateWorkflowDto.ts +++ b/src/generated/models/UpdateWorkflowDto.ts @@ -56,7 +56,7 @@ export interface UpdateWorkflowDto { /** * Check if a given object implements the UpdateWorkflowDto interface. */ -export function instanceOfUpdateWorkflowDto(value: object): value is UpdateWorkflowDto { +export function instanceOfUpdateWorkflowDto(value: any): value is UpdateWorkflowDto { if (!('steps' in value) || value['steps'] === undefined) return false; if (!('initial' in value) || value['initial'] === undefined) return false; return true; @@ -86,7 +86,7 @@ export function UpdateWorkflowDtoToJSON(value?: UpdateWorkflowDto | null, ignore return { 'name': value['name'], - 'steps': (mapValues(value['steps'], WorkflowStepDtoToJSON)), + 'steps': (mapValues(value['steps'], x => WorkflowStepDtoToJSON(x))), 'schemaIds': value['schemaIds'], 'initial': value['initial'], }; diff --git a/src/generated/models/UpsertSchemaDto.ts b/src/generated/models/UpsertSchemaDto.ts index abd8e93..552a086 100644 --- a/src/generated/models/UpsertSchemaDto.ts +++ b/src/generated/models/UpsertSchemaDto.ts @@ -104,7 +104,7 @@ export interface UpsertSchemaDto { /** * Check if a given object implements the UpsertSchemaDto interface. */ -export function instanceOfUpsertSchemaDto(value: object): value is UpsertSchemaDto { +export function instanceOfUpsertSchemaDto(value: any): value is UpsertSchemaDto { return true; } @@ -140,9 +140,9 @@ export function UpsertSchemaDtoToJSON(value?: UpsertSchemaDto | null, ignoreDisc 'scripts': SchemaScriptsDtoToJSON(value['scripts']), 'fieldsInReferences': value['fieldsInReferences'], 'fieldsInLists': value['fieldsInLists'], - 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(UpsertSchemaFieldDtoToJSON)), + 'fields': value['fields'] == null ? undefined : ((value['fields'] as Array).map(x => UpsertSchemaFieldDtoToJSON(x))), 'previewUrls': value['previewUrls'], - 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(FieldRuleDtoToJSON)), + 'fieldRules': value['fieldRules'] == null ? undefined : ((value['fieldRules'] as Array).map(x => FieldRuleDtoToJSON(x))), 'category': value['category'], 'isPublished': value['isPublished'], }; diff --git a/src/generated/models/UpsertSchemaFieldDto.ts b/src/generated/models/UpsertSchemaFieldDto.ts index 6c74c49..3e9f23a 100644 --- a/src/generated/models/UpsertSchemaFieldDto.ts +++ b/src/generated/models/UpsertSchemaFieldDto.ts @@ -80,7 +80,7 @@ export interface UpsertSchemaFieldDto { /** * Check if a given object implements the UpsertSchemaFieldDto interface. */ -export function instanceOfUpsertSchemaFieldDto(value: object): value is UpsertSchemaFieldDto { +export function instanceOfUpsertSchemaFieldDto(value: any): value is UpsertSchemaFieldDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; @@ -118,6 +118,6 @@ export function UpsertSchemaFieldDtoToJSON(value?: UpsertSchemaFieldDto | null, 'isDisabled': value['isDisabled'], 'partitioning': value['partitioning'], 'properties': FieldPropertiesDtoToJSON(value['properties']), - 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(UpsertSchemaNestedFieldDtoToJSON)), + 'nested': value['nested'] == null ? undefined : ((value['nested'] as Array).map(x => UpsertSchemaNestedFieldDtoToJSON(x))), }; } diff --git a/src/generated/models/UpsertSchemaNestedFieldDto.ts b/src/generated/models/UpsertSchemaNestedFieldDto.ts index 19a2c9f..49b655d 100644 --- a/src/generated/models/UpsertSchemaNestedFieldDto.ts +++ b/src/generated/models/UpsertSchemaNestedFieldDto.ts @@ -62,7 +62,7 @@ export interface UpsertSchemaNestedFieldDto { /** * Check if a given object implements the UpsertSchemaNestedFieldDto interface. */ -export function instanceOfUpsertSchemaNestedFieldDto(value: object): value is UpsertSchemaNestedFieldDto { +export function instanceOfUpsertSchemaNestedFieldDto(value: any): value is UpsertSchemaNestedFieldDto { if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; diff --git a/src/generated/models/UsageRuleTriggerDto.ts b/src/generated/models/UsageRuleTriggerDto.ts index 2fd0316..c8b6313 100644 --- a/src/generated/models/UsageRuleTriggerDto.ts +++ b/src/generated/models/UsageRuleTriggerDto.ts @@ -44,7 +44,7 @@ export interface UsageRuleTriggerDto extends RuleTriggerDto { /** * Check if a given object implements the UsageRuleTriggerDto interface. */ -export function instanceOfUsageRuleTriggerDto(value: object): value is UsageRuleTriggerDto { +export function instanceOfUsageRuleTriggerDto(value: any): value is UsageRuleTriggerDto { if (!('limit' in value) || value['limit'] === undefined) return false; return true; } diff --git a/src/generated/models/UserDto.ts b/src/generated/models/UserDto.ts index 4eaa001..8c582ad 100644 --- a/src/generated/models/UserDto.ts +++ b/src/generated/models/UserDto.ts @@ -68,7 +68,7 @@ export interface UserDto { /** * Check if a given object implements the UserDto interface. */ -export function instanceOfUserDto(value: object): value is UserDto { +export function instanceOfUserDto(value: any): value is UserDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; @@ -103,7 +103,7 @@ export function UserDtoToJSON(value?: UserDto | null, ignoreDiscriminator = fals } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'email': value['email'], 'displayName': value['displayName'], diff --git a/src/generated/models/UserProperty.ts b/src/generated/models/UserProperty.ts index 6aab7a5..fce14e9 100644 --- a/src/generated/models/UserProperty.ts +++ b/src/generated/models/UserProperty.ts @@ -37,7 +37,7 @@ export interface UserProperty { /** * Check if a given object implements the UserProperty interface. */ -export function instanceOfUserProperty(value: object): value is UserProperty { +export function instanceOfUserProperty(value: any): value is UserProperty { if (!('name' in value) || value['name'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; diff --git a/src/generated/models/UsersDto.ts b/src/generated/models/UsersDto.ts index f7d56a5..06926b9 100644 --- a/src/generated/models/UsersDto.ts +++ b/src/generated/models/UsersDto.ts @@ -56,7 +56,7 @@ export interface UsersDto { /** * Check if a given object implements the UsersDto interface. */ -export function instanceOfUsersDto(value: object): value is UsersDto { +export function instanceOfUsersDto(value: any): value is UsersDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -85,8 +85,8 @@ export function UsersDtoToJSON(value?: UsersDto | null, ignoreDiscriminator = fa } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'total': value['total'], - 'items': ((value['items'] as Array).map(UserDtoToJSON)), + 'items': ((value['items'] as Array).map(x => UserDtoToJSON(x))), }; } diff --git a/src/generated/models/WebhookRuleActionDto.ts b/src/generated/models/WebhookRuleActionDto.ts index 617bb2e..698a97d 100644 --- a/src/generated/models/WebhookRuleActionDto.ts +++ b/src/generated/models/WebhookRuleActionDto.ts @@ -76,7 +76,7 @@ export interface WebhookRuleActionDto extends RuleActionDto { /** * Check if a given object implements the WebhookRuleActionDto interface. */ -export function instanceOfWebhookRuleActionDto(value: object): value is WebhookRuleActionDto { +export function instanceOfWebhookRuleActionDto(value: any): value is WebhookRuleActionDto { if (!('url' in value) || value['url'] === undefined) return false; if (!('method' in value) || value['method'] === undefined) return false; return true; diff --git a/src/generated/models/WorkflowDto.ts b/src/generated/models/WorkflowDto.ts index b42d1e4..1d548cd 100644 --- a/src/generated/models/WorkflowDto.ts +++ b/src/generated/models/WorkflowDto.ts @@ -74,7 +74,7 @@ export interface WorkflowDto { /** * Check if a given object implements the WorkflowDto interface. */ -export function instanceOfWorkflowDto(value: object): value is WorkflowDto { +export function instanceOfWorkflowDto(value: any): value is WorkflowDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('steps' in value) || value['steps'] === undefined) return false; @@ -107,10 +107,10 @@ export function WorkflowDtoToJSON(value?: WorkflowDto | null, ignoreDiscriminato } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), 'id': value['id'], 'name': value['name'], - 'steps': (mapValues(value['steps'], WorkflowStepDtoToJSON)), + 'steps': (mapValues(value['steps'], x => WorkflowStepDtoToJSON(x))), 'schemaIds': value['schemaIds'], 'initial': value['initial'], }; diff --git a/src/generated/models/WorkflowStepDto.ts b/src/generated/models/WorkflowStepDto.ts index 1218fa9..4efa01a 100644 --- a/src/generated/models/WorkflowStepDto.ts +++ b/src/generated/models/WorkflowStepDto.ts @@ -68,7 +68,7 @@ export interface WorkflowStepDto { /** * Check if a given object implements the WorkflowStepDto interface. */ -export function instanceOfWorkflowStepDto(value: object): value is WorkflowStepDto { +export function instanceOfWorkflowStepDto(value: any): value is WorkflowStepDto { return true; } @@ -97,7 +97,7 @@ export function WorkflowStepDtoToJSON(value?: WorkflowStepDto | null, ignoreDisc } return { - 'transitions': value['transitions'] == null ? undefined : (mapValues(value['transitions'], WorkflowTransitionDtoToJSON)), + 'transitions': value['transitions'] == null ? undefined : (mapValues(value['transitions'], x => WorkflowTransitionDtoToJSON(x))), 'color': value['color'], 'validate': value['validate'], 'noUpdate': value['noUpdate'], diff --git a/src/generated/models/WorkflowTransitionDto.ts b/src/generated/models/WorkflowTransitionDto.ts index 0818001..68b6f7b 100644 --- a/src/generated/models/WorkflowTransitionDto.ts +++ b/src/generated/models/WorkflowTransitionDto.ts @@ -37,7 +37,7 @@ export interface WorkflowTransitionDto { /** * Check if a given object implements the WorkflowTransitionDto interface. */ -export function instanceOfWorkflowTransitionDto(value: object): value is WorkflowTransitionDto { +export function instanceOfWorkflowTransitionDto(value: any): value is WorkflowTransitionDto { return true; } diff --git a/src/generated/models/WorkflowsDto.ts b/src/generated/models/WorkflowsDto.ts index 4851f11..7916b12 100644 --- a/src/generated/models/WorkflowsDto.ts +++ b/src/generated/models/WorkflowsDto.ts @@ -56,7 +56,7 @@ export interface WorkflowsDto { /** * Check if a given object implements the WorkflowsDto interface. */ -export function instanceOfWorkflowsDto(value: object): value is WorkflowsDto { +export function instanceOfWorkflowsDto(value: any): value is WorkflowsDto { if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; if (!('errors' in value) || value['errors'] === undefined) return false; @@ -85,8 +85,8 @@ export function WorkflowsDtoToJSON(value?: WorkflowsDto | null, ignoreDiscrimina } return { - '_links': (mapValues(value['links'], ResourceLinkToJSON)), - 'items': ((value['items'] as Array).map(WorkflowDtoToJSON)), + '_links': (mapValues(value['links'], x => ResourceLinkToJSON(x))), + 'items': ((value['items'] as Array).map(x => WorkflowDtoToJSON(x))), 'errors': value['errors'], }; } diff --git a/src/wrapper/SquidexClient.ts b/src/wrapper/SquidexClient.ts index 71bf722..74b49b8 100644 --- a/src/wrapper/SquidexClient.ts +++ b/src/wrapper/SquidexClient.ts @@ -259,7 +259,7 @@ export class SquidexClients { throw new Error("Configuration 'appName' is required."); } - this.tokenStore ||= this.clientOptions.tokenStore || new SquidexClients.InMemoryTokenStore(); + this.tokenStore = this.clientOptions.tokenStore || new SquidexClients.InMemoryTokenStore(); const originalFetch = this.clientOptions.fetcher || fetch; let fetchApi: FetchAPI = async (input, init) => { @@ -372,7 +372,7 @@ export class SquidexClients { } function addOptions(init: RequestInit, clientOptions: SquidexClients.Options) { - if (clientOptions.timeout) { + if (clientOptions.timeout && typeof AbortSignal.timeout === 'function') { init.signal = AbortSignal.timeout(clientOptions.timeout); } diff --git a/templates/modelGeneric.mustache b/templates/modelGeneric.mustache index 998c416..fa9f4ad 100644 --- a/templates/modelGeneric.mustache +++ b/templates/modelGeneric.mustache @@ -29,7 +29,7 @@ export function is{{modelName}}(value: {{classname}}): value is {{modelName}} { /** * Check if a given object implements the {{classname}} interface. */ -export function instanceOf{{classname}}(value: object): value is {{classname}} { +export function instanceOf{{classname}}(value: any): value is {{classname}} { {{#vars}} {{#required}} if (!('{{name}}' in value) || value['{{name}}'] === undefined) return false; @@ -148,14 +148,14 @@ export function {{classname}}ToJSON(value?: {{#hasReadOnly}}Omit<{{classname}}, {{^isPrimitiveType}} {{#isArray}} {{#uniqueItems}} - '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set).map({{#items}}{{datatype}}{{/items}}ToJSON)), + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set).map(x => {{#items}}{{datatype}}{{/items}}ToJSON(x))), {{/uniqueItems}} {{^uniqueItems}} - '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}'] as Array).map({{#items}}{{datatype}}{{/items}}ToJSON)), + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}'] as Array).map(x => {{#items}}{{datatype}}{{/items}}ToJSON(x))), {{/uniqueItems}} {{/isArray}} {{#isMap}} - '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(value['{{name}}'], {{#items}}{{datatype}}{{/items}}ToJSON)), + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(value['{{name}}'], x => {{#items}}{{datatype}}{{/items}}ToJSON(x))), {{/isMap}} {{^isArray}} {{^isMap}} diff --git a/tests/contents.test.ts b/tests/contents.test.ts index 36885bd..50ff556 100644 --- a/tests/contents.test.ts +++ b/tests/contents.test.ts @@ -58,7 +58,7 @@ describe("Contents", () => { const content = await client.contents.getContent({ schema: createdSchema.name, id: createdContent.id, - xUnpublished: true, + unpublished: true, }); expect(content.data).toEqual({ field1: { iv: value } }); expect(content.lastModified).toBeDefined(); From 51853439dc0dffc1b03b6e05583500ab680a6e74 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 23:12:05 +0200 Subject: [PATCH 09/16] Build fix --- .github/workflows/test.yml | 4 +- jest.config.js | 4 +- package-lock.json | 6460 ------------------------- package.json | 9 +- src/wrapper/SquidexClient.ts | 6 +- tests/_setup.js | 5 + tests/_teardown.js | 5 + tests/{ => docker}/docker-compose.yml | 0 tests/globalSetup.ts | 4 +- tests/globalTeardown.ts | 4 +- tsconfig.json | 17 +- 11 files changed, 29 insertions(+), 6489 deletions(-) delete mode 100644 package-lock.json create mode 100644 tests/_setup.js create mode 100644 tests/_teardown.js rename tests/{ => docker}/docker-compose.yml (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0229621..248b243 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - name: Test - Start Compose run: docker compose up -d - working-directory: tests + working-directory: tests/docker - name: Test - RUN uses: kohlerdominik/docker-run-action@v1.1.0 @@ -39,4 +39,4 @@ jobs: - name: Test - Cleanup if: always() run: docker compose down - working-directory: tests + working-directory: tests/docker diff --git a/jest.config.js b/jest.config.js index 82438bd..9b43cc0 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,7 @@ /** @type {import('jest').Config} */ const config = { - globalSetup: "./tests/globalSetup.ts", - globalTeardown: "./tests/globalTeardown.ts", + globalSetup: "./tests/_setup", + globalTeardown: "./tests/_teardown", testTimeout: 5000, }; diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 4a104d3..0000000 --- a/package-lock.json +++ /dev/null @@ -1,6460 +0,0 @@ -{ - "name": "@squidex/squidex", - "version": "1.2.1", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@squidex/squidex", - "version": "1.2.1", - "dependencies": { - "url-join": "4.0.1" - }, - "devDependencies": { - "@babel/core": "^7.25.2", - "@babel/preset-env": "^7.25.4", - "@babel/preset-typescript": "^7.24.7", - "@types/jest": "^29.5.12", - "@types/node": "17.0.33", - "cross-env": "^7.0.3", - "jest": "^29.7.0", - "prettier": "2.7.1", - "typescript": "4.6.4" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.24.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", - "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", - "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.0", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-module-transforms": "^7.25.2", - "@babel/helpers": "^7.25.0", - "@babel/parser": "^7.25.0", - "@babel/template": "^7.25.0", - "@babel/traverse": "^7.25.2", - "@babel/types": "^7.25.2", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.25.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.5.tgz", - "integrity": "sha512-abd43wyLfbWoxC6ahM8xTkqLpGB2iWBVyuKC9/srhFunCd1SDNrV1s72bBpK4hLj8KLzHBBcOblvLQZBNw9r3w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.25.4", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz", - "integrity": "sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.7.tgz", - "integrity": "sha512-xZeCVVdwb4MsDBkkyZ64tReWYrLRHlMN72vP7Bdm3OUOuyFZExhsHUUnuWnm2/XOlAJzR0LfPpB56WXZn0X/lA==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", - "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.25.2", - "@babel/helper-validator-option": "^7.24.8", - "browserslist": "^4.23.1", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.4.tgz", - "integrity": "sha512-ro/bFs3/84MDgDmMwbcHgDa8/E6J3QKNTk4xJJnVeFtGE+tL0K26E3pNxhYz2b67fJpt7Aphw5XcploKXuCvCQ==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-member-expression-to-functions": "^7.24.8", - "@babel/helper-optimise-call-expression": "^7.24.7", - "@babel/helper-replace-supers": "^7.25.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/traverse": "^7.25.4", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.2.tgz", - "integrity": "sha512-+wqVGP+DFmqwFD3EH6TMTfUNeqDehV3E/dl+Sd54eaXqm17tEUNbEIn4sVivVowbvUpOtIGxdo3GoXyDH9N/9g==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz", - "integrity": "sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz", - "integrity": "sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.24.8", - "@babel/types": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", - "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", - "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7", - "@babel/traverse": "^7.25.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz", - "integrity": "sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", - "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.0.tgz", - "integrity": "sha512-NhavI2eWEIz/H9dbrG0TuOicDhNexze43i5z7lEqwYm0WEZVTwnPpA0EafUTP7+6/W79HWIP2cTe3Z5NiSTVpw==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-wrap-function": "^7.25.0", - "@babel/traverse": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.25.0.tgz", - "integrity": "sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg==", - "dev": true, - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.24.8", - "@babel/helper-optimise-call-expression": "^7.24.7", - "@babel/traverse": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", - "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz", - "integrity": "sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", - "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.0.tgz", - "integrity": "sha512-s6Q1ebqutSiZnEjaofc/UKDyC4SbzV5n5SrA2Gq8UawLycr3i04f1dX4OzoQVnexm6aOCh37SQNYlJ/8Ku+PMQ==", - "dev": true, - "dependencies": { - "@babel/template": "^7.25.0", - "@babel/traverse": "^7.25.0", - "@babel/types": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.0.tgz", - "integrity": "sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.4.tgz", - "integrity": "sha512-nq+eWrOgdtu3jG5Os4TQP3x3cLA8hR8TvJNjD8vnPa20WGycimcparWnLK4jJhElTK6SDyuJo1weMKO/5LpmLA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.25.4" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.25.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.3.tgz", - "integrity": "sha512-wUrcsxZg6rqBXG05HG1FPYgsP6EvwF4WpBbxIpWIIYnH8wG0gzx3yZY3dtEHas4sTAOGkbTsc9EGPxwff8lRoA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/traverse": "^7.25.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.0.tgz", - "integrity": "sha512-Bm4bH2qsX880b/3ziJ8KD711LT7z4u8CFudmjqle65AZj/HNUFhEf90dqYv6O86buWvSBmeQDjv0Tn2aF/bIBA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.0.tgz", - "integrity": "sha512-lXwdNZtTmeVOOFtwM/WDe7yg1PL8sYhRk/XH0FzbR2HDQ0xC+EnQ/JHeoMYSavtU115tnUk0q9CDyq8si+LMAA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.7.tgz", - "integrity": "sha512-+izXIbke1T33mY4MSNnrqhPXDz01WYhEf3yF5NbnUtkiNnm+XBZJl3kNfoK6NKmYlz/D07+l2GWVK/QfDkNCuQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/plugin-transform-optional-chaining": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.0.tgz", - "integrity": "sha512-tggFrk1AIShG/RUQbEwt2Tr/E+ObkfwrPjR6BjbRvsx24+PSjK8zrq0GWPNCjo8qpRx4DuJzlcvWJqlm+0h3kw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/traverse": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.7.tgz", - "integrity": "sha512-Ec3NRUMoi8gskrkBe3fNmEQfxDvY8bgfQpz6jlk/41kX9eUjvpyqWU7PBP/pLAvMaSQjbMNKJmvX57jP+M6bPg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz", - "integrity": "sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", - "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz", - "integrity": "sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.7.tgz", - "integrity": "sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.4.tgz", - "integrity": "sha512-jz8cV2XDDTqjKPwVPJBIjORVEmSGYhdRa8e5k5+vN+uwcjSrSxUaebBRa4ko1jqNF2uxyg8G6XYk30Jv285xzg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-remap-async-to-generator": "^7.25.0", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/traverse": "^7.25.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.7.tgz", - "integrity": "sha512-SQY01PcJfmQ+4Ash7NE+rpbLFbmqA2GPIgqzxfFTL4t1FKRq4zTms/7htKpoCUI9OcFYgzqfmCdH53s6/jn5fA==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-remap-async-to-generator": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz", - "integrity": "sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.0.tgz", - "integrity": "sha512-yBQjYoOjXlFv9nlXb3f1casSHOZkWr29NX+zChVanLg5Nc157CrbEX9D7hxxtTpuFy7Q0YzmmWfJxzvps4kXrQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.4.tgz", - "integrity": "sha512-nZeZHyCWPfjkdU5pA/uHiTaDAFUEqkpzf1YoQT2NeSynCGYq9rxfyI3XpQbfx/a0hSnFH6TGlEXvae5Vi7GD8g==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.4", - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.7.tgz", - "integrity": "sha512-HMXK3WbBPpZQufbMG4B46A90PkuuhN9vBCb5T8+VAHqvAqvcLi+2cKoukcpmUYkszLhScU3l1iudhrks3DggRQ==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.4.tgz", - "integrity": "sha512-oexUfaQle2pF/b6E0dwsxQtAol9TLSO88kQvym6HHBWFliV2lGdrPieX+WgMRLSJDVzdYywk7jXbLPuO2KLTLg==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-replace-supers": "^7.25.0", - "@babel/traverse": "^7.25.4", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz", - "integrity": "sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/template": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz", - "integrity": "sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.7.tgz", - "integrity": "sha512-ZOA3W+1RRTSWvyqcMJDLqbchh7U4NRGqwRfFSVbOLS/ePIP4vHB5e8T8eXcuqyN1QkgKyj5wuW0lcS85v4CrSw==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.7.tgz", - "integrity": "sha512-JdYfXyCRihAe46jUIliuL2/s0x0wObgwwiGxw/UbgJBr20gQBThrokO4nYKgWkD7uBaqM7+9x5TU7NkExZJyzw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.0.tgz", - "integrity": "sha512-YLpb4LlYSc3sCUa35un84poXoraOiQucUTTu8X1j18JV+gNa8E0nyUf/CjZ171IRGr4jEguF+vzJU66QZhn29g==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.0", - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz", - "integrity": "sha512-sc3X26PhZQDb3JhORmakcbvkeInvxz+A8oda99lj7J60QRuPZvNAk9wQlTBS1ZynelDrDmTU4pw1tyc5d5ZMUg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.7.tgz", - "integrity": "sha512-Rqe/vSc9OYgDajNIK35u7ot+KeCoetqQYFXM4Epf7M7ez3lWlOjrDjrwMei6caCVhfdw+mIKD4cgdGNy5JQotQ==", - "dev": true, - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.7.tgz", - "integrity": "sha512-v0K9uNYsPL3oXZ/7F9NNIbAj2jv1whUEtyA6aujhekLs56R++JDQuzRcP2/z4WX5Vg/c5lE9uWZA0/iUoFhLTA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.7.tgz", - "integrity": "sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.25.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.1.tgz", - "integrity": "sha512-TVVJVdW9RKMNgJJlLtHsKDTydjZAbwIsn6ySBPQaEAUU5+gVvlJt/9nRmqVbsV/IBanRjzWoaAQKLoamWVOUuA==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.24.8", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/traverse": "^7.25.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.7.tgz", - "integrity": "sha512-2yFnBGDvRuxAaE/f0vfBKvtnvvqU8tGpMHqMNpTN2oWMKIR3NqFkjaAgGwawhqK/pIN2T3XdjGPdaG0vDhOBGw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.2.tgz", - "integrity": "sha512-HQI+HcTbm9ur3Z2DkO+jgESMAMcYLuN/A7NRw9juzxAezN9AvqvUTnpKP/9kkYANz6u7dFlAyOu44ejuGySlfw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.7.tgz", - "integrity": "sha512-4D2tpwlQ1odXmTEIFWy9ELJcZHqrStlzK/dAOWYyxX3zT0iXQB6banjgeOJQXzEc4S0E0a5A+hahxPaEFYftsw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz", - "integrity": "sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.7.tgz", - "integrity": "sha512-9+pB1qxV3vs/8Hdmz/CulFB8w2tuu6EB94JZFsjdqxQokwGa9Unap7Bo2gGBGIvPmDIVvQrom7r5m/TCDMURhg==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz", - "integrity": "sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.24.8", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-simple-access": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.0.tgz", - "integrity": "sha512-YPJfjQPDXxyQWg/0+jHKj1llnY5f/R6a0p/vP4lPymxLu7Lvl4k2WMitqi08yxwQcCVUUdG9LCUj4TNEgAp3Jw==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.25.0", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "@babel/traverse": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.7.tgz", - "integrity": "sha512-3aytQvqJ/h9z4g8AsKPLvD4Zqi2qT+L3j7XoFFu1XBlZWEl2/1kWnhmAbxpLgPrHSY0M6UA02jyTiwUVtiKR6A==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.7.tgz", - "integrity": "sha512-/jr7h/EWeJtk1U/uz2jlsCioHkZk1JJZVcc8oQsJ1dUlaJD83f4/6Zeh2aHt9BIFokHIsSeDfhUmju0+1GPd6g==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.7.tgz", - "integrity": "sha512-RNKwfRIXg4Ls/8mMTza5oPF5RkOW8Wy/WgMAp1/F1yZ8mMbtwXW+HDoJiOsagWrAhI5f57Vncrmr9XeT4CVapA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.7.tgz", - "integrity": "sha512-Ts7xQVk1OEocqzm8rHMXHlxvsfZ0cEF2yomUqpKENHWMF4zKk175Y4q8H5knJes6PgYad50uuRmt3UJuhBw8pQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.7.tgz", - "integrity": "sha512-e6q1TiVUzvH9KRvicuxdBTUj4AdKSRwzIyFFnfnezpCfP2/7Qmbb8qbU2j7GODbl4JMkblitCQjKYUaX/qkkwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.7.tgz", - "integrity": "sha512-4QrHAr0aXQCEFni2q4DqKLD31n2DL+RxcwnNjDFkSG0eNQ/xCavnRkfCUjsyqGC2OviNJvZOF/mQqZBw7i2C5Q==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz", - "integrity": "sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-replace-supers": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.7.tgz", - "integrity": "sha512-uLEndKqP5BfBbC/5jTwPxLh9kqPWWgzN/f8w6UwAIirAEqiIVJWWY312X72Eub09g5KF9+Zn7+hT7sDxmhRuKA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.8.tgz", - "integrity": "sha512-5cTOLSMs9eypEy8JUVvIKOu6NgvbJMnpG62VpIHrTmROdQ+L5mDAaI40g25k5vXti55JWNX5jCkq3HZxXBQANw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz", - "integrity": "sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.4.tgz", - "integrity": "sha512-ao8BG7E2b/URaUQGqN3Tlsg+M3KlHY6rJ1O1gXAEUnZoyNQnvKyH87Kfg+FoxSeyWUB8ISZZsC91C44ZuBFytw==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.4", - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.7.tgz", - "integrity": "sha512-9z76mxwnwFxMyxZWEgdgECQglF2Q7cFLm0kMf8pGwt+GSJsY0cONKj/UuO4bOH0w/uAel3ekS4ra5CEAyJRmDA==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-create-class-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz", - "integrity": "sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.7.tgz", - "integrity": "sha512-lq3fvXPdimDrlg6LWBoqj+r/DEWgONuwjuOuQCSYgRroXDH/IdM1C0IZf59fL5cHLpjEH/O6opIRBbqv7ELnuA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "regenerator-transform": "^0.15.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.7.tgz", - "integrity": "sha512-0DUq0pHcPKbjFZCfTss/pGkYMfy3vFWydkUBd9r0GHpIyfs2eCDENvqadMycRS9wZCXR41wucAfJHJmwA0UmoQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.7.tgz", - "integrity": "sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz", - "integrity": "sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.7.tgz", - "integrity": "sha512-kHPSIJc9v24zEml5geKg9Mjx5ULpfncj0wRpYtxbvKyTtHCYDkVE3aHQ03FrpEo4gEe2vrJJS1Y9CJTaThA52g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz", - "integrity": "sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.8.tgz", - "integrity": "sha512-adNTUpDCVnmAE58VEqKlAA6ZBlNkMnWD0ZcW76lyNFN3MJniyGFZfNwERVk8Ap56MCnXztmDr19T4mPTztcuaw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.2.tgz", - "integrity": "sha512-lBwRvjSmqiMYe/pS0+1gggjJleUJi7NzjvQ1Fkqtt69hBa/0t1YuW/MLQMAPixfwaQOHUXsd6jeU3Z+vdGv3+A==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-create-class-features-plugin": "^7.25.0", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/plugin-syntax-typescript": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.7.tgz", - "integrity": "sha512-U3ap1gm5+4edc2Q/P+9VrBNhGkfnf+8ZqppY71Bo/pzZmXhhLdqgaUl6cuB07O1+AQJtCLfaOmswiNbSQ9ivhw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.7.tgz", - "integrity": "sha512-uH2O4OV5M9FZYQrwc7NdVmMxQJOCCzFeYudlZSzUAHRFeOujQefa92E74TQDVskNHCzOXoigEuoyzHDhaEaK5w==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.7.tgz", - "integrity": "sha512-hlQ96MBZSAXUq7ltkjtu3FJCCSMx/j629ns3hA3pXnBXjanNP0LHi+JpPeA81zaWgVK1VGH95Xuy7u0RyQ8kMg==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.4.tgz", - "integrity": "sha512-qesBxiWkgN1Q+31xUE9RcMk79eOXXDCv6tfyGMRSs4RGlioSg2WVyQAm07k726cSE56pa+Kb0y9epX2qaXzTvA==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.2", - "@babel/helper-plugin-utils": "^7.24.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.25.4.tgz", - "integrity": "sha512-W9Gyo+KmcxjGahtt3t9fb14vFRWvPpu5pT6GBlovAK6BTBcxgjfVMSQCfJl4oi35ODrxP6xx2Wr8LNST57Mraw==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.25.4", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-validator-option": "^7.24.8", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.3", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.0", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.0", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.7", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.0", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.24.7", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.24.7", - "@babel/plugin-transform-async-generator-functions": "^7.25.4", - "@babel/plugin-transform-async-to-generator": "^7.24.7", - "@babel/plugin-transform-block-scoped-functions": "^7.24.7", - "@babel/plugin-transform-block-scoping": "^7.25.0", - "@babel/plugin-transform-class-properties": "^7.25.4", - "@babel/plugin-transform-class-static-block": "^7.24.7", - "@babel/plugin-transform-classes": "^7.25.4", - "@babel/plugin-transform-computed-properties": "^7.24.7", - "@babel/plugin-transform-destructuring": "^7.24.8", - "@babel/plugin-transform-dotall-regex": "^7.24.7", - "@babel/plugin-transform-duplicate-keys": "^7.24.7", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.0", - "@babel/plugin-transform-dynamic-import": "^7.24.7", - "@babel/plugin-transform-exponentiation-operator": "^7.24.7", - "@babel/plugin-transform-export-namespace-from": "^7.24.7", - "@babel/plugin-transform-for-of": "^7.24.7", - "@babel/plugin-transform-function-name": "^7.25.1", - "@babel/plugin-transform-json-strings": "^7.24.7", - "@babel/plugin-transform-literals": "^7.25.2", - "@babel/plugin-transform-logical-assignment-operators": "^7.24.7", - "@babel/plugin-transform-member-expression-literals": "^7.24.7", - "@babel/plugin-transform-modules-amd": "^7.24.7", - "@babel/plugin-transform-modules-commonjs": "^7.24.8", - "@babel/plugin-transform-modules-systemjs": "^7.25.0", - "@babel/plugin-transform-modules-umd": "^7.24.7", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7", - "@babel/plugin-transform-new-target": "^7.24.7", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", - "@babel/plugin-transform-numeric-separator": "^7.24.7", - "@babel/plugin-transform-object-rest-spread": "^7.24.7", - "@babel/plugin-transform-object-super": "^7.24.7", - "@babel/plugin-transform-optional-catch-binding": "^7.24.7", - "@babel/plugin-transform-optional-chaining": "^7.24.8", - "@babel/plugin-transform-parameters": "^7.24.7", - "@babel/plugin-transform-private-methods": "^7.25.4", - "@babel/plugin-transform-private-property-in-object": "^7.24.7", - "@babel/plugin-transform-property-literals": "^7.24.7", - "@babel/plugin-transform-regenerator": "^7.24.7", - "@babel/plugin-transform-reserved-words": "^7.24.7", - "@babel/plugin-transform-shorthand-properties": "^7.24.7", - "@babel/plugin-transform-spread": "^7.24.7", - "@babel/plugin-transform-sticky-regex": "^7.24.7", - "@babel/plugin-transform-template-literals": "^7.24.7", - "@babel/plugin-transform-typeof-symbol": "^7.24.8", - "@babel/plugin-transform-unicode-escapes": "^7.24.7", - "@babel/plugin-transform-unicode-property-regex": "^7.24.7", - "@babel/plugin-transform-unicode-regex": "^7.24.7", - "@babel/plugin-transform-unicode-sets-regex": "^7.25.4", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.6", - "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.37.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.24.7.tgz", - "integrity": "sha512-SyXRe3OdWwIwalxDg5UtJnJQO+YPcTfwiIY2B0Xlddh9o7jpWLvv8X1RthIeDOxQ+O1ML5BLPCONToObyVQVuQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-validator-option": "^7.24.7", - "@babel/plugin-syntax-jsx": "^7.24.7", - "@babel/plugin-transform-modules-commonjs": "^7.24.7", - "@babel/plugin-transform-typescript": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", - "dev": true - }, - "node_modules/@babel/runtime": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.4.tgz", - "integrity": "sha512-DSgLeL/FNcpXuzav5wfYvHCGvynXkJbn3Zvc3823AEe9nPwW9IK4UoCSS5yGymmQzN0pCPvivtgS6/8U2kkm1w==", - "dev": true, - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", - "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.25.0", - "@babel/types": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.4.tgz", - "integrity": "sha512-VJ4XsrD+nOvlXyLzmLzUs/0qjFS4sK30te5yEFlvbbUNEgKaVb2BHZUpAL+ttLPQAHNrsI3zZisbfha5Cvr8vg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.4", - "@babel/parser": "^7.25.4", - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.4", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.4.tgz", - "integrity": "sha512-zQ1ijeeCXVEh+aNL0RlmkPkG8HUiDcU2pzQQFjtbntgAczRASFzj4H+6+bV+dy1ntKR14I/DypeuRG1uma98iQ==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", - "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/console/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/console/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/console/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", - "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/reporters": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.7.0", - "jest-config": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-resolve-dependencies": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "jest-watcher": "^29.7.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/core/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/core/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/core/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", - "dev": true, - "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", - "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.6.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", - "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/types": "^29.6.3", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", - "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", - "dev": true, - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^6.0.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/reporters/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/reporters/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/reporters/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/reporters/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/source-map": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-result": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/transform/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/transform/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/transform/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/transform/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/transform/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/types/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/types/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/types/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true - }, - "node_modules/@sinonjs/commons": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", - "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", - "dev": true, - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.8", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", - "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", - "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", - "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "29.5.12", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", - "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", - "dev": true, - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "node_modules/@types/node": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.33.tgz", - "integrity": "sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ==", - "dev": true - }, - "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true - }, - "node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/babel-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", - "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", - "dev": true, - "dependencies": { - "@jest/transform": "^29.7.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.6.3", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/babel-jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/babel-jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", - "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", - "dev": true, - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.11", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz", - "integrity": "sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.2", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", - "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2", - "core-js-compat": "^3.38.0" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz", - "integrity": "sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", - "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", - "dev": true, - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-preset-jest": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", - "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.23.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", - "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001646", - "electron-to-chromium": "^1.5.4", - "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001653", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz", - "integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", - "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", - "dev": true - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/core-js-compat": { - "version": "3.38.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.38.1.tgz", - "integrity": "sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==", - "dev": true, - "dependencies": { - "browserslist": "^4.23.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/create-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", - "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/create-jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/create-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/create-jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/create-jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/create-jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/create-jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cross-env": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.1" - }, - "bin": { - "cross-env": "src/bin/cross-env.js", - "cross-env-shell": "src/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=10.14", - "npm": ">=6", - "yarn": ">=1" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/dedent": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", - "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", - "dev": true, - "peerDependencies": { - "babel-plugin-macros": "^3.1.0" - }, - "peerDependenciesMeta": { - "babel-plugin-macros": { - "optional": true - } - } - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz", - "integrity": "sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q==", - "dev": true - }, - "node_modules/emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", - "dev": true, - "dependencies": { - "@jest/expect-utils": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/import-local": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", - "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "node_modules/is-core-module": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", - "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", - "dev": true, - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", - "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", - "dev": true, - "dependencies": { - "@babel/core": "^7.23.9", - "@babel/parser": "^7.23.9", - "@istanbuljs/schema": "^0.1.3", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-reports": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", - "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", - "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", - "dev": true, - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/types": "^29.6.3", - "import-local": "^3.0.2", - "jest-cli": "^29.7.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-changed-files": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", - "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", - "dev": true, - "dependencies": { - "execa": "^5.0.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", - "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^1.0.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.7.0", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.7.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-circus/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-circus/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-circus/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-cli": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", - "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", - "dev": true, - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "create-jest": "^29.7.0", - "exit": "^0.1.2", - "import-local": "^3.0.2", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-cli/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-cli/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-cli/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-cli/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-config": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", - "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-jest": "^29.7.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/jest-config/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-config/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-config/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-config/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-diff": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", - "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-diff/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-diff/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-diff/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-diff/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-diff/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-diff/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-docblock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", - "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", - "dev": true, - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", - "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "jest-util": "^29.7.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-each/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-each/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-each/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-environment-node": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", - "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", - "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-haste-map": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", - "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "node_modules/jest-leak-detector": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", - "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", - "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-matcher-utils/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-matcher-utils/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-message-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-message-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", - "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", - "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", - "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", - "dev": true, - "dependencies": { - "jest-regex-util": "^29.6.3", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-resolve/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-resolve/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-resolve/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", - "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runner/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runner/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-runner/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", - "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/globals": "^29.7.0", - "@jest/source-map": "^29.6.3", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runtime/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runtime/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-runtime/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-snapshot": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", - "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "semver": "^7.5.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-snapshot/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-validate": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", - "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "leven": "^3.1.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-validate/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-validate/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-validate/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-validate/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watcher": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", - "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.7.0", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-watcher/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-watcher/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-watcher/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watcher/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", - "dev": true, - "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pure-rand": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", - "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ] - }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", - "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", - "dev": true, - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", - "dev": true - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "dev": true, - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dev": true, - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve.exports": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", - "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", - "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==" - }, - "node_modules/v8-to-istanbul": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", - "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "dependencies": { - "makeerror": "1.0.12" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/package.json b/package.json index e50fd87..f5cde85 100644 --- a/package.json +++ b/package.json @@ -15,18 +15,15 @@ "prepack": "cp -rv dist/. .", "test": "jest tests" }, - "dependencies": { - "url-join": "4.0.1" - }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.4", "@babel/preset-typescript": "^7.24.7", "@types/jest": "^29.5.12", - "@types/node": "17.0.33", + "@types/node": "22.5.0", "cross-env": "^7.0.3", "jest": "^29.7.0", - "prettier": "2.7.1", - "typescript": "4.6.4" + "prettier": "3.3.3", + "typescript": "5.5.4" } } diff --git a/src/wrapper/SquidexClient.ts b/src/wrapper/SquidexClient.ts index 74b49b8..cdd4c25 100644 --- a/src/wrapper/SquidexClient.ts +++ b/src/wrapper/SquidexClient.ts @@ -1,5 +1,4 @@ import * as environments from "../environments"; -import urlJoin from "url-join"; import { AppsApi, AppsApiInterface, @@ -322,10 +321,7 @@ export class SquidexClients { } const response = await this.configuration.fetchApi!( - urlJoin( - this.clientOptions.environment ?? environments.SquidexEnvironment.Default, - "/identity-server/connect/token" - ), + `${this.configuration.basePath}/identity-server/connect/token`, { headers: { "Content-Type": "application/x-www-form-urlencoded", diff --git a/tests/_setup.js b/tests/_setup.js new file mode 100644 index 0000000..656d3eb --- /dev/null +++ b/tests/_setup.js @@ -0,0 +1,5 @@ +const { setup } = require('./globalSetup') + +module.exports = async () => { + await setup(); +}; \ No newline at end of file diff --git a/tests/_teardown.js b/tests/_teardown.js new file mode 100644 index 0000000..ae762a1 --- /dev/null +++ b/tests/_teardown.js @@ -0,0 +1,5 @@ +const { teardown } = require('./globalTeardown') + +module.exports = async () => { + await teardown(); +}; \ No newline at end of file diff --git a/tests/docker-compose.yml b/tests/docker/docker-compose.yml similarity index 100% rename from tests/docker-compose.yml rename to tests/docker/docker-compose.yml diff --git a/tests/globalSetup.ts b/tests/globalSetup.ts index 1fb456b..e56d0d0 100644 --- a/tests/globalSetup.ts +++ b/tests/globalSetup.ts @@ -1,7 +1,7 @@ import { SquidexBadRequestError, SquidexError } from "../src"; import { getEnvironment, getClient, delay } from "./_utils"; -async function setup() { +export async function setup() { console.log("SETUP"); const { client } = getClient(); @@ -57,8 +57,6 @@ async function setup() { } } -export default setup; - function getTime() { return new Date().getTime(); } diff --git a/tests/globalTeardown.ts b/tests/globalTeardown.ts index aa71f79..9b41cec 100644 --- a/tests/globalTeardown.ts +++ b/tests/globalTeardown.ts @@ -1,5 +1,3 @@ -function teardown() { +export function teardown() { console.log("TEARDOWN"); } - -export default teardown; diff --git a/tsconfig.json b/tsconfig.json index e65fa53..06483a1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,18 @@ { "compilerOptions": { - "extendedDiagnostics": true, - "strict": true, - "target": "ES6", + "baseUrl": "src", + "declaration": true, + "esModuleInterop": true, + "extendedDiagnostics": false, "module": "CommonJS", "moduleResolution": "node", - "esModuleInterop": true, - "skipLibCheck": true, - "declaration": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "outDir": "dist", "rootDir": "src", - "baseUrl": "src" + "skipLibCheck": true, + "strict": true, + "target": "ES6", }, "include": [ "src" From b4eeea9e45ceacb17048f9bdd1d386d91da5100d Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 25 Aug 2024 23:12:51 +0200 Subject: [PATCH 10/16] Fix CI --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7b27c6..8dcfd47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-node@v3 - name: Compile - run: npm build + run: npm run build publish: needs: [ compile ] @@ -32,7 +32,7 @@ jobs: run: npm install - name: Build - run: npm build + run: npm run build - name: Publish to npm run: | From 3784c5bc9d19e2326a88a3d1472ba65f529989dd Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 26 Aug 2024 07:27:52 +0200 Subject: [PATCH 11/16] Simplify build. --- .github/workflows/check-updates.yml | 3 -- .github/workflows/ci.yml | 45 +++++++++++++++++------------ .github/workflows/test.yml | 42 --------------------------- src/wrapper/SquidexClient.ts | 2 +- 4 files changed, 28 insertions(+), 64 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/check-updates.yml b/.github/workflows/check-updates.yml index 380ce8b..0bb6c88 100644 --- a/.github/workflows/check-updates.yml +++ b/.github/workflows/check-updates.yml @@ -3,9 +3,6 @@ concurrency: check on: workflow_dispatch: - schedule: - # Automatically run on every Sunday - - cron: '0 0 * * 0' jobs: build: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dcfd47..b51787a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,30 +11,39 @@ jobs: uses: actions/checkout@v4.1.0 - name: Set up node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4.0.3 - - name: Compile - run: npm run build - - publish: - needs: [ compile ] - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v4.1.0 + - name: Build - Install + run: npm i - - name: Set up node - uses: actions/setup-node@v3 + - name: Build - Compile + run: npm run build - - name: Install dependencies - run: npm install + - name: Test - Start Compose + run: docker compose up -d + working-directory: tests/docker - - name: Build - run: npm run build + - name: Test - RUN + env: + CONFIG__WAIT=60 + CONFIG__SERVER__URL=http://localhost:8080 + run: | + npm test + + - name: Test - Dump docker logs on failure + if: failure() + uses: jwalton/gh-docker-logs@v2.2.1 + with: + images: 'squidex,squidex/resizer' + tail: '100' + + - name: Test - Cleanup + if: always() + run: docker compose down + working-directory: tests/docker - name: Publish to npm + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') run: | npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} npm publish --access public diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 248b243..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: test -concurrency: build - -on: [push] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Prepare - Checkout - uses: actions/checkout@v4.0.0 - - - name: Test - Start Compose - run: docker compose up -d - working-directory: tests/docker - - - name: Test - RUN - uses: kohlerdominik/docker-run-action@v1.1.0 - with: - image: node - environment: | - CONFIG__WAIT=60 - CONFIG__SERVER__URL=http://localhost:8080 - default_network: host - options: --name test1 - volumes: ${{ github.workspace }}:/src - run: | - cd /src - npm install - npm test - - - name: Test - Dump docker logs on failure - if: failure() - uses: jwalton/gh-docker-logs@v2.2.1 - with: - images: 'squidex,squidex/resizer' - tail: '100' - - - name: Test - Cleanup - if: always() - run: docker compose down - working-directory: tests/docker diff --git a/src/wrapper/SquidexClient.ts b/src/wrapper/SquidexClient.ts index cdd4c25..db4d139 100644 --- a/src/wrapper/SquidexClient.ts +++ b/src/wrapper/SquidexClient.ts @@ -368,7 +368,7 @@ export class SquidexClients { } function addOptions(init: RequestInit, clientOptions: SquidexClients.Options) { - if (clientOptions.timeout && typeof AbortSignal.timeout === 'function') { + if (clientOptions.timeout) { init.signal = AbortSignal.timeout(clientOptions.timeout); } From 902bf25394684deb67d1c054c2250d82d417a92d Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 26 Aug 2024 07:36:05 +0200 Subject: [PATCH 12/16] Fix --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b51787a..4740439 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,11 +24,10 @@ jobs: working-directory: tests/docker - name: Test - RUN + run: npm test env: - CONFIG__WAIT=60 - CONFIG__SERVER__URL=http://localhost:8080 - run: | - npm test + CONFIG__WAIT: 60 + CONFIG__SERVER__URL: http://localhost:8080 - name: Test - Dump docker logs on failure if: failure() From f2e935e4dd4a06158ae8f1f5e3915037dac17ee4 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 26 Aug 2024 07:42:08 +0200 Subject: [PATCH 13/16] Use new version. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4740439..31b2bef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ jobs: - name: Set up node uses: actions/setup-node@v4.0.3 + with: + node-version: 20 - name: Build - Install run: npm i From 9cad77f093364614aed93a21a8a77b7410de8a21 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 26 Aug 2024 09:48:47 +0200 Subject: [PATCH 14/16] Use eslint to fix code after generation. --- eslint.config.mjs | 24 + package-lock.json | 7066 +++++++++++++++++ package.json | 9 +- src/generated/apis/AppsApi.ts | 27 - src/generated/apis/AssetsApi.ts | 24 - src/generated/apis/BackupsApi.ts | 8 - src/generated/apis/ContentsApi.ts | 13 - src/generated/apis/DiagnosticsApi.ts | 13 +- src/generated/apis/EventConsumersApi.ts | 7 - src/generated/apis/HistoryApi.ts | 6 - src/generated/apis/JobsApi.ts | 6 - src/generated/apis/LanguagesApi.ts | 6 - src/generated/apis/NewsApi.ts | 6 - src/generated/apis/PingApi.ts | 13 +- src/generated/apis/PlansApi.ts | 8 - src/generated/apis/RulesApi.ts | 12 - src/generated/apis/SchemasApi.ts | 17 - src/generated/apis/SearchApi.ts | 6 - src/generated/apis/StatisticsApi.ts | 9 - src/generated/apis/TeamsApi.ts | 12 - src/generated/apis/TemplatesApi.ts | 7 - src/generated/apis/TranslationsApi.ts | 7 - src/generated/apis/UserManagementApi.ts | 9 - src/generated/apis/UsersApi.ts | 8 - src/generated/apis/index.ts | 2 +- src/generated/index.ts | 2 +- src/generated/models/ActionTypeEnum.ts | 5 +- src/generated/models/AddFieldDto.ts | 11 +- src/generated/models/AddLanguageDto.ts | 10 +- src/generated/models/AddRoleDto.ts | 10 +- src/generated/models/AddWorkflowDto.ts | 10 +- src/generated/models/AlgoliaRuleActionDto.ts | 13 +- src/generated/models/AllContentsByPostDto.ts | 10 +- src/generated/models/AnnotateAssetDto.ts | 10 +- src/generated/models/AppDto.ts | 10 +- src/generated/models/AppLanguageDto.ts | 10 +- src/generated/models/AppLanguagesDto.ts | 11 +- src/generated/models/AppSettingsDto.ts | 12 +- .../models/ArrayCalculatedDefaultValue.ts | 5 +- .../models/ArrayFieldPropertiesDto.ts | 14 +- .../models/AssetChangedRuleTriggerDto.ts | 13 +- src/generated/models/AssetDto.ts | 12 +- src/generated/models/AssetFolderDto.ts | 10 +- src/generated/models/AssetFolderScope.ts | 5 +- src/generated/models/AssetFoldersDto.ts | 11 +- src/generated/models/AssetMeta.ts | 10 +- src/generated/models/AssetPreviewMode.ts | 5 +- src/generated/models/AssetScriptsDto.ts | 10 +- src/generated/models/AssetType.ts | 5 +- src/generated/models/AssetsDto.ts | 11 +- .../models/AssetsFieldPropertiesDto.ts | 15 +- src/generated/models/AssignContributorDto.ts | 10 +- src/generated/models/AuthSchemeDto.ts | 10 +- src/generated/models/AuthSchemeResponseDto.ts | 11 +- src/generated/models/AuthSchemeValueDto.ts | 11 +- .../models/AzureQueueRuleActionDto.ts | 13 +- src/generated/models/BackupJobDto.ts | 11 +- src/generated/models/BackupJobsDto.ts | 11 +- src/generated/models/BooleanFieldEditor.ts | 5 +- .../models/BooleanFieldPropertiesDto.ts | 14 +- src/generated/models/BulkResultDto.ts | 11 +- src/generated/models/BulkUpdateAssetType.ts | 5 +- src/generated/models/BulkUpdateAssetsDto.ts | 11 +- .../models/BulkUpdateAssetsJobDto.ts | 11 +- src/generated/models/BulkUpdateContentType.ts | 5 +- src/generated/models/BulkUpdateContentsDto.ts | 11 +- .../models/BulkUpdateContentsJobDto.ts | 12 +- src/generated/models/CallsUsageDtoDto.ts | 17 +- src/generated/models/CallsUsagePerDateDto.ts | 10 +- src/generated/models/ChangeCategoryDto.ts | 10 +- src/generated/models/ChangePlanDto.ts | 10 +- src/generated/models/ChangeStatusDto.ts | 10 +- src/generated/models/ClientDto.ts | 10 +- src/generated/models/ClientsDto.ts | 11 +- src/generated/models/CommentRuleActionDto.ts | 13 +- src/generated/models/CommentRuleTriggerDto.ts | 13 +- .../models/ComponentFieldPropertiesDto.ts | 13 +- .../models/ComponentsFieldPropertiesDto.ts | 14 +- .../models/ConfigureFieldRulesDto.ts | 11 +- src/generated/models/ConfigureUIFieldsDto.ts | 10 +- .../models/ContentChangedRuleTriggerDto.ts | 14 +- src/generated/models/ContentDto.ts | 12 +- src/generated/models/ContentsDto.ts | 12 +- src/generated/models/ContributorDto.ts | 10 +- src/generated/models/ContributorsDto.ts | 12 +- src/generated/models/ContributorsMetadata.ts | 10 +- src/generated/models/CreateAppDto.ts | 10 +- src/generated/models/CreateAssetFolderDto.ts | 10 +- src/generated/models/CreateClientDto.ts | 10 +- .../models/CreateContentRuleActionDto.ts | 13 +- src/generated/models/CreateRuleDto.ts | 12 +- src/generated/models/CreateSchemaDto.ts | 15 +- src/generated/models/CreateTeamDto.ts | 10 +- src/generated/models/CreateUserDto.ts | 10 +- src/generated/models/CurrentStorageDto.ts | 10 +- .../models/DateTimeCalculatedDefaultValue.ts | 5 +- src/generated/models/DateTimeFieldEditor.ts | 5 +- .../models/DateTimeFieldPropertiesDto.ts | 15 +- .../models/DiscourseRuleActionDto.ts | 13 +- src/generated/models/EditorDto.ts | 10 +- .../models/ElasticSearchRuleActionDto.ts | 13 +- src/generated/models/EmailRuleActionDto.ts | 13 +- src/generated/models/ErrorDto.ts | 10 +- src/generated/models/EventConsumerDto.ts | 10 +- src/generated/models/EventConsumersDto.ts | 11 +- src/generated/models/FastlyRuleActionDto.ts | 13 +- src/generated/models/FeatureDto.ts | 10 +- src/generated/models/FeaturesDto.ts | 11 +- src/generated/models/FieldDto.ts | 12 +- src/generated/models/FieldPropertiesDto.ts | 14 +- src/generated/models/FieldRuleAction.ts | 5 +- src/generated/models/FieldRuleDto.ts | 11 +- .../models/GeolocationFieldEditor.ts | 5 +- .../models/GeolocationFieldPropertiesDto.ts | 14 +- src/generated/models/HistoryEventDto.ts | 10 +- src/generated/models/ImageFormat.ts | 5 +- src/generated/models/ImportContentsDto.ts | 10 +- src/generated/models/JobDto.ts | 12 +- src/generated/models/JobLogMessageDto.ts | 10 +- src/generated/models/JobStatus.ts | 5 +- src/generated/models/JobsDto.ts | 11 +- .../models/JsonFieldPropertiesDto.ts | 13 +- src/generated/models/LanguageDto.ts | 10 +- src/generated/models/LogDownloadDto.ts | 10 +- src/generated/models/ManualRuleTriggerDto.ts | 17 +- src/generated/models/MediumRuleActionDto.ts | 13 +- src/generated/models/MoveAssetDto.ts | 10 +- src/generated/models/MoveAssetFolderDto.ts | 10 +- src/generated/models/NestedFieldDto.ts | 11 +- .../models/NotificationRuleActionDto.ts | 13 +- src/generated/models/NumberFieldEditor.ts | 5 +- .../models/NumberFieldPropertiesDto.ts | 14 +- .../models/OpenSearchRuleActionDto.ts | 13 +- src/generated/models/PatternDto.ts | 10 +- src/generated/models/PlanChangedDto.ts | 10 +- src/generated/models/PlanDto.ts | 10 +- src/generated/models/PlansDto.ts | 13 +- src/generated/models/PlansLockedReason.ts | 5 +- .../models/PrerenderRuleActionDto.ts | 13 +- src/generated/models/QueryDto.ts | 10 +- src/generated/models/QueryJsonDto.ts | 11 +- src/generated/models/ReferencesFieldEditor.ts | 5 +- .../models/ReferencesFieldPropertiesDto.ts | 14 +- src/generated/models/ReferralInfo.ts | 10 +- src/generated/models/RenameAssetFolderDto.ts | 10 +- src/generated/models/RenameTagDto.ts | 10 +- src/generated/models/ReorderFieldsDto.ts | 10 +- src/generated/models/ResizeMode.ts | 5 +- src/generated/models/Resource.ts | 10 +- src/generated/models/ResourceLink.ts | 10 +- src/generated/models/ResourcesDto.ts | 10 +- src/generated/models/RestoreJobDto.ts | 11 +- src/generated/models/RestoreRequestDto.ts | 10 +- .../models/RichTextFieldPropertiesDto.ts | 13 +- src/generated/models/RoleDto.ts | 10 +- src/generated/models/RolesDto.ts | 11 +- src/generated/models/RuleActionDto.ts | 14 +- src/generated/models/RuleDto.ts | 12 +- src/generated/models/RuleElementDto.ts | 11 +- .../models/RuleElementPropertyDto.ts | 11 +- src/generated/models/RuleEventDto.ts | 12 +- src/generated/models/RuleEventsDto.ts | 11 +- src/generated/models/RuleFieldEditor.ts | 5 +- src/generated/models/RuleJobResult.ts | 5 +- src/generated/models/RuleResult.ts | 5 +- src/generated/models/RuleTriggerDto.ts | 14 +- src/generated/models/RulesDto.ts | 11 +- src/generated/models/ScheduleJobDto.ts | 10 +- .../models/SchemaChangedRuleTriggerDto.ts | 13 +- src/generated/models/SchemaCondition.ts | 10 +- src/generated/models/SchemaDto.ts | 15 +- src/generated/models/SchemaPropertiesDto.ts | 10 +- src/generated/models/SchemaScriptsDto.ts | 10 +- src/generated/models/SchemaType.ts | 5 +- src/generated/models/SchemasDto.ts | 11 +- src/generated/models/ScriptRuleActionDto.ts | 13 +- src/generated/models/SearchResultDto.ts | 11 +- src/generated/models/SearchResultType.ts | 5 +- src/generated/models/SignalRRuleActionDto.ts | 14 +- src/generated/models/SimulatedRuleEventDto.ts | 11 +- .../models/SimulatedRuleEventsDto.ts | 11 +- src/generated/models/SkipReason.ts | 5 +- src/generated/models/SlackRuleActionDto.ts | 13 +- src/generated/models/SortNode.ts | 11 +- src/generated/models/SortOrder.ts | 5 +- src/generated/models/StatusInfoDto.ts | 10 +- .../models/StorageUsagePerDateDto.ts | 10 +- src/generated/models/StringContentType.ts | 5 +- src/generated/models/StringFieldEditor.ts | 5 +- .../models/StringFieldPropertiesDto.ts | 15 +- src/generated/models/SynchronizeSchemaDto.ts | 14 +- src/generated/models/TagsFieldEditor.ts | 5 +- .../models/TagsFieldPropertiesDto.ts | 14 +- src/generated/models/TeamDto.ts | 10 +- src/generated/models/TemplateDetailsDto.ts | 10 +- src/generated/models/TemplateDto.ts | 10 +- src/generated/models/TemplatesDto.ts | 11 +- src/generated/models/TransferToTeamDto.ts | 10 +- src/generated/models/TranslateDto.ts | 10 +- src/generated/models/TranslationDto.ts | 11 +- src/generated/models/TranslationStatus.ts | 5 +- src/generated/models/TweetRuleActionDto.ts | 13 +- .../models/TypesenseRuleActionDto.ts | 13 +- src/generated/models/UIFieldEditor.ts | 5 +- src/generated/models/UIFieldPropertiesDto.ts | 14 +- src/generated/models/UpdateAppDto.ts | 10 +- src/generated/models/UpdateAppSettingsDto.ts | 12 +- src/generated/models/UpdateAssetScriptsDto.ts | 10 +- src/generated/models/UpdateClientDto.ts | 10 +- src/generated/models/UpdateFieldDto.ts | 11 +- src/generated/models/UpdateLanguageDto.ts | 10 +- src/generated/models/UpdateProfileDto.ts | 10 +- src/generated/models/UpdateRoleDto.ts | 10 +- src/generated/models/UpdateRuleDto.ts | 12 +- src/generated/models/UpdateSchemaDto.ts | 10 +- src/generated/models/UpdateSettingDto.ts | 10 +- src/generated/models/UpdateTeamDto.ts | 10 +- src/generated/models/UpdateUserDto.ts | 10 +- src/generated/models/UpdateWorkflowDto.ts | 10 +- src/generated/models/UpsertSchemaDto.ts | 14 +- src/generated/models/UpsertSchemaFieldDto.ts | 12 +- .../models/UpsertSchemaNestedFieldDto.ts | 11 +- src/generated/models/UsageRuleTriggerDto.ts | 13 +- src/generated/models/UserDto.ts | 10 +- src/generated/models/UserProperty.ts | 10 +- src/generated/models/UsersDto.ts | 11 +- src/generated/models/WebhookMethod.ts | 5 +- src/generated/models/WebhookRuleActionDto.ts | 14 +- src/generated/models/WorkflowDto.ts | 11 +- src/generated/models/WorkflowStepDto.ts | 10 +- src/generated/models/WorkflowTransitionDto.ts | 10 +- src/generated/models/WorkflowsDto.ts | 11 +- src/generated/models/index.ts | 2 +- src/wrapper/SquidexClient.ts | 163 +- src/wrapper/errors.ts | 4 +- templates/apis.mustache | 2 - templates/modelEnum.mustache | 24 + templates/modelGeneric.mustache | 13 +- templates/models.mustache | 18 + tsconfig.json | 4 +- 240 files changed, 8196 insertions(+), 1507 deletions(-) create mode 100644 eslint.config.mjs create mode 100644 package-lock.json create mode 100644 templates/modelEnum.mustache create mode 100644 templates/models.mustache diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..ca3681f --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,24 @@ +// @ts-check + +import eslint from '@eslint/js'; +import tseslint from 'typescript-eslint'; +import unusedImports from "eslint-plugin-unused-imports"; + +export default tseslint.config( + eslint.configs.recommended, + ...tseslint.configs.recommended, + { + plugins: { + "unused-imports": unusedImports, + }, + rules: { + "no-unused-vars": "off", + "unused-imports/no-unused-imports": "error", + "unused-imports/no-unused-vars": "off", + "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/no-empty-object-type": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": "off", + } + } +); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..4178f09 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,7066 @@ +{ + "name": "@squidex/squidex", + "version": "1.2.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@squidex/squidex", + "version": "1.2.1", + "devDependencies": { + "@babel/core": "^7.25.2", + "@babel/preset-env": "^7.25.4", + "@babel/preset-typescript": "^7.24.7", + "@eslint/js": "^9.9.1", + "@types/eslint__js": "^8.42.3", + "@types/jest": "^29.5.12", + "@types/node": "22.5.0", + "cross-env": "^7.0.3", + "eslint": "^9.9.1", + "eslint-plugin-unused-imports": "^4.1.3", + "jest": "^29.7.0", + "prettier": "3.3.3", + "typescript": "^5.5.4", + "typescript-eslint": "^8.2.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.25.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.25.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.25.4", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.25.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.25.2", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/helper-replace-supers": "^7.25.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/traverse": "^7.25.4", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.25.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.8", + "@babel/types": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.25.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-wrap-function": "^7.25.0", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.25.4" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.25.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-remap-async-to-generator": "^7.25.0", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/traverse": "^7.25.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-remap-async-to-generator": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.25.4", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-replace-supers": "^7.25.0", + "@babel/traverse": "^7.25.4", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/template": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.25.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.25.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-simple-access": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-replace-supers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.25.4", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "regenerator-transform": "^0.15.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.24.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.25.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-create-class-features-plugin": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-syntax-typescript": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.2", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.25.4", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-validator-option": "^7.24.8", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.3", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.0", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.7", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.0", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.24.7", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.24.7", + "@babel/plugin-transform-async-generator-functions": "^7.25.4", + "@babel/plugin-transform-async-to-generator": "^7.24.7", + "@babel/plugin-transform-block-scoped-functions": "^7.24.7", + "@babel/plugin-transform-block-scoping": "^7.25.0", + "@babel/plugin-transform-class-properties": "^7.25.4", + "@babel/plugin-transform-class-static-block": "^7.24.7", + "@babel/plugin-transform-classes": "^7.25.4", + "@babel/plugin-transform-computed-properties": "^7.24.7", + "@babel/plugin-transform-destructuring": "^7.24.8", + "@babel/plugin-transform-dotall-regex": "^7.24.7", + "@babel/plugin-transform-duplicate-keys": "^7.24.7", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.0", + "@babel/plugin-transform-dynamic-import": "^7.24.7", + "@babel/plugin-transform-exponentiation-operator": "^7.24.7", + "@babel/plugin-transform-export-namespace-from": "^7.24.7", + "@babel/plugin-transform-for-of": "^7.24.7", + "@babel/plugin-transform-function-name": "^7.25.1", + "@babel/plugin-transform-json-strings": "^7.24.7", + "@babel/plugin-transform-literals": "^7.25.2", + "@babel/plugin-transform-logical-assignment-operators": "^7.24.7", + "@babel/plugin-transform-member-expression-literals": "^7.24.7", + "@babel/plugin-transform-modules-amd": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.8", + "@babel/plugin-transform-modules-systemjs": "^7.25.0", + "@babel/plugin-transform-modules-umd": "^7.24.7", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7", + "@babel/plugin-transform-new-target": "^7.24.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", + "@babel/plugin-transform-numeric-separator": "^7.24.7", + "@babel/plugin-transform-object-rest-spread": "^7.24.7", + "@babel/plugin-transform-object-super": "^7.24.7", + "@babel/plugin-transform-optional-catch-binding": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.8", + "@babel/plugin-transform-parameters": "^7.24.7", + "@babel/plugin-transform-private-methods": "^7.25.4", + "@babel/plugin-transform-private-property-in-object": "^7.24.7", + "@babel/plugin-transform-property-literals": "^7.24.7", + "@babel/plugin-transform-regenerator": "^7.24.7", + "@babel/plugin-transform-reserved-words": "^7.24.7", + "@babel/plugin-transform-shorthand-properties": "^7.24.7", + "@babel/plugin-transform-spread": "^7.24.7", + "@babel/plugin-transform-sticky-regex": "^7.24.7", + "@babel/plugin-transform-template-literals": "^7.24.7", + "@babel/plugin-transform-typeof-symbol": "^7.24.8", + "@babel/plugin-transform-unicode-escapes": "^7.24.7", + "@babel/plugin-transform-unicode-property-regex": "^7.24.7", + "@babel/plugin-transform-unicode-regex": "^7.24.7", + "@babel/plugin-transform-unicode-sets-regex": "^7.25.4", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.37.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.24.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "@babel/plugin-syntax-jsx": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.7", + "@babel/plugin-transform-typescript": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "dev": true, + "license": "MIT" + }, + "node_modules/@babel/runtime": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.25.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.4", + "@babel/parser": "^7.25.4", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.4", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.25.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.18.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.4", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/js": { + "version": "9.9.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.9.1.tgz", + "integrity": "sha512-xIDQRsfg5hNBqHz04H1R3scSVwmI+KUbqjsQKHKQ1DAUSaUjYPReZZmS/5PNiKu1fUvzDd6H7DEDKACSEhu+TQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.4", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.3.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.6", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/eslint": { + "version": "9.6.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint__js": { + "version": "8.42.3", + "resolved": "https://registry.npmjs.org/@types/eslint__js/-/eslint__js-8.42.3.tgz", + "integrity": "sha512-alfG737uhmPdnvkrLdZLcEKJ/B8s9Y4hrZ+YAdzUeoArBlSUERA2E87ROfOaS4jd/C45fzOoZzidLc1IPwLqOw==", + "dev": true, + "dependencies": { + "@types/eslint": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.12", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.5.0", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.2.0", + "@typescript-eslint/type-utils": "8.2.0", + "@typescript-eslint/utils": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.2.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "8.2.0", + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/typescript-estree": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "8.2.0", + "@typescript-eslint/utils": "8.2.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.2.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.6.3", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.2.0", + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/typescript-estree": "8.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.2.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/acorn": { + "version": "8.12.1", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.11", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.6.2", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.10.6", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2", + "core-js-compat": "^3.38.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.3", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001646", + "electron-to-chromium": "^1.5.4", + "node-releases": "^2.0.18", + "update-browserslist-db": "^1.1.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "dev": true, + "license": "MIT" + }, + "node_modules/callsites": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001653", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "2.4.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "1.9.3", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/core-js-compat": { + "version": "3.38.1", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.23.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/create-jest": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/create-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/create-jest/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/create-jest/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/create-jest/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/create-jest/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/create-jest/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cross-env": { + "version": "7.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.6", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.3", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.13", + "dev": true, + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/error-ex": { + "version": "1.3.2", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "9.9.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.9.1.tgz", + "integrity": "sha512-dHvhrbfr4xFQ9/dq+jcVneZMyRYLjggWjk6RVsIiHsP8Rz6yZ8LvZ//iU4TrZF+SXWG+JkNF2OyiZRvzgRDqMg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.11.0", + "@eslint/config-array": "^0.18.0", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "9.9.1", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.3.0", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.0.2", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.1.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-unused-imports": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.1.3.tgz", + "integrity": "sha512-lqrNZIZjFMUr7P06eoKtQLwyVRibvG7N+LtfKtObYGizAAGrcqLkc3tDx+iAik2z7q0j/XI3ihjupIqxhFabFA==", + "dev": true, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0", + "eslint": "^9.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.0.2", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "10.1.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.12.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.17.1", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "dev": true, + "license": "ISC" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.2", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "dev": true, + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/human-signals": { + "version": "2.1.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "dev": true, + "license": "ISC" + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "dev": true, + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.15.1", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.6.3", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.6.3", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "dev": true, + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.6.3", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/node-int64": { + "version": "0.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.18", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "dev": true, + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.3.3", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react-is": { + "version": "18.3.1", + "dev": true, + "license": "MIT" + }, + "node_modules/regenerate": { + "version": "1.4.2", + "dev": true, + "license": "MIT" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "dev": true, + "license": "MIT" + }, + "node_modules/regenerator-transform": { + "version": "0.15.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "dev": true, + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "dev": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "dev": true, + "license": "MIT" + }, + "node_modules/tmpl": { + "version": "1.0.5", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.2.0.tgz", + "integrity": "sha512-DmnqaPcML0xYwUzgNbM1XaKXpEb7BShYf2P1tkUmmcl8hyeG7Pj08Er7R9bNy6AufabywzJcOybQAtnD/c9DGw==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.2.0", + "@typescript-eslint/parser": "8.2.0", + "@typescript-eslint/utils": "8.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/undici-types": { + "version": "6.19.8", + "dev": true, + "license": "MIT" + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.0", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/wrappy": { + "version": "1.0.2", + "dev": true, + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "17.7.2", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json index f5cde85..d335971 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "build": "tsc", "format:tests": "prettier --write tests/**/*.ts", - "format:source": "prettier --write src/wrapper/**/*.ts", + "format:source": "prettier --write src/wrapper/**/*.ts && eslint --fix src/**/*.ts", "generate:help": "cross-env-shell docker run --rm -v $INIT_CWD:/local openapitools/openapi-generator-cli config-help -g typescript-fetch", "generate:run": "cross-env-shell docker run --rm -v $INIT_CWD:/local openapitools/openapi-generator-cli generate -i /local/openapi.json -g typescript-fetch --template-dir /local/templates -o /local/src/generated -c /local/openapi-config.yml", "generate": "npm run generate:run && npm run format:source && npm run format:tests", @@ -19,11 +19,16 @@ "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.4", "@babel/preset-typescript": "^7.24.7", + "@eslint/js": "^9.9.1", + "@types/eslint__js": "^8.42.3", "@types/jest": "^29.5.12", "@types/node": "22.5.0", "cross-env": "^7.0.3", + "eslint": "^9.9.1", + "eslint-plugin-unused-imports": "^4.1.3", "jest": "^29.7.0", "prettier": "3.3.3", - "typescript": "5.5.4" + "typescript": "^5.5.4", + "typescript-eslint": "^8.2.0" } } diff --git a/src/generated/apis/AppsApi.ts b/src/generated/apis/AppsApi.ts index c68fc03..7105e33 100644 --- a/src/generated/apis/AppsApi.ts +++ b/src/generated/apis/AppsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -27,7 +25,6 @@ import type { ContributorsDto, CreateAppDto, CreateClientDto, - ErrorDto, RolesDto, TransferToTeamDto, UpdateAppDto, @@ -40,52 +37,28 @@ import type { WorkflowsDto, } from '../models/index'; import { - AddLanguageDtoFromJSON, AddLanguageDtoToJSON, - AddRoleDtoFromJSON, AddRoleDtoToJSON, - AddWorkflowDtoFromJSON, AddWorkflowDtoToJSON, AppDtoFromJSON, - AppDtoToJSON, AppLanguagesDtoFromJSON, - AppLanguagesDtoToJSON, AppSettingsDtoFromJSON, - AppSettingsDtoToJSON, AssetScriptsDtoFromJSON, - AssetScriptsDtoToJSON, - AssignContributorDtoFromJSON, AssignContributorDtoToJSON, ClientsDtoFromJSON, - ClientsDtoToJSON, ContributorsDtoFromJSON, - ContributorsDtoToJSON, - CreateAppDtoFromJSON, CreateAppDtoToJSON, - CreateClientDtoFromJSON, CreateClientDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, RolesDtoFromJSON, - RolesDtoToJSON, - TransferToTeamDtoFromJSON, TransferToTeamDtoToJSON, - UpdateAppDtoFromJSON, UpdateAppDtoToJSON, - UpdateAppSettingsDtoFromJSON, UpdateAppSettingsDtoToJSON, - UpdateAssetScriptsDtoFromJSON, UpdateAssetScriptsDtoToJSON, - UpdateClientDtoFromJSON, UpdateClientDtoToJSON, - UpdateLanguageDtoFromJSON, UpdateLanguageDtoToJSON, - UpdateRoleDtoFromJSON, UpdateRoleDtoToJSON, - UpdateWorkflowDtoFromJSON, UpdateWorkflowDtoToJSON, WorkflowsDtoFromJSON, - WorkflowsDtoToJSON, } from '../models/index'; export interface AppAssetsPutAssetScriptsRequest { diff --git a/src/generated/apis/AssetsApi.ts b/src/generated/apis/AssetsApi.ts index bbe5408..b86a20c 100644 --- a/src/generated/apis/AssetsApi.ts +++ b/src/generated/apis/AssetsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -24,7 +22,6 @@ import type { BulkResultDto, BulkUpdateAssetsDto, CreateAssetFolderDto, - ErrorDto, ImageFormat, MoveAssetDto, MoveAssetFolderDto, @@ -34,40 +31,19 @@ import type { ResizeMode, } from '../models/index'; import { - AnnotateAssetDtoFromJSON, AnnotateAssetDtoToJSON, AssetDtoFromJSON, - AssetDtoToJSON, AssetFolderDtoFromJSON, - AssetFolderDtoToJSON, - AssetFolderScopeFromJSON, - AssetFolderScopeToJSON, AssetFoldersDtoFromJSON, - AssetFoldersDtoToJSON, AssetsDtoFromJSON, - AssetsDtoToJSON, BulkResultDtoFromJSON, - BulkResultDtoToJSON, - BulkUpdateAssetsDtoFromJSON, BulkUpdateAssetsDtoToJSON, - CreateAssetFolderDtoFromJSON, CreateAssetFolderDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, - ImageFormatFromJSON, - ImageFormatToJSON, - MoveAssetDtoFromJSON, MoveAssetDtoToJSON, - MoveAssetFolderDtoFromJSON, MoveAssetFolderDtoToJSON, - QueryDtoFromJSON, QueryDtoToJSON, - RenameAssetFolderDtoFromJSON, RenameAssetFolderDtoToJSON, - RenameTagDtoFromJSON, RenameTagDtoToJSON, - ResizeModeFromJSON, - ResizeModeToJSON, } from '../models/index'; export interface AssetContentGetAssetContentRequest { diff --git a/src/generated/apis/BackupsApi.ts b/src/generated/apis/BackupsApi.ts index 2f78796..fc96e6b 100644 --- a/src/generated/apis/BackupsApi.ts +++ b/src/generated/apis/BackupsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,18 +14,12 @@ import * as runtime from '../runtime'; import type { BackupJobsDto, - ErrorDto, RestoreJobDto, RestoreRequestDto, } from '../models/index'; import { BackupJobsDtoFromJSON, - BackupJobsDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, RestoreJobDtoFromJSON, - RestoreJobDtoToJSON, - RestoreRequestDtoFromJSON, RestoreRequestDtoToJSON, } from '../models/index'; diff --git a/src/generated/apis/ContentsApi.ts b/src/generated/apis/ContentsApi.ts index 710b412..32e9ae5 100644 --- a/src/generated/apis/ContentsApi.ts +++ b/src/generated/apis/ContentsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -21,28 +19,17 @@ import type { ChangeStatusDto, ContentDto, ContentsDto, - ErrorDto, ImportContentsDto, QueryDto, } from '../models/index'; import { - AllContentsByPostDtoFromJSON, AllContentsByPostDtoToJSON, BulkResultDtoFromJSON, - BulkResultDtoToJSON, - BulkUpdateContentsDtoFromJSON, BulkUpdateContentsDtoToJSON, - ChangeStatusDtoFromJSON, ChangeStatusDtoToJSON, ContentDtoFromJSON, - ContentDtoToJSON, ContentsDtoFromJSON, - ContentsDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, - ImportContentsDtoFromJSON, ImportContentsDtoToJSON, - QueryDtoFromJSON, QueryDtoToJSON, } from '../models/index'; diff --git a/src/generated/apis/DiagnosticsApi.ts b/src/generated/apis/DiagnosticsApi.ts index e51f15e..77b586f 100644 --- a/src/generated/apis/DiagnosticsApi.ts +++ b/src/generated/apis/DiagnosticsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -14,13 +12,10 @@ import * as runtime from '../runtime'; -import type { - ErrorDto, -} from '../models/index'; -import { - ErrorDtoFromJSON, - ErrorDtoToJSON, -} from '../models/index'; + + + + /** * DiagnosticsApi - interface diff --git a/src/generated/apis/EventConsumersApi.ts b/src/generated/apis/EventConsumersApi.ts index ff06339..5a4e8c4 100644 --- a/src/generated/apis/EventConsumersApi.ts +++ b/src/generated/apis/EventConsumersApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,17 +13,12 @@ import * as runtime from '../runtime'; import type { - ErrorDto, EventConsumerDto, EventConsumersDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, EventConsumerDtoFromJSON, - EventConsumerDtoToJSON, EventConsumersDtoFromJSON, - EventConsumersDtoToJSON, } from '../models/index'; export interface EventConsumersResetEventConsumerRequest { diff --git a/src/generated/apis/HistoryApi.ts b/src/generated/apis/HistoryApi.ts index 1c092c1..c0c2dc3 100644 --- a/src/generated/apis/HistoryApi.ts +++ b/src/generated/apis/HistoryApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,14 +13,10 @@ import * as runtime from '../runtime'; import type { - ErrorDto, HistoryEventDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, HistoryEventDtoFromJSON, - HistoryEventDtoToJSON, } from '../models/index'; export interface HistoryGetAppHistoryRequest { diff --git a/src/generated/apis/JobsApi.ts b/src/generated/apis/JobsApi.ts index 85968e2..e2a39cf 100644 --- a/src/generated/apis/JobsApi.ts +++ b/src/generated/apis/JobsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,14 +13,10 @@ import * as runtime from '../runtime'; import type { - ErrorDto, JobsDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, JobsDtoFromJSON, - JobsDtoToJSON, } from '../models/index'; export interface JobsContentGetJobContentRequest { diff --git a/src/generated/apis/LanguagesApi.ts b/src/generated/apis/LanguagesApi.ts index cd3ce73..64677ff 100644 --- a/src/generated/apis/LanguagesApi.ts +++ b/src/generated/apis/LanguagesApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,14 +13,10 @@ import * as runtime from '../runtime'; import type { - ErrorDto, LanguageDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, LanguageDtoFromJSON, - LanguageDtoToJSON, } from '../models/index'; /** diff --git a/src/generated/apis/NewsApi.ts b/src/generated/apis/NewsApi.ts index a2cf56d..9719304 100644 --- a/src/generated/apis/NewsApi.ts +++ b/src/generated/apis/NewsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,14 +13,10 @@ import * as runtime from '../runtime'; import type { - ErrorDto, FeaturesDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, FeaturesDtoFromJSON, - FeaturesDtoToJSON, } from '../models/index'; export interface NewsGetNewsRequest { diff --git a/src/generated/apis/PingApi.ts b/src/generated/apis/PingApi.ts index ca51153..b2ddea5 100644 --- a/src/generated/apis/PingApi.ts +++ b/src/generated/apis/PingApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -14,13 +12,10 @@ import * as runtime from '../runtime'; -import type { - ErrorDto, -} from '../models/index'; -import { - ErrorDtoFromJSON, - ErrorDtoToJSON, -} from '../models/index'; + + + + /** * PingApi - interface diff --git a/src/generated/apis/PlansApi.ts b/src/generated/apis/PlansApi.ts index a8a0a78..986ef47 100644 --- a/src/generated/apis/PlansApi.ts +++ b/src/generated/apis/PlansApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,13 @@ import * as runtime from '../runtime'; import type { ChangePlanDto, - ErrorDto, PlanChangedDto, PlansDto, } from '../models/index'; import { - ChangePlanDtoFromJSON, ChangePlanDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, PlanChangedDtoFromJSON, - PlanChangedDtoToJSON, PlansDtoFromJSON, - PlansDtoToJSON, } from '../models/index'; export interface AppPlansPutPlanRequest { diff --git a/src/generated/apis/RulesApi.ts b/src/generated/apis/RulesApi.ts index 006ee75..d01a23b 100644 --- a/src/generated/apis/RulesApi.ts +++ b/src/generated/apis/RulesApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import * as runtime from '../runtime'; import type { CreateRuleDto, - ErrorDto, RuleDto, RuleElementDto, RuleEventsDto, @@ -25,21 +22,12 @@ import type { UpdateRuleDto, } from '../models/index'; import { - CreateRuleDtoFromJSON, CreateRuleDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, RuleDtoFromJSON, - RuleDtoToJSON, RuleElementDtoFromJSON, - RuleElementDtoToJSON, RuleEventsDtoFromJSON, - RuleEventsDtoToJSON, RulesDtoFromJSON, - RulesDtoToJSON, SimulatedRuleEventsDtoFromJSON, - SimulatedRuleEventsDtoToJSON, - UpdateRuleDtoFromJSON, UpdateRuleDtoToJSON, } from '../models/index'; diff --git a/src/generated/apis/SchemasApi.ts b/src/generated/apis/SchemasApi.ts index 9aa71e3..5bfa608 100644 --- a/src/generated/apis/SchemasApi.ts +++ b/src/generated/apis/SchemasApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -20,7 +18,6 @@ import type { ConfigureFieldRulesDto, ConfigureUIFieldsDto, CreateSchemaDto, - ErrorDto, ReorderFieldsDto, SchemaDto, SchemaScriptsDto, @@ -30,31 +27,17 @@ import type { UpdateSchemaDto, } from '../models/index'; import { - AddFieldDtoFromJSON, AddFieldDtoToJSON, - ChangeCategoryDtoFromJSON, ChangeCategoryDtoToJSON, - ConfigureFieldRulesDtoFromJSON, ConfigureFieldRulesDtoToJSON, - ConfigureUIFieldsDtoFromJSON, ConfigureUIFieldsDtoToJSON, - CreateSchemaDtoFromJSON, CreateSchemaDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, - ReorderFieldsDtoFromJSON, ReorderFieldsDtoToJSON, SchemaDtoFromJSON, - SchemaDtoToJSON, - SchemaScriptsDtoFromJSON, SchemaScriptsDtoToJSON, SchemasDtoFromJSON, - SchemasDtoToJSON, - SynchronizeSchemaDtoFromJSON, SynchronizeSchemaDtoToJSON, - UpdateFieldDtoFromJSON, UpdateFieldDtoToJSON, - UpdateSchemaDtoFromJSON, UpdateSchemaDtoToJSON, } from '../models/index'; diff --git a/src/generated/apis/SearchApi.ts b/src/generated/apis/SearchApi.ts index cc45518..2b16d3c 100644 --- a/src/generated/apis/SearchApi.ts +++ b/src/generated/apis/SearchApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,14 +13,10 @@ import * as runtime from '../runtime'; import type { - ErrorDto, SearchResultDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, SearchResultDtoFromJSON, - SearchResultDtoToJSON, } from '../models/index'; export interface SearchGetSearchResultsRequest { diff --git a/src/generated/apis/StatisticsApi.ts b/src/generated/apis/StatisticsApi.ts index c47404a..bb6ffca 100644 --- a/src/generated/apis/StatisticsApi.ts +++ b/src/generated/apis/StatisticsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -17,21 +15,14 @@ import * as runtime from '../runtime'; import type { CallsUsageDtoDto, CurrentStorageDto, - ErrorDto, LogDownloadDto, StorageUsagePerDateDto, } from '../models/index'; import { CallsUsageDtoDtoFromJSON, - CallsUsageDtoDtoToJSON, CurrentStorageDtoFromJSON, - CurrentStorageDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, LogDownloadDtoFromJSON, - LogDownloadDtoToJSON, StorageUsagePerDateDtoFromJSON, - StorageUsagePerDateDtoToJSON, } from '../models/index'; export interface UsagesGetStorageSizesRequest { diff --git a/src/generated/apis/TeamsApi.ts b/src/generated/apis/TeamsApi.ts index 7aaad5c..56bfd23 100644 --- a/src/generated/apis/TeamsApi.ts +++ b/src/generated/apis/TeamsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -20,26 +18,16 @@ import type { AuthSchemeValueDto, ContributorsDto, CreateTeamDto, - ErrorDto, TeamDto, UpdateTeamDto, } from '../models/index'; import { - AssignContributorDtoFromJSON, AssignContributorDtoToJSON, AuthSchemeResponseDtoFromJSON, - AuthSchemeResponseDtoToJSON, - AuthSchemeValueDtoFromJSON, AuthSchemeValueDtoToJSON, ContributorsDtoFromJSON, - ContributorsDtoToJSON, - CreateTeamDtoFromJSON, CreateTeamDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, TeamDtoFromJSON, - TeamDtoToJSON, - UpdateTeamDtoFromJSON, UpdateTeamDtoToJSON, } from '../models/index'; diff --git a/src/generated/apis/TemplatesApi.ts b/src/generated/apis/TemplatesApi.ts index 65d64fd..1b31f83 100644 --- a/src/generated/apis/TemplatesApi.ts +++ b/src/generated/apis/TemplatesApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,17 +13,12 @@ import * as runtime from '../runtime'; import type { - ErrorDto, TemplateDetailsDto, TemplatesDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, TemplateDetailsDtoFromJSON, - TemplateDetailsDtoToJSON, TemplatesDtoFromJSON, - TemplatesDtoToJSON, } from '../models/index'; export interface TemplatesGetTemplateRequest { diff --git a/src/generated/apis/TranslationsApi.ts b/src/generated/apis/TranslationsApi.ts index eb0c582..c14423b 100644 --- a/src/generated/apis/TranslationsApi.ts +++ b/src/generated/apis/TranslationsApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,17 +13,12 @@ import * as runtime from '../runtime'; import type { - ErrorDto, TranslateDto, TranslationDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, - TranslateDtoFromJSON, TranslateDtoToJSON, TranslationDtoFromJSON, - TranslationDtoToJSON, } from '../models/index'; export interface TranslationsPostTranslationRequest { diff --git a/src/generated/apis/UserManagementApi.ts b/src/generated/apis/UserManagementApi.ts index db1e33a..fbefac4 100644 --- a/src/generated/apis/UserManagementApi.ts +++ b/src/generated/apis/UserManagementApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,22 +14,15 @@ import * as runtime from '../runtime'; import type { CreateUserDto, - ErrorDto, UpdateUserDto, UserDto, UsersDto, } from '../models/index'; import { - CreateUserDtoFromJSON, CreateUserDtoToJSON, - ErrorDtoFromJSON, - ErrorDtoToJSON, - UpdateUserDtoFromJSON, UpdateUserDtoToJSON, UserDtoFromJSON, - UserDtoToJSON, UsersDtoFromJSON, - UsersDtoToJSON, } from '../models/index'; export interface UserManagementDeleteUserRequest { diff --git a/src/generated/apis/UsersApi.ts b/src/generated/apis/UsersApi.ts index ec9da47..cd242b7 100644 --- a/src/generated/apis/UsersApi.ts +++ b/src/generated/apis/UsersApi.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -15,20 +13,14 @@ import * as runtime from '../runtime'; import type { - ErrorDto, ResourcesDto, UpdateProfileDto, UserDto, } from '../models/index'; import { - ErrorDtoFromJSON, - ErrorDtoToJSON, ResourcesDtoFromJSON, - ResourcesDtoToJSON, - UpdateProfileDtoFromJSON, UpdateProfileDtoToJSON, UserDtoFromJSON, - UserDtoToJSON, } from '../models/index'; export interface UsersGetUserRequest { diff --git a/src/generated/apis/index.ts b/src/generated/apis/index.ts index 3db5ee7..45ca93c 100644 --- a/src/generated/apis/index.ts +++ b/src/generated/apis/index.ts @@ -1,5 +1,5 @@ /* tslint:disable */ -/* eslint-disable */ + export * from './AppsApi'; export * from './AssetsApi'; export * from './BackupsApi'; diff --git a/src/generated/index.ts b/src/generated/index.ts index bebe8bb..3010230 100644 --- a/src/generated/index.ts +++ b/src/generated/index.ts @@ -1,5 +1,5 @@ /* tslint:disable */ -/* eslint-disable */ + export * from './runtime'; export * from './apis/index'; export * from './models/index'; diff --git a/src/generated/models/ActionTypeEnum.ts b/src/generated/models/ActionTypeEnum.ts index 1e75277..cce4dde 100644 --- a/src/generated/models/ActionTypeEnum.ts +++ b/src/generated/models/ActionTypeEnum.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function ActionTypeEnumFromJSON(json: any): ActionTypeEnum { return ActionTypeEnumFromJSONTyped(json, false); } -export function ActionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionTypeEnum { +export function ActionTypeEnumFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ActionTypeEnum { return json as ActionTypeEnum; } export function ActionTypeEnumToJSON(value?: ActionTypeEnum | null): any { return value as any; } - diff --git a/src/generated/models/AddFieldDto.ts b/src/generated/models/AddFieldDto.ts index ae11ef8..e7e7553 100644 --- a/src/generated/models/AddFieldDto.ts +++ b/src/generated/models/AddFieldDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { FieldPropertiesDtoFromJSON, - FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; @@ -51,6 +47,9 @@ export interface AddFieldDto { * Check if a given object implements the AddFieldDto interface. */ export function instanceOfAddFieldDto(value: any): value is AddFieldDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function AddFieldDtoFromJSON(json: any): AddFieldDto { return AddFieldDtoFromJSONTyped(json, false); } -export function AddFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddFieldDto { +export function AddFieldDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AddFieldDto { if (json == null) { return json; } @@ -72,7 +71,7 @@ export function AddFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function AddFieldDtoToJSON(value?: AddFieldDto | null, ignoreDiscriminator = false): any { +export function AddFieldDtoToJSON(value?: AddFieldDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AddLanguageDto.ts b/src/generated/models/AddLanguageDto.ts index 5aaaa65..15b9db2 100644 --- a/src/generated/models/AddLanguageDto.ts +++ b/src/generated/models/AddLanguageDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface AddLanguageDto { * Check if a given object implements the AddLanguageDto interface. */ export function instanceOfAddLanguageDto(value: any): value is AddLanguageDto { + if (!value) { + return false; + } if (!('language' in value) || value['language'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function AddLanguageDtoFromJSON(json: any): AddLanguageDto { return AddLanguageDtoFromJSONTyped(json, false); } -export function AddLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddLanguageDto { +export function AddLanguageDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AddLanguageDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function AddLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function AddLanguageDtoToJSON(value?: AddLanguageDto | null, ignoreDiscriminator = false): any { +export function AddLanguageDtoToJSON(value?: AddLanguageDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AddRoleDto.ts b/src/generated/models/AddRoleDto.ts index 3a82e52..1cdf548 100644 --- a/src/generated/models/AddRoleDto.ts +++ b/src/generated/models/AddRoleDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface AddRoleDto { * Check if a given object implements the AddRoleDto interface. */ export function instanceOfAddRoleDto(value: any): value is AddRoleDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function AddRoleDtoFromJSON(json: any): AddRoleDto { return AddRoleDtoFromJSONTyped(json, false); } -export function AddRoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddRoleDto { +export function AddRoleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AddRoleDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function AddRoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function AddRoleDtoToJSON(value?: AddRoleDto | null, ignoreDiscriminator = false): any { +export function AddRoleDtoToJSON(value?: AddRoleDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AddWorkflowDto.ts b/src/generated/models/AddWorkflowDto.ts index eaceaf7..a984b16 100644 --- a/src/generated/models/AddWorkflowDto.ts +++ b/src/generated/models/AddWorkflowDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface AddWorkflowDto { * Check if a given object implements the AddWorkflowDto interface. */ export function instanceOfAddWorkflowDto(value: any): value is AddWorkflowDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function AddWorkflowDtoFromJSON(json: any): AddWorkflowDto { return AddWorkflowDtoFromJSONTyped(json, false); } -export function AddWorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddWorkflowDto { +export function AddWorkflowDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AddWorkflowDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function AddWorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function AddWorkflowDtoToJSON(value?: AddWorkflowDto | null, ignoreDiscriminator = false): any { +export function AddWorkflowDtoToJSON(value?: AddWorkflowDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AlgoliaRuleActionDto.ts b/src/generated/models/AlgoliaRuleActionDto.ts index 3f1be70..b85b154 100644 --- a/src/generated/models/AlgoliaRuleActionDto.ts +++ b/src/generated/models/AlgoliaRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -63,6 +59,9 @@ export interface AlgoliaRuleActionDto extends RuleActionDto { * Check if a given object implements the AlgoliaRuleActionDto interface. */ export function instanceOfAlgoliaRuleActionDto(value: any): value is AlgoliaRuleActionDto { + if (!value) { + return false; + } if (!('appId' in value) || value['appId'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; @@ -73,12 +72,12 @@ export function AlgoliaRuleActionDtoFromJSON(json: any): AlgoliaRuleActionDto { return AlgoliaRuleActionDtoFromJSONTyped(json, false); } -export function AlgoliaRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlgoliaRuleActionDto { +export function AlgoliaRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AlgoliaRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'appId': json['appId'], 'apiKey': json['apiKey'], 'indexName': json['indexName'], @@ -87,7 +86,7 @@ export function AlgoliaRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function AlgoliaRuleActionDtoToJSON(value?: AlgoliaRuleActionDto | null, ignoreDiscriminator = false): any { +export function AlgoliaRuleActionDtoToJSON(value?: AlgoliaRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AllContentsByPostDto.ts b/src/generated/models/AllContentsByPostDto.ts index 010303a..0386775 100644 --- a/src/generated/models/AllContentsByPostDto.ts +++ b/src/generated/models/AllContentsByPostDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -68,6 +65,9 @@ export interface AllContentsByPostDto { * Check if a given object implements the AllContentsByPostDto interface. */ export function instanceOfAllContentsByPostDto(value: any): value is AllContentsByPostDto { + if (!value) { + return false; + } return true; } @@ -75,7 +75,7 @@ export function AllContentsByPostDtoFromJSON(json: any): AllContentsByPostDto { return AllContentsByPostDtoFromJSONTyped(json, false); } -export function AllContentsByPostDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllContentsByPostDto { +export function AllContentsByPostDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AllContentsByPostDto { if (json == null) { return json; } @@ -91,7 +91,7 @@ export function AllContentsByPostDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function AllContentsByPostDtoToJSON(value?: AllContentsByPostDto | null, ignoreDiscriminator = false): any { +export function AllContentsByPostDtoToJSON(value?: AllContentsByPostDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AnnotateAssetDto.ts b/src/generated/models/AnnotateAssetDto.ts index b68353f..fa3d638 100644 --- a/src/generated/models/AnnotateAssetDto.ts +++ b/src/generated/models/AnnotateAssetDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -56,6 +53,9 @@ export interface AnnotateAssetDto { * Check if a given object implements the AnnotateAssetDto interface. */ export function instanceOfAnnotateAssetDto(value: any): value is AnnotateAssetDto { + if (!value) { + return false; + } return true; } @@ -63,7 +63,7 @@ export function AnnotateAssetDtoFromJSON(json: any): AnnotateAssetDto { return AnnotateAssetDtoFromJSONTyped(json, false); } -export function AnnotateAssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnotateAssetDto { +export function AnnotateAssetDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AnnotateAssetDto { if (json == null) { return json; } @@ -77,7 +77,7 @@ export function AnnotateAssetDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function AnnotateAssetDtoToJSON(value?: AnnotateAssetDto | null, ignoreDiscriminator = false): any { +export function AnnotateAssetDtoToJSON(value?: AnnotateAssetDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AppDto.ts b/src/generated/models/AppDto.ts index 4414518..3fd92ff 100644 --- a/src/generated/models/AppDto.ts +++ b/src/generated/models/AppDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -118,6 +115,9 @@ export interface AppDto { * Check if a given object implements the AppDto interface. */ export function instanceOfAppDto(value: any): value is AppDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -135,7 +135,7 @@ export function AppDtoFromJSON(json: any): AppDto { return AppDtoFromJSONTyped(json, false); } -export function AppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppDto { +export function AppDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AppDto { if (json == null) { return json; } @@ -158,7 +158,7 @@ export function AppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ap }; } -export function AppDtoToJSON(value?: AppDto | null, ignoreDiscriminator = false): any { +export function AppDtoToJSON(value?: AppDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AppLanguageDto.ts b/src/generated/models/AppLanguageDto.ts index 2d87e33..51ab28f 100644 --- a/src/generated/models/AppLanguageDto.ts +++ b/src/generated/models/AppLanguageDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -69,6 +66,9 @@ export interface AppLanguageDto { * Check if a given object implements the AppLanguageDto interface. */ export function instanceOfAppLanguageDto(value: any): value is AppLanguageDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; if (!('englishName' in value) || value['englishName'] === undefined) return false; @@ -82,7 +82,7 @@ export function AppLanguageDtoFromJSON(json: any): AppLanguageDto { return AppLanguageDtoFromJSONTyped(json, false); } -export function AppLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppLanguageDto { +export function AppLanguageDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AppLanguageDto { if (json == null) { return json; } @@ -97,7 +97,7 @@ export function AppLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function AppLanguageDtoToJSON(value?: AppLanguageDto | null, ignoreDiscriminator = false): any { +export function AppLanguageDtoToJSON(value?: AppLanguageDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AppLanguagesDto.ts b/src/generated/models/AppLanguagesDto.ts index 400832b..b08b589 100644 --- a/src/generated/models/AppLanguagesDto.ts +++ b/src/generated/models/AppLanguagesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { AppLanguageDto } from './AppLanguageDto'; import { AppLanguageDtoFromJSON, - AppLanguageDtoFromJSONTyped, AppLanguageDtoToJSON, } from './AppLanguageDto'; @@ -51,6 +47,9 @@ export interface AppLanguagesDto { * Check if a given object implements the AppLanguagesDto interface. */ export function instanceOfAppLanguagesDto(value: any): value is AppLanguagesDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function AppLanguagesDtoFromJSON(json: any): AppLanguagesDto { return AppLanguagesDtoFromJSONTyped(json, false); } -export function AppLanguagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppLanguagesDto { +export function AppLanguagesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AppLanguagesDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function AppLanguagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function AppLanguagesDtoToJSON(value?: AppLanguagesDto | null, ignoreDiscriminator = false): any { +export function AppLanguagesDtoToJSON(value?: AppLanguagesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AppSettingsDto.ts b/src/generated/models/AppSettingsDto.ts index 4b238ed..57673ec 100644 --- a/src/generated/models/AppSettingsDto.ts +++ b/src/generated/models/AppSettingsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { PatternDto } from './PatternDto'; import { PatternDtoFromJSON, - PatternDtoFromJSONTyped, PatternDtoToJSON, } from './PatternDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { EditorDto } from './EditorDto'; import { EditorDtoFromJSON, - EditorDtoFromJSONTyped, EditorDtoToJSON, } from './EditorDto'; @@ -81,6 +76,9 @@ export interface AppSettingsDto { * Check if a given object implements the AppSettingsDto interface. */ export function instanceOfAppSettingsDto(value: any): value is AppSettingsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('patterns' in value) || value['patterns'] === undefined) return false; if (!('editors' in value) || value['editors'] === undefined) return false; @@ -94,7 +92,7 @@ export function AppSettingsDtoFromJSON(json: any): AppSettingsDto { return AppSettingsDtoFromJSONTyped(json, false); } -export function AppSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppSettingsDto { +export function AppSettingsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AppSettingsDto { if (json == null) { return json; } @@ -109,7 +107,7 @@ export function AppSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function AppSettingsDtoToJSON(value?: AppSettingsDto | null, ignoreDiscriminator = false): any { +export function AppSettingsDtoToJSON(value?: AppSettingsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ArrayCalculatedDefaultValue.ts b/src/generated/models/ArrayCalculatedDefaultValue.ts index 7d4e932..6ab712a 100644 --- a/src/generated/models/ArrayCalculatedDefaultValue.ts +++ b/src/generated/models/ArrayCalculatedDefaultValue.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -39,11 +37,10 @@ export function ArrayCalculatedDefaultValueFromJSON(json: any): ArrayCalculatedD return ArrayCalculatedDefaultValueFromJSONTyped(json, false); } -export function ArrayCalculatedDefaultValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrayCalculatedDefaultValue { +export function ArrayCalculatedDefaultValueFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ArrayCalculatedDefaultValue { return json as ArrayCalculatedDefaultValue; } export function ArrayCalculatedDefaultValueToJSON(value?: ArrayCalculatedDefaultValue | null): any { return value as any; } - diff --git a/src/generated/models/ArrayFieldPropertiesDto.ts b/src/generated/models/ArrayFieldPropertiesDto.ts index 07741fe..6abe06d 100644 --- a/src/generated/models/ArrayFieldPropertiesDto.ts +++ b/src/generated/models/ArrayFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { ArrayCalculatedDefaultValue } from './ArrayCalculatedDefaultValue'; import { ArrayCalculatedDefaultValueFromJSON, - ArrayCalculatedDefaultValueFromJSONTyped, ArrayCalculatedDefaultValueToJSON, } from './ArrayCalculatedDefaultValue'; @@ -65,6 +60,9 @@ export interface ArrayFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the ArrayFieldPropertiesDto interface. */ export function instanceOfArrayFieldPropertiesDto(value: any): value is ArrayFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -72,12 +70,12 @@ export function ArrayFieldPropertiesDtoFromJSON(json: any): ArrayFieldProperties return ArrayFieldPropertiesDtoFromJSONTyped(json, false); } -export function ArrayFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrayFieldPropertiesDto { +export function ArrayFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ArrayFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'minItems': json['minItems'] == null ? undefined : json['minItems'], 'maxItems': json['maxItems'] == null ? undefined : json['maxItems'], 'calculatedDefaultValue': json['calculatedDefaultValue'] == null ? undefined : ArrayCalculatedDefaultValueFromJSON(json['calculatedDefaultValue']), @@ -85,7 +83,7 @@ export function ArrayFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscrimina }; } -export function ArrayFieldPropertiesDtoToJSON(value?: ArrayFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function ArrayFieldPropertiesDtoToJSON(value?: ArrayFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetChangedRuleTriggerDto.ts b/src/generated/models/AssetChangedRuleTriggerDto.ts index b8f6569..25ec241 100644 --- a/src/generated/models/AssetChangedRuleTriggerDto.ts +++ b/src/generated/models/AssetChangedRuleTriggerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { - RuleTriggerDtoFromJSON, RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -39,6 +35,9 @@ export interface AssetChangedRuleTriggerDto extends RuleTriggerDto { * Check if a given object implements the AssetChangedRuleTriggerDto interface. */ export function instanceOfAssetChangedRuleTriggerDto(value: any): value is AssetChangedRuleTriggerDto { + if (!value) { + return false; + } return true; } @@ -46,17 +45,17 @@ export function AssetChangedRuleTriggerDtoFromJSON(json: any): AssetChangedRuleT return AssetChangedRuleTriggerDtoFromJSONTyped(json, false); } -export function AssetChangedRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetChangedRuleTriggerDto { +export function AssetChangedRuleTriggerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetChangedRuleTriggerDto { if (json == null) { return json; } return { - ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleTriggerDtoFromJSONTyped(json, _ignoreDiscriminator), 'condition': json['condition'] == null ? undefined : json['condition'], }; } -export function AssetChangedRuleTriggerDtoToJSON(value?: AssetChangedRuleTriggerDto | null, ignoreDiscriminator = false): any { +export function AssetChangedRuleTriggerDtoToJSON(value?: AssetChangedRuleTriggerDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetDto.ts b/src/generated/models/AssetDto.ts index 2dc1a06..1449e2e 100644 --- a/src/generated/models/AssetDto.ts +++ b/src/generated/models/AssetDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { AssetMeta } from './AssetMeta'; import { AssetMetaFromJSON, - AssetMetaFromJSONTyped, AssetMetaToJSON, } from './AssetMeta'; import type { AssetType } from './AssetType'; import { AssetTypeFromJSON, - AssetTypeFromJSONTyped, AssetTypeToJSON, } from './AssetType'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -200,6 +195,9 @@ export interface AssetDto { * Check if a given object implements the AssetDto interface. */ export function instanceOfAssetDto(value: any): value is AssetDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('parentId' in value) || value['parentId'] === undefined) return false; @@ -226,7 +224,7 @@ export function AssetDtoFromJSON(json: any): AssetDto { return AssetDtoFromJSONTyped(json, false); } -export function AssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetDto { +export function AssetDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetDto { if (json == null) { return json; } @@ -260,7 +258,7 @@ export function AssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function AssetDtoToJSON(value?: AssetDto | null, ignoreDiscriminator = false): any { +export function AssetDtoToJSON(value?: AssetDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetFolderDto.ts b/src/generated/models/AssetFolderDto.ts index 40f1209..138ee57 100644 --- a/src/generated/models/AssetFolderDto.ts +++ b/src/generated/models/AssetFolderDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -63,6 +60,9 @@ export interface AssetFolderDto { * Check if a given object implements the AssetFolderDto interface. */ export function instanceOfAssetFolderDto(value: any): value is AssetFolderDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('parentId' in value) || value['parentId'] === undefined) return false; @@ -75,7 +75,7 @@ export function AssetFolderDtoFromJSON(json: any): AssetFolderDto { return AssetFolderDtoFromJSONTyped(json, false); } -export function AssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFolderDto { +export function AssetFolderDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetFolderDto { if (json == null) { return json; } @@ -89,7 +89,7 @@ export function AssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function AssetFolderDtoToJSON(value?: AssetFolderDto | null, ignoreDiscriminator = false): any { +export function AssetFolderDtoToJSON(value?: AssetFolderDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetFolderScope.ts b/src/generated/models/AssetFolderScope.ts index 5c0f910..6e0efad 100644 --- a/src/generated/models/AssetFolderScope.ts +++ b/src/generated/models/AssetFolderScope.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function AssetFolderScopeFromJSON(json: any): AssetFolderScope { return AssetFolderScopeFromJSONTyped(json, false); } -export function AssetFolderScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFolderScope { +export function AssetFolderScopeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetFolderScope { return json as AssetFolderScope; } export function AssetFolderScopeToJSON(value?: AssetFolderScope | null): any { return value as any; } - diff --git a/src/generated/models/AssetFoldersDto.ts b/src/generated/models/AssetFoldersDto.ts index e320d0b..0ea3675 100644 --- a/src/generated/models/AssetFoldersDto.ts +++ b/src/generated/models/AssetFoldersDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { AssetFolderDto } from './AssetFolderDto'; import { AssetFolderDtoFromJSON, - AssetFolderDtoFromJSONTyped, AssetFolderDtoToJSON, } from './AssetFolderDto'; @@ -63,6 +59,9 @@ export interface AssetFoldersDto { * Check if a given object implements the AssetFoldersDto interface. */ export function instanceOfAssetFoldersDto(value: any): value is AssetFoldersDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -74,7 +73,7 @@ export function AssetFoldersDtoFromJSON(json: any): AssetFoldersDto { return AssetFoldersDtoFromJSONTyped(json, false); } -export function AssetFoldersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFoldersDto { +export function AssetFoldersDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetFoldersDto { if (json == null) { return json; } @@ -87,7 +86,7 @@ export function AssetFoldersDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function AssetFoldersDtoToJSON(value?: AssetFoldersDto | null, ignoreDiscriminator = false): any { +export function AssetFoldersDtoToJSON(value?: AssetFoldersDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetMeta.ts b/src/generated/models/AssetMeta.ts index f407c06..6dab58d 100644 --- a/src/generated/models/AssetMeta.ts +++ b/src/generated/models/AssetMeta.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface AssetMeta { * Check if a given object implements the AssetMeta interface. */ export function instanceOfAssetMeta(value: any): value is AssetMeta { + if (!value) { + return false; + } if (!('isDuplicate' in value) || value['isDuplicate'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function AssetMetaFromJSON(json: any): AssetMeta { return AssetMetaFromJSONTyped(json, false); } -export function AssetMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetMeta { +export function AssetMetaFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetMeta { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function AssetMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function AssetMetaToJSON(value?: AssetMeta | null, ignoreDiscriminator = false): any { +export function AssetMetaToJSON(value?: AssetMeta | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetPreviewMode.ts b/src/generated/models/AssetPreviewMode.ts index 75052f9..f11b8ba 100644 --- a/src/generated/models/AssetPreviewMode.ts +++ b/src/generated/models/AssetPreviewMode.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function AssetPreviewModeFromJSON(json: any): AssetPreviewMode { return AssetPreviewModeFromJSONTyped(json, false); } -export function AssetPreviewModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetPreviewMode { +export function AssetPreviewModeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetPreviewMode { return json as AssetPreviewMode; } export function AssetPreviewModeToJSON(value?: AssetPreviewMode | null): any { return value as any; } - diff --git a/src/generated/models/AssetScriptsDto.ts b/src/generated/models/AssetScriptsDto.ts index 32b86d2..90d1861 100644 --- a/src/generated/models/AssetScriptsDto.ts +++ b/src/generated/models/AssetScriptsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -87,6 +84,9 @@ export interface AssetScriptsDto { * Check if a given object implements the AssetScriptsDto interface. */ export function instanceOfAssetScriptsDto(value: any): value is AssetScriptsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; @@ -96,7 +96,7 @@ export function AssetScriptsDtoFromJSON(json: any): AssetScriptsDto { return AssetScriptsDtoFromJSONTyped(json, false); } -export function AssetScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetScriptsDto { +export function AssetScriptsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetScriptsDto { if (json == null) { return json; } @@ -114,7 +114,7 @@ export function AssetScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function AssetScriptsDtoToJSON(value?: AssetScriptsDto | null, ignoreDiscriminator = false): any { +export function AssetScriptsDtoToJSON(value?: AssetScriptsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetType.ts b/src/generated/models/AssetType.ts index 329a886..5c4afe5 100644 --- a/src/generated/models/AssetType.ts +++ b/src/generated/models/AssetType.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -41,11 +39,10 @@ export function AssetTypeFromJSON(json: any): AssetType { return AssetTypeFromJSONTyped(json, false); } -export function AssetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetType { +export function AssetTypeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetType { return json as AssetType; } export function AssetTypeToJSON(value?: AssetType | null): any { return value as any; } - diff --git a/src/generated/models/AssetsDto.ts b/src/generated/models/AssetsDto.ts index 152732d..9430011 100644 --- a/src/generated/models/AssetsDto.ts +++ b/src/generated/models/AssetsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { AssetDto } from './AssetDto'; import { AssetDtoFromJSON, - AssetDtoFromJSONTyped, AssetDtoToJSON, } from './AssetDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -57,6 +53,9 @@ export interface AssetsDto { * Check if a given object implements the AssetsDto interface. */ export function instanceOfAssetsDto(value: any): value is AssetsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -67,7 +66,7 @@ export function AssetsDtoFromJSON(json: any): AssetsDto { return AssetsDtoFromJSONTyped(json, false); } -export function AssetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetsDto { +export function AssetsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetsDto { if (json == null) { return json; } @@ -79,7 +78,7 @@ export function AssetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function AssetsDtoToJSON(value?: AssetsDto | null, ignoreDiscriminator = false): any { +export function AssetsDtoToJSON(value?: AssetsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssetsFieldPropertiesDto.ts b/src/generated/models/AssetsFieldPropertiesDto.ts index 4964cf1..69c1002 100644 --- a/src/generated/models/AssetsFieldPropertiesDto.ts +++ b/src/generated/models/AssetsFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,23 +10,19 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { AssetType } from './AssetType'; import { AssetTypeFromJSON, - AssetTypeFromJSONTyped, AssetTypeToJSON, } from './AssetType'; import type { AssetPreviewMode } from './AssetPreviewMode'; import { AssetPreviewModeFromJSON, - AssetPreviewModeFromJSONTyped, AssetPreviewModeToJSON, } from './AssetPreviewMode'; @@ -175,6 +169,9 @@ export interface AssetsFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the AssetsFieldPropertiesDto interface. */ export function instanceOfAssetsFieldPropertiesDto(value: any): value is AssetsFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -182,12 +179,12 @@ export function AssetsFieldPropertiesDtoFromJSON(json: any): AssetsFieldProperti return AssetsFieldPropertiesDtoFromJSONTyped(json, false); } -export function AssetsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetsFieldPropertiesDto { +export function AssetsFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetsFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'previewMode': json['previewMode'] == null ? undefined : AssetPreviewModeFromJSON(json['previewMode']), 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], @@ -212,7 +209,7 @@ export function AssetsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscrimin }; } -export function AssetsFieldPropertiesDtoToJSON(value?: AssetsFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function AssetsFieldPropertiesDtoToJSON(value?: AssetsFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AssignContributorDto.ts b/src/generated/models/AssignContributorDto.ts index 698ff1e..f7007f1 100644 --- a/src/generated/models/AssignContributorDto.ts +++ b/src/generated/models/AssignContributorDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface AssignContributorDto { * Check if a given object implements the AssignContributorDto interface. */ export function instanceOfAssignContributorDto(value: any): value is AssignContributorDto { + if (!value) { + return false; + } if (!('contributorId' in value) || value['contributorId'] === undefined) return false; return true; } @@ -52,7 +52,7 @@ export function AssignContributorDtoFromJSON(json: any): AssignContributorDto { return AssignContributorDtoFromJSONTyped(json, false); } -export function AssignContributorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignContributorDto { +export function AssignContributorDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssignContributorDto { if (json == null) { return json; } @@ -64,7 +64,7 @@ export function AssignContributorDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function AssignContributorDtoToJSON(value?: AssignContributorDto | null, ignoreDiscriminator = false): any { +export function AssignContributorDtoToJSON(value?: AssignContributorDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AuthSchemeDto.ts b/src/generated/models/AuthSchemeDto.ts index 00773ac..a8d969a 100644 --- a/src/generated/models/AuthSchemeDto.ts +++ b/src/generated/models/AuthSchemeDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -62,6 +59,9 @@ export interface AuthSchemeDto { * Check if a given object implements the AuthSchemeDto interface. */ export function instanceOfAuthSchemeDto(value: any): value is AuthSchemeDto { + if (!value) { + return false; + } if (!('domain' in value) || value['domain'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('clientId' in value) || value['clientId'] === undefined) return false; @@ -74,7 +74,7 @@ export function AuthSchemeDtoFromJSON(json: any): AuthSchemeDto { return AuthSchemeDtoFromJSONTyped(json, false); } -export function AuthSchemeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSchemeDto { +export function AuthSchemeDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AuthSchemeDto { if (json == null) { return json; } @@ -89,7 +89,7 @@ export function AuthSchemeDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function AuthSchemeDtoToJSON(value?: AuthSchemeDto | null, ignoreDiscriminator = false): any { +export function AuthSchemeDtoToJSON(value?: AuthSchemeDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AuthSchemeResponseDto.ts b/src/generated/models/AuthSchemeResponseDto.ts index 230cedb..3c8564b 100644 --- a/src/generated/models/AuthSchemeResponseDto.ts +++ b/src/generated/models/AuthSchemeResponseDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { AuthSchemeDto } from './AuthSchemeDto'; import { AuthSchemeDtoFromJSON, - AuthSchemeDtoFromJSONTyped, AuthSchemeDtoToJSON, } from './AuthSchemeDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -51,6 +47,9 @@ export interface AuthSchemeResponseDto { * Check if a given object implements the AuthSchemeResponseDto interface. */ export function instanceOfAuthSchemeResponseDto(value: any): value is AuthSchemeResponseDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -59,7 +58,7 @@ export function AuthSchemeResponseDtoFromJSON(json: any): AuthSchemeResponseDto return AuthSchemeResponseDtoFromJSONTyped(json, false); } -export function AuthSchemeResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSchemeResponseDto { +export function AuthSchemeResponseDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AuthSchemeResponseDto { if (json == null) { return json; } @@ -70,7 +69,7 @@ export function AuthSchemeResponseDtoFromJSONTyped(json: any, ignoreDiscriminato }; } -export function AuthSchemeResponseDtoToJSON(value?: AuthSchemeResponseDto | null, ignoreDiscriminator = false): any { +export function AuthSchemeResponseDtoToJSON(value?: AuthSchemeResponseDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AuthSchemeValueDto.ts b/src/generated/models/AuthSchemeValueDto.ts index 18e018f..601ef9d 100644 --- a/src/generated/models/AuthSchemeValueDto.ts +++ b/src/generated/models/AuthSchemeValueDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { AuthSchemeDto } from './AuthSchemeDto'; import { AuthSchemeDtoFromJSON, - AuthSchemeDtoFromJSONTyped, AuthSchemeDtoToJSON, } from './AuthSchemeDto'; @@ -39,6 +35,9 @@ export interface AuthSchemeValueDto { * Check if a given object implements the AuthSchemeValueDto interface. */ export function instanceOfAuthSchemeValueDto(value: any): value is AuthSchemeValueDto { + if (!value) { + return false; + } return true; } @@ -46,7 +45,7 @@ export function AuthSchemeValueDtoFromJSON(json: any): AuthSchemeValueDto { return AuthSchemeValueDtoFromJSONTyped(json, false); } -export function AuthSchemeValueDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthSchemeValueDto { +export function AuthSchemeValueDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AuthSchemeValueDto { if (json == null) { return json; } @@ -56,7 +55,7 @@ export function AuthSchemeValueDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function AuthSchemeValueDtoToJSON(value?: AuthSchemeValueDto | null, ignoreDiscriminator = false): any { +export function AuthSchemeValueDtoToJSON(value?: AuthSchemeValueDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/AzureQueueRuleActionDto.ts b/src/generated/models/AzureQueueRuleActionDto.ts index cb3c341..0958c32 100644 --- a/src/generated/models/AzureQueueRuleActionDto.ts +++ b/src/generated/models/AzureQueueRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -51,6 +47,9 @@ export interface AzureQueueRuleActionDto extends RuleActionDto { * Check if a given object implements the AzureQueueRuleActionDto interface. */ export function instanceOfAzureQueueRuleActionDto(value: any): value is AzureQueueRuleActionDto { + if (!value) { + return false; + } if (!('connectionString' in value) || value['connectionString'] === undefined) return false; if (!('queue' in value) || value['queue'] === undefined) return false; return true; @@ -60,19 +59,19 @@ export function AzureQueueRuleActionDtoFromJSON(json: any): AzureQueueRuleAction return AzureQueueRuleActionDtoFromJSONTyped(json, false); } -export function AzureQueueRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AzureQueueRuleActionDto { +export function AzureQueueRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AzureQueueRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'connectionString': json['connectionString'], 'queue': json['queue'], 'payload': json['payload'] == null ? undefined : json['payload'], }; } -export function AzureQueueRuleActionDtoToJSON(value?: AzureQueueRuleActionDto | null, ignoreDiscriminator = false): any { +export function AzureQueueRuleActionDtoToJSON(value?: AzureQueueRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BackupJobDto.ts b/src/generated/models/BackupJobDto.ts index 7f6ece4..dabb1a9 100644 --- a/src/generated/models/BackupJobDto.ts +++ b/src/generated/models/BackupJobDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { JobStatus } from './JobStatus'; import { JobStatusFromJSON, - JobStatusFromJSONTyped, JobStatusToJSON, } from './JobStatus'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -83,6 +79,9 @@ export interface BackupJobDto { * Check if a given object implements the BackupJobDto interface. */ export function instanceOfBackupJobDto(value: any): value is BackupJobDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; @@ -96,7 +95,7 @@ export function BackupJobDtoFromJSON(json: any): BackupJobDto { return BackupJobDtoFromJSONTyped(json, false); } -export function BackupJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupJobDto { +export function BackupJobDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BackupJobDto { if (json == null) { return json; } @@ -112,7 +111,7 @@ export function BackupJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function BackupJobDtoToJSON(value?: BackupJobDto | null, ignoreDiscriminator = false): any { +export function BackupJobDtoToJSON(value?: BackupJobDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BackupJobsDto.ts b/src/generated/models/BackupJobsDto.ts index c65b4c9..ec67eff 100644 --- a/src/generated/models/BackupJobsDto.ts +++ b/src/generated/models/BackupJobsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { BackupJobDto } from './BackupJobDto'; import { BackupJobDtoFromJSON, - BackupJobDtoFromJSONTyped, BackupJobDtoToJSON, } from './BackupJobDto'; @@ -51,6 +47,9 @@ export interface BackupJobsDto { * Check if a given object implements the BackupJobsDto interface. */ export function instanceOfBackupJobsDto(value: any): value is BackupJobsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function BackupJobsDtoFromJSON(json: any): BackupJobsDto { return BackupJobsDtoFromJSONTyped(json, false); } -export function BackupJobsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupJobsDto { +export function BackupJobsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BackupJobsDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function BackupJobsDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function BackupJobsDtoToJSON(value?: BackupJobsDto | null, ignoreDiscriminator = false): any { +export function BackupJobsDtoToJSON(value?: BackupJobsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BooleanFieldEditor.ts b/src/generated/models/BooleanFieldEditor.ts index 2e25362..44ac92b 100644 --- a/src/generated/models/BooleanFieldEditor.ts +++ b/src/generated/models/BooleanFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -39,11 +37,10 @@ export function BooleanFieldEditorFromJSON(json: any): BooleanFieldEditor { return BooleanFieldEditorFromJSONTyped(json, false); } -export function BooleanFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): BooleanFieldEditor { +export function BooleanFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BooleanFieldEditor { return json as BooleanFieldEditor; } export function BooleanFieldEditorToJSON(value?: BooleanFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/BooleanFieldPropertiesDto.ts b/src/generated/models/BooleanFieldPropertiesDto.ts index 8feb58c..09313d6 100644 --- a/src/generated/models/BooleanFieldPropertiesDto.ts +++ b/src/generated/models/BooleanFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { BooleanFieldEditor } from './BooleanFieldEditor'; import { BooleanFieldEditorFromJSON, - BooleanFieldEditorFromJSONTyped, BooleanFieldEditorToJSON, } from './BooleanFieldEditor'; @@ -65,6 +60,9 @@ export interface BooleanFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the BooleanFieldPropertiesDto interface. */ export function instanceOfBooleanFieldPropertiesDto(value: any): value is BooleanFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -72,12 +70,12 @@ export function BooleanFieldPropertiesDtoFromJSON(json: any): BooleanFieldProper return BooleanFieldPropertiesDtoFromJSONTyped(json, false); } -export function BooleanFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BooleanFieldPropertiesDto { +export function BooleanFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BooleanFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], 'inlineEditable': json['inlineEditable'] == null ? undefined : json['inlineEditable'], @@ -85,7 +83,7 @@ export function BooleanFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscrimi }; } -export function BooleanFieldPropertiesDtoToJSON(value?: BooleanFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function BooleanFieldPropertiesDtoToJSON(value?: BooleanFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BulkResultDto.ts b/src/generated/models/BulkResultDto.ts index 8e6785f..7d5817b 100644 --- a/src/generated/models/BulkResultDto.ts +++ b/src/generated/models/BulkResultDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { ErrorDto } from './ErrorDto'; import { ErrorDtoFromJSON, - ErrorDtoFromJSONTyped, ErrorDtoToJSON, } from './ErrorDto'; @@ -58,6 +54,9 @@ export interface BulkResultDto { * Check if a given object implements the BulkResultDto interface. */ export function instanceOfBulkResultDto(value: any): value is BulkResultDto { + if (!value) { + return false; + } if (!('jobIndex' in value) || value['jobIndex'] === undefined) return false; return true; } @@ -66,7 +65,7 @@ export function BulkResultDtoFromJSON(json: any): BulkResultDto { return BulkResultDtoFromJSONTyped(json, false); } -export function BulkResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResultDto { +export function BulkResultDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BulkResultDto { if (json == null) { return json; } @@ -79,7 +78,7 @@ export function BulkResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function BulkResultDtoToJSON(value?: BulkResultDto | null, ignoreDiscriminator = false): any { +export function BulkResultDtoToJSON(value?: BulkResultDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BulkUpdateAssetType.ts b/src/generated/models/BulkUpdateAssetType.ts index 3b8ced9..aa44a63 100644 --- a/src/generated/models/BulkUpdateAssetType.ts +++ b/src/generated/models/BulkUpdateAssetType.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function BulkUpdateAssetTypeFromJSON(json: any): BulkUpdateAssetType { return BulkUpdateAssetTypeFromJSONTyped(json, false); } -export function BulkUpdateAssetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateAssetType { +export function BulkUpdateAssetTypeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BulkUpdateAssetType { return json as BulkUpdateAssetType; } export function BulkUpdateAssetTypeToJSON(value?: BulkUpdateAssetType | null): any { return value as any; } - diff --git a/src/generated/models/BulkUpdateAssetsDto.ts b/src/generated/models/BulkUpdateAssetsDto.ts index 4ebcbc8..be920e8 100644 --- a/src/generated/models/BulkUpdateAssetsDto.ts +++ b/src/generated/models/BulkUpdateAssetsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { BulkUpdateAssetsJobDto } from './BulkUpdateAssetsJobDto'; import { BulkUpdateAssetsJobDtoFromJSON, - BulkUpdateAssetsJobDtoFromJSONTyped, BulkUpdateAssetsJobDtoToJSON, } from './BulkUpdateAssetsJobDto'; @@ -57,6 +53,9 @@ export interface BulkUpdateAssetsDto { * Check if a given object implements the BulkUpdateAssetsDto interface. */ export function instanceOfBulkUpdateAssetsDto(value: any): value is BulkUpdateAssetsDto { + if (!value) { + return false; + } return true; } @@ -64,7 +63,7 @@ export function BulkUpdateAssetsDtoFromJSON(json: any): BulkUpdateAssetsDto { return BulkUpdateAssetsDtoFromJSONTyped(json, false); } -export function BulkUpdateAssetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateAssetsDto { +export function BulkUpdateAssetsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BulkUpdateAssetsDto { if (json == null) { return json; } @@ -77,7 +76,7 @@ export function BulkUpdateAssetsDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function BulkUpdateAssetsDtoToJSON(value?: BulkUpdateAssetsDto | null, ignoreDiscriminator = false): any { +export function BulkUpdateAssetsDtoToJSON(value?: BulkUpdateAssetsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BulkUpdateAssetsJobDto.ts b/src/generated/models/BulkUpdateAssetsJobDto.ts index 2f88e9b..a11f371 100644 --- a/src/generated/models/BulkUpdateAssetsJobDto.ts +++ b/src/generated/models/BulkUpdateAssetsJobDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { BulkUpdateAssetType } from './BulkUpdateAssetType'; import { BulkUpdateAssetTypeFromJSON, - BulkUpdateAssetTypeFromJSONTyped, BulkUpdateAssetTypeToJSON, } from './BulkUpdateAssetType'; @@ -95,6 +91,9 @@ export interface BulkUpdateAssetsJobDto { * Check if a given object implements the BulkUpdateAssetsJobDto interface. */ export function instanceOfBulkUpdateAssetsJobDto(value: any): value is BulkUpdateAssetsJobDto { + if (!value) { + return false; + } return true; } @@ -102,7 +101,7 @@ export function BulkUpdateAssetsJobDtoFromJSON(json: any): BulkUpdateAssetsJobDt return BulkUpdateAssetsJobDtoFromJSONTyped(json, false); } -export function BulkUpdateAssetsJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateAssetsJobDto { +export function BulkUpdateAssetsJobDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BulkUpdateAssetsJobDto { if (json == null) { return json; } @@ -121,7 +120,7 @@ export function BulkUpdateAssetsJobDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function BulkUpdateAssetsJobDtoToJSON(value?: BulkUpdateAssetsJobDto | null, ignoreDiscriminator = false): any { +export function BulkUpdateAssetsJobDtoToJSON(value?: BulkUpdateAssetsJobDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BulkUpdateContentType.ts b/src/generated/models/BulkUpdateContentType.ts index 61bef8c..5baae7f 100644 --- a/src/generated/models/BulkUpdateContentType.ts +++ b/src/generated/models/BulkUpdateContentType.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -45,11 +43,10 @@ export function BulkUpdateContentTypeFromJSON(json: any): BulkUpdateContentType return BulkUpdateContentTypeFromJSONTyped(json, false); } -export function BulkUpdateContentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateContentType { +export function BulkUpdateContentTypeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BulkUpdateContentType { return json as BulkUpdateContentType; } export function BulkUpdateContentTypeToJSON(value?: BulkUpdateContentType | null): any { return value as any; } - diff --git a/src/generated/models/BulkUpdateContentsDto.ts b/src/generated/models/BulkUpdateContentsDto.ts index 4340533..8e528a4 100644 --- a/src/generated/models/BulkUpdateContentsDto.ts +++ b/src/generated/models/BulkUpdateContentsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { BulkUpdateContentsJobDto } from './BulkUpdateContentsJobDto'; import { BulkUpdateContentsJobDtoFromJSON, - BulkUpdateContentsJobDtoFromJSONTyped, BulkUpdateContentsJobDtoToJSON, } from './BulkUpdateContentsJobDto'; @@ -83,6 +79,9 @@ export interface BulkUpdateContentsDto { * Check if a given object implements the BulkUpdateContentsDto interface. */ export function instanceOfBulkUpdateContentsDto(value: any): value is BulkUpdateContentsDto { + if (!value) { + return false; + } if (!('jobs' in value) || value['jobs'] === undefined) return false; return true; } @@ -91,7 +90,7 @@ export function BulkUpdateContentsDtoFromJSON(json: any): BulkUpdateContentsDto return BulkUpdateContentsDtoFromJSONTyped(json, false); } -export function BulkUpdateContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateContentsDto { +export function BulkUpdateContentsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BulkUpdateContentsDto { if (json == null) { return json; } @@ -108,7 +107,7 @@ export function BulkUpdateContentsDtoFromJSONTyped(json: any, ignoreDiscriminato }; } -export function BulkUpdateContentsDtoToJSON(value?: BulkUpdateContentsDto | null, ignoreDiscriminator = false): any { +export function BulkUpdateContentsDtoToJSON(value?: BulkUpdateContentsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/BulkUpdateContentsJobDto.ts b/src/generated/models/BulkUpdateContentsJobDto.ts index bcd26b9..5041958 100644 --- a/src/generated/models/BulkUpdateContentsJobDto.ts +++ b/src/generated/models/BulkUpdateContentsJobDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { QueryJsonDto } from './QueryJsonDto'; import { QueryJsonDtoFromJSON, - QueryJsonDtoFromJSONTyped, QueryJsonDtoToJSON, } from './QueryJsonDto'; import type { BulkUpdateContentType } from './BulkUpdateContentType'; import { BulkUpdateContentTypeFromJSON, - BulkUpdateContentTypeFromJSONTyped, BulkUpdateContentTypeToJSON, } from './BulkUpdateContentType'; @@ -113,6 +108,9 @@ export interface BulkUpdateContentsJobDto { * Check if a given object implements the BulkUpdateContentsJobDto interface. */ export function instanceOfBulkUpdateContentsJobDto(value: any): value is BulkUpdateContentsJobDto { + if (!value) { + return false; + } return true; } @@ -120,7 +118,7 @@ export function BulkUpdateContentsJobDtoFromJSON(json: any): BulkUpdateContentsJ return BulkUpdateContentsJobDtoFromJSONTyped(json, false); } -export function BulkUpdateContentsJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpdateContentsJobDto { +export function BulkUpdateContentsJobDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): BulkUpdateContentsJobDto { if (json == null) { return json; } @@ -141,7 +139,7 @@ export function BulkUpdateContentsJobDtoFromJSONTyped(json: any, ignoreDiscrimin }; } -export function BulkUpdateContentsJobDtoToJSON(value?: BulkUpdateContentsJobDto | null, ignoreDiscriminator = false): any { +export function BulkUpdateContentsJobDtoToJSON(value?: BulkUpdateContentsJobDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CallsUsageDtoDto.ts b/src/generated/models/CallsUsageDtoDto.ts index 3388797..df64f1b 100644 --- a/src/generated/models/CallsUsageDtoDto.ts +++ b/src/generated/models/CallsUsageDtoDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,13 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { CallsUsagePerDateDto } from './CallsUsagePerDateDto'; -import { - CallsUsagePerDateDtoFromJSON, - CallsUsagePerDateDtoFromJSONTyped, - CallsUsagePerDateDtoToJSON, -} from './CallsUsagePerDateDto'; + + /** * @@ -87,6 +81,9 @@ export interface CallsUsageDtoDto { * Check if a given object implements the CallsUsageDtoDto interface. */ export function instanceOfCallsUsageDtoDto(value: any): value is CallsUsageDtoDto { + if (!value) { + return false; + } if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; if (!('monthCalls' in value) || value['monthCalls'] === undefined) return false; @@ -103,7 +100,7 @@ export function CallsUsageDtoDtoFromJSON(json: any): CallsUsageDtoDto { return CallsUsageDtoDtoFromJSONTyped(json, false); } -export function CallsUsageDtoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallsUsageDtoDto { +export function CallsUsageDtoDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CallsUsageDtoDto { if (json == null) { return json; } @@ -121,7 +118,7 @@ export function CallsUsageDtoDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function CallsUsageDtoDtoToJSON(value?: CallsUsageDtoDto | null, ignoreDiscriminator = false): any { +export function CallsUsageDtoDtoToJSON(value?: CallsUsageDtoDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CallsUsagePerDateDto.ts b/src/generated/models/CallsUsagePerDateDto.ts index 1a9eb72..53ee12a 100644 --- a/src/generated/models/CallsUsagePerDateDto.ts +++ b/src/generated/models/CallsUsagePerDateDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -50,6 +47,9 @@ export interface CallsUsagePerDateDto { * Check if a given object implements the CallsUsagePerDateDto interface. */ export function instanceOfCallsUsagePerDateDto(value: any): value is CallsUsagePerDateDto { + if (!value) { + return false; + } if (!('date' in value) || value['date'] === undefined) return false; if (!('totalCalls' in value) || value['totalCalls'] === undefined) return false; if (!('totalBytes' in value) || value['totalBytes'] === undefined) return false; @@ -61,7 +61,7 @@ export function CallsUsagePerDateDtoFromJSON(json: any): CallsUsagePerDateDto { return CallsUsagePerDateDtoFromJSONTyped(json, false); } -export function CallsUsagePerDateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallsUsagePerDateDto { +export function CallsUsagePerDateDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CallsUsagePerDateDto { if (json == null) { return json; } @@ -74,7 +74,7 @@ export function CallsUsagePerDateDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function CallsUsagePerDateDtoToJSON(value?: CallsUsagePerDateDto | null, ignoreDiscriminator = false): any { +export function CallsUsagePerDateDtoToJSON(value?: CallsUsagePerDateDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ChangeCategoryDto.ts b/src/generated/models/ChangeCategoryDto.ts index 5bdfb6d..c6d132b 100644 --- a/src/generated/models/ChangeCategoryDto.ts +++ b/src/generated/models/ChangeCategoryDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface ChangeCategoryDto { * Check if a given object implements the ChangeCategoryDto interface. */ export function instanceOfChangeCategoryDto(value: any): value is ChangeCategoryDto { + if (!value) { + return false; + } return true; } @@ -39,7 +39,7 @@ export function ChangeCategoryDtoFromJSON(json: any): ChangeCategoryDto { return ChangeCategoryDtoFromJSONTyped(json, false); } -export function ChangeCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeCategoryDto { +export function ChangeCategoryDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ChangeCategoryDto { if (json == null) { return json; } @@ -49,7 +49,7 @@ export function ChangeCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function ChangeCategoryDtoToJSON(value?: ChangeCategoryDto | null, ignoreDiscriminator = false): any { +export function ChangeCategoryDtoToJSON(value?: ChangeCategoryDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ChangePlanDto.ts b/src/generated/models/ChangePlanDto.ts index d1b6de7..12c8d99 100644 --- a/src/generated/models/ChangePlanDto.ts +++ b/src/generated/models/ChangePlanDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface ChangePlanDto { * Check if a given object implements the ChangePlanDto interface. */ export function instanceOfChangePlanDto(value: any): value is ChangePlanDto { + if (!value) { + return false; + } if (!('planId' in value) || value['planId'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function ChangePlanDtoFromJSON(json: any): ChangePlanDto { return ChangePlanDtoFromJSONTyped(json, false); } -export function ChangePlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePlanDto { +export function ChangePlanDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ChangePlanDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function ChangePlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function ChangePlanDtoToJSON(value?: ChangePlanDto | null, ignoreDiscriminator = false): any { +export function ChangePlanDtoToJSON(value?: ChangePlanDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ChangeStatusDto.ts b/src/generated/models/ChangeStatusDto.ts index 72d55a5..20598a6 100644 --- a/src/generated/models/ChangeStatusDto.ts +++ b/src/generated/models/ChangeStatusDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface ChangeStatusDto { * Check if a given object implements the ChangeStatusDto interface. */ export function instanceOfChangeStatusDto(value: any): value is ChangeStatusDto { + if (!value) { + return false; + } if (!('status' in value) || value['status'] === undefined) return false; return true; } @@ -52,7 +52,7 @@ export function ChangeStatusDtoFromJSON(json: any): ChangeStatusDto { return ChangeStatusDtoFromJSONTyped(json, false); } -export function ChangeStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeStatusDto { +export function ChangeStatusDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ChangeStatusDto { if (json == null) { return json; } @@ -64,7 +64,7 @@ export function ChangeStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function ChangeStatusDtoToJSON(value?: ChangeStatusDto | null, ignoreDiscriminator = false): any { +export function ChangeStatusDtoToJSON(value?: ChangeStatusDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ClientDto.ts b/src/generated/models/ClientDto.ts index 31ea544..0e57ac8 100644 --- a/src/generated/models/ClientDto.ts +++ b/src/generated/models/ClientDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -81,6 +78,9 @@ export interface ClientDto { * Check if a given object implements the ClientDto interface. */ export function instanceOfClientDto(value: any): value is ClientDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('secret' in value) || value['secret'] === undefined) return false; @@ -95,7 +95,7 @@ export function ClientDtoFromJSON(json: any): ClientDto { return ClientDtoFromJSONTyped(json, false); } -export function ClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientDto { +export function ClientDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ClientDto { if (json == null) { return json; } @@ -112,7 +112,7 @@ export function ClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function ClientDtoToJSON(value?: ClientDto | null, ignoreDiscriminator = false): any { +export function ClientDtoToJSON(value?: ClientDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ClientsDto.ts b/src/generated/models/ClientsDto.ts index eaec908..c4a8c38 100644 --- a/src/generated/models/ClientsDto.ts +++ b/src/generated/models/ClientsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { ClientDto } from './ClientDto'; import { ClientDtoFromJSON, - ClientDtoFromJSONTyped, ClientDtoToJSON, } from './ClientDto'; @@ -51,6 +47,9 @@ export interface ClientsDto { * Check if a given object implements the ClientsDto interface. */ export function instanceOfClientsDto(value: any): value is ClientsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function ClientsDtoFromJSON(json: any): ClientsDto { return ClientsDtoFromJSONTyped(json, false); } -export function ClientsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientsDto { +export function ClientsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ClientsDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function ClientsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function ClientsDtoToJSON(value?: ClientsDto | null, ignoreDiscriminator = false): any { +export function ClientsDtoToJSON(value?: ClientsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CommentRuleActionDto.ts b/src/generated/models/CommentRuleActionDto.ts index 9e4b02b..280c747 100644 --- a/src/generated/models/CommentRuleActionDto.ts +++ b/src/generated/models/CommentRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -45,6 +41,9 @@ export interface CommentRuleActionDto extends RuleActionDto { * Check if a given object implements the CommentRuleActionDto interface. */ export function instanceOfCommentRuleActionDto(value: any): value is CommentRuleActionDto { + if (!value) { + return false; + } if (!('text' in value) || value['text'] === undefined) return false; return true; } @@ -53,18 +52,18 @@ export function CommentRuleActionDtoFromJSON(json: any): CommentRuleActionDto { return CommentRuleActionDtoFromJSONTyped(json, false); } -export function CommentRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentRuleActionDto { +export function CommentRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CommentRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'text': json['text'], 'client': json['client'] == null ? undefined : json['client'], }; } -export function CommentRuleActionDtoToJSON(value?: CommentRuleActionDto | null, ignoreDiscriminator = false): any { +export function CommentRuleActionDtoToJSON(value?: CommentRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CommentRuleTriggerDto.ts b/src/generated/models/CommentRuleTriggerDto.ts index f394e45..281ca68 100644 --- a/src/generated/models/CommentRuleTriggerDto.ts +++ b/src/generated/models/CommentRuleTriggerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { - RuleTriggerDtoFromJSON, RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -39,6 +35,9 @@ export interface CommentRuleTriggerDto extends RuleTriggerDto { * Check if a given object implements the CommentRuleTriggerDto interface. */ export function instanceOfCommentRuleTriggerDto(value: any): value is CommentRuleTriggerDto { + if (!value) { + return false; + } return true; } @@ -46,17 +45,17 @@ export function CommentRuleTriggerDtoFromJSON(json: any): CommentRuleTriggerDto return CommentRuleTriggerDtoFromJSONTyped(json, false); } -export function CommentRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentRuleTriggerDto { +export function CommentRuleTriggerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CommentRuleTriggerDto { if (json == null) { return json; } return { - ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleTriggerDtoFromJSONTyped(json, _ignoreDiscriminator), 'condition': json['condition'] == null ? undefined : json['condition'], }; } -export function CommentRuleTriggerDtoToJSON(value?: CommentRuleTriggerDto | null, ignoreDiscriminator = false): any { +export function CommentRuleTriggerDtoToJSON(value?: CommentRuleTriggerDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ComponentFieldPropertiesDto.ts b/src/generated/models/ComponentFieldPropertiesDto.ts index f914b79..b05e9f8 100644 --- a/src/generated/models/ComponentFieldPropertiesDto.ts +++ b/src/generated/models/ComponentFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; @@ -39,6 +35,9 @@ export interface ComponentFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the ComponentFieldPropertiesDto interface. */ export function instanceOfComponentFieldPropertiesDto(value: any): value is ComponentFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -46,17 +45,17 @@ export function ComponentFieldPropertiesDtoFromJSON(json: any): ComponentFieldPr return ComponentFieldPropertiesDtoFromJSONTyped(json, false); } -export function ComponentFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentFieldPropertiesDto { +export function ComponentFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ComponentFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'schemaIds': json['schemaIds'] == null ? undefined : json['schemaIds'], }; } -export function ComponentFieldPropertiesDtoToJSON(value?: ComponentFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function ComponentFieldPropertiesDtoToJSON(value?: ComponentFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ComponentsFieldPropertiesDto.ts b/src/generated/models/ComponentsFieldPropertiesDto.ts index 5155806..bca0976 100644 --- a/src/generated/models/ComponentsFieldPropertiesDto.ts +++ b/src/generated/models/ComponentsFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { ArrayCalculatedDefaultValue } from './ArrayCalculatedDefaultValue'; import { ArrayCalculatedDefaultValueFromJSON, - ArrayCalculatedDefaultValueFromJSONTyped, ArrayCalculatedDefaultValueToJSON, } from './ArrayCalculatedDefaultValue'; @@ -71,6 +66,9 @@ export interface ComponentsFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the ComponentsFieldPropertiesDto interface. */ export function instanceOfComponentsFieldPropertiesDto(value: any): value is ComponentsFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -78,12 +76,12 @@ export function ComponentsFieldPropertiesDtoFromJSON(json: any): ComponentsField return ComponentsFieldPropertiesDtoFromJSONTyped(json, false); } -export function ComponentsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentsFieldPropertiesDto { +export function ComponentsFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ComponentsFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'minItems': json['minItems'] == null ? undefined : json['minItems'], 'maxItems': json['maxItems'] == null ? undefined : json['maxItems'], 'calculatedDefaultValue': json['calculatedDefaultValue'] == null ? undefined : ArrayCalculatedDefaultValueFromJSON(json['calculatedDefaultValue']), @@ -92,7 +90,7 @@ export function ComponentsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscr }; } -export function ComponentsFieldPropertiesDtoToJSON(value?: ComponentsFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function ComponentsFieldPropertiesDtoToJSON(value?: ComponentsFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ConfigureFieldRulesDto.ts b/src/generated/models/ConfigureFieldRulesDto.ts index 194ef27..454fc08 100644 --- a/src/generated/models/ConfigureFieldRulesDto.ts +++ b/src/generated/models/ConfigureFieldRulesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldRuleDto } from './FieldRuleDto'; import { FieldRuleDtoFromJSON, - FieldRuleDtoFromJSONTyped, FieldRuleDtoToJSON, } from './FieldRuleDto'; @@ -39,6 +35,9 @@ export interface ConfigureFieldRulesDto { * Check if a given object implements the ConfigureFieldRulesDto interface. */ export function instanceOfConfigureFieldRulesDto(value: any): value is ConfigureFieldRulesDto { + if (!value) { + return false; + } return true; } @@ -46,7 +45,7 @@ export function ConfigureFieldRulesDtoFromJSON(json: any): ConfigureFieldRulesDt return ConfigureFieldRulesDtoFromJSONTyped(json, false); } -export function ConfigureFieldRulesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigureFieldRulesDto { +export function ConfigureFieldRulesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ConfigureFieldRulesDto { if (json == null) { return json; } @@ -56,7 +55,7 @@ export function ConfigureFieldRulesDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function ConfigureFieldRulesDtoToJSON(value?: ConfigureFieldRulesDto | null, ignoreDiscriminator = false): any { +export function ConfigureFieldRulesDtoToJSON(value?: ConfigureFieldRulesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ConfigureUIFieldsDto.ts b/src/generated/models/ConfigureUIFieldsDto.ts index de54d11..7b0ea53 100644 --- a/src/generated/models/ConfigureUIFieldsDto.ts +++ b/src/generated/models/ConfigureUIFieldsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface ConfigureUIFieldsDto { * Check if a given object implements the ConfigureUIFieldsDto interface. */ export function instanceOfConfigureUIFieldsDto(value: any): value is ConfigureUIFieldsDto { + if (!value) { + return false; + } return true; } @@ -45,7 +45,7 @@ export function ConfigureUIFieldsDtoFromJSON(json: any): ConfigureUIFieldsDto { return ConfigureUIFieldsDtoFromJSONTyped(json, false); } -export function ConfigureUIFieldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigureUIFieldsDto { +export function ConfigureUIFieldsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ConfigureUIFieldsDto { if (json == null) { return json; } @@ -56,7 +56,7 @@ export function ConfigureUIFieldsDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function ConfigureUIFieldsDtoToJSON(value?: ConfigureUIFieldsDto | null, ignoreDiscriminator = false): any { +export function ConfigureUIFieldsDtoToJSON(value?: ConfigureUIFieldsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ContentChangedRuleTriggerDto.ts b/src/generated/models/ContentChangedRuleTriggerDto.ts index 8789988..a5e17e9 100644 --- a/src/generated/models/ContentChangedRuleTriggerDto.ts +++ b/src/generated/models/ContentChangedRuleTriggerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,16 +10,13 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { SchemaCondition } from './SchemaCondition'; import { SchemaConditionFromJSON, - SchemaConditionFromJSONTyped, SchemaConditionToJSON, } from './SchemaCondition'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { - RuleTriggerDtoFromJSON, RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -57,6 +52,9 @@ export interface ContentChangedRuleTriggerDto extends RuleTriggerDto { * Check if a given object implements the ContentChangedRuleTriggerDto interface. */ export function instanceOfContentChangedRuleTriggerDto(value: any): value is ContentChangedRuleTriggerDto { + if (!value) { + return false; + } if (!('handleAll' in value) || value['handleAll'] === undefined) return false; return true; } @@ -65,19 +63,19 @@ export function ContentChangedRuleTriggerDtoFromJSON(json: any): ContentChangedR return ContentChangedRuleTriggerDtoFromJSONTyped(json, false); } -export function ContentChangedRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentChangedRuleTriggerDto { +export function ContentChangedRuleTriggerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ContentChangedRuleTriggerDto { if (json == null) { return json; } return { - ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleTriggerDtoFromJSONTyped(json, _ignoreDiscriminator), 'schemas': json['schemas'] == null ? undefined : ((json['schemas'] as Array).map(SchemaConditionFromJSON)), 'referencedSchemas': json['referencedSchemas'] == null ? undefined : ((json['referencedSchemas'] as Array).map(SchemaConditionFromJSON)), 'handleAll': json['handleAll'], }; } -export function ContentChangedRuleTriggerDtoToJSON(value?: ContentChangedRuleTriggerDto | null, ignoreDiscriminator = false): any { +export function ContentChangedRuleTriggerDtoToJSON(value?: ContentChangedRuleTriggerDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ContentDto.ts b/src/generated/models/ContentDto.ts index e1e69e6..891b573 100644 --- a/src/generated/models/ContentDto.ts +++ b/src/generated/models/ContentDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { ScheduleJobDto } from './ScheduleJobDto'; import { ScheduleJobDtoFromJSON, - ScheduleJobDtoFromJSONTyped, ScheduleJobDtoToJSON, } from './ScheduleJobDto'; import type { FieldDto } from './FieldDto'; import { FieldDtoFromJSON, - FieldDtoFromJSONTyped, FieldDtoToJSON, } from './FieldDto'; @@ -165,6 +160,9 @@ export interface ContentDto { * Check if a given object implements the ContentDto interface. */ export function instanceOfContentDto(value: any): value is ContentDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -184,7 +182,7 @@ export function ContentDtoFromJSON(json: any): ContentDto { return ContentDtoFromJSONTyped(json, false); } -export function ContentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentDto { +export function ContentDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ContentDto { if (json == null) { return json; } @@ -213,7 +211,7 @@ export function ContentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function ContentDtoToJSON(value?: ContentDto | null, ignoreDiscriminator = false): any { +export function ContentDtoToJSON(value?: ContentDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ContentsDto.ts b/src/generated/models/ContentsDto.ts index c5550fe..2aac4c4 100644 --- a/src/generated/models/ContentsDto.ts +++ b/src/generated/models/ContentsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { ContentDto } from './ContentDto'; import { ContentDtoFromJSON, - ContentDtoFromJSONTyped, ContentDtoToJSON, } from './ContentDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { StatusInfoDto } from './StatusInfoDto'; import { StatusInfoDtoFromJSON, - StatusInfoDtoFromJSONTyped, StatusInfoDtoToJSON, } from './StatusInfoDto'; @@ -69,6 +64,9 @@ export interface ContentsDto { * Check if a given object implements the ContentsDto interface. */ export function instanceOfContentsDto(value: any): value is ContentsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -80,7 +78,7 @@ export function ContentsDtoFromJSON(json: any): ContentsDto { return ContentsDtoFromJSONTyped(json, false); } -export function ContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentsDto { +export function ContentsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ContentsDto { if (json == null) { return json; } @@ -93,7 +91,7 @@ export function ContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function ContentsDtoToJSON(value?: ContentsDto | null, ignoreDiscriminator = false): any { +export function ContentsDtoToJSON(value?: ContentsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ContributorDto.ts b/src/generated/models/ContributorDto.ts index 6bd0a92..0f21e55 100644 --- a/src/generated/models/ContributorDto.ts +++ b/src/generated/models/ContributorDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -63,6 +60,9 @@ export interface ContributorDto { * Check if a given object implements the ContributorDto interface. */ export function instanceOfContributorDto(value: any): value is ContributorDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('contributorId' in value) || value['contributorId'] === undefined) return false; if (!('contributorName' in value) || value['contributorName'] === undefined) return false; @@ -74,7 +74,7 @@ export function ContributorDtoFromJSON(json: any): ContributorDto { return ContributorDtoFromJSONTyped(json, false); } -export function ContributorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContributorDto { +export function ContributorDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ContributorDto { if (json == null) { return json; } @@ -88,7 +88,7 @@ export function ContributorDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function ContributorDtoToJSON(value?: ContributorDto | null, ignoreDiscriminator = false): any { +export function ContributorDtoToJSON(value?: ContributorDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ContributorsDto.ts b/src/generated/models/ContributorsDto.ts index 6424180..c6d2b93 100644 --- a/src/generated/models/ContributorsDto.ts +++ b/src/generated/models/ContributorsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { ContributorDto } from './ContributorDto'; import { ContributorDtoFromJSON, - ContributorDtoFromJSONTyped, ContributorDtoToJSON, } from './ContributorDto'; import type { ContributorsMetadata } from './ContributorsMetadata'; import { ContributorsMetadataFromJSON, - ContributorsMetadataFromJSONTyped, ContributorsMetadataToJSON, } from './ContributorsMetadata'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -69,6 +64,9 @@ export interface ContributorsDto { * Check if a given object implements the ContributorsDto interface. */ export function instanceOfContributorsDto(value: any): value is ContributorsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; if (!('maxContributors' in value) || value['maxContributors'] === undefined) return false; @@ -79,7 +77,7 @@ export function ContributorsDtoFromJSON(json: any): ContributorsDto { return ContributorsDtoFromJSONTyped(json, false); } -export function ContributorsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContributorsDto { +export function ContributorsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ContributorsDto { if (json == null) { return json; } @@ -92,7 +90,7 @@ export function ContributorsDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function ContributorsDtoToJSON(value?: ContributorsDto | null, ignoreDiscriminator = false): any { +export function ContributorsDtoToJSON(value?: ContributorsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ContributorsMetadata.ts b/src/generated/models/ContributorsMetadata.ts index 586cd0a..0677bb9 100644 --- a/src/generated/models/ContributorsMetadata.ts +++ b/src/generated/models/ContributorsMetadata.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface ContributorsMetadata { * Check if a given object implements the ContributorsMetadata interface. */ export function instanceOfContributorsMetadata(value: any): value is ContributorsMetadata { + if (!value) { + return false; + } if (!('isInvited' in value) || value['isInvited'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function ContributorsMetadataFromJSON(json: any): ContributorsMetadata { return ContributorsMetadataFromJSONTyped(json, false); } -export function ContributorsMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContributorsMetadata { +export function ContributorsMetadataFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ContributorsMetadata { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function ContributorsMetadataFromJSONTyped(json: any, ignoreDiscriminator }; } -export function ContributorsMetadataToJSON(value?: ContributorsMetadata | null, ignoreDiscriminator = false): any { +export function ContributorsMetadataToJSON(value?: ContributorsMetadata | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateAppDto.ts b/src/generated/models/CreateAppDto.ts index 9e5bfe7..2ddcfcf 100644 --- a/src/generated/models/CreateAppDto.ts +++ b/src/generated/models/CreateAppDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface CreateAppDto { * Check if a given object implements the CreateAppDto interface. */ export function instanceOfCreateAppDto(value: any): value is CreateAppDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -46,7 +46,7 @@ export function CreateAppDtoFromJSON(json: any): CreateAppDto { return CreateAppDtoFromJSONTyped(json, false); } -export function CreateAppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAppDto { +export function CreateAppDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateAppDto { if (json == null) { return json; } @@ -57,7 +57,7 @@ export function CreateAppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function CreateAppDtoToJSON(value?: CreateAppDto | null, ignoreDiscriminator = false): any { +export function CreateAppDtoToJSON(value?: CreateAppDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateAssetFolderDto.ts b/src/generated/models/CreateAssetFolderDto.ts index db160a7..6b81c48 100644 --- a/src/generated/models/CreateAssetFolderDto.ts +++ b/src/generated/models/CreateAssetFolderDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface CreateAssetFolderDto { * Check if a given object implements the CreateAssetFolderDto interface. */ export function instanceOfCreateAssetFolderDto(value: any): value is CreateAssetFolderDto { + if (!value) { + return false; + } if (!('folderName' in value) || value['folderName'] === undefined) return false; return true; } @@ -46,7 +46,7 @@ export function CreateAssetFolderDtoFromJSON(json: any): CreateAssetFolderDto { return CreateAssetFolderDtoFromJSONTyped(json, false); } -export function CreateAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAssetFolderDto { +export function CreateAssetFolderDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateAssetFolderDto { if (json == null) { return json; } @@ -57,7 +57,7 @@ export function CreateAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function CreateAssetFolderDtoToJSON(value?: CreateAssetFolderDto | null, ignoreDiscriminator = false): any { +export function CreateAssetFolderDtoToJSON(value?: CreateAssetFolderDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateClientDto.ts b/src/generated/models/CreateClientDto.ts index 5fb3f96..7370963 100644 --- a/src/generated/models/CreateClientDto.ts +++ b/src/generated/models/CreateClientDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface CreateClientDto { * Check if a given object implements the CreateClientDto interface. */ export function instanceOfCreateClientDto(value: any): value is CreateClientDto { + if (!value) { + return false; + } if (!('id' in value) || value['id'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function CreateClientDtoFromJSON(json: any): CreateClientDto { return CreateClientDtoFromJSONTyped(json, false); } -export function CreateClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClientDto { +export function CreateClientDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateClientDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function CreateClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function CreateClientDtoToJSON(value?: CreateClientDto | null, ignoreDiscriminator = false): any { +export function CreateClientDtoToJSON(value?: CreateClientDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateContentRuleActionDto.ts b/src/generated/models/CreateContentRuleActionDto.ts index c601eaf..2a7b418 100644 --- a/src/generated/models/CreateContentRuleActionDto.ts +++ b/src/generated/models/CreateContentRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -57,6 +53,9 @@ export interface CreateContentRuleActionDto extends RuleActionDto { * Check if a given object implements the CreateContentRuleActionDto interface. */ export function instanceOfCreateContentRuleActionDto(value: any): value is CreateContentRuleActionDto { + if (!value) { + return false; + } if (!('data' in value) || value['data'] === undefined) return false; if (!('schema' in value) || value['schema'] === undefined) return false; if (!('client' in value) || value['client'] === undefined) return false; @@ -68,12 +67,12 @@ export function CreateContentRuleActionDtoFromJSON(json: any): CreateContentRule return CreateContentRuleActionDtoFromJSONTyped(json, false); } -export function CreateContentRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateContentRuleActionDto { +export function CreateContentRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateContentRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'data': json['data'], 'schema': json['schema'], 'client': json['client'], @@ -81,7 +80,7 @@ export function CreateContentRuleActionDtoFromJSONTyped(json: any, ignoreDiscrim }; } -export function CreateContentRuleActionDtoToJSON(value?: CreateContentRuleActionDto | null, ignoreDiscriminator = false): any { +export function CreateContentRuleActionDtoToJSON(value?: CreateContentRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateRuleDto.ts b/src/generated/models/CreateRuleDto.ts index eef9b1c..3523ed6 100644 --- a/src/generated/models/CreateRuleDto.ts +++ b/src/generated/models/CreateRuleDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { RuleActionDtoFromJSON, - RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { RuleTriggerDtoFromJSON, - RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -51,6 +46,9 @@ export interface CreateRuleDto { * Check if a given object implements the CreateRuleDto interface. */ export function instanceOfCreateRuleDto(value: any): value is CreateRuleDto { + if (!value) { + return false; + } if (!('trigger' in value) || value['trigger'] === undefined) return false; if (!('action' in value) || value['action'] === undefined) return false; return true; @@ -60,7 +58,7 @@ export function CreateRuleDtoFromJSON(json: any): CreateRuleDto { return CreateRuleDtoFromJSONTyped(json, false); } -export function CreateRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRuleDto { +export function CreateRuleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateRuleDto { if (json == null) { return json; } @@ -71,7 +69,7 @@ export function CreateRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function CreateRuleDtoToJSON(value?: CreateRuleDto | null, ignoreDiscriminator = false): any { +export function CreateRuleDtoToJSON(value?: CreateRuleDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateSchemaDto.ts b/src/generated/models/CreateSchemaDto.ts index 003e01b..dd59406 100644 --- a/src/generated/models/CreateSchemaDto.ts +++ b/src/generated/models/CreateSchemaDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,35 +10,29 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; import { SchemaPropertiesDtoFromJSON, - SchemaPropertiesDtoFromJSONTyped, SchemaPropertiesDtoToJSON, } from './SchemaPropertiesDto'; import type { SchemaScriptsDto } from './SchemaScriptsDto'; import { SchemaScriptsDtoFromJSON, - SchemaScriptsDtoFromJSONTyped, SchemaScriptsDtoToJSON, } from './SchemaScriptsDto'; import type { UpsertSchemaFieldDto } from './UpsertSchemaFieldDto'; import { UpsertSchemaFieldDtoFromJSON, - UpsertSchemaFieldDtoFromJSONTyped, UpsertSchemaFieldDtoToJSON, } from './UpsertSchemaFieldDto'; import type { FieldRuleDto } from './FieldRuleDto'; import { FieldRuleDtoFromJSON, - FieldRuleDtoFromJSONTyped, FieldRuleDtoToJSON, } from './FieldRuleDto'; import type { SchemaType } from './SchemaType'; import { SchemaTypeFromJSON, - SchemaTypeFromJSONTyped, SchemaTypeToJSON, } from './SchemaType'; @@ -132,6 +124,9 @@ export interface CreateSchemaDto { * Check if a given object implements the CreateSchemaDto interface. */ export function instanceOfCreateSchemaDto(value: any): value is CreateSchemaDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -140,7 +135,7 @@ export function CreateSchemaDtoFromJSON(json: any): CreateSchemaDto { return CreateSchemaDtoFromJSONTyped(json, false); } -export function CreateSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSchemaDto { +export function CreateSchemaDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateSchemaDto { if (json == null) { return json; } @@ -161,7 +156,7 @@ export function CreateSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function CreateSchemaDtoToJSON(value?: CreateSchemaDto | null, ignoreDiscriminator = false): any { +export function CreateSchemaDtoToJSON(value?: CreateSchemaDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateTeamDto.ts b/src/generated/models/CreateTeamDto.ts index 4a352ec..817753f 100644 --- a/src/generated/models/CreateTeamDto.ts +++ b/src/generated/models/CreateTeamDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface CreateTeamDto { * Check if a given object implements the CreateTeamDto interface. */ export function instanceOfCreateTeamDto(value: any): value is CreateTeamDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function CreateTeamDtoFromJSON(json: any): CreateTeamDto { return CreateTeamDtoFromJSONTyped(json, false); } -export function CreateTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTeamDto { +export function CreateTeamDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateTeamDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function CreateTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function CreateTeamDtoToJSON(value?: CreateTeamDto | null, ignoreDiscriminator = false): any { +export function CreateTeamDtoToJSON(value?: CreateTeamDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CreateUserDto.ts b/src/generated/models/CreateUserDto.ts index d3187a1..bf5822c 100644 --- a/src/generated/models/CreateUserDto.ts +++ b/src/generated/models/CreateUserDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -50,6 +47,9 @@ export interface CreateUserDto { * Check if a given object implements the CreateUserDto interface. */ export function instanceOfCreateUserDto(value: any): value is CreateUserDto { + if (!value) { + return false; + } if (!('email' in value) || value['email'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; @@ -61,7 +61,7 @@ export function CreateUserDtoFromJSON(json: any): CreateUserDto { return CreateUserDtoFromJSONTyped(json, false); } -export function CreateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserDto { +export function CreateUserDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CreateUserDto { if (json == null) { return json; } @@ -74,7 +74,7 @@ export function CreateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function CreateUserDtoToJSON(value?: CreateUserDto | null, ignoreDiscriminator = false): any { +export function CreateUserDtoToJSON(value?: CreateUserDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/CurrentStorageDto.ts b/src/generated/models/CurrentStorageDto.ts index 0369f4a..aa1ba2c 100644 --- a/src/generated/models/CurrentStorageDto.ts +++ b/src/generated/models/CurrentStorageDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface CurrentStorageDto { * Check if a given object implements the CurrentStorageDto interface. */ export function instanceOfCurrentStorageDto(value: any): value is CurrentStorageDto { + if (!value) { + return false; + } if (!('size' in value) || value['size'] === undefined) return false; if (!('maxAllowed' in value) || value['maxAllowed'] === undefined) return false; return true; @@ -47,7 +47,7 @@ export function CurrentStorageDtoFromJSON(json: any): CurrentStorageDto { return CurrentStorageDtoFromJSONTyped(json, false); } -export function CurrentStorageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentStorageDto { +export function CurrentStorageDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): CurrentStorageDto { if (json == null) { return json; } @@ -58,7 +58,7 @@ export function CurrentStorageDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function CurrentStorageDtoToJSON(value?: CurrentStorageDto | null, ignoreDiscriminator = false): any { +export function CurrentStorageDtoToJSON(value?: CurrentStorageDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/DateTimeCalculatedDefaultValue.ts b/src/generated/models/DateTimeCalculatedDefaultValue.ts index ff2426a..6fcd458 100644 --- a/src/generated/models/DateTimeCalculatedDefaultValue.ts +++ b/src/generated/models/DateTimeCalculatedDefaultValue.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -39,11 +37,10 @@ export function DateTimeCalculatedDefaultValueFromJSON(json: any): DateTimeCalcu return DateTimeCalculatedDefaultValueFromJSONTyped(json, false); } -export function DateTimeCalculatedDefaultValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTimeCalculatedDefaultValue { +export function DateTimeCalculatedDefaultValueFromJSONTyped(json: any, _ignoreDiscriminator: boolean): DateTimeCalculatedDefaultValue { return json as DateTimeCalculatedDefaultValue; } export function DateTimeCalculatedDefaultValueToJSON(value?: DateTimeCalculatedDefaultValue | null): any { return value as any; } - diff --git a/src/generated/models/DateTimeFieldEditor.ts b/src/generated/models/DateTimeFieldEditor.ts index 87eb2ae..378985f 100644 --- a/src/generated/models/DateTimeFieldEditor.ts +++ b/src/generated/models/DateTimeFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -39,11 +37,10 @@ export function DateTimeFieldEditorFromJSON(json: any): DateTimeFieldEditor { return DateTimeFieldEditorFromJSONTyped(json, false); } -export function DateTimeFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTimeFieldEditor { +export function DateTimeFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): DateTimeFieldEditor { return json as DateTimeFieldEditor; } export function DateTimeFieldEditorToJSON(value?: DateTimeFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/DateTimeFieldPropertiesDto.ts b/src/generated/models/DateTimeFieldPropertiesDto.ts index c6589f2..8e38e4e 100644 --- a/src/generated/models/DateTimeFieldPropertiesDto.ts +++ b/src/generated/models/DateTimeFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,23 +10,19 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { DateTimeFieldEditor } from './DateTimeFieldEditor'; import { DateTimeFieldEditorFromJSON, - DateTimeFieldEditorFromJSONTyped, DateTimeFieldEditorToJSON, } from './DateTimeFieldEditor'; import type { DateTimeCalculatedDefaultValue } from './DateTimeCalculatedDefaultValue'; import { DateTimeCalculatedDefaultValueFromJSON, - DateTimeCalculatedDefaultValueFromJSONTyped, DateTimeCalculatedDefaultValueToJSON, } from './DateTimeCalculatedDefaultValue'; @@ -89,6 +83,9 @@ export interface DateTimeFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the DateTimeFieldPropertiesDto interface. */ export function instanceOfDateTimeFieldPropertiesDto(value: any): value is DateTimeFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -96,12 +93,12 @@ export function DateTimeFieldPropertiesDtoFromJSON(json: any): DateTimeFieldProp return DateTimeFieldPropertiesDtoFromJSONTyped(json, false); } -export function DateTimeFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTimeFieldPropertiesDto { +export function DateTimeFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): DateTimeFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], 'defaultValue': json['defaultValue'] == null ? undefined : (new Date(json['defaultValue'])), 'maxValue': json['maxValue'] == null ? undefined : (new Date(json['maxValue'])), @@ -112,7 +109,7 @@ export function DateTimeFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscrim }; } -export function DateTimeFieldPropertiesDtoToJSON(value?: DateTimeFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function DateTimeFieldPropertiesDtoToJSON(value?: DateTimeFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/DiscourseRuleActionDto.ts b/src/generated/models/DiscourseRuleActionDto.ts index bd33b32..8fcd9b4 100644 --- a/src/generated/models/DiscourseRuleActionDto.ts +++ b/src/generated/models/DiscourseRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -75,6 +71,9 @@ export interface DiscourseRuleActionDto extends RuleActionDto { * Check if a given object implements the DiscourseRuleActionDto interface. */ export function instanceOfDiscourseRuleActionDto(value: any): value is DiscourseRuleActionDto { + if (!value) { + return false; + } if (!('url' in value) || value['url'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('apiUsername' in value) || value['apiUsername'] === undefined) return false; @@ -86,12 +85,12 @@ export function DiscourseRuleActionDtoFromJSON(json: any): DiscourseRuleActionDt return DiscourseRuleActionDtoFromJSONTyped(json, false); } -export function DiscourseRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscourseRuleActionDto { +export function DiscourseRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): DiscourseRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'url': json['url'], 'apiKey': json['apiKey'], 'apiUsername': json['apiUsername'], @@ -102,7 +101,7 @@ export function DiscourseRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function DiscourseRuleActionDtoToJSON(value?: DiscourseRuleActionDto | null, ignoreDiscriminator = false): any { +export function DiscourseRuleActionDtoToJSON(value?: DiscourseRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/EditorDto.ts b/src/generated/models/EditorDto.ts index 5e7efed..0f15cd8 100644 --- a/src/generated/models/EditorDto.ts +++ b/src/generated/models/EditorDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface EditorDto { * Check if a given object implements the EditorDto interface. */ export function instanceOfEditorDto(value: any): value is EditorDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; @@ -47,7 +47,7 @@ export function EditorDtoFromJSON(json: any): EditorDto { return EditorDtoFromJSONTyped(json, false); } -export function EditorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EditorDto { +export function EditorDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): EditorDto { if (json == null) { return json; } @@ -58,7 +58,7 @@ export function EditorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function EditorDtoToJSON(value?: EditorDto | null, ignoreDiscriminator = false): any { +export function EditorDtoToJSON(value?: EditorDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ElasticSearchRuleActionDto.ts b/src/generated/models/ElasticSearchRuleActionDto.ts index 4114167..ba41169 100644 --- a/src/generated/models/ElasticSearchRuleActionDto.ts +++ b/src/generated/models/ElasticSearchRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -69,6 +65,9 @@ export interface ElasticSearchRuleActionDto extends RuleActionDto { * Check if a given object implements the ElasticSearchRuleActionDto interface. */ export function instanceOfElasticSearchRuleActionDto(value: any): value is ElasticSearchRuleActionDto { + if (!value) { + return false; + } if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; return true; @@ -78,12 +77,12 @@ export function ElasticSearchRuleActionDtoFromJSON(json: any): ElasticSearchRule return ElasticSearchRuleActionDtoFromJSONTyped(json, false); } -export function ElasticSearchRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ElasticSearchRuleActionDto { +export function ElasticSearchRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ElasticSearchRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'host': json['host'], 'indexName': json['indexName'], 'username': json['username'] == null ? undefined : json['username'], @@ -93,7 +92,7 @@ export function ElasticSearchRuleActionDtoFromJSONTyped(json: any, ignoreDiscrim }; } -export function ElasticSearchRuleActionDtoToJSON(value?: ElasticSearchRuleActionDto | null, ignoreDiscriminator = false): any { +export function ElasticSearchRuleActionDtoToJSON(value?: ElasticSearchRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/EmailRuleActionDto.ts b/src/generated/models/EmailRuleActionDto.ts index 124dd06..e798068 100644 --- a/src/generated/models/EmailRuleActionDto.ts +++ b/src/generated/models/EmailRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -81,6 +77,9 @@ export interface EmailRuleActionDto extends RuleActionDto { * Check if a given object implements the EmailRuleActionDto interface. */ export function instanceOfEmailRuleActionDto(value: any): value is EmailRuleActionDto { + if (!value) { + return false; + } if (!('serverHost' in value) || value['serverHost'] === undefined) return false; if (!('serverPort' in value) || value['serverPort'] === undefined) return false; if (!('serverUsername' in value) || value['serverUsername'] === undefined) return false; @@ -96,12 +95,12 @@ export function EmailRuleActionDtoFromJSON(json: any): EmailRuleActionDto { return EmailRuleActionDtoFromJSONTyped(json, false); } -export function EmailRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailRuleActionDto { +export function EmailRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): EmailRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'serverHost': json['serverHost'], 'serverPort': json['serverPort'], 'serverUsername': json['serverUsername'], @@ -113,7 +112,7 @@ export function EmailRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function EmailRuleActionDtoToJSON(value?: EmailRuleActionDto | null, ignoreDiscriminator = false): any { +export function EmailRuleActionDtoToJSON(value?: EmailRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ErrorDto.ts b/src/generated/models/ErrorDto.ts index 706365d..8eca417 100644 --- a/src/generated/models/ErrorDto.ts +++ b/src/generated/models/ErrorDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -62,6 +59,9 @@ export interface ErrorDto { * Check if a given object implements the ErrorDto interface. */ export function instanceOfErrorDto(value: any): value is ErrorDto { + if (!value) { + return false; + } if (!('message' in value) || value['message'] === undefined) return false; if (!('statusCode' in value) || value['statusCode'] === undefined) return false; return true; @@ -71,7 +71,7 @@ export function ErrorDtoFromJSON(json: any): ErrorDto { return ErrorDtoFromJSONTyped(json, false); } -export function ErrorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDto { +export function ErrorDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ErrorDto { if (json == null) { return json; } @@ -86,7 +86,7 @@ export function ErrorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function ErrorDtoToJSON(value?: ErrorDto | null, ignoreDiscriminator = false): any { +export function ErrorDtoToJSON(value?: ErrorDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/EventConsumerDto.ts b/src/generated/models/EventConsumerDto.ts index 8467700..3e3a755 100644 --- a/src/generated/models/EventConsumerDto.ts +++ b/src/generated/models/EventConsumerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -75,6 +72,9 @@ export interface EventConsumerDto { * Check if a given object implements the EventConsumerDto interface. */ export function instanceOfEventConsumerDto(value: any): value is EventConsumerDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('isStopped' in value) || value['isStopped'] === undefined) return false; if (!('isResetting' in value) || value['isResetting'] === undefined) return false; @@ -87,7 +87,7 @@ export function EventConsumerDtoFromJSON(json: any): EventConsumerDto { return EventConsumerDtoFromJSONTyped(json, false); } -export function EventConsumerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventConsumerDto { +export function EventConsumerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): EventConsumerDto { if (json == null) { return json; } @@ -103,7 +103,7 @@ export function EventConsumerDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function EventConsumerDtoToJSON(value?: EventConsumerDto | null, ignoreDiscriminator = false): any { +export function EventConsumerDtoToJSON(value?: EventConsumerDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/EventConsumersDto.ts b/src/generated/models/EventConsumersDto.ts index 3383c80..ca5274f 100644 --- a/src/generated/models/EventConsumersDto.ts +++ b/src/generated/models/EventConsumersDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { EventConsumerDto } from './EventConsumerDto'; import { EventConsumerDtoFromJSON, - EventConsumerDtoFromJSONTyped, EventConsumerDtoToJSON, } from './EventConsumerDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -51,6 +47,9 @@ export interface EventConsumersDto { * Check if a given object implements the EventConsumersDto interface. */ export function instanceOfEventConsumersDto(value: any): value is EventConsumersDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function EventConsumersDtoFromJSON(json: any): EventConsumersDto { return EventConsumersDtoFromJSONTyped(json, false); } -export function EventConsumersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventConsumersDto { +export function EventConsumersDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): EventConsumersDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function EventConsumersDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function EventConsumersDtoToJSON(value?: EventConsumersDto | null, ignoreDiscriminator = false): any { +export function EventConsumersDtoToJSON(value?: EventConsumersDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/FastlyRuleActionDto.ts b/src/generated/models/FastlyRuleActionDto.ts index 400c2d7..f2b1a61 100644 --- a/src/generated/models/FastlyRuleActionDto.ts +++ b/src/generated/models/FastlyRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -45,6 +41,9 @@ export interface FastlyRuleActionDto extends RuleActionDto { * Check if a given object implements the FastlyRuleActionDto interface. */ export function instanceOfFastlyRuleActionDto(value: any): value is FastlyRuleActionDto { + if (!value) { + return false; + } if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('serviceId' in value) || value['serviceId'] === undefined) return false; return true; @@ -54,18 +53,18 @@ export function FastlyRuleActionDtoFromJSON(json: any): FastlyRuleActionDto { return FastlyRuleActionDtoFromJSONTyped(json, false); } -export function FastlyRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FastlyRuleActionDto { +export function FastlyRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): FastlyRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'apiKey': json['apiKey'], 'serviceId': json['serviceId'], }; } -export function FastlyRuleActionDtoToJSON(value?: FastlyRuleActionDto | null, ignoreDiscriminator = false): any { +export function FastlyRuleActionDtoToJSON(value?: FastlyRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/FeatureDto.ts b/src/generated/models/FeatureDto.ts index 6e9baa7..e834e54 100644 --- a/src/generated/models/FeatureDto.ts +++ b/src/generated/models/FeatureDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface FeatureDto { * Check if a given object implements the FeatureDto interface. */ export function instanceOfFeatureDto(value: any): value is FeatureDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; @@ -47,7 +47,7 @@ export function FeatureDtoFromJSON(json: any): FeatureDto { return FeatureDtoFromJSONTyped(json, false); } -export function FeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureDto { +export function FeatureDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): FeatureDto { if (json == null) { return json; } @@ -58,7 +58,7 @@ export function FeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function FeatureDtoToJSON(value?: FeatureDto | null, ignoreDiscriminator = false): any { +export function FeatureDtoToJSON(value?: FeatureDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/FeaturesDto.ts b/src/generated/models/FeaturesDto.ts index 3abb8c3..dacff2a 100644 --- a/src/generated/models/FeaturesDto.ts +++ b/src/generated/models/FeaturesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FeatureDto } from './FeatureDto'; import { FeatureDtoFromJSON, - FeatureDtoFromJSONTyped, FeatureDtoToJSON, } from './FeatureDto'; @@ -45,6 +41,9 @@ export interface FeaturesDto { * Check if a given object implements the FeaturesDto interface. */ export function instanceOfFeaturesDto(value: any): value is FeaturesDto { + if (!value) { + return false; + } if (!('features' in value) || value['features'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; return true; @@ -54,7 +53,7 @@ export function FeaturesDtoFromJSON(json: any): FeaturesDto { return FeaturesDtoFromJSONTyped(json, false); } -export function FeaturesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesDto { +export function FeaturesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): FeaturesDto { if (json == null) { return json; } @@ -65,7 +64,7 @@ export function FeaturesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function FeaturesDtoToJSON(value?: FeaturesDto | null, ignoreDiscriminator = false): any { +export function FeaturesDtoToJSON(value?: FeaturesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/FieldDto.ts b/src/generated/models/FieldDto.ts index 9c09105..479b098 100644 --- a/src/generated/models/FieldDto.ts +++ b/src/generated/models/FieldDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { FieldPropertiesDtoFromJSON, - FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { NestedFieldDto } from './NestedFieldDto'; import { NestedFieldDtoFromJSON, - NestedFieldDtoFromJSONTyped, NestedFieldDtoToJSON, } from './NestedFieldDto'; @@ -99,6 +94,9 @@ export interface FieldDto { * Check if a given object implements the FieldDto interface. */ export function instanceOfFieldDto(value: any): value is FieldDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('fieldId' in value) || value['fieldId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -114,7 +112,7 @@ export function FieldDtoFromJSON(json: any): FieldDto { return FieldDtoFromJSONTyped(json, false); } -export function FieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldDto { +export function FieldDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): FieldDto { if (json == null) { return json; } @@ -132,7 +130,7 @@ export function FieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function FieldDtoToJSON(value?: FieldDto | null, ignoreDiscriminator = false): any { +export function FieldDtoToJSON(value?: FieldDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/FieldPropertiesDto.ts b/src/generated/models/FieldPropertiesDto.ts index 70b4198..9d48df9 100644 --- a/src/generated/models/FieldPropertiesDto.ts +++ b/src/generated/models/FieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import { ArrayFieldPropertiesDto, ArrayFieldPropertiesDtoFromJSONTyped, ArrayFieldPropertiesDtoToJSON } from './ArrayFieldPropertiesDto'; import { AssetsFieldPropertiesDto, AssetsFieldPropertiesDtoFromJSONTyped, AssetsFieldPropertiesDtoToJSON } from './AssetsFieldPropertiesDto'; import { BooleanFieldPropertiesDto, BooleanFieldPropertiesDtoFromJSONTyped, BooleanFieldPropertiesDtoToJSON } from './BooleanFieldPropertiesDto'; @@ -150,6 +147,9 @@ export function isUIFieldPropertiesDto(value: FieldPropertiesDto): value is UIFi * Check if a given object implements the FieldPropertiesDto interface. */ export function instanceOfFieldPropertiesDto(value: any): value is FieldPropertiesDto { + if (!value) { + return false; + } if (!('fieldType' in value) || value['fieldType'] === undefined) return false; return true; } @@ -158,11 +158,11 @@ export function FieldPropertiesDtoFromJSON(json: any): FieldPropertiesDto { return FieldPropertiesDtoFromJSONTyped(json, false); } -export function FieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldPropertiesDto { +export function FieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): FieldPropertiesDto { if (json == null) { return json; } - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { if (json['fieldType'] === 'Array') { return ArrayFieldPropertiesDtoFromJSONTyped(json, true); } @@ -220,11 +220,11 @@ export function FieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function FieldPropertiesDtoToJSON(value?: FieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function FieldPropertiesDtoToJSON(value?: FieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { if (value['fieldType'] === 'Array') { return ArrayFieldPropertiesDtoToJSON(value as ArrayFieldPropertiesDto, true); } diff --git a/src/generated/models/FieldRuleAction.ts b/src/generated/models/FieldRuleAction.ts index b470bdf..4485835 100644 --- a/src/generated/models/FieldRuleAction.ts +++ b/src/generated/models/FieldRuleAction.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function FieldRuleActionFromJSON(json: any): FieldRuleAction { return FieldRuleActionFromJSONTyped(json, false); } -export function FieldRuleActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldRuleAction { +export function FieldRuleActionFromJSONTyped(json: any, _ignoreDiscriminator: boolean): FieldRuleAction { return json as FieldRuleAction; } export function FieldRuleActionToJSON(value?: FieldRuleAction | null): any { return value as any; } - diff --git a/src/generated/models/FieldRuleDto.ts b/src/generated/models/FieldRuleDto.ts index 616227c..9f303bb 100644 --- a/src/generated/models/FieldRuleDto.ts +++ b/src/generated/models/FieldRuleDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldRuleAction } from './FieldRuleAction'; import { FieldRuleActionFromJSON, - FieldRuleActionFromJSONTyped, FieldRuleActionToJSON, } from './FieldRuleAction'; @@ -53,6 +49,9 @@ export interface FieldRuleDto { * Check if a given object implements the FieldRuleDto interface. */ export function instanceOfFieldRuleDto(value: any): value is FieldRuleDto { + if (!value) { + return false; + } if (!('action' in value) || value['action'] === undefined) return false; if (!('field' in value) || value['field'] === undefined) return false; return true; @@ -62,7 +61,7 @@ export function FieldRuleDtoFromJSON(json: any): FieldRuleDto { return FieldRuleDtoFromJSONTyped(json, false); } -export function FieldRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldRuleDto { +export function FieldRuleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): FieldRuleDto { if (json == null) { return json; } @@ -74,7 +73,7 @@ export function FieldRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function FieldRuleDtoToJSON(value?: FieldRuleDto | null, ignoreDiscriminator = false): any { +export function FieldRuleDtoToJSON(value?: FieldRuleDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/GeolocationFieldEditor.ts b/src/generated/models/GeolocationFieldEditor.ts index 65e843d..4348c4f 100644 --- a/src/generated/models/GeolocationFieldEditor.ts +++ b/src/generated/models/GeolocationFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -38,11 +36,10 @@ export function GeolocationFieldEditorFromJSON(json: any): GeolocationFieldEdito return GeolocationFieldEditorFromJSONTyped(json, false); } -export function GeolocationFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeolocationFieldEditor { +export function GeolocationFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): GeolocationFieldEditor { return json as GeolocationFieldEditor; } export function GeolocationFieldEditorToJSON(value?: GeolocationFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/GeolocationFieldPropertiesDto.ts b/src/generated/models/GeolocationFieldPropertiesDto.ts index e70352d..830a539 100644 --- a/src/generated/models/GeolocationFieldPropertiesDto.ts +++ b/src/generated/models/GeolocationFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { GeolocationFieldEditor } from './GeolocationFieldEditor'; import { GeolocationFieldEditorFromJSON, - GeolocationFieldEditorFromJSONTyped, GeolocationFieldEditorToJSON, } from './GeolocationFieldEditor'; @@ -47,6 +42,9 @@ export interface GeolocationFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the GeolocationFieldPropertiesDto interface. */ export function instanceOfGeolocationFieldPropertiesDto(value: any): value is GeolocationFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -54,17 +52,17 @@ export function GeolocationFieldPropertiesDtoFromJSON(json: any): GeolocationFie return GeolocationFieldPropertiesDtoFromJSONTyped(json, false); } -export function GeolocationFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeolocationFieldPropertiesDto { +export function GeolocationFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): GeolocationFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'editor': json['editor'] == null ? undefined : GeolocationFieldEditorFromJSON(json['editor']), }; } -export function GeolocationFieldPropertiesDtoToJSON(value?: GeolocationFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function GeolocationFieldPropertiesDtoToJSON(value?: GeolocationFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/HistoryEventDto.ts b/src/generated/models/HistoryEventDto.ts index 1c55f7f..22b5fd3 100644 --- a/src/generated/models/HistoryEventDto.ts +++ b/src/generated/models/HistoryEventDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -62,6 +59,9 @@ export interface HistoryEventDto { * Check if a given object implements the HistoryEventDto interface. */ export function instanceOfHistoryEventDto(value: any): value is HistoryEventDto { + if (!value) { + return false; + } if (!('message' in value) || value['message'] === undefined) return false; if (!('eventType' in value) || value['eventType'] === undefined) return false; if (!('actor' in value) || value['actor'] === undefined) return false; @@ -75,7 +75,7 @@ export function HistoryEventDtoFromJSON(json: any): HistoryEventDto { return HistoryEventDtoFromJSONTyped(json, false); } -export function HistoryEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistoryEventDto { +export function HistoryEventDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): HistoryEventDto { if (json == null) { return json; } @@ -90,7 +90,7 @@ export function HistoryEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function HistoryEventDtoToJSON(value?: HistoryEventDto | null, ignoreDiscriminator = false): any { +export function HistoryEventDtoToJSON(value?: HistoryEventDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ImageFormat.ts b/src/generated/models/ImageFormat.ts index 6840a37..2283cfc 100644 --- a/src/generated/models/ImageFormat.ts +++ b/src/generated/models/ImageFormat.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -45,11 +43,10 @@ export function ImageFormatFromJSON(json: any): ImageFormat { return ImageFormatFromJSONTyped(json, false); } -export function ImageFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageFormat { +export function ImageFormatFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ImageFormat { return json as ImageFormat; } export function ImageFormatToJSON(value?: ImageFormat | null): any { return value as any; } - diff --git a/src/generated/models/ImportContentsDto.ts b/src/generated/models/ImportContentsDto.ts index e20dc2b..e5bc707 100644 --- a/src/generated/models/ImportContentsDto.ts +++ b/src/generated/models/ImportContentsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -51,6 +48,9 @@ export interface ImportContentsDto { * Check if a given object implements the ImportContentsDto interface. */ export function instanceOfImportContentsDto(value: any): value is ImportContentsDto { + if (!value) { + return false; + } if (!('datas' in value) || value['datas'] === undefined) return false; return true; } @@ -59,7 +59,7 @@ export function ImportContentsDtoFromJSON(json: any): ImportContentsDto { return ImportContentsDtoFromJSONTyped(json, false); } -export function ImportContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportContentsDto { +export function ImportContentsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ImportContentsDto { if (json == null) { return json; } @@ -72,7 +72,7 @@ export function ImportContentsDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function ImportContentsDtoToJSON(value?: ImportContentsDto | null, ignoreDiscriminator = false): any { +export function ImportContentsDtoToJSON(value?: ImportContentsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/JobDto.ts b/src/generated/models/JobDto.ts index 44f78c1..0101e1d 100644 --- a/src/generated/models/JobDto.ts +++ b/src/generated/models/JobDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { JobStatus } from './JobStatus'; import { JobStatusFromJSON, - JobStatusFromJSONTyped, JobStatusToJSON, } from './JobStatus'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { JobLogMessageDto } from './JobLogMessageDto'; import { JobLogMessageDtoFromJSON, - JobLogMessageDtoFromJSONTyped, JobLogMessageDtoToJSON, } from './JobLogMessageDto'; @@ -107,6 +102,9 @@ export interface JobDto { * Check if a given object implements the JobDto interface. */ export function instanceOfJobDto(value: any): value is JobDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; @@ -123,7 +121,7 @@ export function JobDtoFromJSON(json: any): JobDto { return JobDtoFromJSONTyped(json, false); } -export function JobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDto { +export function JobDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): JobDto { if (json == null) { return json; } @@ -142,7 +140,7 @@ export function JobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Jo }; } -export function JobDtoToJSON(value?: JobDto | null, ignoreDiscriminator = false): any { +export function JobDtoToJSON(value?: JobDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/JobLogMessageDto.ts b/src/generated/models/JobLogMessageDto.ts index 42fdcaa..35c1bf9 100644 --- a/src/generated/models/JobLogMessageDto.ts +++ b/src/generated/models/JobLogMessageDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface JobLogMessageDto { * Check if a given object implements the JobLogMessageDto interface. */ export function instanceOfJobLogMessageDto(value: any): value is JobLogMessageDto { + if (!value) { + return false; + } if (!('timestamp' in value) || value['timestamp'] === undefined) return false; if (!('message' in value) || value['message'] === undefined) return false; return true; @@ -47,7 +47,7 @@ export function JobLogMessageDtoFromJSON(json: any): JobLogMessageDto { return JobLogMessageDtoFromJSONTyped(json, false); } -export function JobLogMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobLogMessageDto { +export function JobLogMessageDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): JobLogMessageDto { if (json == null) { return json; } @@ -58,7 +58,7 @@ export function JobLogMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function JobLogMessageDtoToJSON(value?: JobLogMessageDto | null, ignoreDiscriminator = false): any { +export function JobLogMessageDtoToJSON(value?: JobLogMessageDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/JobStatus.ts b/src/generated/models/JobStatus.ts index d1e55cf..3f6c97f 100644 --- a/src/generated/models/JobStatus.ts +++ b/src/generated/models/JobStatus.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -42,11 +40,10 @@ export function JobStatusFromJSON(json: any): JobStatus { return JobStatusFromJSONTyped(json, false); } -export function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus { +export function JobStatusFromJSONTyped(json: any, _ignoreDiscriminator: boolean): JobStatus { return json as JobStatus; } export function JobStatusToJSON(value?: JobStatus | null): any { return value as any; } - diff --git a/src/generated/models/JobsDto.ts b/src/generated/models/JobsDto.ts index c3e269b..1eab35a 100644 --- a/src/generated/models/JobsDto.ts +++ b/src/generated/models/JobsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { JobDto } from './JobDto'; import { JobDtoFromJSON, - JobDtoFromJSONTyped, JobDtoToJSON, } from './JobDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -51,6 +47,9 @@ export interface JobsDto { * Check if a given object implements the JobsDto interface. */ export function instanceOfJobsDto(value: any): value is JobsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function JobsDtoFromJSON(json: any): JobsDto { return JobsDtoFromJSONTyped(json, false); } -export function JobsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobsDto { +export function JobsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): JobsDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function JobsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): J }; } -export function JobsDtoToJSON(value?: JobsDto | null, ignoreDiscriminator = false): any { +export function JobsDtoToJSON(value?: JobsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/JsonFieldPropertiesDto.ts b/src/generated/models/JsonFieldPropertiesDto.ts index 001254c..c7761c4 100644 --- a/src/generated/models/JsonFieldPropertiesDto.ts +++ b/src/generated/models/JsonFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; @@ -39,6 +35,9 @@ export interface JsonFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the JsonFieldPropertiesDto interface. */ export function instanceOfJsonFieldPropertiesDto(value: any): value is JsonFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -46,17 +45,17 @@ export function JsonFieldPropertiesDtoFromJSON(json: any): JsonFieldPropertiesDt return JsonFieldPropertiesDtoFromJSONTyped(json, false); } -export function JsonFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonFieldPropertiesDto { +export function JsonFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): JsonFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'graphQLSchema': json['graphQLSchema'] == null ? undefined : json['graphQLSchema'], }; } -export function JsonFieldPropertiesDtoToJSON(value?: JsonFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function JsonFieldPropertiesDtoToJSON(value?: JsonFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/LanguageDto.ts b/src/generated/models/LanguageDto.ts index 889f952..40d2acd 100644 --- a/src/generated/models/LanguageDto.ts +++ b/src/generated/models/LanguageDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface LanguageDto { * Check if a given object implements the LanguageDto interface. */ export function instanceOfLanguageDto(value: any): value is LanguageDto { + if (!value) { + return false; + } if (!('iso2Code' in value) || value['iso2Code'] === undefined) return false; if (!('englishName' in value) || value['englishName'] === undefined) return false; if (!('nativeName' in value) || value['nativeName'] === undefined) return false; @@ -54,7 +54,7 @@ export function LanguageDtoFromJSON(json: any): LanguageDto { return LanguageDtoFromJSONTyped(json, false); } -export function LanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LanguageDto { +export function LanguageDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): LanguageDto { if (json == null) { return json; } @@ -66,7 +66,7 @@ export function LanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function LanguageDtoToJSON(value?: LanguageDto | null, ignoreDiscriminator = false): any { +export function LanguageDtoToJSON(value?: LanguageDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/LogDownloadDto.ts b/src/generated/models/LogDownloadDto.ts index 344e031..79a6085 100644 --- a/src/generated/models/LogDownloadDto.ts +++ b/src/generated/models/LogDownloadDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface LogDownloadDto { * Check if a given object implements the LogDownloadDto interface. */ export function instanceOfLogDownloadDto(value: any): value is LogDownloadDto { + if (!value) { + return false; + } return true; } @@ -39,7 +39,7 @@ export function LogDownloadDtoFromJSON(json: any): LogDownloadDto { return LogDownloadDtoFromJSONTyped(json, false); } -export function LogDownloadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogDownloadDto { +export function LogDownloadDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): LogDownloadDto { if (json == null) { return json; } @@ -49,7 +49,7 @@ export function LogDownloadDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function LogDownloadDtoToJSON(value?: LogDownloadDto | null, ignoreDiscriminator = false): any { +export function LogDownloadDtoToJSON(value?: LogDownloadDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ManualRuleTriggerDto.ts b/src/generated/models/ManualRuleTriggerDto.ts index 89c5b9d..e4e0bc6 100644 --- a/src/generated/models/ManualRuleTriggerDto.ts +++ b/src/generated/models/ManualRuleTriggerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,13 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleTriggerDto } from './RuleTriggerDto'; -import { - RuleTriggerDtoFromJSON, - RuleTriggerDtoFromJSONTyped, - RuleTriggerDtoToJSON, -} from './RuleTriggerDto'; + + /** * @@ -33,6 +27,9 @@ export interface ManualRuleTriggerDto extends RuleTriggerDto { * Check if a given object implements the ManualRuleTriggerDto interface. */ export function instanceOfManualRuleTriggerDto(value: any): value is ManualRuleTriggerDto { + if (!value) { + return false; + } return true; } @@ -40,10 +37,10 @@ export function ManualRuleTriggerDtoFromJSON(json: any): ManualRuleTriggerDto { return ManualRuleTriggerDtoFromJSONTyped(json, false); } -export function ManualRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualRuleTriggerDto { +export function ManualRuleTriggerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ManualRuleTriggerDto { return json; } -export function ManualRuleTriggerDtoToJSON(value?: ManualRuleTriggerDto | null, ignoreDiscriminator = false): any { +export function ManualRuleTriggerDtoToJSON(value?: ManualRuleTriggerDto | null, _ignoreDiscriminator = false): any { return value; } diff --git a/src/generated/models/MediumRuleActionDto.ts b/src/generated/models/MediumRuleActionDto.ts index c166788..4f4c3a3 100644 --- a/src/generated/models/MediumRuleActionDto.ts +++ b/src/generated/models/MediumRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -75,6 +71,9 @@ export interface MediumRuleActionDto extends RuleActionDto { * Check if a given object implements the MediumRuleActionDto interface. */ export function instanceOfMediumRuleActionDto(value: any): value is MediumRuleActionDto { + if (!value) { + return false; + } if (!('accessToken' in value) || value['accessToken'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; if (!('content' in value) || value['content'] === undefined) return false; @@ -86,12 +85,12 @@ export function MediumRuleActionDtoFromJSON(json: any): MediumRuleActionDto { return MediumRuleActionDtoFromJSONTyped(json, false); } -export function MediumRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MediumRuleActionDto { +export function MediumRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): MediumRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'accessToken': json['accessToken'], 'title': json['title'], 'content': json['content'], @@ -102,7 +101,7 @@ export function MediumRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function MediumRuleActionDtoToJSON(value?: MediumRuleActionDto | null, ignoreDiscriminator = false): any { +export function MediumRuleActionDtoToJSON(value?: MediumRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/MoveAssetDto.ts b/src/generated/models/MoveAssetDto.ts index 70e0c85..6e6e595 100644 --- a/src/generated/models/MoveAssetDto.ts +++ b/src/generated/models/MoveAssetDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface MoveAssetDto { * Check if a given object implements the MoveAssetDto interface. */ export function instanceOfMoveAssetDto(value: any): value is MoveAssetDto { + if (!value) { + return false; + } return true; } @@ -39,7 +39,7 @@ export function MoveAssetDtoFromJSON(json: any): MoveAssetDto { return MoveAssetDtoFromJSONTyped(json, false); } -export function MoveAssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveAssetDto { +export function MoveAssetDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): MoveAssetDto { if (json == null) { return json; } @@ -49,7 +49,7 @@ export function MoveAssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function MoveAssetDtoToJSON(value?: MoveAssetDto | null, ignoreDiscriminator = false): any { +export function MoveAssetDtoToJSON(value?: MoveAssetDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/MoveAssetFolderDto.ts b/src/generated/models/MoveAssetFolderDto.ts index 4895a40..c83ce65 100644 --- a/src/generated/models/MoveAssetFolderDto.ts +++ b/src/generated/models/MoveAssetFolderDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface MoveAssetFolderDto { * Check if a given object implements the MoveAssetFolderDto interface. */ export function instanceOfMoveAssetFolderDto(value: any): value is MoveAssetFolderDto { + if (!value) { + return false; + } return true; } @@ -39,7 +39,7 @@ export function MoveAssetFolderDtoFromJSON(json: any): MoveAssetFolderDto { return MoveAssetFolderDtoFromJSONTyped(json, false); } -export function MoveAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveAssetFolderDto { +export function MoveAssetFolderDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): MoveAssetFolderDto { if (json == null) { return json; } @@ -49,7 +49,7 @@ export function MoveAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function MoveAssetFolderDtoToJSON(value?: MoveAssetFolderDto | null, ignoreDiscriminator = false): any { +export function MoveAssetFolderDtoToJSON(value?: MoveAssetFolderDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/NestedFieldDto.ts b/src/generated/models/NestedFieldDto.ts index f9d36af..35ff489 100644 --- a/src/generated/models/NestedFieldDto.ts +++ b/src/generated/models/NestedFieldDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { FieldPropertiesDtoFromJSON, - FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -81,6 +77,9 @@ export interface NestedFieldDto { * Check if a given object implements the NestedFieldDto interface. */ export function instanceOfNestedFieldDto(value: any): value is NestedFieldDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('fieldId' in value) || value['fieldId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -95,7 +94,7 @@ export function NestedFieldDtoFromJSON(json: any): NestedFieldDto { return NestedFieldDtoFromJSONTyped(json, false); } -export function NestedFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NestedFieldDto { +export function NestedFieldDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): NestedFieldDto { if (json == null) { return json; } @@ -111,7 +110,7 @@ export function NestedFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function NestedFieldDtoToJSON(value?: NestedFieldDto | null, ignoreDiscriminator = false): any { +export function NestedFieldDtoToJSON(value?: NestedFieldDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/NotificationRuleActionDto.ts b/src/generated/models/NotificationRuleActionDto.ts index 05a3b92..e54f0f2 100644 --- a/src/generated/models/NotificationRuleActionDto.ts +++ b/src/generated/models/NotificationRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -57,6 +53,9 @@ export interface NotificationRuleActionDto extends RuleActionDto { * Check if a given object implements the NotificationRuleActionDto interface. */ export function instanceOfNotificationRuleActionDto(value: any): value is NotificationRuleActionDto { + if (!value) { + return false; + } if (!('user' in value) || value['user'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; @@ -66,12 +65,12 @@ export function NotificationRuleActionDtoFromJSON(json: any): NotificationRuleAc return NotificationRuleActionDtoFromJSONTyped(json, false); } -export function NotificationRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationRuleActionDto { +export function NotificationRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): NotificationRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'user': json['user'], 'text': json['text'], 'url': json['url'] == null ? undefined : json['url'], @@ -79,7 +78,7 @@ export function NotificationRuleActionDtoFromJSONTyped(json: any, ignoreDiscrimi }; } -export function NotificationRuleActionDtoToJSON(value?: NotificationRuleActionDto | null, ignoreDiscriminator = false): any { +export function NotificationRuleActionDtoToJSON(value?: NotificationRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/NumberFieldEditor.ts b/src/generated/models/NumberFieldEditor.ts index f3d254c..331ea52 100644 --- a/src/generated/models/NumberFieldEditor.ts +++ b/src/generated/models/NumberFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -41,11 +39,10 @@ export function NumberFieldEditorFromJSON(json: any): NumberFieldEditor { return NumberFieldEditorFromJSONTyped(json, false); } -export function NumberFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NumberFieldEditor { +export function NumberFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): NumberFieldEditor { return json as NumberFieldEditor; } export function NumberFieldEditorToJSON(value?: NumberFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/NumberFieldPropertiesDto.ts b/src/generated/models/NumberFieldPropertiesDto.ts index 9c0066c..c4f418d 100644 --- a/src/generated/models/NumberFieldPropertiesDto.ts +++ b/src/generated/models/NumberFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { NumberFieldEditor } from './NumberFieldEditor'; import { NumberFieldEditorFromJSON, - NumberFieldEditorFromJSONTyped, NumberFieldEditorToJSON, } from './NumberFieldEditor'; @@ -89,6 +84,9 @@ export interface NumberFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the NumberFieldPropertiesDto interface. */ export function instanceOfNumberFieldPropertiesDto(value: any): value is NumberFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -96,12 +94,12 @@ export function NumberFieldPropertiesDtoFromJSON(json: any): NumberFieldProperti return NumberFieldPropertiesDtoFromJSONTyped(json, false); } -export function NumberFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NumberFieldPropertiesDto { +export function NumberFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): NumberFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], 'maxValue': json['maxValue'] == null ? undefined : json['maxValue'], @@ -113,7 +111,7 @@ export function NumberFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscrimin }; } -export function NumberFieldPropertiesDtoToJSON(value?: NumberFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function NumberFieldPropertiesDtoToJSON(value?: NumberFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/OpenSearchRuleActionDto.ts b/src/generated/models/OpenSearchRuleActionDto.ts index 2b9ffa2..26e13f6 100644 --- a/src/generated/models/OpenSearchRuleActionDto.ts +++ b/src/generated/models/OpenSearchRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -69,6 +65,9 @@ export interface OpenSearchRuleActionDto extends RuleActionDto { * Check if a given object implements the OpenSearchRuleActionDto interface. */ export function instanceOfOpenSearchRuleActionDto(value: any): value is OpenSearchRuleActionDto { + if (!value) { + return false; + } if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; return true; @@ -78,12 +77,12 @@ export function OpenSearchRuleActionDtoFromJSON(json: any): OpenSearchRuleAction return OpenSearchRuleActionDtoFromJSONTyped(json, false); } -export function OpenSearchRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenSearchRuleActionDto { +export function OpenSearchRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): OpenSearchRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'host': json['host'], 'indexName': json['indexName'], 'username': json['username'] == null ? undefined : json['username'], @@ -93,7 +92,7 @@ export function OpenSearchRuleActionDtoFromJSONTyped(json: any, ignoreDiscrimina }; } -export function OpenSearchRuleActionDtoToJSON(value?: OpenSearchRuleActionDto | null, ignoreDiscriminator = false): any { +export function OpenSearchRuleActionDtoToJSON(value?: OpenSearchRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/PatternDto.ts b/src/generated/models/PatternDto.ts index f20de17..92b5bc7 100644 --- a/src/generated/models/PatternDto.ts +++ b/src/generated/models/PatternDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface PatternDto { * Check if a given object implements the PatternDto interface. */ export function instanceOfPatternDto(value: any): value is PatternDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; if (!('regex' in value) || value['regex'] === undefined) return false; return true; @@ -53,7 +53,7 @@ export function PatternDtoFromJSON(json: any): PatternDto { return PatternDtoFromJSONTyped(json, false); } -export function PatternDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatternDto { +export function PatternDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): PatternDto { if (json == null) { return json; } @@ -65,7 +65,7 @@ export function PatternDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function PatternDtoToJSON(value?: PatternDto | null, ignoreDiscriminator = false): any { +export function PatternDtoToJSON(value?: PatternDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/PlanChangedDto.ts b/src/generated/models/PlanChangedDto.ts index 97d4c23..9ec5e16 100644 --- a/src/generated/models/PlanChangedDto.ts +++ b/src/generated/models/PlanChangedDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface PlanChangedDto { * Check if a given object implements the PlanChangedDto interface. */ export function instanceOfPlanChangedDto(value: any): value is PlanChangedDto { + if (!value) { + return false; + } return true; } @@ -39,7 +39,7 @@ export function PlanChangedDtoFromJSON(json: any): PlanChangedDto { return PlanChangedDtoFromJSONTyped(json, false); } -export function PlanChangedDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanChangedDto { +export function PlanChangedDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): PlanChangedDto { if (json == null) { return json; } @@ -49,7 +49,7 @@ export function PlanChangedDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function PlanChangedDtoToJSON(value?: PlanChangedDto | null, ignoreDiscriminator = false): any { +export function PlanChangedDtoToJSON(value?: PlanChangedDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/PlanDto.ts b/src/generated/models/PlanDto.ts index 358a020..ee6f76b 100644 --- a/src/generated/models/PlanDto.ts +++ b/src/generated/models/PlanDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -92,6 +89,9 @@ export interface PlanDto { * Check if a given object implements the PlanDto interface. */ export function instanceOfPlanDto(value: any): value is PlanDto { + if (!value) { + return false; + } if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('costs' in value) || value['costs'] === undefined) return false; @@ -106,7 +106,7 @@ export function PlanDtoFromJSON(json: any): PlanDto { return PlanDtoFromJSONTyped(json, false); } -export function PlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanDto { +export function PlanDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): PlanDto { if (json == null) { return json; } @@ -126,7 +126,7 @@ export function PlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): P }; } -export function PlanDtoToJSON(value?: PlanDto | null, ignoreDiscriminator = false): any { +export function PlanDtoToJSON(value?: PlanDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/PlansDto.ts b/src/generated/models/PlansDto.ts index ded5535..c926cc2 100644 --- a/src/generated/models/PlansDto.ts +++ b/src/generated/models/PlansDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,23 +10,19 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { ReferralInfo } from './ReferralInfo'; import { ReferralInfoFromJSON, - ReferralInfoFromJSONTyped, ReferralInfoToJSON, } from './ReferralInfo'; import type { PlanDto } from './PlanDto'; import { PlanDtoFromJSON, - PlanDtoFromJSONTyped, PlanDtoToJSON, } from './PlanDto'; import type { PlansLockedReason } from './PlansLockedReason'; import { PlansLockedReasonFromJSON, - PlansLockedReasonFromJSONTyped, PlansLockedReasonToJSON, } from './PlansLockedReason'; @@ -83,6 +77,9 @@ export interface PlansDto { * Check if a given object implements the PlansDto interface. */ export function instanceOfPlansDto(value: any): value is PlansDto { + if (!value) { + return false; + } if (!('plans' in value) || value['plans'] === undefined) return false; if (!('locked' in value) || value['locked'] === undefined) return false; return true; @@ -92,7 +89,7 @@ export function PlansDtoFromJSON(json: any): PlansDto { return PlansDtoFromJSONTyped(json, false); } -export function PlansDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansDto { +export function PlansDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): PlansDto { if (json == null) { return json; } @@ -107,7 +104,7 @@ export function PlansDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function PlansDtoToJSON(value?: PlansDto | null, ignoreDiscriminator = false): any { +export function PlansDtoToJSON(value?: PlansDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/PlansLockedReason.ts b/src/generated/models/PlansLockedReason.ts index cab6e0f..fcb8625 100644 --- a/src/generated/models/PlansLockedReason.ts +++ b/src/generated/models/PlansLockedReason.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -41,11 +39,10 @@ export function PlansLockedReasonFromJSON(json: any): PlansLockedReason { return PlansLockedReasonFromJSONTyped(json, false); } -export function PlansLockedReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansLockedReason { +export function PlansLockedReasonFromJSONTyped(json: any, _ignoreDiscriminator: boolean): PlansLockedReason { return json as PlansLockedReason; } export function PlansLockedReasonToJSON(value?: PlansLockedReason | null): any { return value as any; } - diff --git a/src/generated/models/PrerenderRuleActionDto.ts b/src/generated/models/PrerenderRuleActionDto.ts index 471fbf4..ee80ff5 100644 --- a/src/generated/models/PrerenderRuleActionDto.ts +++ b/src/generated/models/PrerenderRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -45,6 +41,9 @@ export interface PrerenderRuleActionDto extends RuleActionDto { * Check if a given object implements the PrerenderRuleActionDto interface. */ export function instanceOfPrerenderRuleActionDto(value: any): value is PrerenderRuleActionDto { + if (!value) { + return false; + } if (!('token' in value) || value['token'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; @@ -54,18 +53,18 @@ export function PrerenderRuleActionDtoFromJSON(json: any): PrerenderRuleActionDt return PrerenderRuleActionDtoFromJSONTyped(json, false); } -export function PrerenderRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrerenderRuleActionDto { +export function PrerenderRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): PrerenderRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'token': json['token'], 'url': json['url'], }; } -export function PrerenderRuleActionDtoToJSON(value?: PrerenderRuleActionDto | null, ignoreDiscriminator = false): any { +export function PrerenderRuleActionDtoToJSON(value?: PrerenderRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/QueryDto.ts b/src/generated/models/QueryDto.ts index 5447af2..b2d6873 100644 --- a/src/generated/models/QueryDto.ts +++ b/src/generated/models/QueryDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -50,6 +47,9 @@ export interface QueryDto { * Check if a given object implements the QueryDto interface. */ export function instanceOfQueryDto(value: any): value is QueryDto { + if (!value) { + return false; + } return true; } @@ -57,7 +57,7 @@ export function QueryDtoFromJSON(json: any): QueryDto { return QueryDtoFromJSONTyped(json, false); } -export function QueryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueryDto { +export function QueryDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): QueryDto { if (json == null) { return json; } @@ -70,7 +70,7 @@ export function QueryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function QueryDtoToJSON(value?: QueryDto | null, ignoreDiscriminator = false): any { +export function QueryDtoToJSON(value?: QueryDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/QueryJsonDto.ts b/src/generated/models/QueryJsonDto.ts index c758a22..9826eca 100644 --- a/src/generated/models/QueryJsonDto.ts +++ b/src/generated/models/QueryJsonDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { SortNode } from './SortNode'; import { SortNodeFromJSON, - SortNodeFromJSONTyped, SortNodeToJSON, } from './SortNode'; @@ -75,6 +71,9 @@ export interface QueryJsonDto { * Check if a given object implements the QueryJsonDto interface. */ export function instanceOfQueryJsonDto(value: any): value is QueryJsonDto { + if (!value) { + return false; + } if (!('skip' in value) || value['skip'] === undefined) return false; if (!('take' in value) || value['take'] === undefined) return false; if (!('random' in value) || value['random'] === undefined) return false; @@ -86,7 +85,7 @@ export function QueryJsonDtoFromJSON(json: any): QueryJsonDto { return QueryJsonDtoFromJSONTyped(json, false); } -export function QueryJsonDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueryJsonDto { +export function QueryJsonDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): QueryJsonDto { if (json == null) { return json; } @@ -102,7 +101,7 @@ export function QueryJsonDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function QueryJsonDtoToJSON(value?: QueryJsonDto | null, ignoreDiscriminator = false): any { +export function QueryJsonDtoToJSON(value?: QueryJsonDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ReferencesFieldEditor.ts b/src/generated/models/ReferencesFieldEditor.ts index a1cefcd..c4dd192 100644 --- a/src/generated/models/ReferencesFieldEditor.ts +++ b/src/generated/models/ReferencesFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -43,11 +41,10 @@ export function ReferencesFieldEditorFromJSON(json: any): ReferencesFieldEditor return ReferencesFieldEditorFromJSONTyped(json, false); } -export function ReferencesFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferencesFieldEditor { +export function ReferencesFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ReferencesFieldEditor { return json as ReferencesFieldEditor; } export function ReferencesFieldEditorToJSON(value?: ReferencesFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/ReferencesFieldPropertiesDto.ts b/src/generated/models/ReferencesFieldPropertiesDto.ts index 549086e..6ce8394 100644 --- a/src/generated/models/ReferencesFieldPropertiesDto.ts +++ b/src/generated/models/ReferencesFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { ReferencesFieldEditor } from './ReferencesFieldEditor'; import { ReferencesFieldEditorFromJSON, - ReferencesFieldEditorFromJSONTyped, ReferencesFieldEditorToJSON, } from './ReferencesFieldEditor'; @@ -101,6 +96,9 @@ export interface ReferencesFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the ReferencesFieldPropertiesDto interface. */ export function instanceOfReferencesFieldPropertiesDto(value: any): value is ReferencesFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -108,12 +106,12 @@ export function ReferencesFieldPropertiesDtoFromJSON(json: any): ReferencesField return ReferencesFieldPropertiesDtoFromJSONTyped(json, false); } -export function ReferencesFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferencesFieldPropertiesDto { +export function ReferencesFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ReferencesFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], 'minItems': json['minItems'] == null ? undefined : json['minItems'], @@ -127,7 +125,7 @@ export function ReferencesFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscr }; } -export function ReferencesFieldPropertiesDtoToJSON(value?: ReferencesFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function ReferencesFieldPropertiesDtoToJSON(value?: ReferencesFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ReferralInfo.ts b/src/generated/models/ReferralInfo.ts index c288798..46c69e8 100644 --- a/src/generated/models/ReferralInfo.ts +++ b/src/generated/models/ReferralInfo.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface ReferralInfo { * Check if a given object implements the ReferralInfo interface. */ export function instanceOfReferralInfo(value: any): value is ReferralInfo { + if (!value) { + return false; + } if (!('code' in value) || value['code'] === undefined) return false; if (!('earned' in value) || value['earned'] === undefined) return false; if (!('condition' in value) || value['condition'] === undefined) return false; @@ -54,7 +54,7 @@ export function ReferralInfoFromJSON(json: any): ReferralInfo { return ReferralInfoFromJSONTyped(json, false); } -export function ReferralInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferralInfo { +export function ReferralInfoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ReferralInfo { if (json == null) { return json; } @@ -66,7 +66,7 @@ export function ReferralInfoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function ReferralInfoToJSON(value?: ReferralInfo | null, ignoreDiscriminator = false): any { +export function ReferralInfoToJSON(value?: ReferralInfo | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RenameAssetFolderDto.ts b/src/generated/models/RenameAssetFolderDto.ts index aadbef2..43c2ac6 100644 --- a/src/generated/models/RenameAssetFolderDto.ts +++ b/src/generated/models/RenameAssetFolderDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface RenameAssetFolderDto { * Check if a given object implements the RenameAssetFolderDto interface. */ export function instanceOfRenameAssetFolderDto(value: any): value is RenameAssetFolderDto { + if (!value) { + return false; + } if (!('folderName' in value) || value['folderName'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function RenameAssetFolderDtoFromJSON(json: any): RenameAssetFolderDto { return RenameAssetFolderDtoFromJSONTyped(json, false); } -export function RenameAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameAssetFolderDto { +export function RenameAssetFolderDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RenameAssetFolderDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function RenameAssetFolderDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function RenameAssetFolderDtoToJSON(value?: RenameAssetFolderDto | null, ignoreDiscriminator = false): any { +export function RenameAssetFolderDtoToJSON(value?: RenameAssetFolderDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RenameTagDto.ts b/src/generated/models/RenameTagDto.ts index 1c4d493..47db5e3 100644 --- a/src/generated/models/RenameTagDto.ts +++ b/src/generated/models/RenameTagDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface RenameTagDto { * Check if a given object implements the RenameTagDto interface. */ export function instanceOfRenameTagDto(value: any): value is RenameTagDto { + if (!value) { + return false; + } if (!('tagName' in value) || value['tagName'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function RenameTagDtoFromJSON(json: any): RenameTagDto { return RenameTagDtoFromJSONTyped(json, false); } -export function RenameTagDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameTagDto { +export function RenameTagDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RenameTagDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function RenameTagDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function RenameTagDtoToJSON(value?: RenameTagDto | null, ignoreDiscriminator = false): any { +export function RenameTagDtoToJSON(value?: RenameTagDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ReorderFieldsDto.ts b/src/generated/models/ReorderFieldsDto.ts index 1a29cde..9cf7f82 100644 --- a/src/generated/models/ReorderFieldsDto.ts +++ b/src/generated/models/ReorderFieldsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface ReorderFieldsDto { * Check if a given object implements the ReorderFieldsDto interface. */ export function instanceOfReorderFieldsDto(value: any): value is ReorderFieldsDto { + if (!value) { + return false; + } if (!('fieldIds' in value) || value['fieldIds'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function ReorderFieldsDtoFromJSON(json: any): ReorderFieldsDto { return ReorderFieldsDtoFromJSONTyped(json, false); } -export function ReorderFieldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReorderFieldsDto { +export function ReorderFieldsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ReorderFieldsDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function ReorderFieldsDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function ReorderFieldsDtoToJSON(value?: ReorderFieldsDto | null, ignoreDiscriminator = false): any { +export function ReorderFieldsDtoToJSON(value?: ReorderFieldsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ResizeMode.ts b/src/generated/models/ResizeMode.ts index c4da7e0..f9359c1 100644 --- a/src/generated/models/ResizeMode.ts +++ b/src/generated/models/ResizeMode.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -44,11 +42,10 @@ export function ResizeModeFromJSON(json: any): ResizeMode { return ResizeModeFromJSONTyped(json, false); } -export function ResizeModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResizeMode { +export function ResizeModeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ResizeMode { return json as ResizeMode; } export function ResizeModeToJSON(value?: ResizeMode | null): any { return value as any; } - diff --git a/src/generated/models/Resource.ts b/src/generated/models/Resource.ts index f21b0d9..47e4e6e 100644 --- a/src/generated/models/Resource.ts +++ b/src/generated/models/Resource.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -39,6 +36,9 @@ export interface Resource { * Check if a given object implements the Resource interface. */ export function instanceOfResource(value: any): value is Resource { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -47,7 +47,7 @@ export function ResourceFromJSON(json: any): Resource { return ResourceFromJSONTyped(json, false); } -export function ResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resource { +export function ResourceFromJSONTyped(json: any, _ignoreDiscriminator: boolean): Resource { if (json == null) { return json; } @@ -57,7 +57,7 @@ export function ResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function ResourceToJSON(value?: Resource | null, ignoreDiscriminator = false): any { +export function ResourceToJSON(value?: Resource | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ResourceLink.ts b/src/generated/models/ResourceLink.ts index 9eb3862..9eee9ec 100644 --- a/src/generated/models/ResourceLink.ts +++ b/src/generated/models/ResourceLink.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface ResourceLink { * Check if a given object implements the ResourceLink interface. */ export function instanceOfResourceLink(value: any): value is ResourceLink { + if (!value) { + return false; + } if (!('href' in value) || value['href'] === undefined) return false; if (!('method' in value) || value['method'] === undefined) return false; return true; @@ -53,7 +53,7 @@ export function ResourceLinkFromJSON(json: any): ResourceLink { return ResourceLinkFromJSONTyped(json, false); } -export function ResourceLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceLink { +export function ResourceLinkFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ResourceLink { if (json == null) { return json; } @@ -65,7 +65,7 @@ export function ResourceLinkFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function ResourceLinkToJSON(value?: ResourceLink | null, ignoreDiscriminator = false): any { +export function ResourceLinkToJSON(value?: ResourceLink | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ResourcesDto.ts b/src/generated/models/ResourcesDto.ts index b0a6cfc..554e602 100644 --- a/src/generated/models/ResourcesDto.ts +++ b/src/generated/models/ResourcesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -39,6 +36,9 @@ export interface ResourcesDto { * Check if a given object implements the ResourcesDto interface. */ export function instanceOfResourcesDto(value: any): value is ResourcesDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; return true; } @@ -47,7 +47,7 @@ export function ResourcesDtoFromJSON(json: any): ResourcesDto { return ResourcesDtoFromJSONTyped(json, false); } -export function ResourcesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourcesDto { +export function ResourcesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ResourcesDto { if (json == null) { return json; } @@ -57,7 +57,7 @@ export function ResourcesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function ResourcesDtoToJSON(value?: ResourcesDto | null, ignoreDiscriminator = false): any { +export function ResourcesDtoToJSON(value?: ResourcesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RestoreJobDto.ts b/src/generated/models/RestoreJobDto.ts index 7b41bae..3f00ff7 100644 --- a/src/generated/models/RestoreJobDto.ts +++ b/src/generated/models/RestoreJobDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { JobStatus } from './JobStatus'; import { JobStatusFromJSON, - JobStatusFromJSONTyped, JobStatusToJSON, } from './JobStatus'; @@ -65,6 +61,9 @@ export interface RestoreJobDto { * Check if a given object implements the RestoreJobDto interface. */ export function instanceOfRestoreJobDto(value: any): value is RestoreJobDto { + if (!value) { + return false; + } if (!('url' in value) || value['url'] === undefined) return false; if (!('log' in value) || value['log'] === undefined) return false; if (!('started' in value) || value['started'] === undefined) return false; @@ -76,7 +75,7 @@ export function RestoreJobDtoFromJSON(json: any): RestoreJobDto { return RestoreJobDtoFromJSONTyped(json, false); } -export function RestoreJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestoreJobDto { +export function RestoreJobDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RestoreJobDto { if (json == null) { return json; } @@ -90,7 +89,7 @@ export function RestoreJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function RestoreJobDtoToJSON(value?: RestoreJobDto | null, ignoreDiscriminator = false): any { +export function RestoreJobDtoToJSON(value?: RestoreJobDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RestoreRequestDto.ts b/src/generated/models/RestoreRequestDto.ts index a468151..525c749 100644 --- a/src/generated/models/RestoreRequestDto.ts +++ b/src/generated/models/RestoreRequestDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface RestoreRequestDto { * Check if a given object implements the RestoreRequestDto interface. */ export function instanceOfRestoreRequestDto(value: any): value is RestoreRequestDto { + if (!value) { + return false; + } if (!('url' in value) || value['url'] === undefined) return false; return true; } @@ -46,7 +46,7 @@ export function RestoreRequestDtoFromJSON(json: any): RestoreRequestDto { return RestoreRequestDtoFromJSONTyped(json, false); } -export function RestoreRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestoreRequestDto { +export function RestoreRequestDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RestoreRequestDto { if (json == null) { return json; } @@ -57,7 +57,7 @@ export function RestoreRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function RestoreRequestDtoToJSON(value?: RestoreRequestDto | null, ignoreDiscriminator = false): any { +export function RestoreRequestDtoToJSON(value?: RestoreRequestDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RichTextFieldPropertiesDto.ts b/src/generated/models/RichTextFieldPropertiesDto.ts index aabc576..9ba9404 100644 --- a/src/generated/models/RichTextFieldPropertiesDto.ts +++ b/src/generated/models/RichTextFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; @@ -87,6 +83,9 @@ export interface RichTextFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the RichTextFieldPropertiesDto interface. */ export function instanceOfRichTextFieldPropertiesDto(value: any): value is RichTextFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -94,12 +93,12 @@ export function RichTextFieldPropertiesDtoFromJSON(json: any): RichTextFieldProp return RichTextFieldPropertiesDtoFromJSONTyped(json, false); } -export function RichTextFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextFieldPropertiesDto { +export function RichTextFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RichTextFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'folderId': json['folderId'] == null ? undefined : json['folderId'], 'minLength': json['minLength'] == null ? undefined : json['minLength'], 'maxLength': json['maxLength'] == null ? undefined : json['maxLength'], @@ -112,7 +111,7 @@ export function RichTextFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscrim }; } -export function RichTextFieldPropertiesDtoToJSON(value?: RichTextFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function RichTextFieldPropertiesDtoToJSON(value?: RichTextFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RoleDto.ts b/src/generated/models/RoleDto.ts index c893b1d..0f2a3c9 100644 --- a/src/generated/models/RoleDto.ts +++ b/src/generated/models/RoleDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -75,6 +72,9 @@ export interface RoleDto { * Check if a given object implements the RoleDto interface. */ export function instanceOfRoleDto(value: any): value is RoleDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('numClients' in value) || value['numClients'] === undefined) return false; @@ -89,7 +89,7 @@ export function RoleDtoFromJSON(json: any): RoleDto { return RoleDtoFromJSONTyped(json, false); } -export function RoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleDto { +export function RoleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RoleDto { if (json == null) { return json; } @@ -105,7 +105,7 @@ export function RoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): R }; } -export function RoleDtoToJSON(value?: RoleDto | null, ignoreDiscriminator = false): any { +export function RoleDtoToJSON(value?: RoleDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RolesDto.ts b/src/generated/models/RolesDto.ts index bbcad2f..b05686c 100644 --- a/src/generated/models/RolesDto.ts +++ b/src/generated/models/RolesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { RoleDto } from './RoleDto'; import { RoleDtoFromJSON, - RoleDtoFromJSONTyped, RoleDtoToJSON, } from './RoleDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -51,6 +47,9 @@ export interface RolesDto { * Check if a given object implements the RolesDto interface. */ export function instanceOfRolesDto(value: any): value is RolesDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function RolesDtoFromJSON(json: any): RolesDto { return RolesDtoFromJSONTyped(json, false); } -export function RolesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RolesDto { +export function RolesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RolesDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function RolesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function RolesDtoToJSON(value?: RolesDto | null, ignoreDiscriminator = false): any { +export function RolesDtoToJSON(value?: RolesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RuleActionDto.ts b/src/generated/models/RuleActionDto.ts index 0775939..5162227 100644 --- a/src/generated/models/RuleActionDto.ts +++ b/src/generated/models/RuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import { AlgoliaRuleActionDto, AlgoliaRuleActionDtoFromJSONTyped, AlgoliaRuleActionDtoToJSON } from './AlgoliaRuleActionDto'; import { AzureQueueRuleActionDto, AzureQueueRuleActionDtoFromJSONTyped, AzureQueueRuleActionDtoToJSON } from './AzureQueueRuleActionDto'; import { CommentRuleActionDto, CommentRuleActionDtoFromJSONTyped, CommentRuleActionDtoToJSON } from './CommentRuleActionDto'; @@ -122,6 +119,9 @@ export function isWebhookRuleActionDto(value: RuleActionDto): value is WebhookRu * Check if a given object implements the RuleActionDto interface. */ export function instanceOfRuleActionDto(value: any): value is RuleActionDto { + if (!value) { + return false; + } if (!('actionType' in value) || value['actionType'] === undefined) return false; return true; } @@ -130,11 +130,11 @@ export function RuleActionDtoFromJSON(json: any): RuleActionDto { return RuleActionDtoFromJSONTyped(json, false); } -export function RuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleActionDto { +export function RuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleActionDto { if (json == null) { return json; } - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { if (json['actionType'] === 'Algolia') { return AlgoliaRuleActionDtoFromJSONTyped(json, true); } @@ -196,11 +196,11 @@ export function RuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function RuleActionDtoToJSON(value?: RuleActionDto | null, ignoreDiscriminator = false): any { +export function RuleActionDtoToJSON(value?: RuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { if (value['actionType'] === 'Algolia') { return AlgoliaRuleActionDtoToJSON(value as AlgoliaRuleActionDto, true); } diff --git a/src/generated/models/RuleDto.ts b/src/generated/models/RuleDto.ts index d6d50e1..54221e2 100644 --- a/src/generated/models/RuleDto.ts +++ b/src/generated/models/RuleDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { RuleActionDto } from './RuleActionDto'; import { RuleActionDtoFromJSON, - RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { RuleTriggerDtoFromJSON, - RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -130,6 +125,9 @@ export interface RuleDto { * Check if a given object implements the RuleDto interface. */ export function instanceOfRuleDto(value: any): value is RuleDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -149,7 +147,7 @@ export function RuleDtoFromJSON(json: any): RuleDto { return RuleDtoFromJSONTyped(json, false); } -export function RuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleDto { +export function RuleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleDto { if (json == null) { return json; } @@ -172,7 +170,7 @@ export function RuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): R }; } -export function RuleDtoToJSON(value?: RuleDto | null, ignoreDiscriminator = false): any { +export function RuleDtoToJSON(value?: RuleDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RuleElementDto.ts b/src/generated/models/RuleElementDto.ts index d43a23b..15313ba 100644 --- a/src/generated/models/RuleElementDto.ts +++ b/src/generated/models/RuleElementDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleElementPropertyDto } from './RuleElementPropertyDto'; import { RuleElementPropertyDtoFromJSON, - RuleElementPropertyDtoFromJSONTyped, RuleElementPropertyDtoToJSON, } from './RuleElementPropertyDto'; @@ -75,6 +71,9 @@ export interface RuleElementDto { * Check if a given object implements the RuleElementDto interface. */ export function instanceOfRuleElementDto(value: any): value is RuleElementDto { + if (!value) { + return false; + } if (!('description' in value) || value['description'] === undefined) return false; if (!('display' in value) || value['display'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; @@ -85,7 +84,7 @@ export function RuleElementDtoFromJSON(json: any): RuleElementDto { return RuleElementDtoFromJSONTyped(json, false); } -export function RuleElementDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleElementDto { +export function RuleElementDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleElementDto { if (json == null) { return json; } @@ -101,7 +100,7 @@ export function RuleElementDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function RuleElementDtoToJSON(value?: RuleElementDto | null, ignoreDiscriminator = false): any { +export function RuleElementDtoToJSON(value?: RuleElementDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RuleElementPropertyDto.ts b/src/generated/models/RuleElementPropertyDto.ts index 330dd4f..128cf8f 100644 --- a/src/generated/models/RuleElementPropertyDto.ts +++ b/src/generated/models/RuleElementPropertyDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleFieldEditor } from './RuleFieldEditor'; import { RuleFieldEditorFromJSON, - RuleFieldEditorFromJSONTyped, RuleFieldEditorToJSON, } from './RuleFieldEditor'; @@ -77,6 +73,9 @@ export interface RuleElementPropertyDto { * Check if a given object implements the RuleElementPropertyDto interface. */ export function instanceOfRuleElementPropertyDto(value: any): value is RuleElementPropertyDto { + if (!value) { + return false; + } if (!('editor' in value) || value['editor'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('display' in value) || value['display'] === undefined) return false; @@ -89,7 +88,7 @@ export function RuleElementPropertyDtoFromJSON(json: any): RuleElementPropertyDt return RuleElementPropertyDtoFromJSONTyped(json, false); } -export function RuleElementPropertyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleElementPropertyDto { +export function RuleElementPropertyDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleElementPropertyDto { if (json == null) { return json; } @@ -105,7 +104,7 @@ export function RuleElementPropertyDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function RuleElementPropertyDtoToJSON(value?: RuleElementPropertyDto | null, ignoreDiscriminator = false): any { +export function RuleElementPropertyDtoToJSON(value?: RuleElementPropertyDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RuleEventDto.ts b/src/generated/models/RuleEventDto.ts index 35997e7..f140c97 100644 --- a/src/generated/models/RuleEventDto.ts +++ b/src/generated/models/RuleEventDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,19 +14,16 @@ import { mapValues } from '../runtime'; import type { RuleJobResult } from './RuleJobResult'; import { RuleJobResultFromJSON, - RuleJobResultFromJSONTyped, RuleJobResultToJSON, } from './RuleJobResult'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { RuleResult } from './RuleResult'; import { RuleResultFromJSON, - RuleResultFromJSONTyped, RuleResultToJSON, } from './RuleResult'; @@ -107,6 +102,9 @@ export interface RuleEventDto { * Check if a given object implements the RuleEventDto interface. */ export function instanceOfRuleEventDto(value: any): value is RuleEventDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('created' in value) || value['created'] === undefined) return false; @@ -122,7 +120,7 @@ export function RuleEventDtoFromJSON(json: any): RuleEventDto { return RuleEventDtoFromJSONTyped(json, false); } -export function RuleEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleEventDto { +export function RuleEventDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleEventDto { if (json == null) { return json; } @@ -141,7 +139,7 @@ export function RuleEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function RuleEventDtoToJSON(value?: RuleEventDto | null, ignoreDiscriminator = false): any { +export function RuleEventDtoToJSON(value?: RuleEventDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RuleEventsDto.ts b/src/generated/models/RuleEventsDto.ts index 26ab9a9..32adca2 100644 --- a/src/generated/models/RuleEventsDto.ts +++ b/src/generated/models/RuleEventsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { RuleEventDto } from './RuleEventDto'; import { RuleEventDtoFromJSON, - RuleEventDtoFromJSONTyped, RuleEventDtoToJSON, } from './RuleEventDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -57,6 +53,9 @@ export interface RuleEventsDto { * Check if a given object implements the RuleEventsDto interface. */ export function instanceOfRuleEventsDto(value: any): value is RuleEventsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -67,7 +66,7 @@ export function RuleEventsDtoFromJSON(json: any): RuleEventsDto { return RuleEventsDtoFromJSONTyped(json, false); } -export function RuleEventsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleEventsDto { +export function RuleEventsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleEventsDto { if (json == null) { return json; } @@ -79,7 +78,7 @@ export function RuleEventsDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function RuleEventsDtoToJSON(value?: RuleEventsDto | null, ignoreDiscriminator = false): any { +export function RuleEventsDtoToJSON(value?: RuleEventsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/RuleFieldEditor.ts b/src/generated/models/RuleFieldEditor.ts index 2338564..032495f 100644 --- a/src/generated/models/RuleFieldEditor.ts +++ b/src/generated/models/RuleFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -46,11 +44,10 @@ export function RuleFieldEditorFromJSON(json: any): RuleFieldEditor { return RuleFieldEditorFromJSONTyped(json, false); } -export function RuleFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleFieldEditor { +export function RuleFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleFieldEditor { return json as RuleFieldEditor; } export function RuleFieldEditorToJSON(value?: RuleFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/RuleJobResult.ts b/src/generated/models/RuleJobResult.ts index 3c47d99..5ff62e9 100644 --- a/src/generated/models/RuleJobResult.ts +++ b/src/generated/models/RuleJobResult.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -42,11 +40,10 @@ export function RuleJobResultFromJSON(json: any): RuleJobResult { return RuleJobResultFromJSONTyped(json, false); } -export function RuleJobResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleJobResult { +export function RuleJobResultFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleJobResult { return json as RuleJobResult; } export function RuleJobResultToJSON(value?: RuleJobResult | null): any { return value as any; } - diff --git a/src/generated/models/RuleResult.ts b/src/generated/models/RuleResult.ts index bce687c..4c00b0a 100644 --- a/src/generated/models/RuleResult.ts +++ b/src/generated/models/RuleResult.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -41,11 +39,10 @@ export function RuleResultFromJSON(json: any): RuleResult { return RuleResultFromJSONTyped(json, false); } -export function RuleResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleResult { +export function RuleResultFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleResult { return json as RuleResult; } export function RuleResultToJSON(value?: RuleResult | null): any { return value as any; } - diff --git a/src/generated/models/RuleTriggerDto.ts b/src/generated/models/RuleTriggerDto.ts index 7a1f9bc..8ace425 100644 --- a/src/generated/models/RuleTriggerDto.ts +++ b/src/generated/models/RuleTriggerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import { AssetChangedRuleTriggerDto, AssetChangedRuleTriggerDtoFromJSONTyped, AssetChangedRuleTriggerDtoToJSON } from './AssetChangedRuleTriggerDto'; import { CommentRuleTriggerDto, CommentRuleTriggerDtoFromJSONTyped, CommentRuleTriggerDtoToJSON } from './CommentRuleTriggerDto'; import { ContentChangedRuleTriggerDto, ContentChangedRuleTriggerDtoFromJSONTyped, ContentChangedRuleTriggerDtoToJSON } from './ContentChangedRuleTriggerDto'; @@ -62,6 +59,9 @@ export function isUsageRuleTriggerDto(value: RuleTriggerDto): value is UsageRule * Check if a given object implements the RuleTriggerDto interface. */ export function instanceOfRuleTriggerDto(value: any): value is RuleTriggerDto { + if (!value) { + return false; + } if (!('triggerType' in value) || value['triggerType'] === undefined) return false; return true; } @@ -70,11 +70,11 @@ export function RuleTriggerDtoFromJSON(json: any): RuleTriggerDto { return RuleTriggerDtoFromJSONTyped(json, false); } -export function RuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleTriggerDto { +export function RuleTriggerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleTriggerDto { if (json == null) { return json; } - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { if (json['triggerType'] === 'AssetChanged') { return AssetChangedRuleTriggerDtoFromJSONTyped(json, true); } @@ -100,11 +100,11 @@ export function RuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function RuleTriggerDtoToJSON(value?: RuleTriggerDto | null, ignoreDiscriminator = false): any { +export function RuleTriggerDtoToJSON(value?: RuleTriggerDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { if (value['triggerType'] === 'AssetChanged') { return AssetChangedRuleTriggerDtoToJSON(value as AssetChangedRuleTriggerDto, true); } diff --git a/src/generated/models/RulesDto.ts b/src/generated/models/RulesDto.ts index b50068a..8315594 100644 --- a/src/generated/models/RulesDto.ts +++ b/src/generated/models/RulesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { RuleDto } from './RuleDto'; import { RuleDtoFromJSON, - RuleDtoFromJSONTyped, RuleDtoToJSON, } from './RuleDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -57,6 +53,9 @@ export interface RulesDto { * Check if a given object implements the RulesDto interface. */ export function instanceOfRulesDto(value: any): value is RulesDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -66,7 +65,7 @@ export function RulesDtoFromJSON(json: any): RulesDto { return RulesDtoFromJSONTyped(json, false); } -export function RulesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RulesDto { +export function RulesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RulesDto { if (json == null) { return json; } @@ -78,7 +77,7 @@ export function RulesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function RulesDtoToJSON(value?: RulesDto | null, ignoreDiscriminator = false): any { +export function RulesDtoToJSON(value?: RulesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ScheduleJobDto.ts b/src/generated/models/ScheduleJobDto.ts index 3b1cb82..a24718b 100644 --- a/src/generated/models/ScheduleJobDto.ts +++ b/src/generated/models/ScheduleJobDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -56,6 +53,9 @@ export interface ScheduleJobDto { * Check if a given object implements the ScheduleJobDto interface. */ export function instanceOfScheduleJobDto(value: any): value is ScheduleJobDto { + if (!value) { + return false; + } if (!('id' in value) || value['id'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('dueTime' in value) || value['dueTime'] === undefined) return false; @@ -68,7 +68,7 @@ export function ScheduleJobDtoFromJSON(json: any): ScheduleJobDto { return ScheduleJobDtoFromJSONTyped(json, false); } -export function ScheduleJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleJobDto { +export function ScheduleJobDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ScheduleJobDto { if (json == null) { return json; } @@ -82,7 +82,7 @@ export function ScheduleJobDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function ScheduleJobDtoToJSON(value?: ScheduleJobDto | null, ignoreDiscriminator = false): any { +export function ScheduleJobDtoToJSON(value?: ScheduleJobDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SchemaChangedRuleTriggerDto.ts b/src/generated/models/SchemaChangedRuleTriggerDto.ts index 44ac329..31e6637 100644 --- a/src/generated/models/SchemaChangedRuleTriggerDto.ts +++ b/src/generated/models/SchemaChangedRuleTriggerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { - RuleTriggerDtoFromJSON, RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -39,6 +35,9 @@ export interface SchemaChangedRuleTriggerDto extends RuleTriggerDto { * Check if a given object implements the SchemaChangedRuleTriggerDto interface. */ export function instanceOfSchemaChangedRuleTriggerDto(value: any): value is SchemaChangedRuleTriggerDto { + if (!value) { + return false; + } return true; } @@ -46,17 +45,17 @@ export function SchemaChangedRuleTriggerDtoFromJSON(json: any): SchemaChangedRul return SchemaChangedRuleTriggerDtoFromJSONTyped(json, false); } -export function SchemaChangedRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaChangedRuleTriggerDto { +export function SchemaChangedRuleTriggerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SchemaChangedRuleTriggerDto { if (json == null) { return json; } return { - ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleTriggerDtoFromJSONTyped(json, _ignoreDiscriminator), 'condition': json['condition'] == null ? undefined : json['condition'], }; } -export function SchemaChangedRuleTriggerDtoToJSON(value?: SchemaChangedRuleTriggerDto | null, ignoreDiscriminator = false): any { +export function SchemaChangedRuleTriggerDtoToJSON(value?: SchemaChangedRuleTriggerDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SchemaCondition.ts b/src/generated/models/SchemaCondition.ts index 88a5748..84c3ee8 100644 --- a/src/generated/models/SchemaCondition.ts +++ b/src/generated/models/SchemaCondition.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface SchemaCondition { * Check if a given object implements the SchemaCondition interface. */ export function instanceOfSchemaCondition(value: any): value is SchemaCondition { + if (!value) { + return false; + } if (!('schemaId' in value) || value['schemaId'] === undefined) return false; return true; } @@ -46,7 +46,7 @@ export function SchemaConditionFromJSON(json: any): SchemaCondition { return SchemaConditionFromJSONTyped(json, false); } -export function SchemaConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaCondition { +export function SchemaConditionFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SchemaCondition { if (json == null) { return json; } @@ -57,7 +57,7 @@ export function SchemaConditionFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function SchemaConditionToJSON(value?: SchemaCondition | null, ignoreDiscriminator = false): any { +export function SchemaConditionToJSON(value?: SchemaCondition | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SchemaDto.ts b/src/generated/models/SchemaDto.ts index de88e17..8fa8520 100644 --- a/src/generated/models/SchemaDto.ts +++ b/src/generated/models/SchemaDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,37 +14,31 @@ import { mapValues } from '../runtime'; import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; import { SchemaPropertiesDtoFromJSON, - SchemaPropertiesDtoFromJSONTyped, SchemaPropertiesDtoToJSON, } from './SchemaPropertiesDto'; import type { SchemaScriptsDto } from './SchemaScriptsDto'; import { SchemaScriptsDtoFromJSON, - SchemaScriptsDtoFromJSONTyped, SchemaScriptsDtoToJSON, } from './SchemaScriptsDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { FieldRuleDto } from './FieldRuleDto'; import { FieldRuleDtoFromJSON, - FieldRuleDtoFromJSONTyped, FieldRuleDtoToJSON, } from './FieldRuleDto'; import type { SchemaType } from './SchemaType'; import { SchemaTypeFromJSON, - SchemaTypeFromJSONTyped, SchemaTypeToJSON, } from './SchemaType'; import type { FieldDto } from './FieldDto'; import { FieldDtoFromJSON, - FieldDtoFromJSONTyped, FieldDtoToJSON, } from './FieldDto'; @@ -180,6 +172,9 @@ export interface SchemaDto { * Check if a given object implements the SchemaDto interface. */ export function instanceOfSchemaDto(value: any): value is SchemaDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; @@ -205,7 +200,7 @@ export function SchemaDtoFromJSON(json: any): SchemaDto { return SchemaDtoFromJSONTyped(json, false); } -export function SchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaDto { +export function SchemaDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SchemaDto { if (json == null) { return json; } @@ -233,7 +228,7 @@ export function SchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function SchemaDtoToJSON(value?: SchemaDto | null, ignoreDiscriminator = false): any { +export function SchemaDtoToJSON(value?: SchemaDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SchemaPropertiesDto.ts b/src/generated/models/SchemaPropertiesDto.ts index ec92d30..6205a95 100644 --- a/src/generated/models/SchemaPropertiesDto.ts +++ b/src/generated/models/SchemaPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -80,6 +77,9 @@ export interface SchemaPropertiesDto { * Check if a given object implements the SchemaPropertiesDto interface. */ export function instanceOfSchemaPropertiesDto(value: any): value is SchemaPropertiesDto { + if (!value) { + return false; + } if (!('validateOnPublish' in value) || value['validateOnPublish'] === undefined) return false; return true; } @@ -88,7 +88,7 @@ export function SchemaPropertiesDtoFromJSON(json: any): SchemaPropertiesDto { return SchemaPropertiesDtoFromJSONTyped(json, false); } -export function SchemaPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaPropertiesDto { +export function SchemaPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SchemaPropertiesDto { if (json == null) { return json; } @@ -106,7 +106,7 @@ export function SchemaPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function SchemaPropertiesDtoToJSON(value?: SchemaPropertiesDto | null, ignoreDiscriminator = false): any { +export function SchemaPropertiesDtoToJSON(value?: SchemaPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SchemaScriptsDto.ts b/src/generated/models/SchemaScriptsDto.ts index 7517f1f..453d1bb 100644 --- a/src/generated/models/SchemaScriptsDto.ts +++ b/src/generated/models/SchemaScriptsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -62,6 +59,9 @@ export interface SchemaScriptsDto { * Check if a given object implements the SchemaScriptsDto interface. */ export function instanceOfSchemaScriptsDto(value: any): value is SchemaScriptsDto { + if (!value) { + return false; + } return true; } @@ -69,7 +69,7 @@ export function SchemaScriptsDtoFromJSON(json: any): SchemaScriptsDto { return SchemaScriptsDtoFromJSONTyped(json, false); } -export function SchemaScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaScriptsDto { +export function SchemaScriptsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SchemaScriptsDto { if (json == null) { return json; } @@ -84,7 +84,7 @@ export function SchemaScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function SchemaScriptsDtoToJSON(value?: SchemaScriptsDto | null, ignoreDiscriminator = false): any { +export function SchemaScriptsDtoToJSON(value?: SchemaScriptsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SchemaType.ts b/src/generated/models/SchemaType.ts index 74a312f..3e6f599 100644 --- a/src/generated/models/SchemaType.ts +++ b/src/generated/models/SchemaType.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function SchemaTypeFromJSON(json: any): SchemaType { return SchemaTypeFromJSONTyped(json, false); } -export function SchemaTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaType { +export function SchemaTypeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SchemaType { return json as SchemaType; } export function SchemaTypeToJSON(value?: SchemaType | null): any { return value as any; } - diff --git a/src/generated/models/SchemasDto.ts b/src/generated/models/SchemasDto.ts index 89fd592..6646bfd 100644 --- a/src/generated/models/SchemasDto.ts +++ b/src/generated/models/SchemasDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { SchemaDto } from './SchemaDto'; import { SchemaDtoFromJSON, - SchemaDtoFromJSONTyped, SchemaDtoToJSON, } from './SchemaDto'; @@ -51,6 +47,9 @@ export interface SchemasDto { * Check if a given object implements the SchemasDto interface. */ export function instanceOfSchemasDto(value: any): value is SchemasDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function SchemasDtoFromJSON(json: any): SchemasDto { return SchemasDtoFromJSONTyped(json, false); } -export function SchemasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemasDto { +export function SchemasDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SchemasDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function SchemasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function SchemasDtoToJSON(value?: SchemasDto | null, ignoreDiscriminator = false): any { +export function SchemasDtoToJSON(value?: SchemasDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/ScriptRuleActionDto.ts b/src/generated/models/ScriptRuleActionDto.ts index 02a526b..453b5d0 100644 --- a/src/generated/models/ScriptRuleActionDto.ts +++ b/src/generated/models/ScriptRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -39,6 +35,9 @@ export interface ScriptRuleActionDto extends RuleActionDto { * Check if a given object implements the ScriptRuleActionDto interface. */ export function instanceOfScriptRuleActionDto(value: any): value is ScriptRuleActionDto { + if (!value) { + return false; + } if (!('script' in value) || value['script'] === undefined) return false; return true; } @@ -47,17 +46,17 @@ export function ScriptRuleActionDtoFromJSON(json: any): ScriptRuleActionDto { return ScriptRuleActionDtoFromJSONTyped(json, false); } -export function ScriptRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptRuleActionDto { +export function ScriptRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): ScriptRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'script': json['script'], }; } -export function ScriptRuleActionDtoToJSON(value?: ScriptRuleActionDto | null, ignoreDiscriminator = false): any { +export function ScriptRuleActionDtoToJSON(value?: ScriptRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SearchResultDto.ts b/src/generated/models/SearchResultDto.ts index a35f258..851f4c4 100644 --- a/src/generated/models/SearchResultDto.ts +++ b/src/generated/models/SearchResultDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { SearchResultType } from './SearchResultType'; import { SearchResultTypeFromJSON, - SearchResultTypeFromJSONTyped, SearchResultTypeToJSON, } from './SearchResultType'; @@ -65,6 +61,9 @@ export interface SearchResultDto { * Check if a given object implements the SearchResultDto interface. */ export function instanceOfSearchResultDto(value: any): value is SearchResultDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; @@ -75,7 +74,7 @@ export function SearchResultDtoFromJSON(json: any): SearchResultDto { return SearchResultDtoFromJSONTyped(json, false); } -export function SearchResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResultDto { +export function SearchResultDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SearchResultDto { if (json == null) { return json; } @@ -88,7 +87,7 @@ export function SearchResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function SearchResultDtoToJSON(value?: SearchResultDto | null, ignoreDiscriminator = false): any { +export function SearchResultDtoToJSON(value?: SearchResultDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SearchResultType.ts b/src/generated/models/SearchResultType.ts index 6bad890..ca4e632 100644 --- a/src/generated/models/SearchResultType.ts +++ b/src/generated/models/SearchResultType.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -43,11 +41,10 @@ export function SearchResultTypeFromJSON(json: any): SearchResultType { return SearchResultTypeFromJSONTyped(json, false); } -export function SearchResultTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResultType { +export function SearchResultTypeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SearchResultType { return json as SearchResultType; } export function SearchResultTypeToJSON(value?: SearchResultType | null): any { return value as any; } - diff --git a/src/generated/models/SignalRRuleActionDto.ts b/src/generated/models/SignalRRuleActionDto.ts index a16b250..57ff219 100644 --- a/src/generated/models/SignalRRuleActionDto.ts +++ b/src/generated/models/SignalRRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,16 +10,13 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { ActionTypeEnum } from './ActionTypeEnum'; import { ActionTypeEnumFromJSON, - ActionTypeEnumFromJSONTyped, ActionTypeEnumToJSON, } from './ActionTypeEnum'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -77,6 +72,9 @@ export interface SignalRRuleActionDto extends RuleActionDto { * Check if a given object implements the SignalRRuleActionDto interface. */ export function instanceOfSignalRRuleActionDto(value: any): value is SignalRRuleActionDto { + if (!value) { + return false; + } if (!('connectionString' in value) || value['connectionString'] === undefined) return false; if (!('hubName' in value) || value['hubName'] === undefined) return false; if (!('action' in value) || value['action'] === undefined) return false; @@ -87,12 +85,12 @@ export function SignalRRuleActionDtoFromJSON(json: any): SignalRRuleActionDto { return SignalRRuleActionDtoFromJSONTyped(json, false); } -export function SignalRRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignalRRuleActionDto { +export function SignalRRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SignalRRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'connectionString': json['connectionString'], 'hubName': json['hubName'], 'action': ActionTypeEnumFromJSON(json['action']), @@ -102,7 +100,7 @@ export function SignalRRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function SignalRRuleActionDtoToJSON(value?: SignalRRuleActionDto | null, ignoreDiscriminator = false): any { +export function SignalRRuleActionDtoToJSON(value?: SignalRRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SimulatedRuleEventDto.ts b/src/generated/models/SimulatedRuleEventDto.ts index 9c04c60..de23d3b 100644 --- a/src/generated/models/SimulatedRuleEventDto.ts +++ b/src/generated/models/SimulatedRuleEventDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { SkipReason } from './SkipReason'; import { SkipReasonFromJSON, - SkipReasonFromJSONTyped, SkipReasonToJSON, } from './SkipReason'; @@ -87,6 +83,9 @@ export interface SimulatedRuleEventDto { * Check if a given object implements the SimulatedRuleEventDto interface. */ export function instanceOfSimulatedRuleEventDto(value: any): value is SimulatedRuleEventDto { + if (!value) { + return false; + } if (!('eventId' in value) || value['eventId'] === undefined) return false; if (!('uniqueId' in value) || value['uniqueId'] === undefined) return false; if (!('eventName' in value) || value['eventName'] === undefined) return false; @@ -99,7 +98,7 @@ export function SimulatedRuleEventDtoFromJSON(json: any): SimulatedRuleEventDto return SimulatedRuleEventDtoFromJSONTyped(json, false); } -export function SimulatedRuleEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulatedRuleEventDto { +export function SimulatedRuleEventDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SimulatedRuleEventDto { if (json == null) { return json; } @@ -117,7 +116,7 @@ export function SimulatedRuleEventDtoFromJSONTyped(json: any, ignoreDiscriminato }; } -export function SimulatedRuleEventDtoToJSON(value?: SimulatedRuleEventDto | null, ignoreDiscriminator = false): any { +export function SimulatedRuleEventDtoToJSON(value?: SimulatedRuleEventDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SimulatedRuleEventsDto.ts b/src/generated/models/SimulatedRuleEventsDto.ts index 06e0dc3..2115490 100644 --- a/src/generated/models/SimulatedRuleEventsDto.ts +++ b/src/generated/models/SimulatedRuleEventsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { SimulatedRuleEventDto } from './SimulatedRuleEventDto'; import { SimulatedRuleEventDtoFromJSON, - SimulatedRuleEventDtoFromJSONTyped, SimulatedRuleEventDtoToJSON, } from './SimulatedRuleEventDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -57,6 +53,9 @@ export interface SimulatedRuleEventsDto { * Check if a given object implements the SimulatedRuleEventsDto interface. */ export function instanceOfSimulatedRuleEventsDto(value: any): value is SimulatedRuleEventsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -67,7 +66,7 @@ export function SimulatedRuleEventsDtoFromJSON(json: any): SimulatedRuleEventsDt return SimulatedRuleEventsDtoFromJSONTyped(json, false); } -export function SimulatedRuleEventsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulatedRuleEventsDto { +export function SimulatedRuleEventsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SimulatedRuleEventsDto { if (json == null) { return json; } @@ -79,7 +78,7 @@ export function SimulatedRuleEventsDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function SimulatedRuleEventsDtoToJSON(value?: SimulatedRuleEventsDto | null, ignoreDiscriminator = false): any { +export function SimulatedRuleEventsDtoToJSON(value?: SimulatedRuleEventsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SkipReason.ts b/src/generated/models/SkipReason.ts index feed904..2a5b319 100644 --- a/src/generated/models/SkipReason.ts +++ b/src/generated/models/SkipReason.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -48,11 +46,10 @@ export function SkipReasonFromJSON(json: any): SkipReason { return SkipReasonFromJSONTyped(json, false); } -export function SkipReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkipReason { +export function SkipReasonFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SkipReason { return json as SkipReason; } export function SkipReasonToJSON(value?: SkipReason | null): any { return value as any; } - diff --git a/src/generated/models/SlackRuleActionDto.ts b/src/generated/models/SlackRuleActionDto.ts index e5eb2ef..8d5c2f0 100644 --- a/src/generated/models/SlackRuleActionDto.ts +++ b/src/generated/models/SlackRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -45,6 +41,9 @@ export interface SlackRuleActionDto extends RuleActionDto { * Check if a given object implements the SlackRuleActionDto interface. */ export function instanceOfSlackRuleActionDto(value: any): value is SlackRuleActionDto { + if (!value) { + return false; + } if (!('webhookUrl' in value) || value['webhookUrl'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; return true; @@ -54,18 +53,18 @@ export function SlackRuleActionDtoFromJSON(json: any): SlackRuleActionDto { return SlackRuleActionDtoFromJSONTyped(json, false); } -export function SlackRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlackRuleActionDto { +export function SlackRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SlackRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'webhookUrl': json['webhookUrl'], 'text': json['text'], }; } -export function SlackRuleActionDtoToJSON(value?: SlackRuleActionDto | null, ignoreDiscriminator = false): any { +export function SlackRuleActionDtoToJSON(value?: SlackRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SortNode.ts b/src/generated/models/SortNode.ts index 76cad1d..ca9d0df 100644 --- a/src/generated/models/SortNode.ts +++ b/src/generated/models/SortNode.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { SortOrder } from './SortOrder'; import { SortOrderFromJSON, - SortOrderFromJSONTyped, SortOrderToJSON, } from './SortOrder'; @@ -47,6 +43,9 @@ export interface SortNode { * Check if a given object implements the SortNode interface. */ export function instanceOfSortNode(value: any): value is SortNode { + if (!value) { + return false; + } if (!('path' in value) || value['path'] === undefined) return false; if (!('order' in value) || value['order'] === undefined) return false; return true; @@ -56,7 +55,7 @@ export function SortNodeFromJSON(json: any): SortNode { return SortNodeFromJSONTyped(json, false); } -export function SortNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortNode { +export function SortNodeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SortNode { if (json == null) { return json; } @@ -67,7 +66,7 @@ export function SortNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function SortNodeToJSON(value?: SortNode | null, ignoreDiscriminator = false): any { +export function SortNodeToJSON(value?: SortNode | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SortOrder.ts b/src/generated/models/SortOrder.ts index 7ae8221..7025d44 100644 --- a/src/generated/models/SortOrder.ts +++ b/src/generated/models/SortOrder.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -39,11 +37,10 @@ export function SortOrderFromJSON(json: any): SortOrder { return SortOrderFromJSONTyped(json, false); } -export function SortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortOrder { +export function SortOrderFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SortOrder { return json as SortOrder; } export function SortOrderToJSON(value?: SortOrder | null): any { return value as any; } - diff --git a/src/generated/models/StatusInfoDto.ts b/src/generated/models/StatusInfoDto.ts index d20c7cb..60faa29 100644 --- a/src/generated/models/StatusInfoDto.ts +++ b/src/generated/models/StatusInfoDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface StatusInfoDto { * Check if a given object implements the StatusInfoDto interface. */ export function instanceOfStatusInfoDto(value: any): value is StatusInfoDto { + if (!value) { + return false; + } if (!('status' in value) || value['status'] === undefined) return false; if (!('color' in value) || value['color'] === undefined) return false; return true; @@ -47,7 +47,7 @@ export function StatusInfoDtoFromJSON(json: any): StatusInfoDto { return StatusInfoDtoFromJSONTyped(json, false); } -export function StatusInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusInfoDto { +export function StatusInfoDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): StatusInfoDto { if (json == null) { return json; } @@ -58,7 +58,7 @@ export function StatusInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function StatusInfoDtoToJSON(value?: StatusInfoDto | null, ignoreDiscriminator = false): any { +export function StatusInfoDtoToJSON(value?: StatusInfoDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/StorageUsagePerDateDto.ts b/src/generated/models/StorageUsagePerDateDto.ts index 9b1c152..f5ef189 100644 --- a/src/generated/models/StorageUsagePerDateDto.ts +++ b/src/generated/models/StorageUsagePerDateDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface StorageUsagePerDateDto { * Check if a given object implements the StorageUsagePerDateDto interface. */ export function instanceOfStorageUsagePerDateDto(value: any): value is StorageUsagePerDateDto { + if (!value) { + return false; + } if (!('date' in value) || value['date'] === undefined) return false; if (!('totalCount' in value) || value['totalCount'] === undefined) return false; if (!('totalSize' in value) || value['totalSize'] === undefined) return false; @@ -54,7 +54,7 @@ export function StorageUsagePerDateDtoFromJSON(json: any): StorageUsagePerDateDt return StorageUsagePerDateDtoFromJSONTyped(json, false); } -export function StorageUsagePerDateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageUsagePerDateDto { +export function StorageUsagePerDateDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): StorageUsagePerDateDto { if (json == null) { return json; } @@ -66,7 +66,7 @@ export function StorageUsagePerDateDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function StorageUsagePerDateDtoToJSON(value?: StorageUsagePerDateDto | null, ignoreDiscriminator = false): any { +export function StorageUsagePerDateDtoToJSON(value?: StorageUsagePerDateDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/StringContentType.ts b/src/generated/models/StringContentType.ts index 8cb5f6c..83ef4c0 100644 --- a/src/generated/models/StringContentType.ts +++ b/src/generated/models/StringContentType.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function StringContentTypeFromJSON(json: any): StringContentType { return StringContentTypeFromJSONTyped(json, false); } -export function StringContentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StringContentType { +export function StringContentTypeFromJSONTyped(json: any, _ignoreDiscriminator: boolean): StringContentType { return json as StringContentType; } export function StringContentTypeToJSON(value?: StringContentType | null): any { return value as any; } - diff --git a/src/generated/models/StringFieldEditor.ts b/src/generated/models/StringFieldEditor.ts index b059f45..bed553b 100644 --- a/src/generated/models/StringFieldEditor.ts +++ b/src/generated/models/StringFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -47,11 +45,10 @@ export function StringFieldEditorFromJSON(json: any): StringFieldEditor { return StringFieldEditorFromJSONTyped(json, false); } -export function StringFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): StringFieldEditor { +export function StringFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): StringFieldEditor { return json as StringFieldEditor; } export function StringFieldEditorToJSON(value?: StringFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/StringFieldPropertiesDto.ts b/src/generated/models/StringFieldPropertiesDto.ts index 43b8546..28a645f 100644 --- a/src/generated/models/StringFieldPropertiesDto.ts +++ b/src/generated/models/StringFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,23 +10,19 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { StringFieldEditor } from './StringFieldEditor'; import { StringFieldEditorFromJSON, - StringFieldEditorFromJSONTyped, StringFieldEditorToJSON, } from './StringFieldEditor'; import type { StringContentType } from './StringContentType'; import { StringContentTypeFromJSON, - StringContentTypeFromJSONTyped, StringContentTypeToJSON, } from './StringContentType'; @@ -167,6 +161,9 @@ export interface StringFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the StringFieldPropertiesDto interface. */ export function instanceOfStringFieldPropertiesDto(value: any): value is StringFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -174,12 +171,12 @@ export function StringFieldPropertiesDtoFromJSON(json: any): StringFieldProperti return StringFieldPropertiesDtoFromJSONTyped(json, false); } -export function StringFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StringFieldPropertiesDto { +export function StringFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): StringFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], 'pattern': json['pattern'] == null ? undefined : json['pattern'], @@ -203,7 +200,7 @@ export function StringFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscrimin }; } -export function StringFieldPropertiesDtoToJSON(value?: StringFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function StringFieldPropertiesDtoToJSON(value?: StringFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/SynchronizeSchemaDto.ts b/src/generated/models/SynchronizeSchemaDto.ts index 6f0abea..1335705 100644 --- a/src/generated/models/SynchronizeSchemaDto.ts +++ b/src/generated/models/SynchronizeSchemaDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,29 +10,24 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; import { SchemaPropertiesDtoFromJSON, - SchemaPropertiesDtoFromJSONTyped, SchemaPropertiesDtoToJSON, } from './SchemaPropertiesDto'; import type { SchemaScriptsDto } from './SchemaScriptsDto'; import { SchemaScriptsDtoFromJSON, - SchemaScriptsDtoFromJSONTyped, SchemaScriptsDtoToJSON, } from './SchemaScriptsDto'; import type { UpsertSchemaFieldDto } from './UpsertSchemaFieldDto'; import { UpsertSchemaFieldDtoFromJSON, - UpsertSchemaFieldDtoFromJSONTyped, UpsertSchemaFieldDtoToJSON, } from './UpsertSchemaFieldDto'; import type { FieldRuleDto } from './FieldRuleDto'; import { FieldRuleDtoFromJSON, - FieldRuleDtoFromJSONTyped, FieldRuleDtoToJSON, } from './FieldRuleDto'; @@ -117,6 +110,9 @@ export interface SynchronizeSchemaDto { * Check if a given object implements the SynchronizeSchemaDto interface. */ export function instanceOfSynchronizeSchemaDto(value: any): value is SynchronizeSchemaDto { + if (!value) { + return false; + } return true; } @@ -124,7 +120,7 @@ export function SynchronizeSchemaDtoFromJSON(json: any): SynchronizeSchemaDto { return SynchronizeSchemaDtoFromJSONTyped(json, false); } -export function SynchronizeSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SynchronizeSchemaDto { +export function SynchronizeSchemaDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): SynchronizeSchemaDto { if (json == null) { return json; } @@ -144,7 +140,7 @@ export function SynchronizeSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function SynchronizeSchemaDtoToJSON(value?: SynchronizeSchemaDto | null, ignoreDiscriminator = false): any { +export function SynchronizeSchemaDtoToJSON(value?: SynchronizeSchemaDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TagsFieldEditor.ts b/src/generated/models/TagsFieldEditor.ts index 4828c7b..3d8273b 100644 --- a/src/generated/models/TagsFieldEditor.ts +++ b/src/generated/models/TagsFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -40,11 +38,10 @@ export function TagsFieldEditorFromJSON(json: any): TagsFieldEditor { return TagsFieldEditorFromJSONTyped(json, false); } -export function TagsFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagsFieldEditor { +export function TagsFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TagsFieldEditor { return json as TagsFieldEditor; } export function TagsFieldEditorToJSON(value?: TagsFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/TagsFieldPropertiesDto.ts b/src/generated/models/TagsFieldPropertiesDto.ts index 50da182..6e66484 100644 --- a/src/generated/models/TagsFieldPropertiesDto.ts +++ b/src/generated/models/TagsFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { TagsFieldEditor } from './TagsFieldEditor'; import { TagsFieldEditorFromJSON, - TagsFieldEditorFromJSONTyped, TagsFieldEditorToJSON, } from './TagsFieldEditor'; @@ -83,6 +78,9 @@ export interface TagsFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the TagsFieldPropertiesDto interface. */ export function instanceOfTagsFieldPropertiesDto(value: any): value is TagsFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -90,12 +88,12 @@ export function TagsFieldPropertiesDtoFromJSON(json: any): TagsFieldPropertiesDt return TagsFieldPropertiesDtoFromJSONTyped(json, false); } -export function TagsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagsFieldPropertiesDto { +export function TagsFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TagsFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'defaultValues': json['defaultValues'] == null ? undefined : json['defaultValues'], 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'], 'minItems': json['minItems'] == null ? undefined : json['minItems'], @@ -106,7 +104,7 @@ export function TagsFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function TagsFieldPropertiesDtoToJSON(value?: TagsFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function TagsFieldPropertiesDtoToJSON(value?: TagsFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TeamDto.ts b/src/generated/models/TeamDto.ts index 063224a..d6906b3 100644 --- a/src/generated/models/TeamDto.ts +++ b/src/generated/models/TeamDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -75,6 +72,9 @@ export interface TeamDto { * Check if a given object implements the TeamDto interface. */ export function instanceOfTeamDto(value: any): value is TeamDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; @@ -88,7 +88,7 @@ export function TeamDtoFromJSON(json: any): TeamDto { return TeamDtoFromJSONTyped(json, false); } -export function TeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamDto { +export function TeamDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TeamDto { if (json == null) { return json; } @@ -104,7 +104,7 @@ export function TeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): T }; } -export function TeamDtoToJSON(value?: TeamDto | null, ignoreDiscriminator = false): any { +export function TeamDtoToJSON(value?: TeamDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TemplateDetailsDto.ts b/src/generated/models/TemplateDetailsDto.ts index 9b426d8..43daefc 100644 --- a/src/generated/models/TemplateDetailsDto.ts +++ b/src/generated/models/TemplateDetailsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -45,6 +42,9 @@ export interface TemplateDetailsDto { * Check if a given object implements the TemplateDetailsDto interface. */ export function instanceOfTemplateDetailsDto(value: any): value is TemplateDetailsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('details' in value) || value['details'] === undefined) return false; return true; @@ -54,7 +54,7 @@ export function TemplateDetailsDtoFromJSON(json: any): TemplateDetailsDto { return TemplateDetailsDtoFromJSONTyped(json, false); } -export function TemplateDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplateDetailsDto { +export function TemplateDetailsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TemplateDetailsDto { if (json == null) { return json; } @@ -65,7 +65,7 @@ export function TemplateDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function TemplateDetailsDtoToJSON(value?: TemplateDetailsDto | null, ignoreDiscriminator = false): any { +export function TemplateDetailsDtoToJSON(value?: TemplateDetailsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TemplateDto.ts b/src/generated/models/TemplateDto.ts index 9b24dbb..02b5929 100644 --- a/src/generated/models/TemplateDto.ts +++ b/src/generated/models/TemplateDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -63,6 +60,9 @@ export interface TemplateDto { * Check if a given object implements the TemplateDto interface. */ export function instanceOfTemplateDto(value: any): value is TemplateDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; @@ -75,7 +75,7 @@ export function TemplateDtoFromJSON(json: any): TemplateDto { return TemplateDtoFromJSONTyped(json, false); } -export function TemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplateDto { +export function TemplateDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TemplateDto { if (json == null) { return json; } @@ -89,7 +89,7 @@ export function TemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function TemplateDtoToJSON(value?: TemplateDto | null, ignoreDiscriminator = false): any { +export function TemplateDtoToJSON(value?: TemplateDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TemplatesDto.ts b/src/generated/models/TemplatesDto.ts index cd91104..c7850ec 100644 --- a/src/generated/models/TemplatesDto.ts +++ b/src/generated/models/TemplatesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { TemplateDto } from './TemplateDto'; import { TemplateDtoFromJSON, - TemplateDtoFromJSONTyped, TemplateDtoToJSON, } from './TemplateDto'; @@ -51,6 +47,9 @@ export interface TemplatesDto { * Check if a given object implements the TemplatesDto interface. */ export function instanceOfTemplatesDto(value: any): value is TemplatesDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; return true; @@ -60,7 +59,7 @@ export function TemplatesDtoFromJSON(json: any): TemplatesDto { return TemplatesDtoFromJSONTyped(json, false); } -export function TemplatesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplatesDto { +export function TemplatesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TemplatesDto { if (json == null) { return json; } @@ -71,7 +70,7 @@ export function TemplatesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function TemplatesDtoToJSON(value?: TemplatesDto | null, ignoreDiscriminator = false): any { +export function TemplatesDtoToJSON(value?: TemplatesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TransferToTeamDto.ts b/src/generated/models/TransferToTeamDto.ts index c5dab8f..361cbd6 100644 --- a/src/generated/models/TransferToTeamDto.ts +++ b/src/generated/models/TransferToTeamDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface TransferToTeamDto { * Check if a given object implements the TransferToTeamDto interface. */ export function instanceOfTransferToTeamDto(value: any): value is TransferToTeamDto { + if (!value) { + return false; + } return true; } @@ -39,7 +39,7 @@ export function TransferToTeamDtoFromJSON(json: any): TransferToTeamDto { return TransferToTeamDtoFromJSONTyped(json, false); } -export function TransferToTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransferToTeamDto { +export function TransferToTeamDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TransferToTeamDto { if (json == null) { return json; } @@ -49,7 +49,7 @@ export function TransferToTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function TransferToTeamDtoToJSON(value?: TransferToTeamDto | null, ignoreDiscriminator = false): any { +export function TransferToTeamDtoToJSON(value?: TransferToTeamDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TranslateDto.ts b/src/generated/models/TranslateDto.ts index 2cc503f..eb64a0f 100644 --- a/src/generated/models/TranslateDto.ts +++ b/src/generated/models/TranslateDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface TranslateDto { * Check if a given object implements the TranslateDto interface. */ export function instanceOfTranslateDto(value: any): value is TranslateDto { + if (!value) { + return false; + } if (!('text' in value) || value['text'] === undefined) return false; if (!('targetLanguage' in value) || value['targetLanguage'] === undefined) return false; return true; @@ -53,7 +53,7 @@ export function TranslateDtoFromJSON(json: any): TranslateDto { return TranslateDtoFromJSONTyped(json, false); } -export function TranslateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslateDto { +export function TranslateDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TranslateDto { if (json == null) { return json; } @@ -65,7 +65,7 @@ export function TranslateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function TranslateDtoToJSON(value?: TranslateDto | null, ignoreDiscriminator = false): any { +export function TranslateDtoToJSON(value?: TranslateDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TranslationDto.ts b/src/generated/models/TranslationDto.ts index 3ac2d4e..673ded0 100644 --- a/src/generated/models/TranslationDto.ts +++ b/src/generated/models/TranslationDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { TranslationStatus } from './TranslationStatus'; import { TranslationStatusFromJSON, - TranslationStatusFromJSONTyped, TranslationStatusToJSON, } from './TranslationStatus'; @@ -53,6 +49,9 @@ export interface TranslationDto { * Check if a given object implements the TranslationDto interface. */ export function instanceOfTranslationDto(value: any): value is TranslationDto { + if (!value) { + return false; + } if (!('status' in value) || value['status'] === undefined) return false; if (!('result' in value) || value['result'] === undefined) return false; return true; @@ -62,7 +61,7 @@ export function TranslationDtoFromJSON(json: any): TranslationDto { return TranslationDtoFromJSONTyped(json, false); } -export function TranslationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslationDto { +export function TranslationDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TranslationDto { if (json == null) { return json; } @@ -74,7 +73,7 @@ export function TranslationDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function TranslationDtoToJSON(value?: TranslationDto | null, ignoreDiscriminator = false): any { +export function TranslationDtoToJSON(value?: TranslationDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TranslationStatus.ts b/src/generated/models/TranslationStatus.ts index 91695e2..811d814 100644 --- a/src/generated/models/TranslationStatus.ts +++ b/src/generated/models/TranslationStatus.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -43,11 +41,10 @@ export function TranslationStatusFromJSON(json: any): TranslationStatus { return TranslationStatusFromJSONTyped(json, false); } -export function TranslationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslationStatus { +export function TranslationStatusFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TranslationStatus { return json as TranslationStatus; } export function TranslationStatusToJSON(value?: TranslationStatus | null): any { return value as any; } - diff --git a/src/generated/models/TweetRuleActionDto.ts b/src/generated/models/TweetRuleActionDto.ts index bfa1816..69c8266 100644 --- a/src/generated/models/TweetRuleActionDto.ts +++ b/src/generated/models/TweetRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -51,6 +47,9 @@ export interface TweetRuleActionDto extends RuleActionDto { * Check if a given object implements the TweetRuleActionDto interface. */ export function instanceOfTweetRuleActionDto(value: any): value is TweetRuleActionDto { + if (!value) { + return false; + } if (!('accessToken' in value) || value['accessToken'] === undefined) return false; if (!('accessSecret' in value) || value['accessSecret'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; @@ -61,19 +60,19 @@ export function TweetRuleActionDtoFromJSON(json: any): TweetRuleActionDto { return TweetRuleActionDtoFromJSONTyped(json, false); } -export function TweetRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRuleActionDto { +export function TweetRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TweetRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'accessToken': json['accessToken'], 'accessSecret': json['accessSecret'], 'text': json['text'], }; } -export function TweetRuleActionDtoToJSON(value?: TweetRuleActionDto | null, ignoreDiscriminator = false): any { +export function TweetRuleActionDtoToJSON(value?: TweetRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/TypesenseRuleActionDto.ts b/src/generated/models/TypesenseRuleActionDto.ts index a9bb535..8d3a28a 100644 --- a/src/generated/models/TypesenseRuleActionDto.ts +++ b/src/generated/models/TypesenseRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -63,6 +59,9 @@ export interface TypesenseRuleActionDto extends RuleActionDto { * Check if a given object implements the TypesenseRuleActionDto interface. */ export function instanceOfTypesenseRuleActionDto(value: any): value is TypesenseRuleActionDto { + if (!value) { + return false; + } if (!('host' in value) || value['host'] === undefined) return false; if (!('indexName' in value) || value['indexName'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; @@ -73,12 +72,12 @@ export function TypesenseRuleActionDtoFromJSON(json: any): TypesenseRuleActionDt return TypesenseRuleActionDtoFromJSONTyped(json, false); } -export function TypesenseRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypesenseRuleActionDto { +export function TypesenseRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): TypesenseRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'host': json['host'], 'indexName': json['indexName'], 'apiKey': json['apiKey'], @@ -87,7 +86,7 @@ export function TypesenseRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminat }; } -export function TypesenseRuleActionDtoToJSON(value?: TypesenseRuleActionDto | null, ignoreDiscriminator = false): any { +export function TypesenseRuleActionDtoToJSON(value?: TypesenseRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UIFieldEditor.ts b/src/generated/models/UIFieldEditor.ts index 773ad1c..6e28af3 100644 --- a/src/generated/models/UIFieldEditor.ts +++ b/src/generated/models/UIFieldEditor.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -38,11 +36,10 @@ export function UIFieldEditorFromJSON(json: any): UIFieldEditor { return UIFieldEditorFromJSONTyped(json, false); } -export function UIFieldEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UIFieldEditor { +export function UIFieldEditorFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UIFieldEditor { return json as UIFieldEditor; } export function UIFieldEditorToJSON(value?: UIFieldEditor | null): any { return value as any; } - diff --git a/src/generated/models/UIFieldPropertiesDto.ts b/src/generated/models/UIFieldPropertiesDto.ts index 662a6e9..fa3b8b4 100644 --- a/src/generated/models/UIFieldPropertiesDto.ts +++ b/src/generated/models/UIFieldPropertiesDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { - FieldPropertiesDtoFromJSON, FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { UIFieldEditor } from './UIFieldEditor'; import { UIFieldEditorFromJSON, - UIFieldEditorFromJSONTyped, UIFieldEditorToJSON, } from './UIFieldEditor'; @@ -47,6 +42,9 @@ export interface UIFieldPropertiesDto extends FieldPropertiesDto { * Check if a given object implements the UIFieldPropertiesDto interface. */ export function instanceOfUIFieldPropertiesDto(value: any): value is UIFieldPropertiesDto { + if (!value) { + return false; + } return true; } @@ -54,17 +52,17 @@ export function UIFieldPropertiesDtoFromJSON(json: any): UIFieldPropertiesDto { return UIFieldPropertiesDtoFromJSONTyped(json, false); } -export function UIFieldPropertiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UIFieldPropertiesDto { +export function UIFieldPropertiesDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UIFieldPropertiesDto { if (json == null) { return json; } return { - ...FieldPropertiesDtoFromJSONTyped(json, ignoreDiscriminator), + ...FieldPropertiesDtoFromJSONTyped(json, _ignoreDiscriminator), 'editor': json['editor'] == null ? undefined : UIFieldEditorFromJSON(json['editor']), }; } -export function UIFieldPropertiesDtoToJSON(value?: UIFieldPropertiesDto | null, ignoreDiscriminator = false): any { +export function UIFieldPropertiesDtoToJSON(value?: UIFieldPropertiesDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateAppDto.ts b/src/generated/models/UpdateAppDto.ts index 2e09c2c..678dafe 100644 --- a/src/generated/models/UpdateAppDto.ts +++ b/src/generated/models/UpdateAppDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface UpdateAppDto { * Check if a given object implements the UpdateAppDto interface. */ export function instanceOfUpdateAppDto(value: any): value is UpdateAppDto { + if (!value) { + return false; + } return true; } @@ -45,7 +45,7 @@ export function UpdateAppDtoFromJSON(json: any): UpdateAppDto { return UpdateAppDtoFromJSONTyped(json, false); } -export function UpdateAppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAppDto { +export function UpdateAppDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateAppDto { if (json == null) { return json; } @@ -56,7 +56,7 @@ export function UpdateAppDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function UpdateAppDtoToJSON(value?: UpdateAppDto | null, ignoreDiscriminator = false): any { +export function UpdateAppDtoToJSON(value?: UpdateAppDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateAppSettingsDto.ts b/src/generated/models/UpdateAppSettingsDto.ts index 491e30f..cb2ccd6 100644 --- a/src/generated/models/UpdateAppSettingsDto.ts +++ b/src/generated/models/UpdateAppSettingsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { PatternDto } from './PatternDto'; import { PatternDtoFromJSON, - PatternDtoFromJSONTyped, PatternDtoToJSON, } from './PatternDto'; import type { EditorDto } from './EditorDto'; import { EditorDtoFromJSON, - EditorDtoFromJSONTyped, EditorDtoToJSON, } from './EditorDto'; @@ -63,6 +58,9 @@ export interface UpdateAppSettingsDto { * Check if a given object implements the UpdateAppSettingsDto interface. */ export function instanceOfUpdateAppSettingsDto(value: any): value is UpdateAppSettingsDto { + if (!value) { + return false; + } if (!('patterns' in value) || value['patterns'] === undefined) return false; if (!('editors' in value) || value['editors'] === undefined) return false; return true; @@ -72,7 +70,7 @@ export function UpdateAppSettingsDtoFromJSON(json: any): UpdateAppSettingsDto { return UpdateAppSettingsDtoFromJSONTyped(json, false); } -export function UpdateAppSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAppSettingsDto { +export function UpdateAppSettingsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateAppSettingsDto { if (json == null) { return json; } @@ -85,7 +83,7 @@ export function UpdateAppSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function UpdateAppSettingsDtoToJSON(value?: UpdateAppSettingsDto | null, ignoreDiscriminator = false): any { +export function UpdateAppSettingsDtoToJSON(value?: UpdateAppSettingsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateAssetScriptsDto.ts b/src/generated/models/UpdateAssetScriptsDto.ts index 707555d..1c878b8 100644 --- a/src/generated/models/UpdateAssetScriptsDto.ts +++ b/src/generated/models/UpdateAssetScriptsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -68,6 +65,9 @@ export interface UpdateAssetScriptsDto { * Check if a given object implements the UpdateAssetScriptsDto interface. */ export function instanceOfUpdateAssetScriptsDto(value: any): value is UpdateAssetScriptsDto { + if (!value) { + return false; + } return true; } @@ -75,7 +75,7 @@ export function UpdateAssetScriptsDtoFromJSON(json: any): UpdateAssetScriptsDto return UpdateAssetScriptsDtoFromJSONTyped(json, false); } -export function UpdateAssetScriptsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAssetScriptsDto { +export function UpdateAssetScriptsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateAssetScriptsDto { if (json == null) { return json; } @@ -91,7 +91,7 @@ export function UpdateAssetScriptsDtoFromJSONTyped(json: any, ignoreDiscriminato }; } -export function UpdateAssetScriptsDtoToJSON(value?: UpdateAssetScriptsDto | null, ignoreDiscriminator = false): any { +export function UpdateAssetScriptsDtoToJSON(value?: UpdateAssetScriptsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateClientDto.ts b/src/generated/models/UpdateClientDto.ts index 2e46973..ac2d683 100644 --- a/src/generated/models/UpdateClientDto.ts +++ b/src/generated/models/UpdateClientDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -56,6 +53,9 @@ export interface UpdateClientDto { * Check if a given object implements the UpdateClientDto interface. */ export function instanceOfUpdateClientDto(value: any): value is UpdateClientDto { + if (!value) { + return false; + } return true; } @@ -63,7 +63,7 @@ export function UpdateClientDtoFromJSON(json: any): UpdateClientDto { return UpdateClientDtoFromJSONTyped(json, false); } -export function UpdateClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateClientDto { +export function UpdateClientDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateClientDto { if (json == null) { return json; } @@ -77,7 +77,7 @@ export function UpdateClientDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function UpdateClientDtoToJSON(value?: UpdateClientDto | null, ignoreDiscriminator = false): any { +export function UpdateClientDtoToJSON(value?: UpdateClientDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateFieldDto.ts b/src/generated/models/UpdateFieldDto.ts index 03a3143..b069c16 100644 --- a/src/generated/models/UpdateFieldDto.ts +++ b/src/generated/models/UpdateFieldDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { FieldPropertiesDtoFromJSON, - FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; @@ -39,6 +35,9 @@ export interface UpdateFieldDto { * Check if a given object implements the UpdateFieldDto interface. */ export function instanceOfUpdateFieldDto(value: any): value is UpdateFieldDto { + if (!value) { + return false; + } if (!('properties' in value) || value['properties'] === undefined) return false; return true; } @@ -47,7 +46,7 @@ export function UpdateFieldDtoFromJSON(json: any): UpdateFieldDto { return UpdateFieldDtoFromJSONTyped(json, false); } -export function UpdateFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFieldDto { +export function UpdateFieldDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateFieldDto { if (json == null) { return json; } @@ -57,7 +56,7 @@ export function UpdateFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function UpdateFieldDtoToJSON(value?: UpdateFieldDto | null, ignoreDiscriminator = false): any { +export function UpdateFieldDtoToJSON(value?: UpdateFieldDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateLanguageDto.ts b/src/generated/models/UpdateLanguageDto.ts index 5f834ba..e825383 100644 --- a/src/generated/models/UpdateLanguageDto.ts +++ b/src/generated/models/UpdateLanguageDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -44,6 +41,9 @@ export interface UpdateLanguageDto { * Check if a given object implements the UpdateLanguageDto interface. */ export function instanceOfUpdateLanguageDto(value: any): value is UpdateLanguageDto { + if (!value) { + return false; + } return true; } @@ -51,7 +51,7 @@ export function UpdateLanguageDtoFromJSON(json: any): UpdateLanguageDto { return UpdateLanguageDtoFromJSONTyped(json, false); } -export function UpdateLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLanguageDto { +export function UpdateLanguageDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateLanguageDto { if (json == null) { return json; } @@ -63,7 +63,7 @@ export function UpdateLanguageDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function UpdateLanguageDtoToJSON(value?: UpdateLanguageDto | null, ignoreDiscriminator = false): any { +export function UpdateLanguageDtoToJSON(value?: UpdateLanguageDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateProfileDto.ts b/src/generated/models/UpdateProfileDto.ts index fa88856..9843d4e 100644 --- a/src/generated/models/UpdateProfileDto.ts +++ b/src/generated/models/UpdateProfileDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface UpdateProfileDto { * Check if a given object implements the UpdateProfileDto interface. */ export function instanceOfUpdateProfileDto(value: any): value is UpdateProfileDto { + if (!value) { + return false; + } return true; } @@ -39,7 +39,7 @@ export function UpdateProfileDtoFromJSON(json: any): UpdateProfileDto { return UpdateProfileDtoFromJSONTyped(json, false); } -export function UpdateProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProfileDto { +export function UpdateProfileDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateProfileDto { if (json == null) { return json; } @@ -49,7 +49,7 @@ export function UpdateProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function UpdateProfileDtoToJSON(value?: UpdateProfileDto | null, ignoreDiscriminator = false): any { +export function UpdateProfileDtoToJSON(value?: UpdateProfileDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateRoleDto.ts b/src/generated/models/UpdateRoleDto.ts index 14191f4..8856f59 100644 --- a/src/generated/models/UpdateRoleDto.ts +++ b/src/generated/models/UpdateRoleDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface UpdateRoleDto { * Check if a given object implements the UpdateRoleDto interface. */ export function instanceOfUpdateRoleDto(value: any): value is UpdateRoleDto { + if (!value) { + return false; + } if (!('permissions' in value) || value['permissions'] === undefined) return false; return true; } @@ -46,7 +46,7 @@ export function UpdateRoleDtoFromJSON(json: any): UpdateRoleDto { return UpdateRoleDtoFromJSONTyped(json, false); } -export function UpdateRoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoleDto { +export function UpdateRoleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateRoleDto { if (json == null) { return json; } @@ -57,7 +57,7 @@ export function UpdateRoleDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function UpdateRoleDtoToJSON(value?: UpdateRoleDto | null, ignoreDiscriminator = false): any { +export function UpdateRoleDtoToJSON(value?: UpdateRoleDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateRuleDto.ts b/src/generated/models/UpdateRuleDto.ts index b01a68d..685339e 100644 --- a/src/generated/models/UpdateRuleDto.ts +++ b/src/generated/models/UpdateRuleDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleActionDto } from './RuleActionDto'; import { RuleActionDtoFromJSON, - RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { RuleTriggerDtoFromJSON, - RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -63,6 +58,9 @@ export interface UpdateRuleDto { * Check if a given object implements the UpdateRuleDto interface. */ export function instanceOfUpdateRuleDto(value: any): value is UpdateRuleDto { + if (!value) { + return false; + } return true; } @@ -70,7 +68,7 @@ export function UpdateRuleDtoFromJSON(json: any): UpdateRuleDto { return UpdateRuleDtoFromJSONTyped(json, false); } -export function UpdateRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRuleDto { +export function UpdateRuleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateRuleDto { if (json == null) { return json; } @@ -83,7 +81,7 @@ export function UpdateRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function UpdateRuleDtoToJSON(value?: UpdateRuleDto | null, ignoreDiscriminator = false): any { +export function UpdateRuleDtoToJSON(value?: UpdateRuleDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateSchemaDto.ts b/src/generated/models/UpdateSchemaDto.ts index 29bcbe2..64d0643 100644 --- a/src/generated/models/UpdateSchemaDto.ts +++ b/src/generated/models/UpdateSchemaDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -68,6 +65,9 @@ export interface UpdateSchemaDto { * Check if a given object implements the UpdateSchemaDto interface. */ export function instanceOfUpdateSchemaDto(value: any): value is UpdateSchemaDto { + if (!value) { + return false; + } return true; } @@ -75,7 +75,7 @@ export function UpdateSchemaDtoFromJSON(json: any): UpdateSchemaDto { return UpdateSchemaDtoFromJSONTyped(json, false); } -export function UpdateSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSchemaDto { +export function UpdateSchemaDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateSchemaDto { if (json == null) { return json; } @@ -91,7 +91,7 @@ export function UpdateSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function UpdateSchemaDtoToJSON(value?: UpdateSchemaDto | null, ignoreDiscriminator = false): any { +export function UpdateSchemaDtoToJSON(value?: UpdateSchemaDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateSettingDto.ts b/src/generated/models/UpdateSettingDto.ts index 2370eec..4d75318 100644 --- a/src/generated/models/UpdateSettingDto.ts +++ b/src/generated/models/UpdateSettingDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface UpdateSettingDto { * Check if a given object implements the UpdateSettingDto interface. */ export function instanceOfUpdateSettingDto(value: any): value is UpdateSettingDto { + if (!value) { + return false; + } if (!('value' in value) || value['value'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function UpdateSettingDtoFromJSON(json: any): UpdateSettingDto { return UpdateSettingDtoFromJSONTyped(json, false); } -export function UpdateSettingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettingDto { +export function UpdateSettingDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateSettingDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function UpdateSettingDtoFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function UpdateSettingDtoToJSON(value?: UpdateSettingDto | null, ignoreDiscriminator = false): any { +export function UpdateSettingDtoToJSON(value?: UpdateSettingDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateTeamDto.ts b/src/generated/models/UpdateTeamDto.ts index 8ae1afe..d53dd5c 100644 --- a/src/generated/models/UpdateTeamDto.ts +++ b/src/generated/models/UpdateTeamDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -32,6 +29,9 @@ export interface UpdateTeamDto { * Check if a given object implements the UpdateTeamDto interface. */ export function instanceOfUpdateTeamDto(value: any): value is UpdateTeamDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -40,7 +40,7 @@ export function UpdateTeamDtoFromJSON(json: any): UpdateTeamDto { return UpdateTeamDtoFromJSONTyped(json, false); } -export function UpdateTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTeamDto { +export function UpdateTeamDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateTeamDto { if (json == null) { return json; } @@ -50,7 +50,7 @@ export function UpdateTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function UpdateTeamDtoToJSON(value?: UpdateTeamDto | null, ignoreDiscriminator = false): any { +export function UpdateTeamDtoToJSON(value?: UpdateTeamDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateUserDto.ts b/src/generated/models/UpdateUserDto.ts index a29ff20..a70df2b 100644 --- a/src/generated/models/UpdateUserDto.ts +++ b/src/generated/models/UpdateUserDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -50,6 +47,9 @@ export interface UpdateUserDto { * Check if a given object implements the UpdateUserDto interface. */ export function instanceOfUpdateUserDto(value: any): value is UpdateUserDto { + if (!value) { + return false; + } if (!('email' in value) || value['email'] === undefined) return false; if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('permissions' in value) || value['permissions'] === undefined) return false; @@ -60,7 +60,7 @@ export function UpdateUserDtoFromJSON(json: any): UpdateUserDto { return UpdateUserDtoFromJSONTyped(json, false); } -export function UpdateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserDto { +export function UpdateUserDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateUserDto { if (json == null) { return json; } @@ -73,7 +73,7 @@ export function UpdateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function UpdateUserDtoToJSON(value?: UpdateUserDto | null, ignoreDiscriminator = false): any { +export function UpdateUserDtoToJSON(value?: UpdateUserDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpdateWorkflowDto.ts b/src/generated/models/UpdateWorkflowDto.ts index eae87da..5f3547b 100644 --- a/src/generated/models/UpdateWorkflowDto.ts +++ b/src/generated/models/UpdateWorkflowDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { WorkflowStepDto } from './WorkflowStepDto'; import { WorkflowStepDtoFromJSON, - WorkflowStepDtoFromJSONTyped, WorkflowStepDtoToJSON, } from './WorkflowStepDto'; @@ -57,6 +54,9 @@ export interface UpdateWorkflowDto { * Check if a given object implements the UpdateWorkflowDto interface. */ export function instanceOfUpdateWorkflowDto(value: any): value is UpdateWorkflowDto { + if (!value) { + return false; + } if (!('steps' in value) || value['steps'] === undefined) return false; if (!('initial' in value) || value['initial'] === undefined) return false; return true; @@ -66,7 +66,7 @@ export function UpdateWorkflowDtoFromJSON(json: any): UpdateWorkflowDto { return UpdateWorkflowDtoFromJSONTyped(json, false); } -export function UpdateWorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWorkflowDto { +export function UpdateWorkflowDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpdateWorkflowDto { if (json == null) { return json; } @@ -79,7 +79,7 @@ export function UpdateWorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function UpdateWorkflowDtoToJSON(value?: UpdateWorkflowDto | null, ignoreDiscriminator = false): any { +export function UpdateWorkflowDtoToJSON(value?: UpdateWorkflowDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpsertSchemaDto.ts b/src/generated/models/UpsertSchemaDto.ts index 552a086..1779287 100644 --- a/src/generated/models/UpsertSchemaDto.ts +++ b/src/generated/models/UpsertSchemaDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,29 +10,24 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { SchemaPropertiesDto } from './SchemaPropertiesDto'; import { SchemaPropertiesDtoFromJSON, - SchemaPropertiesDtoFromJSONTyped, SchemaPropertiesDtoToJSON, } from './SchemaPropertiesDto'; import type { SchemaScriptsDto } from './SchemaScriptsDto'; import { SchemaScriptsDtoFromJSON, - SchemaScriptsDtoFromJSONTyped, SchemaScriptsDtoToJSON, } from './SchemaScriptsDto'; import type { UpsertSchemaFieldDto } from './UpsertSchemaFieldDto'; import { UpsertSchemaFieldDtoFromJSON, - UpsertSchemaFieldDtoFromJSONTyped, UpsertSchemaFieldDtoToJSON, } from './UpsertSchemaFieldDto'; import type { FieldRuleDto } from './FieldRuleDto'; import { FieldRuleDtoFromJSON, - FieldRuleDtoFromJSONTyped, FieldRuleDtoToJSON, } from './FieldRuleDto'; @@ -105,6 +98,9 @@ export interface UpsertSchemaDto { * Check if a given object implements the UpsertSchemaDto interface. */ export function instanceOfUpsertSchemaDto(value: any): value is UpsertSchemaDto { + if (!value) { + return false; + } return true; } @@ -112,7 +108,7 @@ export function UpsertSchemaDtoFromJSON(json: any): UpsertSchemaDto { return UpsertSchemaDtoFromJSONTyped(json, false); } -export function UpsertSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertSchemaDto { +export function UpsertSchemaDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpsertSchemaDto { if (json == null) { return json; } @@ -130,7 +126,7 @@ export function UpsertSchemaDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function UpsertSchemaDtoToJSON(value?: UpsertSchemaDto | null, ignoreDiscriminator = false): any { +export function UpsertSchemaDtoToJSON(value?: UpsertSchemaDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpsertSchemaFieldDto.ts b/src/generated/models/UpsertSchemaFieldDto.ts index 3e9f23a..dea4d19 100644 --- a/src/generated/models/UpsertSchemaFieldDto.ts +++ b/src/generated/models/UpsertSchemaFieldDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,17 +10,14 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { FieldPropertiesDtoFromJSON, - FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; import type { UpsertSchemaNestedFieldDto } from './UpsertSchemaNestedFieldDto'; import { UpsertSchemaNestedFieldDtoFromJSON, - UpsertSchemaNestedFieldDtoFromJSONTyped, UpsertSchemaNestedFieldDtoToJSON, } from './UpsertSchemaNestedFieldDto'; @@ -81,6 +76,9 @@ export interface UpsertSchemaFieldDto { * Check if a given object implements the UpsertSchemaFieldDto interface. */ export function instanceOfUpsertSchemaFieldDto(value: any): value is UpsertSchemaFieldDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; @@ -90,7 +88,7 @@ export function UpsertSchemaFieldDtoFromJSON(json: any): UpsertSchemaFieldDto { return UpsertSchemaFieldDtoFromJSONTyped(json, false); } -export function UpsertSchemaFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertSchemaFieldDto { +export function UpsertSchemaFieldDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpsertSchemaFieldDto { if (json == null) { return json; } @@ -106,7 +104,7 @@ export function UpsertSchemaFieldDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function UpsertSchemaFieldDtoToJSON(value?: UpsertSchemaFieldDto | null, ignoreDiscriminator = false): any { +export function UpsertSchemaFieldDtoToJSON(value?: UpsertSchemaFieldDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UpsertSchemaNestedFieldDto.ts b/src/generated/models/UpsertSchemaNestedFieldDto.ts index 49b655d..3af1b21 100644 --- a/src/generated/models/UpsertSchemaNestedFieldDto.ts +++ b/src/generated/models/UpsertSchemaNestedFieldDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,11 +10,9 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { FieldPropertiesDto } from './FieldPropertiesDto'; import { FieldPropertiesDtoFromJSON, - FieldPropertiesDtoFromJSONTyped, FieldPropertiesDtoToJSON, } from './FieldPropertiesDto'; @@ -63,6 +59,9 @@ export interface UpsertSchemaNestedFieldDto { * Check if a given object implements the UpsertSchemaNestedFieldDto interface. */ export function instanceOfUpsertSchemaNestedFieldDto(value: any): value is UpsertSchemaNestedFieldDto { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; if (!('properties' in value) || value['properties'] === undefined) return false; return true; @@ -72,7 +71,7 @@ export function UpsertSchemaNestedFieldDtoFromJSON(json: any): UpsertSchemaNeste return UpsertSchemaNestedFieldDtoFromJSONTyped(json, false); } -export function UpsertSchemaNestedFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertSchemaNestedFieldDto { +export function UpsertSchemaNestedFieldDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UpsertSchemaNestedFieldDto { if (json == null) { return json; } @@ -86,7 +85,7 @@ export function UpsertSchemaNestedFieldDtoFromJSONTyped(json: any, ignoreDiscrim }; } -export function UpsertSchemaNestedFieldDtoToJSON(value?: UpsertSchemaNestedFieldDto | null, ignoreDiscriminator = false): any { +export function UpsertSchemaNestedFieldDtoToJSON(value?: UpsertSchemaNestedFieldDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UsageRuleTriggerDto.ts b/src/generated/models/UsageRuleTriggerDto.ts index c8b6313..d7b6c59 100644 --- a/src/generated/models/UsageRuleTriggerDto.ts +++ b/src/generated/models/UsageRuleTriggerDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,10 +10,8 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { RuleTriggerDto } from './RuleTriggerDto'; import { - RuleTriggerDtoFromJSON, RuleTriggerDtoFromJSONTyped, RuleTriggerDtoToJSON, } from './RuleTriggerDto'; @@ -45,6 +41,9 @@ export interface UsageRuleTriggerDto extends RuleTriggerDto { * Check if a given object implements the UsageRuleTriggerDto interface. */ export function instanceOfUsageRuleTriggerDto(value: any): value is UsageRuleTriggerDto { + if (!value) { + return false; + } if (!('limit' in value) || value['limit'] === undefined) return false; return true; } @@ -53,18 +52,18 @@ export function UsageRuleTriggerDtoFromJSON(json: any): UsageRuleTriggerDto { return UsageRuleTriggerDtoFromJSONTyped(json, false); } -export function UsageRuleTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageRuleTriggerDto { +export function UsageRuleTriggerDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UsageRuleTriggerDto { if (json == null) { return json; } return { - ...RuleTriggerDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleTriggerDtoFromJSONTyped(json, _ignoreDiscriminator), 'limit': json['limit'], 'numDays': json['numDays'] == null ? undefined : json['numDays'], }; } -export function UsageRuleTriggerDtoToJSON(value?: UsageRuleTriggerDto | null, ignoreDiscriminator = false): any { +export function UsageRuleTriggerDtoToJSON(value?: UsageRuleTriggerDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UserDto.ts b/src/generated/models/UserDto.ts index 8c582ad..d87f107 100644 --- a/src/generated/models/UserDto.ts +++ b/src/generated/models/UserDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -69,6 +66,9 @@ export interface UserDto { * Check if a given object implements the UserDto interface. */ export function instanceOfUserDto(value: any): value is UserDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; @@ -82,7 +82,7 @@ export function UserDtoFromJSON(json: any): UserDto { return UserDtoFromJSONTyped(json, false); } -export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDto { +export function UserDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UserDto { if (json == null) { return json; } @@ -97,7 +97,7 @@ export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): U }; } -export function UserDtoToJSON(value?: UserDto | null, ignoreDiscriminator = false): any { +export function UserDtoToJSON(value?: UserDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UserProperty.ts b/src/generated/models/UserProperty.ts index fce14e9..3b8c36b 100644 --- a/src/generated/models/UserProperty.ts +++ b/src/generated/models/UserProperty.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface UserProperty { * Check if a given object implements the UserProperty interface. */ export function instanceOfUserProperty(value: any): value is UserProperty { + if (!value) { + return false; + } if (!('name' in value) || value['name'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; @@ -47,7 +47,7 @@ export function UserPropertyFromJSON(json: any): UserProperty { return UserPropertyFromJSONTyped(json, false); } -export function UserPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProperty { +export function UserPropertyFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UserProperty { if (json == null) { return json; } @@ -58,7 +58,7 @@ export function UserPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function UserPropertyToJSON(value?: UserProperty | null, ignoreDiscriminator = false): any { +export function UserPropertyToJSON(value?: UserProperty | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/UsersDto.ts b/src/generated/models/UsersDto.ts index 06926b9..49c2744 100644 --- a/src/generated/models/UsersDto.ts +++ b/src/generated/models/UsersDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { UserDto } from './UserDto'; import { UserDtoFromJSON, - UserDtoFromJSONTyped, UserDtoToJSON, } from './UserDto'; @@ -57,6 +53,9 @@ export interface UsersDto { * Check if a given object implements the UsersDto interface. */ export function instanceOfUsersDto(value: any): value is UsersDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; @@ -67,7 +66,7 @@ export function UsersDtoFromJSON(json: any): UsersDto { return UsersDtoFromJSONTyped(json, false); } -export function UsersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersDto { +export function UsersDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): UsersDto { if (json == null) { return json; } @@ -79,7 +78,7 @@ export function UsersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function UsersDtoToJSON(value?: UsersDto | null, ignoreDiscriminator = false): any { +export function UsersDtoToJSON(value?: UsersDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/WebhookMethod.ts b/src/generated/models/WebhookMethod.ts index 2f2697a..9b858d3 100644 --- a/src/generated/models/WebhookMethod.ts +++ b/src/generated/models/WebhookMethod.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -42,11 +40,10 @@ export function WebhookMethodFromJSON(json: any): WebhookMethod { return WebhookMethodFromJSONTyped(json, false); } -export function WebhookMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookMethod { +export function WebhookMethodFromJSONTyped(json: any, _ignoreDiscriminator: boolean): WebhookMethod { return json as WebhookMethod; } export function WebhookMethodToJSON(value?: WebhookMethod | null): any { return value as any; } - diff --git a/src/generated/models/WebhookRuleActionDto.ts b/src/generated/models/WebhookRuleActionDto.ts index 698a97d..9658a26 100644 --- a/src/generated/models/WebhookRuleActionDto.ts +++ b/src/generated/models/WebhookRuleActionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,16 +10,13 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; import type { WebhookMethod } from './WebhookMethod'; import { WebhookMethodFromJSON, - WebhookMethodFromJSONTyped, WebhookMethodToJSON, } from './WebhookMethod'; import type { RuleActionDto } from './RuleActionDto'; import { - RuleActionDtoFromJSON, RuleActionDtoFromJSONTyped, RuleActionDtoToJSON, } from './RuleActionDto'; @@ -77,6 +72,9 @@ export interface WebhookRuleActionDto extends RuleActionDto { * Check if a given object implements the WebhookRuleActionDto interface. */ export function instanceOfWebhookRuleActionDto(value: any): value is WebhookRuleActionDto { + if (!value) { + return false; + } if (!('url' in value) || value['url'] === undefined) return false; if (!('method' in value) || value['method'] === undefined) return false; return true; @@ -86,12 +84,12 @@ export function WebhookRuleActionDtoFromJSON(json: any): WebhookRuleActionDto { return WebhookRuleActionDtoFromJSONTyped(json, false); } -export function WebhookRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookRuleActionDto { +export function WebhookRuleActionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): WebhookRuleActionDto { if (json == null) { return json; } return { - ...RuleActionDtoFromJSONTyped(json, ignoreDiscriminator), + ...RuleActionDtoFromJSONTyped(json, _ignoreDiscriminator), 'url': json['url'], 'method': WebhookMethodFromJSON(json['method']), 'payload': json['payload'] == null ? undefined : json['payload'], @@ -101,7 +99,7 @@ export function WebhookRuleActionDtoFromJSONTyped(json: any, ignoreDiscriminator }; } -export function WebhookRuleActionDtoToJSON(value?: WebhookRuleActionDto | null, ignoreDiscriminator = false): any { +export function WebhookRuleActionDtoToJSON(value?: WebhookRuleActionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/WorkflowDto.ts b/src/generated/models/WorkflowDto.ts index 1d548cd..5e20666 100644 --- a/src/generated/models/WorkflowDto.ts +++ b/src/generated/models/WorkflowDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; import type { WorkflowStepDto } from './WorkflowStepDto'; import { WorkflowStepDtoFromJSON, - WorkflowStepDtoFromJSONTyped, WorkflowStepDtoToJSON, } from './WorkflowStepDto'; @@ -75,6 +71,9 @@ export interface WorkflowDto { * Check if a given object implements the WorkflowDto interface. */ export function instanceOfWorkflowDto(value: any): value is WorkflowDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('steps' in value) || value['steps'] === undefined) return false; @@ -86,7 +85,7 @@ export function WorkflowDtoFromJSON(json: any): WorkflowDto { return WorkflowDtoFromJSONTyped(json, false); } -export function WorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDto { +export function WorkflowDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): WorkflowDto { if (json == null) { return json; } @@ -101,7 +100,7 @@ export function WorkflowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function WorkflowDtoToJSON(value?: WorkflowDto | null, ignoreDiscriminator = false): any { +export function WorkflowDtoToJSON(value?: WorkflowDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/WorkflowStepDto.ts b/src/generated/models/WorkflowStepDto.ts index 4efa01a..5098723 100644 --- a/src/generated/models/WorkflowStepDto.ts +++ b/src/generated/models/WorkflowStepDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,7 +14,6 @@ import { mapValues } from '../runtime'; import type { WorkflowTransitionDto } from './WorkflowTransitionDto'; import { WorkflowTransitionDtoFromJSON, - WorkflowTransitionDtoFromJSONTyped, WorkflowTransitionDtoToJSON, } from './WorkflowTransitionDto'; @@ -69,6 +66,9 @@ export interface WorkflowStepDto { * Check if a given object implements the WorkflowStepDto interface. */ export function instanceOfWorkflowStepDto(value: any): value is WorkflowStepDto { + if (!value) { + return false; + } return true; } @@ -76,7 +76,7 @@ export function WorkflowStepDtoFromJSON(json: any): WorkflowStepDto { return WorkflowStepDtoFromJSONTyped(json, false); } -export function WorkflowStepDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowStepDto { +export function WorkflowStepDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): WorkflowStepDto { if (json == null) { return json; } @@ -91,7 +91,7 @@ export function WorkflowStepDtoFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function WorkflowStepDtoToJSON(value?: WorkflowStepDto | null, ignoreDiscriminator = false): any { +export function WorkflowStepDtoToJSON(value?: WorkflowStepDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/WorkflowTransitionDto.ts b/src/generated/models/WorkflowTransitionDto.ts index 68b6f7b..cffa2b5 100644 --- a/src/generated/models/WorkflowTransitionDto.ts +++ b/src/generated/models/WorkflowTransitionDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -12,7 +10,6 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; /** * * @export @@ -38,6 +35,9 @@ export interface WorkflowTransitionDto { * Check if a given object implements the WorkflowTransitionDto interface. */ export function instanceOfWorkflowTransitionDto(value: any): value is WorkflowTransitionDto { + if (!value) { + return false; + } return true; } @@ -45,7 +45,7 @@ export function WorkflowTransitionDtoFromJSON(json: any): WorkflowTransitionDto return WorkflowTransitionDtoFromJSONTyped(json, false); } -export function WorkflowTransitionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowTransitionDto { +export function WorkflowTransitionDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): WorkflowTransitionDto { if (json == null) { return json; } @@ -56,7 +56,7 @@ export function WorkflowTransitionDtoFromJSONTyped(json: any, ignoreDiscriminato }; } -export function WorkflowTransitionDtoToJSON(value?: WorkflowTransitionDto | null, ignoreDiscriminator = false): any { +export function WorkflowTransitionDtoToJSON(value?: WorkflowTransitionDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/WorkflowsDto.ts b/src/generated/models/WorkflowsDto.ts index 7916b12..3055024 100644 --- a/src/generated/models/WorkflowsDto.ts +++ b/src/generated/models/WorkflowsDto.ts @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ /** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -16,13 +14,11 @@ import { mapValues } from '../runtime'; import type { WorkflowDto } from './WorkflowDto'; import { WorkflowDtoFromJSON, - WorkflowDtoFromJSONTyped, WorkflowDtoToJSON, } from './WorkflowDto'; import type { ResourceLink } from './ResourceLink'; import { ResourceLinkFromJSON, - ResourceLinkFromJSONTyped, ResourceLinkToJSON, } from './ResourceLink'; @@ -57,6 +53,9 @@ export interface WorkflowsDto { * Check if a given object implements the WorkflowsDto interface. */ export function instanceOfWorkflowsDto(value: any): value is WorkflowsDto { + if (!value) { + return false; + } if (!('links' in value) || value['links'] === undefined) return false; if (!('items' in value) || value['items'] === undefined) return false; if (!('errors' in value) || value['errors'] === undefined) return false; @@ -67,7 +66,7 @@ export function WorkflowsDtoFromJSON(json: any): WorkflowsDto { return WorkflowsDtoFromJSONTyped(json, false); } -export function WorkflowsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowsDto { +export function WorkflowsDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): WorkflowsDto { if (json == null) { return json; } @@ -79,7 +78,7 @@ export function WorkflowsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function WorkflowsDtoToJSON(value?: WorkflowsDto | null, ignoreDiscriminator = false): any { +export function WorkflowsDtoToJSON(value?: WorkflowsDto | null, _ignoreDiscriminator = false): any { if (value == null) { return value; } diff --git a/src/generated/models/index.ts b/src/generated/models/index.ts index 6f649b4..a63c433 100644 --- a/src/generated/models/index.ts +++ b/src/generated/models/index.ts @@ -1,5 +1,5 @@ /* tslint:disable */ -/* eslint-disable */ + export * from './ActionTypeEnum'; export * from './AddFieldDto'; export * from './AddLanguageDto'; diff --git a/src/wrapper/SquidexClient.ts b/src/wrapper/SquidexClient.ts index db4d139..6690289 100644 --- a/src/wrapper/SquidexClient.ts +++ b/src/wrapper/SquidexClient.ts @@ -49,72 +49,70 @@ import { import { buildError, SquidexUnauthorizedError } from "./errors"; import { addHeader, getHeader } from "./headers"; -export declare namespace SquidexClients { - interface Options { - /** - * The name of the app. - */ - appName: string; +export interface SquidexOptions { + /** + * The name of the app. + */ + appName: string; - /** - * The secret of the client. - */ - clientId: string; + /** + * The secret of the client. + */ + clientId: string; - /** - * The secret of the client. - */ - clientSecret: string; + /** + * The secret of the client. + */ + clientSecret: string; - /** - * Custom headers to be added to each request. - */ - customHeader?: Record; + /** + * Custom headers to be added to each request. + */ + customHeader?: Record; - /** - * The URL to your Squidex installation (cloud by default). - */ - environment?: environments.SquidexEnvironment | string; + /** + * The URL to your Squidex installation (cloud by default). + */ + environment?: environments.SquidexEnvironment | string; - /** - * A custom fetcher for normal requests. - */ - fetcher?: FetchAPI; + /** + * A custom fetcher for normal requests. + */ + fetcher?: FetchAPI; - /** - * A function to create a new fetcher based on the default fetcher. - */ - middleware?: Middleware; + /** + * A function to create a new fetcher based on the default fetcher. + */ + middleware?: Middleware; - /** - * The timeout in milliseconds. - */ - timeout?: number; + /** + * The timeout in milliseconds. + */ + timeout?: number; - /** - * The store for tokens. By default it is in memory. - */ - tokenStore?: TokenStore; - } + /** + * The store for tokens. By default it is in memory. + */ + tokenStore?: TokenStore; +} - export interface TokenStore { - get(): Token | undefined; +export interface TokenStore { + get(): Token | undefined; - set(token: Token): void; + set(token: Token): void; - clear(): void; - } + clear(): void; +} - export interface Token { - accessToken: string; - expiresIn: number; - expiresAt: number; - } +export interface Token { + accessToken: string; + expiresIn: number; + expiresAt: number; } export class SquidexClients { private readonly configuration: Configuration; - private readonly tokenStore: SquidexClients.TokenStore; + private readonly tokenStore: TokenStore; private tokenPromise?: Promise; private appsApi?: AppsApi; private assetsApi?: AssetsApi; @@ -245,7 +243,7 @@ export class SquidexClients { return this.clientOptions.environment || environments.SquidexEnvironment.Default; } - constructor(readonly clientOptions: SquidexClients.Options) { + constructor(readonly clientOptions: SquidexOptions) { if (!clientOptions.clientId) { throw new Error("Configuration 'clientId' is required."); } @@ -258,10 +256,10 @@ export class SquidexClients { throw new Error("Configuration 'appName' is required."); } - this.tokenStore = this.clientOptions.tokenStore || new SquidexClients.InMemoryTokenStore(); + this.tokenStore = this.clientOptions.tokenStore || new InMemoryTokenStore(); const originalFetch = this.clientOptions.fetcher || fetch; - let fetchApi: FetchAPI = async (input, init) => { + const fetchApi: FetchAPI = async (input, init) => { init ||= {}; addOptions(init, clientOptions); @@ -334,7 +332,7 @@ export class SquidexClients { scope: "squidex-api", }), method: "POST", - } + }, ); const body = (await response.json()) as { access_token: string; expires_in: number }; @@ -367,7 +365,7 @@ export class SquidexClients { } } -function addOptions(init: RequestInit, clientOptions: SquidexClients.Options) { +function addOptions(init: RequestInit, clientOptions: SquidexOptions) { if (clientOptions.timeout) { init.signal = AbortSignal.timeout(clientOptions.timeout); } @@ -379,42 +377,43 @@ function addOptions(init: RequestInit, clientOptions: SquidexClients.Options) { } } -export namespace SquidexClients { - export class InMemoryTokenStore implements TokenStore { - private token: Token | undefined; +export class InMemoryTokenStore implements TokenStore { + private token: Token | undefined; - get(): Token | undefined { - return this.token; - } - - set(token: Token): void { - this.token = token; - } + get(): Token | undefined { + return this.token; + } - clear() { - this.token = undefined; - } + set(token: Token): void { + this.token = token; } - export class StorageTokenStore implements TokenStore { - constructor(readonly store: Storage = localStorage, readonly key = "SquidexToken") {} + clear() { + this.token = undefined; + } +} - get(): Token | undefined { - const value = this.store.getItem(this.key); +export class StorageTokenStore implements TokenStore { + constructor( + readonly store: Storage = localStorage, + readonly key = "SquidexToken", + ) {} - if (!value) { - return undefined; - } + get(): Token | undefined { + const value = this.store.getItem(this.key); - return JSON.parse(value); + if (!value) { + return undefined; } - set(token: Token): void { - this.store.setItem(this.key, JSON.stringify(token)); - } + return JSON.parse(value); + } - clear() { - this.store.removeItem(this.key); - } + set(token: Token): void { + this.store.setItem(this.key, JSON.stringify(token)); + } + + clear() { + this.store.removeItem(this.key); } } diff --git a/src/wrapper/errors.ts b/src/wrapper/errors.ts index f14889b..dc4d9a9 100644 --- a/src/wrapper/errors.ts +++ b/src/wrapper/errors.ts @@ -5,7 +5,7 @@ export class SquidexError extends Error { public readonly statusCode?: number, public readonly body?: T, public readonly cause?: Error, - message?: string + message?: string, ) { super(buildMessage(statusCode, body, message, cause)); @@ -114,7 +114,7 @@ export async function buildError(error: unknown) { } function buildMessage(statusCode?: number, body?: unknown, message?: string, cause?: Error): string { - let lines: string[] = []; + const lines: string[] = []; if (message) { lines.push(message); } diff --git a/templates/apis.mustache b/templates/apis.mustache index 1dc6fbe..4098e3d 100644 --- a/templates/apis.mustache +++ b/templates/apis.mustache @@ -1,5 +1,3 @@ -/* tslint:disable */ -/* eslint-disable */ {{>licenseInfo}} import * as runtime from '../runtime{{importFileExtension}}'; diff --git a/templates/modelEnum.mustache b/templates/modelEnum.mustache new file mode 100644 index 0000000..3cfe8ea --- /dev/null +++ b/templates/modelEnum.mustache @@ -0,0 +1,24 @@ +{{>modelEnumInterfaces}} + +export function instanceOf{{classname}}(value: any): boolean { + for (const key in {{classname}}) { + if (Object.prototype.hasOwnProperty.call({{classname}}, key)) { + if ({{classname}}[key as keyof typeof {{classname}}] === value) { + return true; + } + } + } + return false; +} + +export function {{classname}}FromJSON(json: any): {{classname}} { + return {{classname}}FromJSONTyped(json, false); +} + +export function {{classname}}FromJSONTyped(json: any, _ignoreDiscriminator: boolean): {{classname}} { + return json as {{classname}}; +} + +export function {{classname}}ToJSON(value?: {{classname}} | null): any { + return value as any; +} \ No newline at end of file diff --git a/templates/modelGeneric.mustache b/templates/modelGeneric.mustache index fa9f4ad..bfb7db9 100644 --- a/templates/modelGeneric.mustache +++ b/templates/modelGeneric.mustache @@ -30,6 +30,9 @@ export function is{{modelName}}(value: {{classname}}): value is {{modelName}} { * Check if a given object implements the {{classname}} interface. */ export function instanceOf{{classname}}(value: any): value is {{classname}} { + if (!value) { + return false; + } {{#vars}} {{#required}} if (!('{{name}}' in value) || value['{{name}}'] === undefined) return false; @@ -42,13 +45,13 @@ export function {{classname}}FromJSON(json: any): {{classname}} { return {{classname}}FromJSONTyped(json, false); } -export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boolean): {{classname}} { +export function {{classname}}FromJSONTyped(json: any, _ignoreDiscriminator: boolean): {{classname}} { {{#hasVars}} if (json == null) { return json; } {{#discriminator}} - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { {{#discriminator.mappedModels}} if (json['{{discriminator.propertyBaseName}}'] === '{{mappingName}}') { return {{modelName}}FromJSONTyped(json, true); @@ -57,7 +60,7 @@ export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boole } {{/discriminator}} return { - {{#parent}}...{{{.}}}FromJSONTyped(json, ignoreDiscriminator),{{/parent}} + {{#parent}}...{{{.}}}FromJSONTyped(json, _ignoreDiscriminator),{{/parent}} {{#additionalPropertiesType}} ...json, {{/additionalPropertiesType}} @@ -106,13 +109,13 @@ export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boole {{/hasVars}} } -export function {{classname}}ToJSON(value?: {{#hasReadOnly}}Omit<{{classname}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{classname}}{{/hasReadOnly}} | null, ignoreDiscriminator = false): any { +export function {{classname}}ToJSON(value?: {{#hasReadOnly}}Omit<{{classname}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{classname}}{{/hasReadOnly}} | null, _ignoreDiscriminator = false): any { {{#hasVars}} if (value == null) { return value; } {{#discriminator}} - if (!ignoreDiscriminator) { + if (!_ignoreDiscriminator) { {{#discriminator.mappedModels}} if (value['{{discriminator.propertyBaseName}}'] === '{{mappingName}}') { return {{modelName}}ToJSON(value as {{modelName}}, true); diff --git a/templates/models.mustache b/templates/models.mustache new file mode 100644 index 0000000..406f436 --- /dev/null +++ b/templates/models.mustache @@ -0,0 +1,18 @@ +{{>licenseInfo}} +{{#models}} +{{#model}} +{{#isEnum}} +{{>modelEnum}} +{{/isEnum}} +{{^isEnum}} +{{#oneOf}} +{{#-first}} +{{>modelOneOf}} +{{/-first}} +{{/oneOf}} +{{^oneOf}} +{{>modelGeneric}} +{{/oneOf}} +{{/isEnum}} +{{/model}} +{{/models}} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 06483a1..3170cea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,8 +6,8 @@ "extendedDiagnostics": false, "module": "CommonJS", "moduleResolution": "node", - "noUnusedLocals": false, - "noUnusedParameters": false, + "noUnusedLocals": true, + "noUnusedParameters": true, "outDir": "dist", "rootDir": "src", "skipLibCheck": true, From 28dec721019ed9a056da2266b48662d39472ea2a Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 26 Aug 2024 22:44:42 +0200 Subject: [PATCH 15/16] Make the required parameters inline. --- openapi.json | 16 +- package-lock.json | 11 + package.json | 3 + src/generated/apis/AppsApi.ts | 428 +++++---- src/generated/apis/AssetsApi.ts | 704 ++++++++------ src/generated/apis/BackupsApi.ts | 88 +- src/generated/apis/ContentsApi.ts | 1117 +++++++++++++++-------- src/generated/apis/DiagnosticsApi.ts | 2 + src/generated/apis/EventConsumersApi.ts | 55 +- src/generated/apis/HistoryApi.ts | 39 +- src/generated/apis/JobsApi.ts | 44 +- src/generated/apis/LanguagesApi.ts | 1 + src/generated/apis/NewsApi.ts | 14 +- src/generated/apis/PingApi.ts | 3 + src/generated/apis/PlansApi.ts | 60 +- src/generated/apis/RulesApi.ts | 277 +++--- src/generated/apis/SchemasApi.ts | 675 ++++++++------ src/generated/apis/SearchApi.ts | 14 +- src/generated/apis/StatisticsApi.ts | 110 ++- src/generated/apis/TeamsApi.ts | 199 ++-- src/generated/apis/TemplatesApi.ts | 19 +- src/generated/apis/TranslationsApi.ts | 18 +- src/generated/apis/UserManagementApi.ts | 139 +-- src/generated/apis/UsersApi.ts | 69 +- templates/apis.mustache | 83 +- tests/_utils.ts | 17 +- tests/assets.test.ts | 17 +- tests/contents.test.ts | 49 +- tests/globalSetup.ts | 2 +- tests/rules.test.ts | 20 +- tests/schemas.test.ts | 22 +- tests/userManagement.test.ts | 12 +- 32 files changed, 2625 insertions(+), 1702 deletions(-) diff --git a/openapi.json b/openapi.json index e24d29b..a824af2 100644 --- a/openapi.json +++ b/openapi.json @@ -10658,10 +10658,10 @@ "type": "string", "format": "binary" }, - "fileUrl": { + "url": { "type": "string" }, - "fileName": { + "name": { "type": "string" } } @@ -10912,10 +10912,10 @@ "type": "string", "format": "binary" }, - "fileUrl": { + "url": { "type": "string" }, - "fileName": { + "name": { "type": "string" } } @@ -11224,10 +11224,10 @@ "type": "string", "format": "binary" }, - "fileUrl": { + "url": { "type": "string" }, - "fileName": { + "name": { "type": "string" } } @@ -11990,10 +11990,10 @@ "type": "string", "format": "binary" }, - "fileUrl": { + "url": { "type": "string" }, - "fileName": { + "name": { "type": "string" } } diff --git a/package-lock.json b/package-lock.json index 4178f09..6a3c846 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,9 @@ "": { "name": "@squidex/squidex", "version": "1.2.1", + "dependencies": { + "undici": "^6.19.8" + }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.4", @@ -6829,6 +6832,14 @@ } } }, + "node_modules/undici": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.19.8.tgz", + "integrity": "sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==", + "engines": { + "node": ">=18.17" + } + }, "node_modules/undici-types": { "version": "6.19.8", "dev": true, diff --git a/package.json b/package.json index d335971..2df9e4e 100644 --- a/package.json +++ b/package.json @@ -30,5 +30,8 @@ "prettier": "3.3.3", "typescript": "^5.5.4", "typescript-eslint": "^8.2.0" + }, + "dependencies": { + "undici": "^6.19.8" } } diff --git a/src/generated/apis/AppsApi.ts b/src/generated/apis/AppsApi.ts index 7105e33..7abdea2 100644 --- a/src/generated/apis/AppsApi.ts +++ b/src/generated/apis/AppsApi.ts @@ -61,94 +61,100 @@ import { WorkflowsDtoFromJSON, } from '../models/index'; -export interface AppAssetsPutAssetScriptsRequest { +export interface AppAssetsPutAssetScriptsRequestRaw { updateAssetScriptsDto: UpdateAssetScriptsDto; } -export interface AppClientsDeleteClientRequest { +export interface AppClientsDeleteClientRequestRaw { id: string; } -export interface AppClientsPostClientRequest { +export interface AppClientsPostClientRequestRaw { createClientDto: CreateClientDto; } -export interface AppClientsPutClientRequest { +export interface AppClientsPutClientRequestRaw { id: string; updateClientDto: UpdateClientDto; } -export interface AppContributorsDeleteContributorRequest { +export interface AppContributorsDeleteContributorRequestRaw { id: string; } -export interface AppContributorsPostContributorRequest { +export interface AppContributorsPostContributorRequestRaw { assignContributorDto: AssignContributorDto; } -export interface AppLanguagesDeleteLanguageRequest { +export interface AppLanguagesDeleteLanguageRequestRaw { language: string; } -export interface AppLanguagesPostLanguageRequest { +export interface AppLanguagesPostLanguageRequestRaw { addLanguageDto: AddLanguageDto; } -export interface AppLanguagesPutLanguageRequest { +export interface AppLanguagesPutLanguageRequestRaw { language: string; updateLanguageDto: UpdateLanguageDto; } -export interface AppRolesDeleteRoleRequest { +export interface AppRolesDeleteRoleRequestRaw { roleName: string; } -export interface AppRolesPostRoleRequest { +export interface AppRolesPostRoleRequestRaw { addRoleDto: AddRoleDto; } -export interface AppRolesPutRoleRequest { +export interface AppRolesPutRoleRequestRaw { roleName: string; updateRoleDto: UpdateRoleDto; } -export interface AppSettingsPutSettingsRequest { +export interface AppSettingsPutSettingsRequestRaw { updateAppSettingsDto: UpdateAppSettingsDto; } -export interface AppWorkflowsDeleteWorkflowRequest { +export interface AppWorkflowsDeleteWorkflowRequestRaw { id: string; } -export interface AppWorkflowsPostWorkflowRequest { +export interface AppWorkflowsPostWorkflowRequestRaw { addWorkflowDto: AddWorkflowDto; } -export interface AppWorkflowsPutWorkflowRequest { +export interface AppWorkflowsPutWorkflowRequestRaw { id: string; updateWorkflowDto: UpdateWorkflowDto; } -export interface AppsGetTeamAppsRequest { +export interface AppsGetTeamAppsRequestRaw { team: string; } -export interface AppsPostAppRequest { +export interface AppsPostAppRequestRaw { createAppDto: CreateAppDto; } -export interface AppsPutAppRequest { +export interface AppsPutAppRequestRaw { updateAppDto: UpdateAppDto; } -export interface AppsPutAppTeamRequest { +export interface AppsPutAppTeamRequestRaw { transferToTeamDto: TransferToTeamDto; } export interface AppsUploadImageRequest { file?: Blob; - fileUrl?: string; - fileName?: string; + url?: string; + name?: string; +} + +export interface AppsUploadImageRequestRaw { + file?: Blob; + url?: string; + name?: string; } /** @@ -180,12 +186,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putAssetScriptsRaw(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAssetScriptsRaw(updateAssetScriptsDto: UpdateAssetScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the asset scripts. */ - putAssetScripts(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putAssetScripts(updateAssetScriptsDto: UpdateAssetScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * The application that uses this client credentials cannot access the API after it has been revoked. @@ -195,13 +201,13 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteClientRaw(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteClientRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * The application that uses this client credentials cannot access the API after it has been revoked. * Revoke an app client. */ - deleteClient(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteClient(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Gets all configured clients for the app with the specified name. @@ -226,13 +232,13 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - postClientRaw(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postClientRaw(createClientDto: CreateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. * Create a new app client. */ - postClient(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postClient(createClientDto: CreateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Only the display name can be changed, create a new client if necessary. @@ -243,13 +249,13 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putClientRaw(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putClientRaw(id: string, updateClientDto: UpdateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Only the display name can be changed, create a new client if necessary. * Updates an app client. */ - putClient(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putClient(id: string, updateClientDto: UpdateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -259,12 +265,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteContributorRaw(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteContributorRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove contributor. */ - deleteContributor(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteContributor(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -302,12 +308,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - postContributorRaw(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postContributorRaw(assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Assign contributor to app. */ - postContributor(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postContributor(assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -331,12 +337,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteLanguageRaw(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteLanguageRaw(language: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Deletes an app language. */ - deleteLanguage(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteLanguage(language: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -360,12 +366,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - postLanguageRaw(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postLanguageRaw(addLanguageDto: AddLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add an app language. */ - postLanguage(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postLanguage(addLanguageDto: AddLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -376,12 +382,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putLanguageRaw(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putLanguageRaw(language: string, updateLanguageDto: UpdateLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Updates an app language. */ - putLanguage(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putLanguage(language: string, updateLanguageDto: UpdateLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -391,12 +397,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteRoleRaw(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteRoleRaw(roleName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove role from app. */ - deleteRole(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteRole(roleName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -434,12 +440,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - postRoleRaw(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postRoleRaw(addRoleDto: AddRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add role to app. */ - postRole(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postRole(addRoleDto: AddRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -450,12 +456,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putRoleRaw(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putRoleRaw(roleName: string, updateRoleDto: UpdateRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update an app role. */ - putRole(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putRole(roleName: string, updateRoleDto: UpdateRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -479,12 +485,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putSettingsRaw(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putSettingsRaw(updateAppSettingsDto: UpdateAppSettingsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the settings. */ - putSettings(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putSettings(updateAppSettingsDto: UpdateAppSettingsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -494,12 +500,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - deleteWorkflowRaw(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteWorkflowRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a workflow. */ - deleteWorkflow(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteWorkflow(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -523,12 +529,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - postWorkflowRaw(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postWorkflowRaw(addWorkflowDto: AddWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a workflow. */ - postWorkflow(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postWorkflow(addWorkflowDto: AddWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -539,12 +545,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putWorkflowRaw(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putWorkflowRaw(id: string, updateWorkflowDto: UpdateWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a workflow. */ - putWorkflow(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putWorkflow(id: string, updateWorkflowDto: UpdateWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -611,13 +617,13 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - getTeamAppsRaw(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getTeamAppsRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. * Get team apps. */ - getTeamApps(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTeamApps(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. @@ -627,13 +633,13 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - postAppRaw(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postAppRaw(createAppDto: CreateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. * Create a new app. */ - postApp(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postApp(createAppDto: CreateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -643,12 +649,12 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putAppRaw(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAppRaw(updateAppDto: UpdateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the app. */ - putApp(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putApp(updateAppDto: UpdateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -658,29 +664,29 @@ export interface AppsApiInterface { * @throws {RequiredError} * @memberof AppsApiInterface */ - putAppTeamRaw(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAppTeamRaw(transferToTeamDto: TransferToTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Transfer the app. */ - putAppTeam(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putAppTeam(transferToTeamDto: TransferToTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * * @summary Upload the app image. * @param {Blob} [file] - * @param {string} [fileUrl] - * @param {string} [fileName] + * @param {string} [url] + * @param {string} [name] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AppsApiInterface */ - uploadImageRaw(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + uploadImageRaw(requestParameters?: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Upload the app image. */ - uploadImage(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + uploadImage(requestParameters?: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -693,6 +699,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get the app asset scripts. */ async getAssetScriptsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -718,8 +725,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Update the asset scripts. */ - async putAssetScriptsRaw(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['updateAssetScriptsDto'] == null) { + async putAssetScriptsRaw(updateAssetScriptsDto: UpdateAssetScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _updateAssetScriptsDto = updateAssetScriptsDto; + + if (_updateAssetScriptsDto == null) { throw new runtime.RequiredError( 'updateAssetScriptsDto', 'Required parameter "updateAssetScriptsDto" was null or undefined when calling ().' @@ -737,7 +746,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateAssetScriptsDtoToJSON(requestParameters['updateAssetScriptsDto']), + body: UpdateAssetScriptsDtoToJSON(_updateAssetScriptsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AssetScriptsDtoFromJSON(jsonValue)); @@ -746,8 +755,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Update the asset scripts. */ - async putAssetScripts(requestParameters: AppAssetsPutAssetScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAssetScriptsRaw(requestParameters, initOverrides); + async putAssetScripts(updateAssetScriptsDto: UpdateAssetScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetScriptsRaw(updateAssetScriptsDto, initOverrides); return await response.value(); } @@ -755,8 +764,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * The application that uses this client credentials cannot access the API after it has been revoked. * Revoke an app client. */ - async deleteClientRaw(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteClientRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -768,7 +779,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -781,8 +792,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * The application that uses this client credentials cannot access the API after it has been revoked. * Revoke an app client. */ - async deleteClient(requestParameters: AppClientsDeleteClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteClientRaw(requestParameters, initOverrides); + async deleteClient(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteClientRaw(id, initOverrides); return await response.value(); } @@ -791,6 +802,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get app clients. */ async getClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -818,8 +830,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. * Create a new app client. */ - async postClientRaw(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createClientDto'] == null) { + async postClientRaw(createClientDto: CreateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createClientDto = createClientDto; + + if (_createClientDto == null) { throw new runtime.RequiredError( 'createClientDto', 'Required parameter "createClientDto" was null or undefined when calling ().' @@ -837,7 +851,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateClientDtoToJSON(requestParameters['createClientDto']), + body: CreateClientDtoToJSON(_createClientDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ClientsDtoFromJSON(jsonValue)); @@ -847,8 +861,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Create a new client for the app with the specified name. The client secret is auto generated on the server and returned. The client does not expire, the access token is valid for 30 days. * Create a new app client. */ - async postClient(requestParameters: AppClientsPostClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postClientRaw(requestParameters, initOverrides); + async postClient(createClientDto: CreateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postClientRaw(createClientDto, initOverrides); return await response.value(); } @@ -856,15 +870,18 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Only the display name can be changed, create a new client if necessary. * Updates an app client. */ - async putClientRaw(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putClientRaw(id: string, updateClientDto: UpdateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _updateClientDto = updateClientDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['updateClientDto'] == null) { + if (_updateClientDto == null) { throw new runtime.RequiredError( 'updateClientDto', 'Required parameter "updateClientDto" was null or undefined when calling ().' @@ -878,11 +895,11 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateClientDtoToJSON(requestParameters['updateClientDto']), + body: UpdateClientDtoToJSON(_updateClientDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ClientsDtoFromJSON(jsonValue)); @@ -892,16 +909,18 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Only the display name can be changed, create a new client if necessary. * Updates an app client. */ - async putClient(requestParameters: AppClientsPutClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putClientRaw(requestParameters, initOverrides); + async putClient(id: string, updateClientDto: UpdateClientDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putClientRaw(id, updateClientDto, initOverrides); return await response.value(); } /** * Remove contributor. */ - async deleteContributorRaw(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteContributorRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -913,7 +932,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/contributors/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/contributors/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -925,8 +944,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Remove contributor. */ - async deleteContributor(requestParameters: AppContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteContributorRaw(requestParameters, initOverrides); + async deleteContributor(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteContributorRaw(id, initOverrides); return await response.value(); } @@ -934,6 +953,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Remove yourself. */ async deleteMyselfRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -960,6 +980,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get app contributors. */ async getContributorsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -985,8 +1006,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Assign contributor to app. */ - async postContributorRaw(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['assignContributorDto'] == null) { + async postContributorRaw(assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _assignContributorDto = assignContributorDto; + + if (_assignContributorDto == null) { throw new runtime.RequiredError( 'assignContributorDto', 'Required parameter "assignContributorDto" was null or undefined when calling ().' @@ -1004,7 +1027,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: AssignContributorDtoToJSON(requestParameters['assignContributorDto']), + body: AssignContributorDtoToJSON(_assignContributorDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); @@ -1013,8 +1036,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Assign contributor to app. */ - async postContributor(requestParameters: AppContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postContributorRaw(requestParameters, initOverrides); + async postContributor(assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postContributorRaw(assignContributorDto, initOverrides); return await response.value(); } @@ -1022,6 +1045,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get the app image. */ async getImageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1047,8 +1071,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Deletes an app language. */ - async deleteLanguageRaw(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['language'] == null) { + async deleteLanguageRaw(language: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _language = language; + + if (_language == null) { throw new runtime.RequiredError( 'language', 'Required parameter "language" was null or undefined when calling ().' @@ -1060,7 +1086,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/languages/{language}`.replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/languages/{language}`.replace(`{${"language"}}`, encodeURIComponent(String(_language))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1072,8 +1098,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Deletes an app language. */ - async deleteLanguage(requestParameters: AppLanguagesDeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteLanguageRaw(requestParameters, initOverrides); + async deleteLanguage(language: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteLanguageRaw(language, initOverrides); return await response.value(); } @@ -1081,6 +1107,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get app languages. */ async getLanguagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1106,8 +1133,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Add an app language. */ - async postLanguageRaw(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['addLanguageDto'] == null) { + async postLanguageRaw(addLanguageDto: AddLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _addLanguageDto = addLanguageDto; + + if (_addLanguageDto == null) { throw new runtime.RequiredError( 'addLanguageDto', 'Required parameter "addLanguageDto" was null or undefined when calling ().' @@ -1125,7 +1154,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: AddLanguageDtoToJSON(requestParameters['addLanguageDto']), + body: AddLanguageDtoToJSON(_addLanguageDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AppLanguagesDtoFromJSON(jsonValue)); @@ -1134,23 +1163,26 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Add an app language. */ - async postLanguage(requestParameters: AppLanguagesPostLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postLanguageRaw(requestParameters, initOverrides); + async postLanguage(addLanguageDto: AddLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postLanguageRaw(addLanguageDto, initOverrides); return await response.value(); } /** * Updates an app language. */ - async putLanguageRaw(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['language'] == null) { + async putLanguageRaw(language: string, updateLanguageDto: UpdateLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _language = language; + const _updateLanguageDto = updateLanguageDto; + + if (_language == null) { throw new runtime.RequiredError( 'language', 'Required parameter "language" was null or undefined when calling ().' ); } - if (requestParameters['updateLanguageDto'] == null) { + if (_updateLanguageDto == null) { throw new runtime.RequiredError( 'updateLanguageDto', 'Required parameter "updateLanguageDto" was null or undefined when calling ().' @@ -1164,11 +1196,11 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/languages/{language}`.replace(`{${"language"}}`, encodeURIComponent(String((requestParameters as any)['language']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/languages/{language}`.replace(`{${"language"}}`, encodeURIComponent(String(_language))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateLanguageDtoToJSON(requestParameters['updateLanguageDto']), + body: UpdateLanguageDtoToJSON(_updateLanguageDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AppLanguagesDtoFromJSON(jsonValue)); @@ -1177,16 +1209,18 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Updates an app language. */ - async putLanguage(requestParameters: AppLanguagesPutLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putLanguageRaw(requestParameters, initOverrides); + async putLanguage(language: string, updateLanguageDto: UpdateLanguageDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putLanguageRaw(language, updateLanguageDto, initOverrides); return await response.value(); } /** * Remove role from app. */ - async deleteRoleRaw(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['roleName'] == null) { + async deleteRoleRaw(roleName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _roleName = roleName; + + if (_roleName == null) { throw new runtime.RequiredError( 'roleName', 'Required parameter "roleName" was null or undefined when calling ().' @@ -1198,7 +1232,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(_roleName))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1210,8 +1244,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Remove role from app. */ - async deleteRole(requestParameters: AppRolesDeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteRoleRaw(requestParameters, initOverrides); + async deleteRole(roleName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteRoleRaw(roleName, initOverrides); return await response.value(); } @@ -1219,6 +1253,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get app permissions. */ async getPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1245,6 +1280,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get app roles. */ async getRolesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1270,8 +1306,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Add role to app. */ - async postRoleRaw(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['addRoleDto'] == null) { + async postRoleRaw(addRoleDto: AddRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _addRoleDto = addRoleDto; + + if (_addRoleDto == null) { throw new runtime.RequiredError( 'addRoleDto', 'Required parameter "addRoleDto" was null or undefined when calling ().' @@ -1289,7 +1327,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: AddRoleDtoToJSON(requestParameters['addRoleDto']), + body: AddRoleDtoToJSON(_addRoleDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => RolesDtoFromJSON(jsonValue)); @@ -1298,23 +1336,26 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Add role to app. */ - async postRole(requestParameters: AppRolesPostRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postRoleRaw(requestParameters, initOverrides); + async postRole(addRoleDto: AddRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postRoleRaw(addRoleDto, initOverrides); return await response.value(); } /** * Update an app role. */ - async putRoleRaw(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['roleName'] == null) { + async putRoleRaw(roleName: string, updateRoleDto: UpdateRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _roleName = roleName; + const _updateRoleDto = updateRoleDto; + + if (_roleName == null) { throw new runtime.RequiredError( 'roleName', 'Required parameter "roleName" was null or undefined when calling ().' ); } - if (requestParameters['updateRoleDto'] == null) { + if (_updateRoleDto == null) { throw new runtime.RequiredError( 'updateRoleDto', 'Required parameter "updateRoleDto" was null or undefined when calling ().' @@ -1328,11 +1369,11 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String((requestParameters as any)['roleName']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(_roleName))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateRoleDtoToJSON(requestParameters['updateRoleDto']), + body: UpdateRoleDtoToJSON(_updateRoleDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => RolesDtoFromJSON(jsonValue)); @@ -1341,8 +1382,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Update an app role. */ - async putRole(requestParameters: AppRolesPutRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putRoleRaw(requestParameters, initOverrides); + async putRole(roleName: string, updateRoleDto: UpdateRoleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putRoleRaw(roleName, updateRoleDto, initOverrides); return await response.value(); } @@ -1350,6 +1391,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get the app settings. */ async getSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1375,8 +1417,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Update the settings. */ - async putSettingsRaw(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['updateAppSettingsDto'] == null) { + async putSettingsRaw(updateAppSettingsDto: UpdateAppSettingsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _updateAppSettingsDto = updateAppSettingsDto; + + if (_updateAppSettingsDto == null) { throw new runtime.RequiredError( 'updateAppSettingsDto', 'Required parameter "updateAppSettingsDto" was null or undefined when calling ().' @@ -1394,7 +1438,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateAppSettingsDtoToJSON(requestParameters['updateAppSettingsDto']), + body: UpdateAppSettingsDtoToJSON(_updateAppSettingsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AppSettingsDtoFromJSON(jsonValue)); @@ -1403,16 +1447,18 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Update the settings. */ - async putSettings(requestParameters: AppSettingsPutSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putSettingsRaw(requestParameters, initOverrides); + async putSettings(updateAppSettingsDto: UpdateAppSettingsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSettingsRaw(updateAppSettingsDto, initOverrides); return await response.value(); } /** * Delete a workflow. */ - async deleteWorkflowRaw(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteWorkflowRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1424,7 +1470,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/workflows/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/workflows/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1436,8 +1482,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Delete a workflow. */ - async deleteWorkflow(requestParameters: AppWorkflowsDeleteWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteWorkflowRaw(requestParameters, initOverrides); + async deleteWorkflow(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteWorkflowRaw(id, initOverrides); return await response.value(); } @@ -1445,6 +1491,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get app workflow. */ async getWorkflowsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1470,8 +1517,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Create a workflow. */ - async postWorkflowRaw(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['addWorkflowDto'] == null) { + async postWorkflowRaw(addWorkflowDto: AddWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _addWorkflowDto = addWorkflowDto; + + if (_addWorkflowDto == null) { throw new runtime.RequiredError( 'addWorkflowDto', 'Required parameter "addWorkflowDto" was null or undefined when calling ().' @@ -1489,7 +1538,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: AddWorkflowDtoToJSON(requestParameters['addWorkflowDto']), + body: AddWorkflowDtoToJSON(_addWorkflowDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsDtoFromJSON(jsonValue)); @@ -1498,23 +1547,26 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Create a workflow. */ - async postWorkflow(requestParameters: AppWorkflowsPostWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postWorkflowRaw(requestParameters, initOverrides); + async postWorkflow(addWorkflowDto: AddWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postWorkflowRaw(addWorkflowDto, initOverrides); return await response.value(); } /** * Update a workflow. */ - async putWorkflowRaw(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putWorkflowRaw(id: string, updateWorkflowDto: UpdateWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _updateWorkflowDto = updateWorkflowDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['updateWorkflowDto'] == null) { + if (_updateWorkflowDto == null) { throw new runtime.RequiredError( 'updateWorkflowDto', 'Required parameter "updateWorkflowDto" was null or undefined when calling ().' @@ -1528,11 +1580,11 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/workflows/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/workflows/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateWorkflowDtoToJSON(requestParameters['updateWorkflowDto']), + body: UpdateWorkflowDtoToJSON(_updateWorkflowDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowsDtoFromJSON(jsonValue)); @@ -1541,8 +1593,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Update a workflow. */ - async putWorkflow(requestParameters: AppWorkflowsPutWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putWorkflowRaw(requestParameters, initOverrides); + async putWorkflow(id: string, updateWorkflowDto: UpdateWorkflowDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putWorkflowRaw(id, updateWorkflowDto, initOverrides); return await response.value(); } @@ -1550,6 +1602,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Delete the app. */ async deleteAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1575,6 +1628,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Remove the app image. */ async deleteImageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1601,6 +1655,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get an app by name. */ async getAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1628,6 +1683,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Get your apps. */ async getAppsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1655,8 +1711,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. * Get team apps. */ - async getTeamAppsRaw(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['team'] == null) { + async getTeamAppsRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -1668,7 +1726,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/apps`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/apps`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1681,8 +1739,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * You can only retrieve the list of apps when you are authenticated as a user (OpenID implicit flow). You will retrieve all apps, where you are assigned as a contributor. * Get team apps. */ - async getTeamApps(requestParameters: AppsGetTeamAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getTeamAppsRaw(requestParameters, initOverrides); + async getTeamApps(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getTeamAppsRaw(team, initOverrides); return await response.value(); } @@ -1690,8 +1748,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. * Create a new app. */ - async postAppRaw(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createAppDto'] == null) { + async postAppRaw(createAppDto: CreateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createAppDto = createAppDto; + + if (_createAppDto == null) { throw new runtime.RequiredError( 'createAppDto', 'Required parameter "createAppDto" was null or undefined when calling ().' @@ -1709,7 +1769,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateAppDtoToJSON(requestParameters['createAppDto']), + body: CreateAppDtoToJSON(_createAppDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); @@ -1719,16 +1779,18 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * You can only create an app when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new app automatically. * Create a new app. */ - async postApp(requestParameters: AppsPostAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postAppRaw(requestParameters, initOverrides); + async postApp(createAppDto: CreateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postAppRaw(createAppDto, initOverrides); return await response.value(); } /** * Update the app. */ - async putAppRaw(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['updateAppDto'] == null) { + async putAppRaw(updateAppDto: UpdateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _updateAppDto = updateAppDto; + + if (_updateAppDto == null) { throw new runtime.RequiredError( 'updateAppDto', 'Required parameter "updateAppDto" was null or undefined when calling ().' @@ -1746,7 +1808,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateAppDtoToJSON(requestParameters['updateAppDto']), + body: UpdateAppDtoToJSON(_updateAppDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); @@ -1755,16 +1817,18 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Update the app. */ - async putApp(requestParameters: AppsPutAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAppRaw(requestParameters, initOverrides); + async putApp(updateAppDto: UpdateAppDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAppRaw(updateAppDto, initOverrides); return await response.value(); } /** * Transfer the app. */ - async putAppTeamRaw(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['transferToTeamDto'] == null) { + async putAppTeamRaw(transferToTeamDto: TransferToTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _transferToTeamDto = transferToTeamDto; + + if (_transferToTeamDto == null) { throw new runtime.RequiredError( 'transferToTeamDto', 'Required parameter "transferToTeamDto" was null or undefined when calling ().' @@ -1782,7 +1846,7 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { method: 'PUT', headers: headerParameters, query: queryParameters, - body: TransferToTeamDtoToJSON(requestParameters['transferToTeamDto']), + body: TransferToTeamDtoToJSON(_transferToTeamDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AppDtoFromJSON(jsonValue)); @@ -1791,8 +1855,8 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { /** * Transfer the app. */ - async putAppTeam(requestParameters: AppsPutAppTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAppTeamRaw(requestParameters, initOverrides); + async putAppTeam(transferToTeamDto: TransferToTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAppTeamRaw(transferToTeamDto, initOverrides); return await response.value(); } @@ -1800,6 +1864,10 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { * Upload the app image. */ async uploadImageRaw(requestParameters: AppsUploadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _file = requestParameters?.['file']; + const _url = requestParameters?.['url']; + const _name = requestParameters?.['name']; + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1820,16 +1888,16 @@ export class AppsApi extends runtime.BaseAPI implements AppsApiInterface { formParams = new URLSearchParams(); } - if (requestParameters['file'] != null) { - formParams.append('file', requestParameters['file'] as any); + if (_file != null) { + formParams.append('file', _file as any); } - if (requestParameters['fileUrl'] != null) { - formParams.append('fileUrl', requestParameters['fileUrl'] as any); + if (_url != null) { + formParams.append('url', _url as any); } - if (requestParameters['fileName'] != null) { - formParams.append('fileName', requestParameters['fileName'] as any); + if (_name != null) { + formParams.append('name', _name as any); } const response = await this.request({ diff --git a/src/generated/apis/AssetsApi.ts b/src/generated/apis/AssetsApi.ts index b86a20c..61768c7 100644 --- a/src/generated/apis/AssetsApi.ts +++ b/src/generated/apis/AssetsApi.ts @@ -47,6 +47,24 @@ import { } from '../models/index'; export interface AssetContentGetAssetContentRequest { + version?: number; + cache?: number; + download?: number; + width?: number | null; + height?: number | null; + quality?: number | null; + mode?: ResizeMode; + bg?: string | null; + focusX?: number | null; + focusY?: number | null; + nofocus?: boolean; + auto?: boolean; + force?: boolean; + deleted?: boolean; + format?: ImageFormat; +} + +export interface AssetContentGetAssetContentRequestRaw { id: string; version?: number; cache?: number; @@ -66,6 +84,24 @@ export interface AssetContentGetAssetContentRequest { } export interface AssetContentGetAssetContentBySlugRequest { + version?: number; + cache?: number; + download?: number; + width?: number | null; + height?: number | null; + quality?: number | null; + mode?: ResizeMode; + bg?: string | null; + focusX?: number | null; + focusY?: number | null; + nofocus?: boolean; + auto?: boolean; + force?: boolean; + deleted?: boolean; + format?: ImageFormat; +} + +export interface AssetContentGetAssetContentBySlugRequestRaw { idOrSlug: string; version?: number; cache?: number; @@ -84,7 +120,7 @@ export interface AssetContentGetAssetContentBySlugRequest { format?: ImageFormat; } -export interface AssetFoldersDeleteAssetFolderRequest { +export interface AssetFoldersDeleteAssetFolderRequestRaw { id: string; } @@ -93,31 +129,41 @@ export interface AssetFoldersGetAssetFoldersRequest { scope?: AssetFolderScope; } -export interface AssetFoldersPostAssetFolderRequest { +export interface AssetFoldersGetAssetFoldersRequestRaw { + parentId?: string | null; + scope?: AssetFolderScope; +} + +export interface AssetFoldersPostAssetFolderRequestRaw { createAssetFolderDto: CreateAssetFolderDto; } -export interface AssetFoldersPutAssetFolderRequest { +export interface AssetFoldersPutAssetFolderRequestRaw { id: string; renameAssetFolderDto: RenameAssetFolderDto; } -export interface AssetFoldersPutAssetFolderParentRequest { +export interface AssetFoldersPutAssetFolderParentRequestRaw { id: string; moveAssetFolderDto: MoveAssetFolderDto; } -export interface AssetsBulkUpdateAssetsRequest { +export interface AssetsBulkUpdateAssetsRequestRaw { bulkUpdateAssetsDto: BulkUpdateAssetsDto; } export interface AssetsDeleteAssetRequest { + checkReferrers?: boolean; + permanent?: boolean; +} + +export interface AssetsDeleteAssetRequestRaw { id: string; checkReferrers?: boolean; permanent?: boolean; } -export interface AssetsGetAssetRequest { +export interface AssetsGetAssetRequestRaw { id: string; } @@ -133,7 +179,24 @@ export interface AssetsGetAssetsRequest { noSlowTotal?: boolean; } +export interface AssetsGetAssetsRequestRaw { + parentId?: string | null; + ids?: string | null; + q?: string | null; + $top?: number; + $skip?: number; + $orderby?: string; + $filter?: string; + noTotal?: boolean; + noSlowTotal?: boolean; +} + export interface AssetsGetAssetsPostRequest { + noTotal?: boolean; + noSlowTotal?: boolean; +} + +export interface AssetsGetAssetsPostRequestRaw { queryDto: QueryDto; noTotal?: boolean; noSlowTotal?: boolean; @@ -144,37 +207,60 @@ export interface AssetsPostAssetRequest { id?: string | null; duplicate?: boolean; file?: Blob; - fileUrl?: string; - fileName?: string; + url?: string; + name?: string; +} + +export interface AssetsPostAssetRequestRaw { + parentId?: string; + id?: string | null; + duplicate?: boolean; + file?: Blob; + url?: string; + name?: string; } export interface AssetsPostUpsertAssetRequest { + parentId?: string; + duplicate?: boolean; + file?: Blob; + url?: string; + name?: string; +} + +export interface AssetsPostUpsertAssetRequestRaw { id: string; parentId?: string; duplicate?: boolean; file?: Blob; - fileUrl?: string; - fileName?: string; + url?: string; + name?: string; } -export interface AssetsPutAssetRequest { +export interface AssetsPutAssetRequestRaw { id: string; annotateAssetDto: AnnotateAssetDto; } export interface AssetsPutAssetContentRequest { + file?: Blob; + url?: string; + name?: string; +} + +export interface AssetsPutAssetContentRequestRaw { id: string; file?: Blob; - fileUrl?: string; - fileName?: string; + url?: string; + name?: string; } -export interface AssetsPutAssetParentRequest { +export interface AssetsPutAssetParentRequestRaw { id: string; moveAssetDto: MoveAssetDto; } -export interface AssetsPutTagRequest { +export interface AssetsPutTagRequestRaw { name: string; renameTagDto: RenameTagDto; } @@ -210,13 +296,13 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - getAssetContentRaw(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAssetContentRaw(id: string, requestParameters?: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the asset content. * @deprecated */ - getAssetContent(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAssetContent(id: string, requestParameters?: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -241,12 +327,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - getAssetContentBySlugRaw(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAssetContentBySlugRaw(idOrSlug: string, requestParameters?: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the asset content. */ - getAssetContentBySlug(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAssetContentBySlug(idOrSlug: string, requestParameters?: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -256,12 +342,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - deleteAssetFolderRaw(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteAssetFolderRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete an asset folder. */ - deleteAssetFolder(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteAssetFolder(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get all asset folders for the app. @@ -272,13 +358,13 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - getAssetFoldersRaw(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAssetFoldersRaw(requestParameters?: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get all asset folders for the app. * Get asset folders. */ - getAssetFolders(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAssetFolders(requestParameters?: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -288,12 +374,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - postAssetFolderRaw(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postAssetFolderRaw(createAssetFolderDto: CreateAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create an asset folder. */ - postAssetFolder(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postAssetFolder(createAssetFolderDto: CreateAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -304,12 +390,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - putAssetFolderRaw(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAssetFolderRaw(id: string, renameAssetFolderDto: RenameAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update an asset folder. */ - putAssetFolder(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putAssetFolder(id: string, renameAssetFolderDto: RenameAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -320,12 +406,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - putAssetFolderParentRaw(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAssetFolderParentRaw(id: string, moveAssetFolderDto: MoveAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Move an asset folder. */ - putAssetFolderParent(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putAssetFolderParent(id: string, moveAssetFolderDto: MoveAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -335,12 +421,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - bulkUpdateAssetsRaw(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + bulkUpdateAssetsRaw(bulkUpdateAssetsDto: BulkUpdateAssetsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Bulk update assets. */ - bulkUpdateAssets(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + bulkUpdateAssets(bulkUpdateAssetsDto: BulkUpdateAssetsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * @@ -352,12 +438,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - deleteAssetRaw(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteAssetRaw(id: string, requestParameters?: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete an asset. */ - deleteAsset(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteAsset(id: string, requestParameters?: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -367,12 +453,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - getAssetRaw(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAssetRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get an asset by id. */ - getAsset(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAsset(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get all assets for the app. @@ -390,13 +476,13 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - getAssetsRaw(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAssetsRaw(requestParameters?: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get all assets for the app. * Get assets. */ - getAssets(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAssets(requestParameters?: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get all assets for the app. @@ -408,13 +494,13 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - getAssetsPostRaw(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAssetsPostRaw(queryDto: QueryDto, requestParameters?: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get all assets for the app. * Get assets. */ - getAssetsPost(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAssetsPost(queryDto: QueryDto, requestParameters?: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get all tags for assets. @@ -438,19 +524,19 @@ export interface AssetsApiInterface { * @param {string} [id] The optional custom asset id. * @param {boolean} [duplicate] True to duplicate the asset, event if the file has been uploaded. * @param {Blob} [file] - * @param {string} [fileUrl] - * @param {string} [fileName] + * @param {string} [url] + * @param {string} [name] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssetsApiInterface */ - postAssetRaw(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postAssetRaw(requestParameters?: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. * Upload a new asset. */ - postAsset(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postAsset(requestParameters?: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. @@ -459,19 +545,19 @@ export interface AssetsApiInterface { * @param {string} [parentId] The optional parent folder id. * @param {boolean} [duplicate] True to duplicate the asset, event if the file has been uploaded. * @param {Blob} [file] - * @param {string} [fileUrl] - * @param {string} [fileName] + * @param {string} [url] + * @param {string} [name] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssetsApiInterface */ - postUpsertAssetRaw(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postUpsertAssetRaw(id: string, requestParameters?: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. * Upsert an asset. */ - postUpsertAsset(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postUpsertAsset(id: string, requestParameters?: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -482,31 +568,31 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - putAssetRaw(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAssetRaw(id: string, annotateAssetDto: AnnotateAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update an asset. */ - putAsset(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putAsset(id: string, annotateAssetDto: AnnotateAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use multipart request to upload an asset. * @summary Replace asset content. * @param {string} id The ID of the asset. * @param {Blob} [file] - * @param {string} [fileUrl] - * @param {string} [fileName] + * @param {string} [url] + * @param {string} [name] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AssetsApiInterface */ - putAssetContentRaw(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAssetContentRaw(id: string, requestParameters?: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use multipart request to upload an asset. * Replace asset content. */ - putAssetContent(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putAssetContent(id: string, requestParameters?: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -517,12 +603,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - putAssetParentRaw(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putAssetParentRaw(id: string, moveAssetDto: MoveAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Moves the asset. */ - putAssetParent(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putAssetParent(id: string, moveAssetDto: MoveAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -533,12 +619,12 @@ export interface AssetsApiInterface { * @throws {RequiredError} * @memberof AssetsApiInterface */ - putTagRaw(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putTagRaw(name: string, renameTagDto: RenameTagDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Rename an asset tag. */ - putTag(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }>; + putTag(name: string, renameTagDto: RenameTagDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }>; } @@ -551,8 +637,25 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get the asset content. * @deprecated */ - async getAssetContentRaw(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getAssetContentRaw(id: string, requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _version = requestParameters?.['version']; + const _cache = requestParameters?.['cache']; + const _download = requestParameters?.['download']; + const _width = requestParameters?.['width']; + const _height = requestParameters?.['height']; + const _quality = requestParameters?.['quality']; + const _mode = requestParameters?.['mode']; + const _bg = requestParameters?.['bg']; + const _focusX = requestParameters?.['focusX']; + const _focusY = requestParameters?.['focusY']; + const _nofocus = requestParameters?.['nofocus']; + const _auto = requestParameters?.['auto']; + const _force = requestParameters?.['force']; + const _deleted = requestParameters?.['deleted']; + const _format = requestParameters?.['format']; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -561,70 +664,70 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const queryParameters: any = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (_version != null) { + queryParameters['version'] = _version; } - if (requestParameters['cache'] != null) { - queryParameters['cache'] = requestParameters['cache']; + if (_cache != null) { + queryParameters['cache'] = _cache; } - if (requestParameters['download'] != null) { - queryParameters['download'] = requestParameters['download']; + if (_download != null) { + queryParameters['download'] = _download; } - if (requestParameters['width'] != null) { - queryParameters['width'] = requestParameters['width']; + if (_width != null) { + queryParameters['width'] = _width; } - if (requestParameters['height'] != null) { - queryParameters['height'] = requestParameters['height']; + if (_height != null) { + queryParameters['height'] = _height; } - if (requestParameters['quality'] != null) { - queryParameters['quality'] = requestParameters['quality']; + if (_quality != null) { + queryParameters['quality'] = _quality; } - if (requestParameters['mode'] != null) { - queryParameters['mode'] = requestParameters['mode']; + if (_mode != null) { + queryParameters['mode'] = _mode; } - if (requestParameters['bg'] != null) { - queryParameters['bg'] = requestParameters['bg']; + if (_bg != null) { + queryParameters['bg'] = _bg; } - if (requestParameters['focusX'] != null) { - queryParameters['focusX'] = requestParameters['focusX']; + if (_focusX != null) { + queryParameters['focusX'] = _focusX; } - if (requestParameters['focusY'] != null) { - queryParameters['focusY'] = requestParameters['focusY']; + if (_focusY != null) { + queryParameters['focusY'] = _focusY; } - if (requestParameters['nofocus'] != null) { - queryParameters['nofocus'] = requestParameters['nofocus']; + if (_nofocus != null) { + queryParameters['nofocus'] = _nofocus; } - if (requestParameters['auto'] != null) { - queryParameters['auto'] = requestParameters['auto']; + if (_auto != null) { + queryParameters['auto'] = _auto; } - if (requestParameters['force'] != null) { - queryParameters['force'] = requestParameters['force']; + if (_force != null) { + queryParameters['force'] = _force; } - if (requestParameters['deleted'] != null) { - queryParameters['deleted'] = requestParameters['deleted']; + if (_deleted != null) { + queryParameters['deleted'] = _deleted; } - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; + if (_format != null) { + queryParameters['format'] = _format; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -637,16 +740,33 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get the asset content. * @deprecated */ - async getAssetContent(requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAssetContentRaw(requestParameters, initOverrides); + async getAssetContent(id: string, requestParameters: AssetContentGetAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetContentRaw(id, requestParameters, initOverrides); return await response.value(); } /** * Get the asset content. */ - async getAssetContentBySlugRaw(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['idOrSlug'] == null) { + async getAssetContentBySlugRaw(idOrSlug: string, requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _idOrSlug = idOrSlug; + const _version = requestParameters?.['version']; + const _cache = requestParameters?.['cache']; + const _download = requestParameters?.['download']; + const _width = requestParameters?.['width']; + const _height = requestParameters?.['height']; + const _quality = requestParameters?.['quality']; + const _mode = requestParameters?.['mode']; + const _bg = requestParameters?.['bg']; + const _focusX = requestParameters?.['focusX']; + const _focusY = requestParameters?.['focusY']; + const _nofocus = requestParameters?.['nofocus']; + const _auto = requestParameters?.['auto']; + const _force = requestParameters?.['force']; + const _deleted = requestParameters?.['deleted']; + const _format = requestParameters?.['format']; + + if (_idOrSlug == null) { throw new runtime.RequiredError( 'idOrSlug', 'Required parameter "idOrSlug" was null or undefined when calling ().' @@ -655,70 +775,70 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const queryParameters: any = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (_version != null) { + queryParameters['version'] = _version; } - if (requestParameters['cache'] != null) { - queryParameters['cache'] = requestParameters['cache']; + if (_cache != null) { + queryParameters['cache'] = _cache; } - if (requestParameters['download'] != null) { - queryParameters['download'] = requestParameters['download']; + if (_download != null) { + queryParameters['download'] = _download; } - if (requestParameters['width'] != null) { - queryParameters['width'] = requestParameters['width']; + if (_width != null) { + queryParameters['width'] = _width; } - if (requestParameters['height'] != null) { - queryParameters['height'] = requestParameters['height']; + if (_height != null) { + queryParameters['height'] = _height; } - if (requestParameters['quality'] != null) { - queryParameters['quality'] = requestParameters['quality']; + if (_quality != null) { + queryParameters['quality'] = _quality; } - if (requestParameters['mode'] != null) { - queryParameters['mode'] = requestParameters['mode']; + if (_mode != null) { + queryParameters['mode'] = _mode; } - if (requestParameters['bg'] != null) { - queryParameters['bg'] = requestParameters['bg']; + if (_bg != null) { + queryParameters['bg'] = _bg; } - if (requestParameters['focusX'] != null) { - queryParameters['focusX'] = requestParameters['focusX']; + if (_focusX != null) { + queryParameters['focusX'] = _focusX; } - if (requestParameters['focusY'] != null) { - queryParameters['focusY'] = requestParameters['focusY']; + if (_focusY != null) { + queryParameters['focusY'] = _focusY; } - if (requestParameters['nofocus'] != null) { - queryParameters['nofocus'] = requestParameters['nofocus']; + if (_nofocus != null) { + queryParameters['nofocus'] = _nofocus; } - if (requestParameters['auto'] != null) { - queryParameters['auto'] = requestParameters['auto']; + if (_auto != null) { + queryParameters['auto'] = _auto; } - if (requestParameters['force'] != null) { - queryParameters['force'] = requestParameters['force']; + if (_force != null) { + queryParameters['force'] = _force; } - if (requestParameters['deleted'] != null) { - queryParameters['deleted'] = requestParameters['deleted']; + if (_deleted != null) { + queryParameters['deleted'] = _deleted; } - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; + if (_format != null) { + queryParameters['format'] = _format; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/assets/$app$/{idOrSlug}/`.replace(`{${"idOrSlug"}}`, encodeURIComponent(String((requestParameters as any)['idOrSlug']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/assets/$app$/{idOrSlug}/`.replace(`{${"idOrSlug"}}`, encodeURIComponent(String(_idOrSlug))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -730,16 +850,18 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Get the asset content. */ - async getAssetContentBySlug(requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAssetContentBySlugRaw(requestParameters, initOverrides); + async getAssetContentBySlug(idOrSlug: string, requestParameters: AssetContentGetAssetContentBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetContentBySlugRaw(idOrSlug, requestParameters, initOverrides); return await response.value(); } /** * Delete an asset folder. */ - async deleteAssetFolderRaw(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteAssetFolderRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -751,7 +873,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/assets/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -763,8 +885,8 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Delete an asset folder. */ - async deleteAssetFolder(requestParameters: AssetFoldersDeleteAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteAssetFolderRaw(requestParameters, initOverrides); + async deleteAssetFolder(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteAssetFolderRaw(id, initOverrides); } /** @@ -772,14 +894,17 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get asset folders. */ async getAssetFoldersRaw(requestParameters: AssetFoldersGetAssetFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _parentId = requestParameters?.['parentId']; + const _scope = requestParameters?.['scope']; + const queryParameters: any = {}; - if (requestParameters['parentId'] != null) { - queryParameters['parentId'] = requestParameters['parentId']; + if (_parentId != null) { + queryParameters['parentId'] = _parentId; } - if (requestParameters['scope'] != null) { - queryParameters['scope'] = requestParameters['scope']; + if (_scope != null) { + queryParameters['scope'] = _scope; } const headerParameters: runtime.HTTPHeaders = {}; @@ -806,8 +931,10 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Create an asset folder. */ - async postAssetFolderRaw(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createAssetFolderDto'] == null) { + async postAssetFolderRaw(createAssetFolderDto: CreateAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createAssetFolderDto = createAssetFolderDto; + + if (_createAssetFolderDto == null) { throw new runtime.RequiredError( 'createAssetFolderDto', 'Required parameter "createAssetFolderDto" was null or undefined when calling ().' @@ -825,7 +952,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateAssetFolderDtoToJSON(requestParameters['createAssetFolderDto']), + body: CreateAssetFolderDtoToJSON(_createAssetFolderDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AssetFolderDtoFromJSON(jsonValue)); @@ -834,23 +961,26 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Create an asset folder. */ - async postAssetFolder(requestParameters: AssetFoldersPostAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postAssetFolderRaw(requestParameters, initOverrides); + async postAssetFolder(createAssetFolderDto: CreateAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postAssetFolderRaw(createAssetFolderDto, initOverrides); return await response.value(); } /** * Update an asset folder. */ - async putAssetFolderRaw(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putAssetFolderRaw(id: string, renameAssetFolderDto: RenameAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _renameAssetFolderDto = renameAssetFolderDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['renameAssetFolderDto'] == null) { + if (_renameAssetFolderDto == null) { throw new runtime.RequiredError( 'renameAssetFolderDto', 'Required parameter "renameAssetFolderDto" was null or undefined when calling ().' @@ -864,11 +994,11 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/assets/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: RenameAssetFolderDtoToJSON(requestParameters['renameAssetFolderDto']), + body: RenameAssetFolderDtoToJSON(_renameAssetFolderDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AssetFolderDtoFromJSON(jsonValue)); @@ -877,23 +1007,26 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Update an asset folder. */ - async putAssetFolder(requestParameters: AssetFoldersPutAssetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAssetFolderRaw(requestParameters, initOverrides); + async putAssetFolder(id: string, renameAssetFolderDto: RenameAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetFolderRaw(id, renameAssetFolderDto, initOverrides); return await response.value(); } /** * Move an asset folder. */ - async putAssetFolderParentRaw(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putAssetFolderParentRaw(id: string, moveAssetFolderDto: MoveAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _moveAssetFolderDto = moveAssetFolderDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['moveAssetFolderDto'] == null) { + if (_moveAssetFolderDto == null) { throw new runtime.RequiredError( 'moveAssetFolderDto', 'Required parameter "moveAssetFolderDto" was null or undefined when calling ().' @@ -907,11 +1040,11 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/assets/folders/{id}/parent`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/folders/{id}/parent`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: MoveAssetFolderDtoToJSON(requestParameters['moveAssetFolderDto']), + body: MoveAssetFolderDtoToJSON(_moveAssetFolderDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AssetFolderDtoFromJSON(jsonValue)); @@ -920,16 +1053,18 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Move an asset folder. */ - async putAssetFolderParent(requestParameters: AssetFoldersPutAssetFolderParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAssetFolderParentRaw(requestParameters, initOverrides); + async putAssetFolderParent(id: string, moveAssetFolderDto: MoveAssetFolderDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetFolderParentRaw(id, moveAssetFolderDto, initOverrides); return await response.value(); } /** * Bulk update assets. */ - async bulkUpdateAssetsRaw(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['bulkUpdateAssetsDto'] == null) { + async bulkUpdateAssetsRaw(bulkUpdateAssetsDto: BulkUpdateAssetsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _bulkUpdateAssetsDto = bulkUpdateAssetsDto; + + if (_bulkUpdateAssetsDto == null) { throw new runtime.RequiredError( 'bulkUpdateAssetsDto', 'Required parameter "bulkUpdateAssetsDto" was null or undefined when calling ().' @@ -947,7 +1082,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: BulkUpdateAssetsDtoToJSON(requestParameters['bulkUpdateAssetsDto']), + body: BulkUpdateAssetsDtoToJSON(_bulkUpdateAssetsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); @@ -956,16 +1091,20 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Bulk update assets. */ - async bulkUpdateAssets(requestParameters: AssetsBulkUpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.bulkUpdateAssetsRaw(requestParameters, initOverrides); + async bulkUpdateAssets(bulkUpdateAssetsDto: BulkUpdateAssetsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.bulkUpdateAssetsRaw(bulkUpdateAssetsDto, initOverrides); return await response.value(); } /** * Delete an asset. */ - async deleteAssetRaw(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteAssetRaw(id: string, requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _checkReferrers = requestParameters?.['checkReferrers']; + const _permanent = requestParameters?.['permanent']; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -974,18 +1113,18 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const queryParameters: any = {}; - if (requestParameters['checkReferrers'] != null) { - queryParameters['checkReferrers'] = requestParameters['checkReferrers']; + if (_checkReferrers != null) { + queryParameters['checkReferrers'] = _checkReferrers; } - if (requestParameters['permanent'] != null) { - queryParameters['permanent'] = requestParameters['permanent']; + if (_permanent != null) { + queryParameters['permanent'] = _permanent; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -997,15 +1136,17 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Delete an asset. */ - async deleteAsset(requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteAssetRaw(requestParameters, initOverrides); + async deleteAsset(id: string, requestParameters: AssetsDeleteAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteAssetRaw(id, requestParameters, initOverrides); } /** * Get an asset by id. */ - async getAssetRaw(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getAssetRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1017,7 +1158,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1029,8 +1170,8 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Get an asset by id. */ - async getAsset(requestParameters: AssetsGetAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAssetRaw(requestParameters, initOverrides); + async getAsset(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetRaw(id, initOverrides); return await response.value(); } @@ -1039,44 +1180,54 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get assets. */ async getAssetsRaw(requestParameters: AssetsGetAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _parentId = requestParameters?.['parentId']; + const _ids = requestParameters?.['ids']; + const _q = requestParameters?.['q']; + const _$top = requestParameters?.['$top']; + const _$skip = requestParameters?.['$skip']; + const _$orderby = requestParameters?.['$orderby']; + const _$filter = requestParameters?.['$filter']; + const _noTotal = requestParameters?.['noTotal']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + const queryParameters: any = {}; - if (requestParameters['parentId'] != null) { - queryParameters['parentId'] = requestParameters['parentId']; + if (_parentId != null) { + queryParameters['parentId'] = _parentId; } - if (requestParameters['ids'] != null) { - queryParameters['ids'] = requestParameters['ids']; + if (_ids != null) { + queryParameters['ids'] = _ids; } - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; + if (_q != null) { + queryParameters['q'] = _q; } - if (requestParameters['$top'] != null) { - queryParameters['$top'] = requestParameters['$top']; + if (_$top != null) { + queryParameters['$top'] = _$top; } - if (requestParameters['$skip'] != null) { - queryParameters['$skip'] = requestParameters['$skip']; + if (_$skip != null) { + queryParameters['$skip'] = _$skip; } - if (requestParameters['$orderby'] != null) { - queryParameters['$orderby'] = requestParameters['$orderby']; + if (_$orderby != null) { + queryParameters['$orderby'] = _$orderby; } - if (requestParameters['$filter'] != null) { - queryParameters['$filter'] = requestParameters['$filter']; + if (_$filter != null) { + queryParameters['$filter'] = _$filter; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } const response = await this.request({ @@ -1102,8 +1253,12 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get all assets for the app. * Get assets. */ - async getAssetsPostRaw(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['queryDto'] == null) { + async getAssetsPostRaw(queryDto: QueryDto, requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _queryDto = queryDto; + const _noTotal = requestParameters?.['noTotal']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + + if (_queryDto == null) { throw new runtime.RequiredError( 'queryDto', 'Required parameter "queryDto" was null or undefined when calling ().' @@ -1116,12 +1271,12 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } const response = await this.request({ @@ -1129,7 +1284,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: QueryDtoToJSON(requestParameters['queryDto']), + body: QueryDtoToJSON(_queryDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AssetsDtoFromJSON(jsonValue)); @@ -1139,8 +1294,8 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get all assets for the app. * Get assets. */ - async getAssetsPost(requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAssetsPostRaw(requestParameters, initOverrides); + async getAssetsPost(queryDto: QueryDto, requestParameters: AssetsGetAssetsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssetsPostRaw(queryDto, requestParameters, initOverrides); return await response.value(); } @@ -1149,6 +1304,7 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Get assets tags. */ async getTagsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1177,18 +1333,25 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Upload a new asset. */ async postAssetRaw(requestParameters: AssetsPostAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _parentId = requestParameters?.['parentId']; + const _id = requestParameters?.['id']; + const _duplicate = requestParameters?.['duplicate']; + const _file = requestParameters?.['file']; + const _url = requestParameters?.['url']; + const _name = requestParameters?.['name']; + const queryParameters: any = {}; - if (requestParameters['parentId'] != null) { - queryParameters['ParentId'] = requestParameters['parentId']; + if (_parentId != null) { + queryParameters['ParentId'] = _parentId; } - if (requestParameters['id'] != null) { - queryParameters['id'] = requestParameters['id']; + if (_id != null) { + queryParameters['id'] = _id; } - if (requestParameters['duplicate'] != null) { - queryParameters['duplicate'] = requestParameters['duplicate']; + if (_duplicate != null) { + queryParameters['duplicate'] = _duplicate; } const headerParameters: runtime.HTTPHeaders = {}; @@ -1209,16 +1372,16 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { formParams = new URLSearchParams(); } - if (requestParameters['file'] != null) { - formParams.append('file', requestParameters['file'] as any); + if (_file != null) { + formParams.append('file', _file as any); } - if (requestParameters['fileUrl'] != null) { - formParams.append('fileUrl', requestParameters['fileUrl'] as any); + if (_url != null) { + formParams.append('url', _url as any); } - if (requestParameters['fileName'] != null) { - formParams.append('fileName', requestParameters['fileName'] as any); + if (_name != null) { + formParams.append('name', _name as any); } const response = await this.request({ @@ -1245,8 +1408,15 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. * Upsert an asset. */ - async postUpsertAssetRaw(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async postUpsertAssetRaw(id: string, requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _parentId = requestParameters?.['parentId']; + const _duplicate = requestParameters?.['duplicate']; + const _file = requestParameters?.['file']; + const _url = requestParameters?.['url']; + const _name = requestParameters?.['name']; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1255,12 +1425,12 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { const queryParameters: any = {}; - if (requestParameters['parentId'] != null) { - queryParameters['parentId'] = requestParameters['parentId']; + if (_parentId != null) { + queryParameters['parentId'] = _parentId; } - if (requestParameters['duplicate'] != null) { - queryParameters['duplicate'] = requestParameters['duplicate']; + if (_duplicate != null) { + queryParameters['duplicate'] = _duplicate; } const headerParameters: runtime.HTTPHeaders = {}; @@ -1281,20 +1451,20 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { formParams = new URLSearchParams(); } - if (requestParameters['file'] != null) { - formParams.append('file', requestParameters['file'] as any); + if (_file != null) { + formParams.append('file', _file as any); } - if (requestParameters['fileUrl'] != null) { - formParams.append('fileUrl', requestParameters['fileUrl'] as any); + if (_url != null) { + formParams.append('url', _url as any); } - if (requestParameters['fileName'] != null) { - formParams.append('fileName', requestParameters['fileName'] as any); + if (_name != null) { + formParams.append('name', _name as any); } const response = await this.request({ - path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -1308,23 +1478,26 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * You can only upload one file at a time. The mime type of the file is not calculated by Squidex and is required correctly. * Upsert an asset. */ - async postUpsertAsset(requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postUpsertAssetRaw(requestParameters, initOverrides); + async postUpsertAsset(id: string, requestParameters: AssetsPostUpsertAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postUpsertAssetRaw(id, requestParameters, initOverrides); return await response.value(); } /** * Update an asset. */ - async putAssetRaw(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putAssetRaw(id: string, annotateAssetDto: AnnotateAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _annotateAssetDto = annotateAssetDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['annotateAssetDto'] == null) { + if (_annotateAssetDto == null) { throw new runtime.RequiredError( 'annotateAssetDto', 'Required parameter "annotateAssetDto" was null or undefined when calling ().' @@ -1338,11 +1511,11 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: AnnotateAssetDtoToJSON(requestParameters['annotateAssetDto']), + body: AnnotateAssetDtoToJSON(_annotateAssetDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); @@ -1351,8 +1524,8 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Update an asset. */ - async putAsset(requestParameters: AssetsPutAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAssetRaw(requestParameters, initOverrides); + async putAsset(id: string, annotateAssetDto: AnnotateAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetRaw(id, annotateAssetDto, initOverrides); return await response.value(); } @@ -1360,8 +1533,13 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Use multipart request to upload an asset. * Replace asset content. */ - async putAssetContentRaw(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putAssetContentRaw(id: string, requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _file = requestParameters?.['file']; + const _url = requestParameters?.['url']; + const _name = requestParameters?.['name']; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1388,20 +1566,20 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { formParams = new URLSearchParams(); } - if (requestParameters['file'] != null) { - formParams.append('file', requestParameters['file'] as any); + if (_file != null) { + formParams.append('file', _file as any); } - if (requestParameters['fileUrl'] != null) { - formParams.append('fileUrl', requestParameters['fileUrl'] as any); + if (_url != null) { + formParams.append('url', _url as any); } - if (requestParameters['fileName'] != null) { - formParams.append('fileName', requestParameters['fileName'] as any); + if (_name != null) { + formParams.append('name', _name as any); } const response = await this.request({ - path: `/api/apps/$app$/assets/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1415,23 +1593,26 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { * Use multipart request to upload an asset. * Replace asset content. */ - async putAssetContent(requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAssetContentRaw(requestParameters, initOverrides); + async putAssetContent(id: string, requestParameters: AssetsPutAssetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetContentRaw(id, requestParameters, initOverrides); return await response.value(); } /** * Moves the asset. */ - async putAssetParentRaw(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putAssetParentRaw(id: string, moveAssetDto: MoveAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _moveAssetDto = moveAssetDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['moveAssetDto'] == null) { + if (_moveAssetDto == null) { throw new runtime.RequiredError( 'moveAssetDto', 'Required parameter "moveAssetDto" was null or undefined when calling ().' @@ -1445,11 +1626,11 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/assets/{id}/parent`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/{id}/parent`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: MoveAssetDtoToJSON(requestParameters['moveAssetDto']), + body: MoveAssetDtoToJSON(_moveAssetDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AssetDtoFromJSON(jsonValue)); @@ -1458,23 +1639,26 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Moves the asset. */ - async putAssetParent(requestParameters: AssetsPutAssetParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putAssetParentRaw(requestParameters, initOverrides); + async putAssetParent(id: string, moveAssetDto: MoveAssetDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putAssetParentRaw(id, moveAssetDto, initOverrides); return await response.value(); } /** * Rename an asset tag. */ - async putTagRaw(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['name'] == null) { + async putTagRaw(name: string, renameTagDto: RenameTagDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _name = name; + const _renameTagDto = renameTagDto; + + if (_name == null) { throw new runtime.RequiredError( 'name', 'Required parameter "name" was null or undefined when calling ().' ); } - if (requestParameters['renameTagDto'] == null) { + if (_renameTagDto == null) { throw new runtime.RequiredError( 'renameTagDto', 'Required parameter "renameTagDto" was null or undefined when calling ().' @@ -1488,11 +1672,11 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/assets/tags/{name}`.replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/assets/tags/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(_name))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: RenameTagDtoToJSON(requestParameters['renameTagDto']), + body: RenameTagDtoToJSON(_renameTagDto), }, initOverrides); return new runtime.JSONApiResponse(response); @@ -1501,8 +1685,8 @@ export class AssetsApi extends runtime.BaseAPI implements AssetsApiInterface { /** * Rename an asset tag. */ - async putTag(requestParameters: AssetsPutTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }> { - const response = await this.putTagRaw(requestParameters, initOverrides); + async putTag(name: string, renameTagDto: RenameTagDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }> { + const response = await this.putTagRaw(name, renameTagDto, initOverrides); return await response.value(); } diff --git a/src/generated/apis/BackupsApi.ts b/src/generated/apis/BackupsApi.ts index fc96e6b..0385cbb 100644 --- a/src/generated/apis/BackupsApi.ts +++ b/src/generated/apis/BackupsApi.ts @@ -23,21 +23,26 @@ import { RestoreRequestDtoToJSON, } from '../models/index'; -export interface BackupContentGetBackupContentRequest { +export interface BackupContentGetBackupContentRequestRaw { id: string; } export interface BackupContentGetBackupContentV2Request { + appId?: string; + app?: string; +} + +export interface BackupContentGetBackupContentV2RequestRaw { id: string; appId?: string; app?: string; } -export interface BackupsDeleteBackupRequest { +export interface BackupsDeleteBackupRequestRaw { id: string; } -export interface RestorePostRestoreJobRequest { +export interface RestorePostRestoreJobRequestRaw { restoreRequestDto: RestoreRequestDto; } @@ -57,13 +62,13 @@ export interface BackupsApiInterface { * @throws {RequiredError} * @memberof BackupsApiInterface */ - getBackupContentRaw(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getBackupContentRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the backup content. * @deprecated */ - getBackupContent(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getBackupContent(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -76,13 +81,13 @@ export interface BackupsApiInterface { * @throws {RequiredError} * @memberof BackupsApiInterface */ - getBackupContentV2Raw(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getBackupContentV2Raw(id: string, requestParameters?: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the backup content. * @deprecated */ - getBackupContentV2(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getBackupContentV2(id: string, requestParameters?: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -93,13 +98,13 @@ export interface BackupsApiInterface { * @throws {RequiredError} * @memberof BackupsApiInterface */ - deleteBackupRaw(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteBackupRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a backup. * @deprecated */ - deleteBackup(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteBackup(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -153,12 +158,12 @@ export interface BackupsApiInterface { * @throws {RequiredError} * @memberof BackupsApiInterface */ - postRestoreJobRaw(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postRestoreJobRaw(restoreRequestDto: RestoreRequestDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Restore a backup. */ - postRestoreJob(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postRestoreJob(restoreRequestDto: RestoreRequestDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -171,8 +176,10 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Get the backup content. * @deprecated */ - async getBackupContentRaw(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getBackupContentRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -184,7 +191,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -197,8 +204,8 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Get the backup content. * @deprecated */ - async getBackupContent(requestParameters: BackupContentGetBackupContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getBackupContentRaw(requestParameters, initOverrides); + async getBackupContent(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getBackupContentRaw(id, initOverrides); return await response.value(); } @@ -206,8 +213,12 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Get the backup content. * @deprecated */ - async getBackupContentV2Raw(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getBackupContentV2Raw(id: string, requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _appId = requestParameters?.['appId']; + const _app = requestParameters?.['app']; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -216,18 +227,18 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { const queryParameters: any = {}; - if (requestParameters['appId'] != null) { - queryParameters['appId'] = requestParameters['appId']; + if (_appId != null) { + queryParameters['appId'] = _appId; } - if (requestParameters['app'] != null) { - queryParameters['app'] = requestParameters['app']; + if (_app != null) { + queryParameters['app'] = _app; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -240,8 +251,8 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Get the backup content. * @deprecated */ - async getBackupContentV2(requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getBackupContentV2Raw(requestParameters, initOverrides); + async getBackupContentV2(id: string, requestParameters: BackupContentGetBackupContentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getBackupContentV2Raw(id, requestParameters, initOverrides); return await response.value(); } @@ -249,8 +260,10 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Delete a backup. * @deprecated */ - async deleteBackupRaw(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteBackupRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -262,7 +275,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/backups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -275,8 +288,8 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Delete a backup. * @deprecated */ - async deleteBackup(requestParameters: BackupsDeleteBackupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteBackupRaw(requestParameters, initOverrides); + async deleteBackup(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteBackupRaw(id, initOverrides); } /** @@ -284,6 +297,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * @deprecated */ async getBackupsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -311,6 +325,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Start a new backup. */ async postBackupRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -336,6 +351,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { * Get current restore status. */ async getRestoreJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -361,8 +377,10 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { /** * Restore a backup. */ - async postRestoreJobRaw(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['restoreRequestDto'] == null) { + async postRestoreJobRaw(restoreRequestDto: RestoreRequestDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _restoreRequestDto = restoreRequestDto; + + if (_restoreRequestDto == null) { throw new runtime.RequiredError( 'restoreRequestDto', 'Required parameter "restoreRequestDto" was null or undefined when calling ().' @@ -380,7 +398,7 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: RestoreRequestDtoToJSON(requestParameters['restoreRequestDto']), + body: RestoreRequestDtoToJSON(_restoreRequestDto), }, initOverrides); return new runtime.VoidApiResponse(response); @@ -389,8 +407,8 @@ export class BackupsApi extends runtime.BaseAPI implements BackupsApiInterface { /** * Restore a backup. */ - async postRestoreJob(requestParameters: RestorePostRestoreJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.postRestoreJobRaw(requestParameters, initOverrides); + async postRestoreJob(restoreRequestDto: RestoreRequestDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.postRestoreJobRaw(restoreRequestDto, initOverrides); } } diff --git a/src/generated/apis/ContentsApi.ts b/src/generated/apis/ContentsApi.ts index 32e9ae5..1894d7d 100644 --- a/src/generated/apis/ContentsApi.ts +++ b/src/generated/apis/ContentsApi.ts @@ -33,12 +33,17 @@ import { QueryDtoToJSON, } from '../models/index'; -export interface ContentsBulkUpdateContentsRequest { +export interface ContentsBulkUpdateContentsRequestRaw { schema: string; bulkUpdateContentsDto: BulkUpdateContentsDto; } export interface ContentsCreateDraftRequest { + unpublished?: boolean; + languages?: string; +} + +export interface ContentsCreateDraftRequestRaw { schema: string; id: string; unpublished?: boolean; @@ -46,6 +51,11 @@ export interface ContentsCreateDraftRequest { } export interface ContentsDeleteContentRequest { + checkReferrers?: boolean; + permanent?: boolean; +} + +export interface ContentsDeleteContentRequestRaw { schema: string; id: string; checkReferrers?: boolean; @@ -53,6 +63,11 @@ export interface ContentsDeleteContentRequest { } export interface ContentsDeleteContentStatusRequest { + unpublished?: boolean; + languages?: string; +} + +export interface ContentsDeleteContentStatusRequestRaw { schema: string; id: string; unpublished?: boolean; @@ -60,6 +75,11 @@ export interface ContentsDeleteContentStatusRequest { } export interface ContentsDeleteVersionRequest { + unpublished?: boolean; + languages?: string; +} + +export interface ContentsDeleteVersionRequestRaw { schema: string; id: string; unpublished?: boolean; @@ -67,6 +87,14 @@ export interface ContentsDeleteVersionRequest { } export interface ContentsGetContentRequest { + version?: number; + fields?: string; + flatten?: boolean; + languages?: string; + unpublished?: boolean; +} + +export interface ContentsGetContentRequestRaw { schema: string; id: string; version?: number; @@ -76,12 +104,17 @@ export interface ContentsGetContentRequest { unpublished?: boolean; } -export interface ContentsGetContentValidityRequest { +export interface ContentsGetContentValidityRequestRaw { schema: string; id: string; } export interface ContentsGetContentVersionRequest { + unpublished?: boolean; + languages?: string; +} + +export interface ContentsGetContentVersionRequestRaw { schema: string; id: string; version: number; @@ -90,6 +123,22 @@ export interface ContentsGetContentVersionRequest { } export interface ContentsGetContentsRequest { + ids?: string | null; + q?: string | null; + $search?: string; + $top?: number; + $skip?: number; + $orderby?: string; + $filter?: string; + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; +} + +export interface ContentsGetContentsRequestRaw { schema: string; ids?: string | null; q?: string | null; @@ -107,6 +156,15 @@ export interface ContentsGetContentsRequest { } export interface ContentsGetContentsPostRequest { + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; +} + +export interface ContentsGetContentsPostRequestRaw { schema: string; queryDto: QueryDto; fields?: string; @@ -118,6 +176,16 @@ export interface ContentsGetContentsPostRequest { } export interface ContentsGetReferencesRequest { + q?: string | null; + fields?: string; + flatten?: boolean; + languages?: string; + unpublished?: boolean; + noSlowTotal?: boolean; + noTotal?: boolean; +} + +export interface ContentsGetReferencesRequestRaw { schema: string; id: string; q?: string | null; @@ -130,6 +198,16 @@ export interface ContentsGetReferencesRequest { } export interface ContentsGetReferencingRequest { + q?: string | null; + fields?: string; + flatten?: boolean; + languages?: string; + unpublished?: boolean; + noSlowTotal?: boolean; + noTotal?: boolean; +} + +export interface ContentsGetReferencingRequestRaw { schema: string; id: string; q?: string | null; @@ -142,6 +220,11 @@ export interface ContentsGetReferencingRequest { } export interface ContentsPatchContentRequest { + unpublished?: boolean; + languages?: string; +} + +export interface ContentsPatchContentRequestRaw { schema: string; id: string; requestBody: { [key: string]: { [key: string]: any; }; }; @@ -150,6 +233,14 @@ export interface ContentsPatchContentRequest { } export interface ContentsPostContentRequest { + status?: string | null; + id?: string | null; + publish?: boolean; + unpublished?: boolean; + languages?: string; +} + +export interface ContentsPostContentRequestRaw { schema: string; requestBody: { [key: string]: { [key: string]: any; }; }; status?: string | null; @@ -159,12 +250,21 @@ export interface ContentsPostContentRequest { languages?: string; } -export interface ContentsPostContentsRequest { +export interface ContentsPostContentsRequestRaw { schema: string; importContentsDto: ImportContentsDto; } export interface ContentsPostUpsertContentRequest { + status?: string | null; + patch?: boolean; + enrichDefaults?: boolean; + publish?: boolean; + unpublished?: boolean; + languages?: string; +} + +export interface ContentsPostUpsertContentRequestRaw { schema: string; id: string; requestBody: { [key: string]: { [key: string]: any; }; }; @@ -177,6 +277,12 @@ export interface ContentsPostUpsertContentRequest { } export interface ContentsPutContentRequest { + enrichDefaults?: boolean; + unpublished?: boolean; + languages?: string; +} + +export interface ContentsPutContentRequestRaw { schema: string; id: string; requestBody: { [key: string]: { [key: string]: any; }; }; @@ -186,6 +292,12 @@ export interface ContentsPutContentRequest { } export interface ContentsPutContentDefaultsRequest { + enrichRequiredFields?: boolean; + unpublished?: boolean; + languages?: string; +} + +export interface ContentsPutContentDefaultsRequestRaw { schema: string; id: string; enrichRequiredFields?: boolean; @@ -194,6 +306,11 @@ export interface ContentsPutContentDefaultsRequest { } export interface ContentsPutContentStatusRequest { + unpublished?: boolean; + languages?: string; +} + +export interface ContentsPutContentStatusRequestRaw { schema: string; id: string; changeStatusDto: ChangeStatusDto; @@ -202,6 +319,10 @@ export interface ContentsPutContentStatusRequest { } export interface ContentsSharedBulkUpdateAllContentsRequest { + schema?: string; +} + +export interface ContentsSharedBulkUpdateAllContentsRequestRaw { bulkUpdateContentsDto: BulkUpdateContentsDto; schema?: string; } @@ -221,7 +342,31 @@ export interface ContentsSharedGetAllContentsRequest { unpublished?: boolean; } +export interface ContentsSharedGetAllContentsRequestRaw { + ids?: string | null; + scheduleFrom?: Date | null; + scheduleTo?: Date | null; + referencing?: string | null; + references?: string | null; + q?: string | null; + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; +} + export interface ContentsSharedGetAllContentsPostRequest { + fields?: string; + flatten?: boolean; + languages?: string; + noSlowTotal?: boolean; + noTotal?: boolean; + unpublished?: boolean; +} + +export interface ContentsSharedGetAllContentsPostRequestRaw { allContentsByPostDto: AllContentsByPostDto; fields?: string; flatten?: boolean; @@ -238,6 +383,13 @@ export interface ContentsSharedGetGraphQLRequest { unpublished?: boolean; } +export interface ContentsSharedGetGraphQLRequestRaw { + theQueryString?: string; + variables?: string | null; + operationName?: string | null; + unpublished?: boolean; +} + export interface ContentsSharedGetGraphQLBatchRequest { theQueryString?: string; variables?: string | null; @@ -245,16 +397,33 @@ export interface ContentsSharedGetGraphQLBatchRequest { unpublished?: boolean; } +export interface ContentsSharedGetGraphQLBatchRequestRaw { + theQueryString?: string; + variables?: string | null; + operationName?: string | null; + unpublished?: boolean; +} + export interface ContentsSharedPostGraphQLRequest { unpublished?: boolean; body?: any | null; } +export interface ContentsSharedPostGraphQLRequestRaw { + unpublished?: boolean; + body?: any | null; +} + export interface ContentsSharedPostGraphQLBatchRequest { unpublished?: boolean; body?: any | null; } +export interface ContentsSharedPostGraphQLBatchRequestRaw { + unpublished?: boolean; + body?: any | null; +} + /** * ContentsApi - interface * @@ -271,13 +440,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - bulkUpdateContentsRaw(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + bulkUpdateContentsRaw(schema: string, bulkUpdateContentsDto: BulkUpdateContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Bulk update content items. */ - bulkUpdateContents(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + bulkUpdateContents(schema: string, bulkUpdateContentsDto: BulkUpdateContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -290,13 +459,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - createDraftRaw(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + createDraftRaw(schema: string, id: string, requestParameters?: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Create a new draft version. */ - createDraft(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + createDraft(schema: string, id: string, requestParameters?: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can create an generated documentation for your app at /api/content/{appName}/docs. @@ -309,13 +478,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - deleteContentRaw(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteContentRaw(schema: string, id: string, requestParameters?: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can create an generated documentation for your app at /api/content/{appName}/docs. * Delete a content item. */ - deleteContent(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteContent(schema: string, id: string, requestParameters?: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -328,13 +497,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - deleteContentStatusRaw(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteContentStatusRaw(schema: string, id: string, requestParameters?: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Cancel status change of a content item. */ - deleteContentStatus(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteContentStatus(schema: string, id: string, requestParameters?: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -347,13 +516,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - deleteVersionRaw(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteVersionRaw(schema: string, id: string, requestParameters?: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Delete the draft version. */ - deleteVersion(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteVersion(schema: string, id: string, requestParameters?: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -369,13 +538,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getContentRaw(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getContentRaw(schema: string, id: string, requestParameters?: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a content item. */ - getContent(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getContent(schema: string, id: string, requestParameters?: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -386,13 +555,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getContentValidityRaw(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getContentValidityRaw(schema: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a content item validity. */ - getContentValidity(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getContentValidity(schema: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -407,14 +576,14 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getContentVersionRaw(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getContentVersionRaw(schema: string, id: string, version: number, requestParameters?: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a content by version. * @deprecated */ - getContentVersion(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getContentVersion(schema: string, id: string, version: number, requestParameters?: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -437,13 +606,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getContentsRaw(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getContentsRaw(schema: string, requestParameters?: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - getContents(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getContents(schema: string, requestParameters?: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -460,13 +629,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getContentsPostRaw(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getContentsPostRaw(schema: string, queryDto: QueryDto, requestParameters?: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - getContentsPost(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getContentsPost(schema: string, queryDto: QueryDto, requestParameters?: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -484,13 +653,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getReferencesRaw(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getReferencesRaw(schema: string, id: string, requestParameters?: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get all references of a content. */ - getReferences(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getReferences(schema: string, id: string, requestParameters?: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -508,13 +677,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getReferencingRaw(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getReferencingRaw(schema: string, id: string, requestParameters?: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a referencing contents of a content item. */ - getReferencing(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getReferencing(schema: string, id: string, requestParameters?: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -528,13 +697,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - patchContentRaw(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + patchContentRaw(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Patchs a content item. */ - patchContent(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + patchContent(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -550,13 +719,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - postContentRaw(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postContentRaw(schema: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Create a content item. */ - postContent(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postContent(schema: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -568,14 +737,14 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - postContentsRaw(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + postContentsRaw(schema: string, importContentsDto: ImportContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Import content items. * @deprecated */ - postContents(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postContents(schema: string, importContentsDto: ImportContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -593,13 +762,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - postUpsertContentRaw(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postUpsertContentRaw(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Upsert a content item. */ - postUpsertContent(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postUpsertContent(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -614,13 +783,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - putContentRaw(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putContentRaw(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Update a content item. */ - putContent(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putContent(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters?: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -634,13 +803,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - putContentDefaultsRaw(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putContentDefaultsRaw(schema: string, id: string, requestParameters?: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Enrich a content item with defaults. */ - putContentDefaults(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putContentDefaults(schema: string, id: string, requestParameters?: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -654,13 +823,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - putContentStatusRaw(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putContentStatusRaw(schema: string, id: string, changeStatusDto: ChangeStatusDto, requestParameters?: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Change status of a content item. */ - putContentStatus(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putContentStatus(schema: string, id: string, changeStatusDto: ChangeStatusDto, requestParameters?: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -671,13 +840,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - bulkUpdateAllContentsRaw(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + bulkUpdateAllContentsRaw(bulkUpdateContentsDto: BulkUpdateContentsDto, requestParameters?: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Bulk update content items. */ - bulkUpdateAllContents(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + bulkUpdateAllContents(bulkUpdateContentsDto: BulkUpdateContentsDto, requestParameters?: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -698,13 +867,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getAllContentsRaw(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAllContentsRaw(requestParameters?: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - getAllContents(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAllContents(requestParameters?: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -720,13 +889,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getAllContentsPostRaw(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAllContentsPostRaw(allContentsByPostDto: AllContentsByPostDto, requestParameters?: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - getAllContentsPost(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getAllContentsPost(allContentsByPostDto: AllContentsByPostDto, requestParameters?: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -739,13 +908,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getGraphQLRaw(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getGraphQLRaw(requestParameters?: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL endpoint. */ - getGraphQL(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getGraphQL(requestParameters?: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -758,13 +927,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - getGraphQLBatchRaw(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getGraphQLBatchRaw(requestParameters?: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL batch endpoint. */ - getGraphQLBatch(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getGraphQLBatch(requestParameters?: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -775,13 +944,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - postGraphQLRaw(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postGraphQLRaw(requestParameters?: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL endpoint. */ - postGraphQL(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postGraphQL(requestParameters?: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. @@ -792,13 +961,13 @@ export interface ContentsApiInterface { * @throws {RequiredError} * @memberof ContentsApiInterface */ - postGraphQLBatchRaw(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postGraphQLBatchRaw(requestParameters?: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * GraphQL batch endpoint. */ - postGraphQLBatch(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postGraphQLBatch(requestParameters?: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -811,15 +980,18 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Bulk update content items. */ - async bulkUpdateContentsRaw(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['schema'] == null) { + async bulkUpdateContentsRaw(schema: string, bulkUpdateContentsDto: BulkUpdateContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _schema = schema; + const _bulkUpdateContentsDto = bulkUpdateContentsDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['bulkUpdateContentsDto'] == null) { + if (_bulkUpdateContentsDto == null) { throw new runtime.RequiredError( 'bulkUpdateContentsDto', 'Required parameter "bulkUpdateContentsDto" was null or undefined when calling ().' @@ -833,11 +1005,11 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/content/$app$/{schema}/bulk`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/bulk`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: BulkUpdateContentsDtoToJSON(requestParameters['bulkUpdateContentsDto']), + body: BulkUpdateContentsDtoToJSON(_bulkUpdateContentsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); @@ -847,8 +1019,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Bulk update content items. */ - async bulkUpdateContents(requestParameters: ContentsBulkUpdateContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.bulkUpdateContentsRaw(requestParameters, initOverrides); + async bulkUpdateContents(schema: string, bulkUpdateContentsDto: BulkUpdateContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.bulkUpdateContentsRaw(schema, bulkUpdateContentsDto, initOverrides); return await response.value(); } @@ -856,15 +1028,20 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Create a new draft version. */ - async createDraftRaw(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async createDraftRaw(schema: string, id: string, requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -875,16 +1052,16 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/draft`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/draft`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, @@ -897,8 +1074,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Create a new draft version. */ - async createDraft(requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createDraftRaw(requestParameters, initOverrides); + async createDraft(schema: string, id: string, requestParameters: ContentsCreateDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createDraftRaw(schema, id, requestParameters, initOverrides); return await response.value(); } @@ -906,15 +1083,20 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can create an generated documentation for your app at /api/content/{appName}/docs. * Delete a content item. */ - async deleteContentRaw(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async deleteContentRaw(schema: string, id: string, requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _checkReferrers = requestParameters?.['checkReferrers']; + const _permanent = requestParameters?.['permanent']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -923,18 +1105,18 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['checkReferrers'] != null) { - queryParameters['checkReferrers'] = requestParameters['checkReferrers']; + if (_checkReferrers != null) { + queryParameters['checkReferrers'] = _checkReferrers; } - if (requestParameters['permanent'] != null) { - queryParameters['permanent'] = requestParameters['permanent']; + if (_permanent != null) { + queryParameters['permanent'] = _permanent; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -947,23 +1129,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can create an generated documentation for your app at /api/content/{appName}/docs. * Delete a content item. */ - async deleteContent(requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteContentRaw(requestParameters, initOverrides); + async deleteContent(schema: string, id: string, requestParameters: ContentsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteContentRaw(schema, id, requestParameters, initOverrides); } /** * You can read the generated documentation for your app at /api/content/{appName}/docs. * Cancel status change of a content item. */ - async deleteContentStatusRaw(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async deleteContentStatusRaw(schema: string, id: string, requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -974,16 +1161,16 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/status`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/status`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -996,8 +1183,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Cancel status change of a content item. */ - async deleteContentStatus(requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteContentStatusRaw(requestParameters, initOverrides); + async deleteContentStatus(schema: string, id: string, requestParameters: ContentsDeleteContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteContentStatusRaw(schema, id, requestParameters, initOverrides); return await response.value(); } @@ -1005,15 +1192,20 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Delete the draft version. */ - async deleteVersionRaw(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async deleteVersionRaw(schema: string, id: string, requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1024,16 +1216,16 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/draft`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/draft`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1046,8 +1238,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Delete the draft version. */ - async deleteVersion(requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteVersionRaw(requestParameters, initOverrides); + async deleteVersion(schema: string, id: string, requestParameters: ContentsDeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteVersionRaw(schema, id, requestParameters, initOverrides); return await response.value(); } @@ -1055,15 +1247,23 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a content item. */ - async getContentRaw(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getContentRaw(schema: string, id: string, requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _version = requestParameters?.['version']; + const _fields = requestParameters?.['fields']; + const _flatten = requestParameters?.['flatten']; + const _languages = requestParameters?.['languages']; + const _unpublished = requestParameters?.['unpublished']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1072,30 +1272,30 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (_version != null) { + queryParameters['version'] = _version; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['fields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['fields']); + if (_fields != null) { + headerParameters['X-Fields'] = String(_fields); } - if (requestParameters['flatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['flatten']); + if (_flatten != null) { + headerParameters['X-Flatten'] = String(_flatten); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1108,8 +1308,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a content item. */ - async getContent(requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getContentRaw(requestParameters, initOverrides); + async getContent(schema: string, id: string, requestParameters: ContentsGetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentRaw(schema, id, requestParameters, initOverrides); return await response.value(); } @@ -1117,15 +1317,18 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a content item validity. */ - async getContentValidityRaw(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getContentValidityRaw(schema: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1137,7 +1340,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/validity`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/validity`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1150,8 +1353,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a content item validity. */ - async getContentValidity(requestParameters: ContentsGetContentValidityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.getContentValidityRaw(requestParameters, initOverrides); + async getContentValidity(schema: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.getContentValidityRaw(schema, id, initOverrides); } /** @@ -1159,22 +1362,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * Get a content by version. * @deprecated */ - async getContentVersionRaw(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getContentVersionRaw(schema: string, id: string, version: number, requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _version = version; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['version'] == null) { + if (_version == null) { throw new runtime.RequiredError( 'version', 'Required parameter "version" was null or undefined when calling ().' @@ -1185,16 +1394,16 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/{version}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace(`{${"version"}}`, encodeURIComponent(String((requestParameters as any)['version']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/{version}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace(`{${"version"}}`, encodeURIComponent(String(_version))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1208,8 +1417,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * Get a content by version. * @deprecated */ - async getContentVersion(requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getContentVersionRaw(requestParameters, initOverrides); + async getContentVersion(schema: string, id: string, version: number, requestParameters: ContentsGetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentVersionRaw(schema, id, version, requestParameters, initOverrides); return await response.value(); } @@ -1217,8 +1426,23 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - async getContentsRaw(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getContentsRaw(schema: string, requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _ids = requestParameters?.['ids']; + const _q = requestParameters?.['q']; + const _$search = requestParameters?.['$search']; + const _$top = requestParameters?.['$top']; + const _$skip = requestParameters?.['$skip']; + const _$orderby = requestParameters?.['$orderby']; + const _$filter = requestParameters?.['$filter']; + const _fields = requestParameters?.['fields']; + const _flatten = requestParameters?.['flatten']; + const _languages = requestParameters?.['languages']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + const _noTotal = requestParameters?.['noTotal']; + const _unpublished = requestParameters?.['unpublished']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' @@ -1227,62 +1451,62 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['ids'] != null) { - queryParameters['ids'] = requestParameters['ids']; + if (_ids != null) { + queryParameters['ids'] = _ids; } - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; + if (_q != null) { + queryParameters['q'] = _q; } - if (requestParameters['$search'] != null) { - queryParameters['$search'] = requestParameters['$search']; + if (_$search != null) { + queryParameters['$search'] = _$search; } - if (requestParameters['$top'] != null) { - queryParameters['$top'] = requestParameters['$top']; + if (_$top != null) { + queryParameters['$top'] = _$top; } - if (requestParameters['$skip'] != null) { - queryParameters['$skip'] = requestParameters['$skip']; + if (_$skip != null) { + queryParameters['$skip'] = _$skip; } - if (requestParameters['$orderby'] != null) { - queryParameters['$orderby'] = requestParameters['$orderby']; + if (_$orderby != null) { + queryParameters['$orderby'] = _$orderby; } - if (requestParameters['$filter'] != null) { - queryParameters['$filter'] = requestParameters['$filter']; + if (_$filter != null) { + queryParameters['$filter'] = _$filter; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['fields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['fields']); + if (_fields != null) { + headerParameters['X-Fields'] = String(_fields); } - if (requestParameters['flatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['flatten']); + if (_flatten != null) { + headerParameters['X-Flatten'] = String(_flatten); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ - path: `/api/content/$app$/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1295,8 +1519,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - async getContents(requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getContentsRaw(requestParameters, initOverrides); + async getContents(schema: string, requestParameters: ContentsGetContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentsRaw(schema, requestParameters, initOverrides); return await response.value(); } @@ -1304,15 +1528,24 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - async getContentsPostRaw(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getContentsPostRaw(schema: string, queryDto: QueryDto, requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _queryDto = queryDto; + const _fields = requestParameters?.['fields']; + const _flatten = requestParameters?.['flatten']; + const _languages = requestParameters?.['languages']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + const _noTotal = requestParameters?.['noTotal']; + const _unpublished = requestParameters?.['unpublished']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['queryDto'] == null) { + if (_queryDto == null) { throw new runtime.RequiredError( 'queryDto', 'Required parameter "queryDto" was null or undefined when calling ().' @@ -1325,36 +1558,36 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['fields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['fields']); + if (_fields != null) { + headerParameters['X-Fields'] = String(_fields); } - if (requestParameters['flatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['flatten']); + if (_flatten != null) { + headerParameters['X-Flatten'] = String(_flatten); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ - path: `/api/content/$app$/{schema}/query`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/query`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: QueryDtoToJSON(requestParameters['queryDto']), + body: QueryDtoToJSON(_queryDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); @@ -1364,8 +1597,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - async getContentsPost(requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getContentsPostRaw(requestParameters, initOverrides); + async getContentsPost(schema: string, queryDto: QueryDto, requestParameters: ContentsGetContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContentsPostRaw(schema, queryDto, requestParameters, initOverrides); return await response.value(); } @@ -1373,15 +1606,25 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get all references of a content. */ - async getReferencesRaw(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getReferencesRaw(schema: string, id: string, requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _q = requestParameters?.['q']; + const _fields = requestParameters?.['fields']; + const _flatten = requestParameters?.['flatten']; + const _languages = requestParameters?.['languages']; + const _unpublished = requestParameters?.['unpublished']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + const _noTotal = requestParameters?.['noTotal']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1390,38 +1633,38 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; + if (_q != null) { + queryParameters['q'] = _q; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['fields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['fields']); + if (_fields != null) { + headerParameters['X-Fields'] = String(_fields); } - if (requestParameters['flatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['flatten']); + if (_flatten != null) { + headerParameters['X-Flatten'] = String(_flatten); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/references`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/references`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1434,8 +1677,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get all references of a content. */ - async getReferences(requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getReferencesRaw(requestParameters, initOverrides); + async getReferences(schema: string, id: string, requestParameters: ContentsGetReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getReferencesRaw(schema, id, requestParameters, initOverrides); return await response.value(); } @@ -1443,15 +1686,25 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a referencing contents of a content item. */ - async getReferencingRaw(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getReferencingRaw(schema: string, id: string, requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _q = requestParameters?.['q']; + const _fields = requestParameters?.['fields']; + const _flatten = requestParameters?.['flatten']; + const _languages = requestParameters?.['languages']; + const _unpublished = requestParameters?.['unpublished']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + const _noTotal = requestParameters?.['noTotal']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1460,38 +1713,38 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; + if (_q != null) { + queryParameters['q'] = _q; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['fields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['fields']); + if (_fields != null) { + headerParameters['X-Fields'] = String(_fields); } - if (requestParameters['flatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['flatten']); + if (_flatten != null) { + headerParameters['X-Flatten'] = String(_flatten); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/referencing`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/referencing`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1504,8 +1757,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Get a referencing contents of a content item. */ - async getReferencing(requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getReferencingRaw(requestParameters, initOverrides); + async getReferencing(schema: string, id: string, requestParameters: ContentsGetReferencingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getReferencingRaw(schema, id, requestParameters, initOverrides); return await response.value(); } @@ -1513,22 +1766,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Patchs a content item. */ - async patchContentRaw(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async patchContentRaw(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _requestBody = requestBody; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['requestBody'] == null) { + if (_requestBody == null) { throw new runtime.RequiredError( 'requestBody', 'Required parameter "requestBody" was null or undefined when calling ().' @@ -1541,20 +1800,20 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PATCH', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: _requestBody, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); @@ -1564,8 +1823,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Patchs a content item. */ - async patchContent(requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.patchContentRaw(requestParameters, initOverrides); + async patchContent(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPatchContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchContentRaw(schema, id, requestBody, requestParameters, initOverrides); return await response.value(); } @@ -1573,15 +1832,23 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Create a content item. */ - async postContentRaw(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async postContentRaw(schema: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _requestBody = requestBody; + const _status = requestParameters?.['status']; + const _id = requestParameters?.['id']; + const _publish = requestParameters?.['publish']; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['requestBody'] == null) { + if (_requestBody == null) { throw new runtime.RequiredError( 'requestBody', 'Required parameter "requestBody" was null or undefined when calling ().' @@ -1590,36 +1857,36 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['status'] != null) { - queryParameters['status'] = requestParameters['status']; + if (_status != null) { + queryParameters['status'] = _status; } - if (requestParameters['id'] != null) { - queryParameters['id'] = requestParameters['id']; + if (_id != null) { + queryParameters['id'] = _id; } - if (requestParameters['publish'] != null) { - queryParameters['publish'] = requestParameters['publish']; + if (_publish != null) { + queryParameters['publish'] = _publish; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: _requestBody, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); @@ -1629,8 +1896,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Create a content item. */ - async postContent(requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postContentRaw(requestParameters, initOverrides); + async postContent(schema: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPostContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postContentRaw(schema, requestBody, requestParameters, initOverrides); return await response.value(); } @@ -1639,15 +1906,18 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * Import content items. * @deprecated */ - async postContentsRaw(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['schema'] == null) { + async postContentsRaw(schema: string, importContentsDto: ImportContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _schema = schema; + const _importContentsDto = importContentsDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['importContentsDto'] == null) { + if (_importContentsDto == null) { throw new runtime.RequiredError( 'importContentsDto', 'Required parameter "importContentsDto" was null or undefined when calling ().' @@ -1661,11 +1931,11 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/content/$app$/{schema}/import`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/import`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: ImportContentsDtoToJSON(requestParameters['importContentsDto']), + body: ImportContentsDtoToJSON(_importContentsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); @@ -1676,8 +1946,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * Import content items. * @deprecated */ - async postContents(requestParameters: ContentsPostContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.postContentsRaw(requestParameters, initOverrides); + async postContents(schema: string, importContentsDto: ImportContentsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.postContentsRaw(schema, importContentsDto, initOverrides); return await response.value(); } @@ -1685,22 +1955,32 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Upsert a content item. */ - async postUpsertContentRaw(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async postUpsertContentRaw(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _requestBody = requestBody; + const _status = requestParameters?.['status']; + const _patch = requestParameters?.['patch']; + const _enrichDefaults = requestParameters?.['enrichDefaults']; + const _publish = requestParameters?.['publish']; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['requestBody'] == null) { + if (_requestBody == null) { throw new runtime.RequiredError( 'requestBody', 'Required parameter "requestBody" was null or undefined when calling ().' @@ -1709,40 +1989,40 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['status'] != null) { - queryParameters['status'] = requestParameters['status']; + if (_status != null) { + queryParameters['status'] = _status; } - if (requestParameters['patch'] != null) { - queryParameters['patch'] = requestParameters['patch']; + if (_patch != null) { + queryParameters['patch'] = _patch; } - if (requestParameters['enrichDefaults'] != null) { - queryParameters['enrichDefaults'] = requestParameters['enrichDefaults']; + if (_enrichDefaults != null) { + queryParameters['enrichDefaults'] = _enrichDefaults; } - if (requestParameters['publish'] != null) { - queryParameters['publish'] = requestParameters['publish']; + if (_publish != null) { + queryParameters['publish'] = _publish; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: _requestBody, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); @@ -1752,8 +2032,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Upsert a content item. */ - async postUpsertContent(requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postUpsertContentRaw(requestParameters, initOverrides); + async postUpsertContent(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPostUpsertContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postUpsertContentRaw(schema, id, requestBody, requestParameters, initOverrides); return await response.value(); } @@ -1761,22 +2041,29 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Update a content item. */ - async putContentRaw(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putContentRaw(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _requestBody = requestBody; + const _enrichDefaults = requestParameters?.['enrichDefaults']; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['requestBody'] == null) { + if (_requestBody == null) { throw new runtime.RequiredError( 'requestBody', 'Required parameter "requestBody" was null or undefined when calling ().' @@ -1785,28 +2072,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['enrichDefaults'] != null) { - queryParameters['enrichDefaults'] = requestParameters['enrichDefaults']; + if (_enrichDefaults != null) { + queryParameters['enrichDefaults'] = _enrichDefaults; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: _requestBody, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); @@ -1816,8 +2103,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Update a content item. */ - async putContent(requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putContentRaw(requestParameters, initOverrides); + async putContent(schema: string, id: string, requestBody: { [key: string]: { [key: string]: any; }; }, requestParameters: ContentsPutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putContentRaw(schema, id, requestBody, requestParameters, initOverrides); return await response.value(); } @@ -1825,15 +2112,21 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Enrich a content item with defaults. */ - async putContentDefaultsRaw(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putContentDefaultsRaw(schema: string, id: string, requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _enrichRequiredFields = requestParameters?.['enrichRequiredFields']; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1842,22 +2135,22 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['enrichRequiredFields'] != null) { - queryParameters['enrichRequiredFields'] = requestParameters['enrichRequiredFields']; + if (_enrichRequiredFields != null) { + queryParameters['enrichRequiredFields'] = _enrichRequiredFields; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/defaults`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/defaults`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1870,8 +2163,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Enrich a content item with defaults. */ - async putContentDefaults(requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putContentDefaultsRaw(requestParameters, initOverrides); + async putContentDefaults(schema: string, id: string, requestParameters: ContentsPutContentDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putContentDefaultsRaw(schema, id, requestParameters, initOverrides); return await response.value(); } @@ -1879,22 +2172,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Change status of a content item. */ - async putContentStatusRaw(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putContentStatusRaw(schema: string, id: string, changeStatusDto: ChangeStatusDto, requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _changeStatusDto = changeStatusDto; + const _unpublished = requestParameters?.['unpublished']; + const _languages = requestParameters?.['languages']; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['changeStatusDto'] == null) { + if (_changeStatusDto == null) { throw new runtime.RequiredError( 'changeStatusDto', 'Required parameter "changeStatusDto" was null or undefined when calling ().' @@ -1907,20 +2206,20 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } const response = await this.request({ - path: `/api/content/$app$/{schema}/{id}/status`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/content/$app$/{schema}/{id}/status`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: ChangeStatusDtoToJSON(requestParameters['changeStatusDto']), + body: ChangeStatusDtoToJSON(_changeStatusDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContentDtoFromJSON(jsonValue)); @@ -1930,8 +2229,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Change status of a content item. */ - async putContentStatus(requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putContentStatusRaw(requestParameters, initOverrides); + async putContentStatus(schema: string, id: string, changeStatusDto: ChangeStatusDto, requestParameters: ContentsPutContentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putContentStatusRaw(schema, id, changeStatusDto, requestParameters, initOverrides); return await response.value(); } @@ -1939,8 +2238,11 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Bulk update content items. */ - async bulkUpdateAllContentsRaw(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['bulkUpdateContentsDto'] == null) { + async bulkUpdateAllContentsRaw(bulkUpdateContentsDto: BulkUpdateContentsDto, requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _bulkUpdateContentsDto = bulkUpdateContentsDto; + const _schema = requestParameters?.['schema']; + + if (_bulkUpdateContentsDto == null) { throw new runtime.RequiredError( 'bulkUpdateContentsDto', 'Required parameter "bulkUpdateContentsDto" was null or undefined when calling ().' @@ -1949,8 +2251,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface const queryParameters: any = {}; - if (requestParameters['schema'] != null) { - queryParameters['schema'] = requestParameters['schema']; + if (_schema != null) { + queryParameters['schema'] = _schema; } const headerParameters: runtime.HTTPHeaders = {}; @@ -1962,7 +2264,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface method: 'POST', headers: headerParameters, query: queryParameters, - body: BulkUpdateContentsDtoToJSON(requestParameters['bulkUpdateContentsDto']), + body: BulkUpdateContentsDtoToJSON(_bulkUpdateContentsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkResultDtoFromJSON)); @@ -1972,8 +2274,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Bulk update content items. */ - async bulkUpdateAllContents(requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.bulkUpdateAllContentsRaw(requestParameters, initOverrides); + async bulkUpdateAllContents(bulkUpdateContentsDto: BulkUpdateContentsDto, requestParameters: ContentsSharedBulkUpdateAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.bulkUpdateAllContentsRaw(bulkUpdateContentsDto, requestParameters, initOverrides); return await response.value(); } @@ -1982,56 +2284,69 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * Queries contents. */ async getAllContentsRaw(requestParameters: ContentsSharedGetAllContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _ids = requestParameters?.['ids']; + const _scheduleFrom = requestParameters?.['scheduleFrom']; + const _scheduleTo = requestParameters?.['scheduleTo']; + const _referencing = requestParameters?.['referencing']; + const _references = requestParameters?.['references']; + const _q = requestParameters?.['q']; + const _fields = requestParameters?.['fields']; + const _flatten = requestParameters?.['flatten']; + const _languages = requestParameters?.['languages']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + const _noTotal = requestParameters?.['noTotal']; + const _unpublished = requestParameters?.['unpublished']; + const queryParameters: any = {}; - if (requestParameters['ids'] != null) { - queryParameters['ids'] = requestParameters['ids']; + if (_ids != null) { + queryParameters['ids'] = _ids; } - if (requestParameters['scheduleFrom'] != null) { - queryParameters['scheduleFrom'] = (requestParameters['scheduleFrom'] as any).toISOString(); + if (_scheduleFrom != null) { + queryParameters['scheduleFrom'] = (_scheduleFrom as any).toISOString(); } - if (requestParameters['scheduleTo'] != null) { - queryParameters['scheduleTo'] = (requestParameters['scheduleTo'] as any).toISOString(); + if (_scheduleTo != null) { + queryParameters['scheduleTo'] = (_scheduleTo as any).toISOString(); } - if (requestParameters['referencing'] != null) { - queryParameters['referencing'] = requestParameters['referencing']; + if (_referencing != null) { + queryParameters['referencing'] = _referencing; } - if (requestParameters['references'] != null) { - queryParameters['references'] = requestParameters['references']; + if (_references != null) { + queryParameters['references'] = _references; } - if (requestParameters['q'] != null) { - queryParameters['q'] = requestParameters['q']; + if (_q != null) { + queryParameters['q'] = _q; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['fields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['fields']); + if (_fields != null) { + headerParameters['X-Fields'] = String(_fields); } - if (requestParameters['flatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['flatten']); + if (_flatten != null) { + headerParameters['X-Flatten'] = String(_flatten); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ @@ -2057,8 +2372,16 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - async getAllContentsPostRaw(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['allContentsByPostDto'] == null) { + async getAllContentsPostRaw(allContentsByPostDto: AllContentsByPostDto, requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _allContentsByPostDto = allContentsByPostDto; + const _fields = requestParameters?.['fields']; + const _flatten = requestParameters?.['flatten']; + const _languages = requestParameters?.['languages']; + const _noSlowTotal = requestParameters?.['noSlowTotal']; + const _noTotal = requestParameters?.['noTotal']; + const _unpublished = requestParameters?.['unpublished']; + + if (_allContentsByPostDto == null) { throw new runtime.RequiredError( 'allContentsByPostDto', 'Required parameter "allContentsByPostDto" was null or undefined when calling ().' @@ -2071,28 +2394,28 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['fields'] != null) { - headerParameters['X-Fields'] = String(requestParameters['fields']); + if (_fields != null) { + headerParameters['X-Fields'] = String(_fields); } - if (requestParameters['flatten'] != null) { - headerParameters['X-Flatten'] = String(requestParameters['flatten']); + if (_flatten != null) { + headerParameters['X-Flatten'] = String(_flatten); } - if (requestParameters['languages'] != null) { - headerParameters['X-Languages'] = String(requestParameters['languages']); + if (_languages != null) { + headerParameters['X-Languages'] = String(_languages); } - if (requestParameters['noSlowTotal'] != null) { - headerParameters['X-NoSlowTotal'] = String(requestParameters['noSlowTotal']); + if (_noSlowTotal != null) { + headerParameters['X-NoSlowTotal'] = String(_noSlowTotal); } - if (requestParameters['noTotal'] != null) { - headerParameters['X-NoTotal'] = String(requestParameters['noTotal']); + if (_noTotal != null) { + headerParameters['X-NoTotal'] = String(_noTotal); } - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ @@ -2100,7 +2423,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface method: 'POST', headers: headerParameters, query: queryParameters, - body: AllContentsByPostDtoToJSON(requestParameters['allContentsByPostDto']), + body: AllContentsByPostDtoToJSON(_allContentsByPostDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContentsDtoFromJSON(jsonValue)); @@ -2110,8 +2433,8 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * You can read the generated documentation for your app at /api/content/{appName}/docs. * Queries contents. */ - async getAllContentsPost(requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAllContentsPostRaw(requestParameters, initOverrides); + async getAllContentsPost(allContentsByPostDto: AllContentsByPostDto, requestParameters: ContentsSharedGetAllContentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAllContentsPostRaw(allContentsByPostDto, requestParameters, initOverrides); return await response.value(); } @@ -2120,24 +2443,29 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL endpoint. */ async getGraphQLRaw(requestParameters: ContentsSharedGetGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _theQueryString = requestParameters?.['theQueryString']; + const _variables = requestParameters?.['variables']; + const _operationName = requestParameters?.['operationName']; + const _unpublished = requestParameters?.['unpublished']; + const queryParameters: any = {}; - if (requestParameters['theQueryString'] != null) { - queryParameters['The query string'] = requestParameters['theQueryString']; + if (_theQueryString != null) { + queryParameters['The query string'] = _theQueryString; } - if (requestParameters['variables'] != null) { - queryParameters['variables'] = requestParameters['variables']; + if (_variables != null) { + queryParameters['variables'] = _variables; } - if (requestParameters['operationName'] != null) { - queryParameters['operationName'] = requestParameters['operationName']; + if (_operationName != null) { + queryParameters['operationName'] = _operationName; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ @@ -2168,24 +2496,29 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL batch endpoint. */ async getGraphQLBatchRaw(requestParameters: ContentsSharedGetGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _theQueryString = requestParameters?.['theQueryString']; + const _variables = requestParameters?.['variables']; + const _operationName = requestParameters?.['operationName']; + const _unpublished = requestParameters?.['unpublished']; + const queryParameters: any = {}; - if (requestParameters['theQueryString'] != null) { - queryParameters['The query string'] = requestParameters['theQueryString']; + if (_theQueryString != null) { + queryParameters['The query string'] = _theQueryString; } - if (requestParameters['variables'] != null) { - queryParameters['variables'] = requestParameters['variables']; + if (_variables != null) { + queryParameters['variables'] = _variables; } - if (requestParameters['operationName'] != null) { - queryParameters['operationName'] = requestParameters['operationName']; + if (_operationName != null) { + queryParameters['operationName'] = _operationName; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ @@ -2216,14 +2549,17 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL endpoint. */ async postGraphQLRaw(requestParameters: ContentsSharedPostGraphQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _unpublished = requestParameters?.['unpublished']; + const _body = requestParameters?.['body']; + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ @@ -2231,7 +2567,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['body'] as any, + body: _body as any, }, initOverrides); if (this.isJsonMime(response.headers.get('content-type'))) { @@ -2255,14 +2591,17 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface * GraphQL batch endpoint. */ async postGraphQLBatchRaw(requestParameters: ContentsSharedPostGraphQLBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _unpublished = requestParameters?.['unpublished']; + const _body = requestParameters?.['body']; + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; - if (requestParameters['unpublished'] != null) { - headerParameters['X-Unpublished'] = String(requestParameters['unpublished']); + if (_unpublished != null) { + headerParameters['X-Unpublished'] = String(_unpublished); } const response = await this.request({ @@ -2270,7 +2609,7 @@ export class ContentsApi extends runtime.BaseAPI implements ContentsApiInterface method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['body'] as any, + body: _body as any, }, initOverrides); if (this.isJsonMime(response.headers.get('content-type'))) { diff --git a/src/generated/apis/DiagnosticsApi.ts b/src/generated/apis/DiagnosticsApi.ts index 77b586f..055aaf3 100644 --- a/src/generated/apis/DiagnosticsApi.ts +++ b/src/generated/apis/DiagnosticsApi.ts @@ -63,6 +63,7 @@ export class DiagnosticsApi extends runtime.BaseAPI implements DiagnosticsApiInt * Creates a dump and writes it into storage.. */ async getDumpRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -88,6 +89,7 @@ export class DiagnosticsApi extends runtime.BaseAPI implements DiagnosticsApiInt * Creates a gc dump and writes it into storage. */ async getGCDumpRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/generated/apis/EventConsumersApi.ts b/src/generated/apis/EventConsumersApi.ts index 5a4e8c4..d3ff0b3 100644 --- a/src/generated/apis/EventConsumersApi.ts +++ b/src/generated/apis/EventConsumersApi.ts @@ -21,15 +21,15 @@ import { EventConsumersDtoFromJSON, } from '../models/index'; -export interface EventConsumersResetEventConsumerRequest { +export interface EventConsumersResetEventConsumerRequestRaw { consumerName: string; } -export interface EventConsumersStartEventConsumerRequest { +export interface EventConsumersStartEventConsumerRequestRaw { consumerName: string; } -export interface EventConsumersStopEventConsumerRequest { +export interface EventConsumersStopEventConsumerRequestRaw { consumerName: string; } @@ -62,12 +62,12 @@ export interface EventConsumersApiInterface { * @throws {RequiredError} * @memberof EventConsumersApiInterface */ - resetEventConsumerRaw(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + resetEventConsumerRaw(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Reset an event consumer. */ - resetEventConsumer(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + resetEventConsumer(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -77,12 +77,12 @@ export interface EventConsumersApiInterface { * @throws {RequiredError} * @memberof EventConsumersApiInterface */ - startEventConsumerRaw(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + startEventConsumerRaw(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Start an event consumer. */ - startEventConsumer(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + startEventConsumer(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -92,12 +92,12 @@ export interface EventConsumersApiInterface { * @throws {RequiredError} * @memberof EventConsumersApiInterface */ - stopEventConsumerRaw(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + stopEventConsumerRaw(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Stop an event consumer. */ - stopEventConsumer(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + stopEventConsumer(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -110,6 +110,7 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers * Get event consumers. */ async getEventConsumersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -135,8 +136,10 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers /** * Reset an event consumer. */ - async resetEventConsumerRaw(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['consumerName'] == null) { + async resetEventConsumerRaw(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _consumerName = consumerName; + + if (_consumerName == null) { throw new runtime.RequiredError( 'consumerName', 'Required parameter "consumerName" was null or undefined when calling ().' @@ -148,7 +151,7 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/event-consumers/{consumerName}/reset`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/event-consumers/{consumerName}/reset`.replace(`{${"consumerName"}}`, encodeURIComponent(String(_consumerName))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -160,16 +163,18 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers /** * Reset an event consumer. */ - async resetEventConsumer(requestParameters: EventConsumersResetEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.resetEventConsumerRaw(requestParameters, initOverrides); + async resetEventConsumer(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.resetEventConsumerRaw(consumerName, initOverrides); return await response.value(); } /** * Start an event consumer. */ - async startEventConsumerRaw(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['consumerName'] == null) { + async startEventConsumerRaw(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _consumerName = consumerName; + + if (_consumerName == null) { throw new runtime.RequiredError( 'consumerName', 'Required parameter "consumerName" was null or undefined when calling ().' @@ -181,7 +186,7 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/event-consumers/{consumerName}/start`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/event-consumers/{consumerName}/start`.replace(`{${"consumerName"}}`, encodeURIComponent(String(_consumerName))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -193,16 +198,18 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers /** * Start an event consumer. */ - async startEventConsumer(requestParameters: EventConsumersStartEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.startEventConsumerRaw(requestParameters, initOverrides); + async startEventConsumer(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.startEventConsumerRaw(consumerName, initOverrides); return await response.value(); } /** * Stop an event consumer. */ - async stopEventConsumerRaw(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['consumerName'] == null) { + async stopEventConsumerRaw(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _consumerName = consumerName; + + if (_consumerName == null) { throw new runtime.RequiredError( 'consumerName', 'Required parameter "consumerName" was null or undefined when calling ().' @@ -214,7 +221,7 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/event-consumers/{consumerName}/stop`.replace(`{${"consumerName"}}`, encodeURIComponent(String((requestParameters as any)['consumerName']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/event-consumers/{consumerName}/stop`.replace(`{${"consumerName"}}`, encodeURIComponent(String(_consumerName))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -226,8 +233,8 @@ export class EventConsumersApi extends runtime.BaseAPI implements EventConsumers /** * Stop an event consumer. */ - async stopEventConsumer(requestParameters: EventConsumersStopEventConsumerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.stopEventConsumerRaw(requestParameters, initOverrides); + async stopEventConsumer(consumerName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.stopEventConsumerRaw(consumerName, initOverrides); return await response.value(); } diff --git a/src/generated/apis/HistoryApi.ts b/src/generated/apis/HistoryApi.ts index c0c2dc3..21c5070 100644 --- a/src/generated/apis/HistoryApi.ts +++ b/src/generated/apis/HistoryApi.ts @@ -23,7 +23,15 @@ export interface HistoryGetAppHistoryRequest { channel?: string; } +export interface HistoryGetAppHistoryRequestRaw { + channel?: string; +} + export interface HistoryGetTeamHistoryRequest { + channel?: string; +} + +export interface HistoryGetTeamHistoryRequestRaw { team: string; channel?: string; } @@ -43,12 +51,12 @@ export interface HistoryApiInterface { * @throws {RequiredError} * @memberof HistoryApiInterface */ - getAppHistoryRaw(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getAppHistoryRaw(requestParameters?: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Get the app history. */ - getAppHistory(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getAppHistory(requestParameters?: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * @@ -59,12 +67,12 @@ export interface HistoryApiInterface { * @throws {RequiredError} * @memberof HistoryApiInterface */ - getTeamHistoryRaw(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getTeamHistoryRaw(team: string, requestParameters?: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Get the team history. */ - getTeamHistory(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTeamHistory(team: string, requestParameters?: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; } @@ -77,10 +85,12 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { * Get the app history. */ async getAppHistoryRaw(requestParameters: HistoryGetAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _channel = requestParameters?.['channel']; + const queryParameters: any = {}; - if (requestParameters['channel'] != null) { - queryParameters['channel'] = requestParameters['channel']; + if (_channel != null) { + queryParameters['channel'] = _channel; } const headerParameters: runtime.HTTPHeaders = {}; @@ -106,8 +116,11 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { /** * Get the team history. */ - async getTeamHistoryRaw(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['team'] == null) { + async getTeamHistoryRaw(team: string, requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _team = team; + const _channel = requestParameters?.['channel']; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -116,14 +129,14 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { const queryParameters: any = {}; - if (requestParameters['channel'] != null) { - queryParameters['channel'] = requestParameters['channel']; + if (_channel != null) { + queryParameters['channel'] = _channel; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/history`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/history`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -135,8 +148,8 @@ export class HistoryApi extends runtime.BaseAPI implements HistoryApiInterface { /** * Get the team history. */ - async getTeamHistory(requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getTeamHistoryRaw(requestParameters, initOverrides); + async getTeamHistory(team: string, requestParameters: HistoryGetTeamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getTeamHistoryRaw(team, requestParameters, initOverrides); return await response.value(); } diff --git a/src/generated/apis/JobsApi.ts b/src/generated/apis/JobsApi.ts index e2a39cf..363e984 100644 --- a/src/generated/apis/JobsApi.ts +++ b/src/generated/apis/JobsApi.ts @@ -20,11 +20,15 @@ import { } from '../models/index'; export interface JobsContentGetJobContentRequest { + appId?: string; +} + +export interface JobsContentGetJobContentRequestRaw { id: string; appId?: string; } -export interface JobsDeleteJobRequest { +export interface JobsDeleteJobRequestRaw { id: string; } @@ -44,12 +48,12 @@ export interface JobsApiInterface { * @throws {RequiredError} * @memberof JobsApiInterface */ - getJobContentRaw(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getJobContentRaw(id: string, requestParameters?: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the job content. */ - getJobContent(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getJobContent(id: string, requestParameters?: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -59,12 +63,12 @@ export interface JobsApiInterface { * @throws {RequiredError} * @memberof JobsApiInterface */ - deleteJobRaw(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteJobRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a job. */ - deleteJob(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteJob(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -90,8 +94,11 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { /** * Get the job content. */ - async getJobContentRaw(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getJobContentRaw(id: string, requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _appId = requestParameters?.['appId']; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -100,14 +107,14 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { const queryParameters: any = {}; - if (requestParameters['appId'] != null) { - queryParameters['appId'] = requestParameters['appId']; + if (_appId != null) { + queryParameters['appId'] = _appId; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -119,16 +126,18 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { /** * Get the job content. */ - async getJobContent(requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getJobContentRaw(requestParameters, initOverrides); + async getJobContent(id: string, requestParameters: JobsContentGetJobContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getJobContentRaw(id, requestParameters, initOverrides); return await response.value(); } /** * Delete a job. */ - async deleteJobRaw(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteJobRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -140,7 +149,7 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -152,14 +161,15 @@ export class JobsApi extends runtime.BaseAPI implements JobsApiInterface { /** * Delete a job. */ - async deleteJob(requestParameters: JobsDeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteJobRaw(requestParameters, initOverrides); + async deleteJob(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteJobRaw(id, initOverrides); } /** * Get all jobs. */ async getJobsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/generated/apis/LanguagesApi.ts b/src/generated/apis/LanguagesApi.ts index 64677ff..1c5c1e1 100644 --- a/src/generated/apis/LanguagesApi.ts +++ b/src/generated/apis/LanguagesApi.ts @@ -53,6 +53,7 @@ export class LanguagesApi extends runtime.BaseAPI implements LanguagesApiInterfa * Get supported languages. */ async getLanguagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/generated/apis/NewsApi.ts b/src/generated/apis/NewsApi.ts index 9719304..32423b5 100644 --- a/src/generated/apis/NewsApi.ts +++ b/src/generated/apis/NewsApi.ts @@ -23,6 +23,10 @@ export interface NewsGetNewsRequest { version?: number; } +export interface NewsGetNewsRequestRaw { + version?: number; +} + /** * NewsApi - interface * @@ -38,12 +42,12 @@ export interface NewsApiInterface { * @throws {RequiredError} * @memberof NewsApiInterface */ - getNewsRaw(requestParameters: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getNewsRaw(requestParameters?: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get features since version. */ - getNews(requestParameters: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getNews(requestParameters?: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -56,10 +60,12 @@ export class NewsApi extends runtime.BaseAPI implements NewsApiInterface { * Get features since version. */ async getNewsRaw(requestParameters: NewsGetNewsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _version = requestParameters?.['version']; + const queryParameters: any = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (_version != null) { + queryParameters['version'] = _version; } const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/generated/apis/PingApi.ts b/src/generated/apis/PingApi.ts index b2ddea5..8f64dab 100644 --- a/src/generated/apis/PingApi.ts +++ b/src/generated/apis/PingApi.ts @@ -80,6 +80,7 @@ export class PingApi extends runtime.BaseAPI implements PingApiInterface { * Get ping status. */ async getAppPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -106,6 +107,7 @@ export class PingApi extends runtime.BaseAPI implements PingApiInterface { * Get API information. */ async getInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -133,6 +135,7 @@ export class PingApi extends runtime.BaseAPI implements PingApiInterface { * Get ping status of the API. */ async getPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/generated/apis/PlansApi.ts b/src/generated/apis/PlansApi.ts index 986ef47..3994df7 100644 --- a/src/generated/apis/PlansApi.ts +++ b/src/generated/apis/PlansApi.ts @@ -23,15 +23,15 @@ import { PlansDtoFromJSON, } from '../models/index'; -export interface AppPlansPutPlanRequest { +export interface AppPlansPutPlanRequestRaw { changePlanDto: ChangePlanDto; } -export interface TeamPlansGetTeamPlansRequest { +export interface TeamPlansGetTeamPlansRequestRaw { team: string; } -export interface TeamPlansPutTeamPlanRequest { +export interface TeamPlansPutTeamPlanRequestRaw { team: string; changePlanDto: ChangePlanDto; } @@ -65,12 +65,12 @@ export interface PlansApiInterface { * @throws {RequiredError} * @memberof PlansApiInterface */ - putPlanRaw(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putPlanRaw(changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Change the app plan. */ - putPlan(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putPlan(changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -80,12 +80,12 @@ export interface PlansApiInterface { * @throws {RequiredError} * @memberof PlansApiInterface */ - getTeamPlansRaw(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTeamPlansRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get team plan information. */ - getTeamPlans(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getTeamPlans(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -96,12 +96,12 @@ export interface PlansApiInterface { * @throws {RequiredError} * @memberof PlansApiInterface */ - putTeamPlanRaw(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putTeamPlanRaw(team: string, changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Change the team plan. */ - putTeamPlan(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putTeamPlan(team: string, changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -114,6 +114,7 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { * Get app plan information. */ async getPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -139,8 +140,10 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { /** * Change the app plan. */ - async putPlanRaw(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['changePlanDto'] == null) { + async putPlanRaw(changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _changePlanDto = changePlanDto; + + if (_changePlanDto == null) { throw new runtime.RequiredError( 'changePlanDto', 'Required parameter "changePlanDto" was null or undefined when calling ().' @@ -158,7 +161,7 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { method: 'PUT', headers: headerParameters, query: queryParameters, - body: ChangePlanDtoToJSON(requestParameters['changePlanDto']), + body: ChangePlanDtoToJSON(_changePlanDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => PlanChangedDtoFromJSON(jsonValue)); @@ -167,16 +170,18 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { /** * Change the app plan. */ - async putPlan(requestParameters: AppPlansPutPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putPlanRaw(requestParameters, initOverrides); + async putPlan(changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putPlanRaw(changePlanDto, initOverrides); return await response.value(); } /** * Get team plan information. */ - async getTeamPlansRaw(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async getTeamPlansRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -188,7 +193,7 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/plans`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/plans`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -200,23 +205,26 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { /** * Get team plan information. */ - async getTeamPlans(requestParameters: TeamPlansGetTeamPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getTeamPlansRaw(requestParameters, initOverrides); + async getTeamPlans(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamPlansRaw(team, initOverrides); return await response.value(); } /** * Change the team plan. */ - async putTeamPlanRaw(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async putTeamPlanRaw(team: string, changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + const _changePlanDto = changePlanDto; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' ); } - if (requestParameters['changePlanDto'] == null) { + if (_changePlanDto == null) { throw new runtime.RequiredError( 'changePlanDto', 'Required parameter "changePlanDto" was null or undefined when calling ().' @@ -230,11 +238,11 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}/plan`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/plan`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: ChangePlanDtoToJSON(requestParameters['changePlanDto']), + body: ChangePlanDtoToJSON(_changePlanDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => PlanChangedDtoFromJSON(jsonValue)); @@ -243,8 +251,8 @@ export class PlansApi extends runtime.BaseAPI implements PlansApiInterface { /** * Change the team plan. */ - async putTeamPlan(requestParameters: TeamPlansPutTeamPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putTeamPlanRaw(requestParameters, initOverrides); + async putTeamPlan(team: string, changePlanDto: ChangePlanDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putTeamPlanRaw(team, changePlanDto, initOverrides); return await response.value(); } diff --git a/src/generated/apis/RulesApi.ts b/src/generated/apis/RulesApi.ts index d01a23b..1fe556d 100644 --- a/src/generated/apis/RulesApi.ts +++ b/src/generated/apis/RulesApi.ts @@ -31,27 +31,27 @@ import { UpdateRuleDtoToJSON, } from '../models/index'; -export interface RulesDeleteEventRequest { +export interface RulesDeleteEventRequestRaw { id: string; } -export interface RulesDeleteRuleRequest { +export interface RulesDeleteRuleRequestRaw { id: string; } -export interface RulesDeleteRuleEventsRequest { +export interface RulesDeleteRuleEventsRequestRaw { id: string; } -export interface RulesDisableRuleRequest { +export interface RulesDisableRuleRequestRaw { id: string; } -export interface RulesEnableRuleRequest { +export interface RulesEnableRuleRequestRaw { id: string; } -export interface RulesGetEventSchemaRequest { +export interface RulesGetEventSchemaRequestRaw { type: string; } @@ -61,33 +61,43 @@ export interface RulesGetEventsRequest { take?: number; } -export interface RulesPostRuleRequest { +export interface RulesGetEventsRequestRaw { + ruleId?: string | null; + skip?: number; + take?: number; +} + +export interface RulesPostRuleRequestRaw { createRuleDto: CreateRuleDto; } -export interface RulesPutEventRequest { +export interface RulesPutEventRequestRaw { id: string; } -export interface RulesPutRuleRequest { +export interface RulesPutRuleRequestRaw { id: string; updateRuleDto: UpdateRuleDto; } export interface RulesPutRuleRunRequest { + fromSnapshots?: boolean; +} + +export interface RulesPutRuleRunRequestRaw { id: string; fromSnapshots?: boolean; } -export interface RulesSimulateGETRequest { +export interface RulesSimulateGETRequestRaw { id: string; } -export interface RulesSimulatePOSTRequest { +export interface RulesSimulatePOSTRequestRaw { createRuleDto: CreateRuleDto; } -export interface RulesTriggerRuleRequest { +export interface RulesTriggerRuleRequestRaw { id: string; } @@ -106,12 +116,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - deleteEventRaw(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteEventRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Cancels an event. */ - deleteEvent(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteEvent(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -135,12 +145,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - deleteRuleRaw(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a rule. */ - deleteRule(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -150,12 +160,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - deleteRuleEventsRaw(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteRuleEventsRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Cancels all rule events. */ - deleteRuleEvents(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteRuleEvents(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -179,12 +189,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - disableRuleRaw(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + disableRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Disable a rule. */ - disableRule(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + disableRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -194,12 +204,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - enableRuleRaw(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + enableRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Enable a rule. */ - enableRule(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + enableRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -223,12 +233,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - getEventSchemaRaw(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getEventSchemaRaw(type: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Provide the json schema for the event with the specified name. */ - getEventSchema(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getEventSchema(type: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -254,12 +264,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - getEventsRaw(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getEventsRaw(requestParameters?: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get rule events. */ - getEvents(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getEvents(requestParameters?: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -283,12 +293,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - postRuleRaw(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postRuleRaw(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new rule. */ - postRule(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postRule(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -298,12 +308,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - putEventRaw(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putEventRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Retry the event immediately. */ - putEvent(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putEvent(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -314,12 +324,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - putRuleRaw(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putRuleRaw(id: string, updateRuleDto: UpdateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a rule. */ - putRule(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putRule(id: string, updateRuleDto: UpdateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -330,12 +340,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - putRuleRunRaw(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putRuleRunRaw(id: string, requestParameters?: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Run a rule. */ - putRuleRun(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putRuleRun(id: string, requestParameters?: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -345,12 +355,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - simulateGETRaw(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + simulateGETRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Simulate a rule. */ - simulateGET(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + simulateGET(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -360,12 +370,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - simulatePOSTRaw(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + simulatePOSTRaw(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Simulate a rule. */ - simulatePOST(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + simulatePOST(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -375,12 +385,12 @@ export interface RulesApiInterface { * @throws {RequiredError} * @memberof RulesApiInterface */ - triggerRuleRaw(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + triggerRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Trigger a rule. */ - triggerRule(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + triggerRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -392,8 +402,10 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Cancels an event. */ - async deleteEventRaw(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteEventRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -405,7 +417,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -417,14 +429,15 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Cancels an event. */ - async deleteEvent(requestParameters: RulesDeleteEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteEventRaw(requestParameters, initOverrides); + async deleteEvent(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteEventRaw(id, initOverrides); } /** * Cancels all events. */ async deleteEventsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -449,8 +462,10 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Delete a rule. */ - async deleteRuleRaw(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -462,7 +477,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -474,15 +489,17 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Delete a rule. */ - async deleteRule(requestParameters: RulesDeleteRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteRuleRaw(requestParameters, initOverrides); + async deleteRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteRuleRaw(id, initOverrides); } /** * Cancels all rule events. */ - async deleteRuleEventsRaw(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteRuleEventsRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -494,7 +511,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -506,14 +523,15 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Cancels all rule events. */ - async deleteRuleEvents(requestParameters: RulesDeleteRuleEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteRuleEventsRaw(requestParameters, initOverrides); + async deleteRuleEvents(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteRuleEventsRaw(id, initOverrides); } /** * Cancel the current run. */ async deleteRuleRunRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -538,8 +556,10 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Disable a rule. */ - async disableRuleRaw(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async disableRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -551,7 +571,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}/disable`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}/disable`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -563,16 +583,18 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Disable a rule. */ - async disableRule(requestParameters: RulesDisableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.disableRuleRaw(requestParameters, initOverrides); + async disableRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.disableRuleRaw(id, initOverrides); return await response.value(); } /** * Enable a rule. */ - async enableRuleRaw(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async enableRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -584,7 +606,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}/enable`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}/enable`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -596,8 +618,8 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Enable a rule. */ - async enableRule(requestParameters: RulesEnableRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.enableRuleRaw(requestParameters, initOverrides); + async enableRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.enableRuleRaw(id, initOverrides); return await response.value(); } @@ -605,6 +627,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { * Get supported rule actions. */ async getActionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -630,8 +653,10 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Provide the json schema for the event with the specified name. */ - async getEventSchemaRaw(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['type'] == null) { + async getEventSchemaRaw(type: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _type = type; + + if (_type == null) { throw new runtime.RequiredError( 'type', 'Required parameter "type" was null or undefined when calling ().' @@ -643,7 +668,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/rules/eventtypes/{type}`.replace(`{${"type"}}`, encodeURIComponent(String((requestParameters as any)['type']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/rules/eventtypes/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(_type))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -659,8 +684,8 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Provide the json schema for the event with the specified name. */ - async getEventSchema(requestParameters: RulesGetEventSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getEventSchemaRaw(requestParameters, initOverrides); + async getEventSchema(type: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getEventSchemaRaw(type, initOverrides); return await response.value(); } @@ -668,6 +693,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { * Provide a list of all event types that are used in rules. */ async getEventTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -694,18 +720,22 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { * Get rule events. */ async getEventsRaw(requestParameters: RulesGetEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _ruleId = requestParameters?.['ruleId']; + const _skip = requestParameters?.['skip']; + const _take = requestParameters?.['take']; + const queryParameters: any = {}; - if (requestParameters['ruleId'] != null) { - queryParameters['ruleId'] = requestParameters['ruleId']; + if (_ruleId != null) { + queryParameters['ruleId'] = _ruleId; } - if (requestParameters['skip'] != null) { - queryParameters['skip'] = requestParameters['skip']; + if (_skip != null) { + queryParameters['skip'] = _skip; } - if (requestParameters['take'] != null) { - queryParameters['take'] = requestParameters['take']; + if (_take != null) { + queryParameters['take'] = _take; } const headerParameters: runtime.HTTPHeaders = {}; @@ -732,6 +762,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { * Get rules. */ async getRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -757,8 +788,10 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Create a new rule. */ - async postRuleRaw(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createRuleDto'] == null) { + async postRuleRaw(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createRuleDto = createRuleDto; + + if (_createRuleDto == null) { throw new runtime.RequiredError( 'createRuleDto', 'Required parameter "createRuleDto" was null or undefined when calling ().' @@ -776,7 +809,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateRuleDtoToJSON(requestParameters['createRuleDto']), + body: CreateRuleDtoToJSON(_createRuleDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => RuleDtoFromJSON(jsonValue)); @@ -785,16 +818,18 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Create a new rule. */ - async postRule(requestParameters: RulesPostRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postRuleRaw(requestParameters, initOverrides); + async postRule(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postRuleRaw(createRuleDto, initOverrides); return await response.value(); } /** * Retry the event immediately. */ - async putEventRaw(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putEventRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -806,7 +841,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -818,22 +853,25 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Retry the event immediately. */ - async putEvent(requestParameters: RulesPutEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.putEventRaw(requestParameters, initOverrides); + async putEvent(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.putEventRaw(id, initOverrides); } /** * Update a rule. */ - async putRuleRaw(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putRuleRaw(id: string, updateRuleDto: UpdateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _updateRuleDto = updateRuleDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['updateRuleDto'] == null) { + if (_updateRuleDto == null) { throw new runtime.RequiredError( 'updateRuleDto', 'Required parameter "updateRuleDto" was null or undefined when calling ().' @@ -847,11 +885,11 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateRuleDtoToJSON(requestParameters['updateRuleDto']), + body: UpdateRuleDtoToJSON(_updateRuleDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => RuleDtoFromJSON(jsonValue)); @@ -860,16 +898,19 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Update a rule. */ - async putRule(requestParameters: RulesPutRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putRuleRaw(requestParameters, initOverrides); + async putRule(id: string, updateRuleDto: UpdateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putRuleRaw(id, updateRuleDto, initOverrides); return await response.value(); } /** * Run a rule. */ - async putRuleRunRaw(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putRuleRunRaw(id: string, requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _fromSnapshots = requestParameters?.['fromSnapshots']; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -878,14 +919,14 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const queryParameters: any = {}; - if (requestParameters['fromSnapshots'] != null) { - queryParameters['fromSnapshots'] = requestParameters['fromSnapshots']; + if (_fromSnapshots != null) { + queryParameters['fromSnapshots'] = _fromSnapshots; } const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}/run`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}/run`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -897,15 +938,17 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Run a rule. */ - async putRuleRun(requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.putRuleRunRaw(requestParameters, initOverrides); + async putRuleRun(id: string, requestParameters: RulesPutRuleRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.putRuleRunRaw(id, requestParameters, initOverrides); } /** * Simulate a rule. */ - async simulateGETRaw(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async simulateGETRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -917,7 +960,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}/simulate`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}/simulate`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -929,16 +972,18 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Simulate a rule. */ - async simulateGET(requestParameters: RulesSimulateGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.simulateGETRaw(requestParameters, initOverrides); + async simulateGET(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.simulateGETRaw(id, initOverrides); return await response.value(); } /** * Simulate a rule. */ - async simulatePOSTRaw(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createRuleDto'] == null) { + async simulatePOSTRaw(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createRuleDto = createRuleDto; + + if (_createRuleDto == null) { throw new runtime.RequiredError( 'createRuleDto', 'Required parameter "createRuleDto" was null or undefined when calling ().' @@ -956,7 +1001,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateRuleDtoToJSON(requestParameters['createRuleDto']), + body: CreateRuleDtoToJSON(_createRuleDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SimulatedRuleEventsDtoFromJSON(jsonValue)); @@ -965,16 +1010,18 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Simulate a rule. */ - async simulatePOST(requestParameters: RulesSimulatePOSTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.simulatePOSTRaw(requestParameters, initOverrides); + async simulatePOST(createRuleDto: CreateRuleDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.simulatePOSTRaw(createRuleDto, initOverrides); return await response.value(); } /** * Trigger a rule. */ - async triggerRuleRaw(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async triggerRuleRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -986,7 +1033,7 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/rules/{id}/trigger`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/rules/{id}/trigger`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -998,8 +1045,8 @@ export class RulesApi extends runtime.BaseAPI implements RulesApiInterface { /** * Trigger a rule. */ - async triggerRule(requestParameters: RulesTriggerRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.triggerRuleRaw(requestParameters, initOverrides); + async triggerRule(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.triggerRuleRaw(id, initOverrides); } } diff --git a/src/generated/apis/SchemasApi.ts b/src/generated/apis/SchemasApi.ts index 5bfa608..5bfec7f 100644 --- a/src/generated/apis/SchemasApi.ts +++ b/src/generated/apis/SchemasApi.ts @@ -41,159 +41,159 @@ import { UpdateSchemaDtoToJSON, } from '../models/index'; -export interface SchemaFieldsDeleteFieldRequest { +export interface SchemaFieldsDeleteFieldRequestRaw { schema: string; id: number; } -export interface SchemaFieldsDeleteNestedFieldRequest { +export interface SchemaFieldsDeleteNestedFieldRequestRaw { schema: string; parentId: number; id: number; } -export interface SchemaFieldsDisableFieldRequest { +export interface SchemaFieldsDisableFieldRequestRaw { schema: string; id: number; } -export interface SchemaFieldsDisableNestedFieldRequest { +export interface SchemaFieldsDisableNestedFieldRequestRaw { schema: string; parentId: number; id: number; } -export interface SchemaFieldsEnableFieldRequest { +export interface SchemaFieldsEnableFieldRequestRaw { schema: string; id: number; } -export interface SchemaFieldsEnableNestedFieldRequest { +export interface SchemaFieldsEnableNestedFieldRequestRaw { schema: string; parentId: number; id: number; } -export interface SchemaFieldsHideFieldRequest { +export interface SchemaFieldsHideFieldRequestRaw { schema: string; id: number; } -export interface SchemaFieldsHideNestedFieldRequest { +export interface SchemaFieldsHideNestedFieldRequestRaw { schema: string; parentId: number; id: number; } -export interface SchemaFieldsLockFieldRequest { +export interface SchemaFieldsLockFieldRequestRaw { schema: string; id: number; } -export interface SchemaFieldsLockNestedFieldRequest { +export interface SchemaFieldsLockNestedFieldRequestRaw { schema: string; parentId: number; id: number; } -export interface SchemaFieldsPostFieldRequest { +export interface SchemaFieldsPostFieldRequestRaw { schema: string; addFieldDto: AddFieldDto; } -export interface SchemaFieldsPostNestedFieldRequest { +export interface SchemaFieldsPostNestedFieldRequestRaw { schema: string; parentId: number; addFieldDto: AddFieldDto; } -export interface SchemaFieldsPutFieldRequest { +export interface SchemaFieldsPutFieldRequestRaw { schema: string; id: number; updateFieldDto: UpdateFieldDto; } -export interface SchemaFieldsPutNestedFieldRequest { +export interface SchemaFieldsPutNestedFieldRequestRaw { schema: string; parentId: number; id: number; updateFieldDto: UpdateFieldDto; } -export interface SchemaFieldsPutNestedFieldOrderingRequest { +export interface SchemaFieldsPutNestedFieldOrderingRequestRaw { schema: string; parentId: number; reorderFieldsDto: ReorderFieldsDto; } -export interface SchemaFieldsPutSchemaFieldOrderingRequest { +export interface SchemaFieldsPutSchemaFieldOrderingRequestRaw { schema: string; reorderFieldsDto: ReorderFieldsDto; } -export interface SchemaFieldsPutSchemaUIFieldsRequest { +export interface SchemaFieldsPutSchemaUIFieldsRequestRaw { schema: string; configureUIFieldsDto: ConfigureUIFieldsDto; } -export interface SchemaFieldsShowFieldRequest { +export interface SchemaFieldsShowFieldRequestRaw { schema: string; id: number; } -export interface SchemaFieldsShowNestedFieldRequest { +export interface SchemaFieldsShowNestedFieldRequestRaw { schema: string; parentId: number; id: number; } -export interface SchemasDeleteSchemaRequest { +export interface SchemasDeleteSchemaRequestRaw { schema: string; } -export interface SchemasGetSchemaRequest { +export interface SchemasGetSchemaRequestRaw { schema: string; } -export interface SchemasPostSchemaRequest { +export interface SchemasPostSchemaRequestRaw { createSchemaDto: CreateSchemaDto; } -export interface SchemasPublishSchemaRequest { +export interface SchemasPublishSchemaRequestRaw { schema: string; } -export interface SchemasPutCategoryRequest { +export interface SchemasPutCategoryRequestRaw { schema: string; changeCategoryDto: ChangeCategoryDto; } -export interface SchemasPutPreviewUrlsRequest { +export interface SchemasPutPreviewUrlsRequestRaw { schema: string; requestBody: { [key: string]: string; }; } -export interface SchemasPutRulesRequest { +export interface SchemasPutRulesRequestRaw { schema: string; configureFieldRulesDto: ConfigureFieldRulesDto; } -export interface SchemasPutSchemaRequest { +export interface SchemasPutSchemaRequestRaw { schema: string; updateSchemaDto: UpdateSchemaDto; } -export interface SchemasPutSchemaSyncRequest { +export interface SchemasPutSchemaSyncRequestRaw { schema: string; synchronizeSchemaDto: SynchronizeSchemaDto; } -export interface SchemasPutScriptsRequest { +export interface SchemasPutScriptsRequestRaw { schema: string; schemaScriptsDto: SchemaScriptsDto; } -export interface SchemasUnpublishSchemaRequest { +export interface SchemasUnpublishSchemaRequestRaw { schema: string; } @@ -213,12 +213,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - deleteFieldRaw(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a schema field. */ - deleteField(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -230,12 +230,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - deleteNestedFieldRaw(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a nested field. */ - deleteNestedField(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. @@ -246,13 +246,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - disableFieldRaw(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + disableFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Disable a schema field. */ - disableField(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + disableField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. @@ -264,13 +264,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - disableNestedFieldRaw(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + disableNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Disable a nested field. */ - disableNestedField(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + disableNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. @@ -281,13 +281,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - enableFieldRaw(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + enableFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Enable a schema field. */ - enableField(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + enableField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. @@ -299,13 +299,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - enableNestedFieldRaw(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + enableNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Enable a nested field. */ - enableNestedField(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + enableNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A hidden field is not part of the API response, but can still be edited in the portal. @@ -316,13 +316,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - hideFieldRaw(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + hideFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A hidden field is not part of the API response, but can still be edited in the portal. * Hide a schema field. */ - hideField(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + hideField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A hidden field is not part of the API response, but can still be edited in the portal. @@ -334,13 +334,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - hideNestedFieldRaw(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + hideNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A hidden field is not part of the API response, but can still be edited in the portal. * Hide a nested field. */ - hideNestedField(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + hideNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A locked field cannot be updated or deleted. @@ -351,13 +351,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - lockFieldRaw(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + lockFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A locked field cannot be updated or deleted. * Lock a schema field. */ - lockField(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + lockField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A locked field cannot be edited or deleted. @@ -369,13 +369,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - lockNestedFieldRaw(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + lockNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A locked field cannot be edited or deleted. * Lock a nested field. */ - lockNestedField(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + lockNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -386,12 +386,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - postFieldRaw(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postFieldRaw(schema: string, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add a schema field. */ - postField(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postField(schema: string, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -403,12 +403,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - postNestedFieldRaw(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postNestedFieldRaw(schema: string, parentId: number, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add a nested field. */ - postNestedField(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postNestedField(schema: string, parentId: number, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -420,12 +420,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putFieldRaw(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putFieldRaw(schema: string, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a schema field. */ - putField(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putField(schema: string, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -438,12 +438,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putNestedFieldRaw(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putNestedFieldRaw(schema: string, parentId: number, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a nested field. */ - putNestedField(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putNestedField(schema: string, parentId: number, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -455,12 +455,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putNestedFieldOrderingRaw(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putNestedFieldOrderingRaw(schema: string, parentId: number, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Reorder all nested fields. */ - putNestedFieldOrdering(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putNestedFieldOrdering(schema: string, parentId: number, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -471,12 +471,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putSchemaFieldOrderingRaw(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putSchemaFieldOrderingRaw(schema: string, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Reorder all fields. */ - putSchemaFieldOrdering(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putSchemaFieldOrdering(schema: string, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -487,12 +487,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putSchemaUIFieldsRaw(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putSchemaUIFieldsRaw(schema: string, configureUIFieldsDto: ConfigureUIFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Configure UI fields. */ - putSchemaUIFields(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putSchemaUIFields(schema: string, configureUIFieldsDto: ConfigureUIFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A hidden field is not part of the API response, but can still be edited in the portal. @@ -503,13 +503,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - showFieldRaw(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + showFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A hidden field is not part of the API response, but can still be edited in the portal. * Show a schema field. */ - showField(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + showField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * A hidden field is not part of the API response, but can still be edited in the portal. @@ -521,13 +521,13 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - showNestedFieldRaw(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + showNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * A hidden field is not part of the API response, but can still be edited in the portal. * Show a nested field. */ - showNestedField(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + showNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -537,12 +537,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - deleteSchemaRaw(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a schema. */ - deleteSchema(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -552,12 +552,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - getSchemaRaw(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a schema by name. */ - getSchema(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -581,12 +581,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - postSchemaRaw(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postSchemaRaw(createSchemaDto: CreateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new schema. */ - postSchema(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postSchema(createSchemaDto: CreateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -596,12 +596,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - publishSchemaRaw(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + publishSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Publish a schema. */ - publishSchema(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + publishSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -612,12 +612,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putCategoryRaw(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putCategoryRaw(schema: string, changeCategoryDto: ChangeCategoryDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a schema category. */ - putCategory(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putCategory(schema: string, changeCategoryDto: ChangeCategoryDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -628,12 +628,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putPreviewUrlsRaw(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putPreviewUrlsRaw(schema: string, requestBody: { [key: string]: string; }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the preview urls. */ - putPreviewUrls(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putPreviewUrls(schema: string, requestBody: { [key: string]: string; }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -644,12 +644,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putRulesRaw(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putRulesRaw(schema: string, configureFieldRulesDto: ConfigureFieldRulesDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the rules. */ - putRules(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putRules(schema: string, configureFieldRulesDto: ConfigureFieldRulesDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -660,12 +660,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putSchemaRaw(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putSchemaRaw(schema: string, updateSchemaDto: UpdateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a schema. */ - putSchema(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putSchema(schema: string, updateSchemaDto: UpdateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -676,12 +676,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putSchemaSyncRaw(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putSchemaSyncRaw(schema: string, synchronizeSchemaDto: SynchronizeSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Synchronize a schema. */ - putSchemaSync(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putSchemaSync(schema: string, synchronizeSchemaDto: SynchronizeSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -692,12 +692,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - putScriptsRaw(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putScriptsRaw(schema: string, schemaScriptsDto: SchemaScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the scripts. */ - putScripts(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putScripts(schema: string, schemaScriptsDto: SchemaScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -707,12 +707,12 @@ export interface SchemasApiInterface { * @throws {RequiredError} * @memberof SchemasApiInterface */ - unpublishSchemaRaw(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + unpublishSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Unpublish a schema. */ - unpublishSchema(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + unpublishSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -724,15 +724,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Delete a schema field. */ - async deleteFieldRaw(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async deleteFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -744,7 +747,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -756,30 +759,34 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Delete a schema field. */ - async deleteField(requestParameters: SchemaFieldsDeleteFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteFieldRaw(requestParameters, initOverrides); + async deleteField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteFieldRaw(schema, id, initOverrides); return await response.value(); } /** * Delete a nested field. */ - async deleteNestedFieldRaw(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async deleteNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -791,7 +798,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -803,8 +810,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Delete a nested field. */ - async deleteNestedField(requestParameters: SchemaFieldsDeleteNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteNestedFieldRaw(requestParameters, initOverrides); + async deleteNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteNestedFieldRaw(schema, parentId, id, initOverrides); return await response.value(); } @@ -812,15 +819,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Disable a schema field. */ - async disableFieldRaw(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async disableFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -832,7 +842,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{id}/disable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/disable`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -845,8 +855,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Disable a schema field. */ - async disableField(requestParameters: SchemaFieldsDisableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.disableFieldRaw(requestParameters, initOverrides); + async disableField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.disableFieldRaw(schema, id, initOverrides); return await response.value(); } @@ -854,22 +864,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Disable a nested field. */ - async disableNestedFieldRaw(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async disableNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -881,7 +895,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/disable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/disable`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -894,8 +908,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Disable a nested field. */ - async disableNestedField(requestParameters: SchemaFieldsDisableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.disableNestedFieldRaw(requestParameters, initOverrides); + async disableNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.disableNestedFieldRaw(schema, parentId, id, initOverrides); return await response.value(); } @@ -903,15 +917,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Enable a schema field. */ - async enableFieldRaw(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async enableFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -923,7 +940,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{id}/enable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/enable`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -936,8 +953,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Enable a schema field. */ - async enableField(requestParameters: SchemaFieldsEnableFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.enableFieldRaw(requestParameters, initOverrides); + async enableField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.enableFieldRaw(schema, id, initOverrides); return await response.value(); } @@ -945,22 +962,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Enable a nested field. */ - async enableNestedFieldRaw(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async enableNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -972,7 +993,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/enable`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/enable`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -985,8 +1006,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A disabled field cannot not be edited in the squidex portal anymore, but will be part of the API response. * Enable a nested field. */ - async enableNestedField(requestParameters: SchemaFieldsEnableNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.enableNestedFieldRaw(requestParameters, initOverrides); + async enableNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.enableNestedFieldRaw(schema, parentId, id, initOverrides); return await response.value(); } @@ -994,15 +1015,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Hide a schema field. */ - async hideFieldRaw(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async hideFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1014,7 +1038,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{id}/hide`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/hide`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1027,8 +1051,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Hide a schema field. */ - async hideField(requestParameters: SchemaFieldsHideFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hideFieldRaw(requestParameters, initOverrides); + async hideField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.hideFieldRaw(schema, id, initOverrides); return await response.value(); } @@ -1036,22 +1060,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Hide a nested field. */ - async hideNestedFieldRaw(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async hideNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1063,7 +1091,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/hide`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/hide`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1076,8 +1104,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Hide a nested field. */ - async hideNestedField(requestParameters: SchemaFieldsHideNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hideNestedFieldRaw(requestParameters, initOverrides); + async hideNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.hideNestedFieldRaw(schema, parentId, id, initOverrides); return await response.value(); } @@ -1085,15 +1113,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A locked field cannot be updated or deleted. * Lock a schema field. */ - async lockFieldRaw(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async lockFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1105,7 +1136,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{id}/lock`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/lock`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1118,8 +1149,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A locked field cannot be updated or deleted. * Lock a schema field. */ - async lockField(requestParameters: SchemaFieldsLockFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.lockFieldRaw(requestParameters, initOverrides); + async lockField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.lockFieldRaw(schema, id, initOverrides); return await response.value(); } @@ -1127,22 +1158,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A locked field cannot be edited or deleted. * Lock a nested field. */ - async lockNestedFieldRaw(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async lockNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1154,7 +1189,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/lock`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/lock`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1167,23 +1202,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A locked field cannot be edited or deleted. * Lock a nested field. */ - async lockNestedField(requestParameters: SchemaFieldsLockNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.lockNestedFieldRaw(requestParameters, initOverrides); + async lockNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.lockNestedFieldRaw(schema, parentId, id, initOverrides); return await response.value(); } /** * Add a schema field. */ - async postFieldRaw(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async postFieldRaw(schema: string, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _addFieldDto = addFieldDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['addFieldDto'] == null) { + if (_addFieldDto == null) { throw new runtime.RequiredError( 'addFieldDto', 'Required parameter "addFieldDto" was null or undefined when calling ().' @@ -1197,11 +1235,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: AddFieldDtoToJSON(requestParameters['addFieldDto']), + body: AddFieldDtoToJSON(_addFieldDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1210,30 +1248,34 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Add a schema field. */ - async postField(requestParameters: SchemaFieldsPostFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postFieldRaw(requestParameters, initOverrides); + async postField(schema: string, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postFieldRaw(schema, addFieldDto, initOverrides); return await response.value(); } /** * Add a nested field. */ - async postNestedFieldRaw(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async postNestedFieldRaw(schema: string, parentId: number, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _addFieldDto = addFieldDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['addFieldDto'] == null) { + if (_addFieldDto == null) { throw new runtime.RequiredError( 'addFieldDto', 'Required parameter "addFieldDto" was null or undefined when calling ().' @@ -1247,11 +1289,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: AddFieldDtoToJSON(requestParameters['addFieldDto']), + body: AddFieldDtoToJSON(_addFieldDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1260,30 +1302,34 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Add a nested field. */ - async postNestedField(requestParameters: SchemaFieldsPostNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postNestedFieldRaw(requestParameters, initOverrides); + async postNestedField(schema: string, parentId: number, addFieldDto: AddFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postNestedFieldRaw(schema, parentId, addFieldDto, initOverrides); return await response.value(); } /** * Update a schema field. */ - async putFieldRaw(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putFieldRaw(schema: string, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + const _updateFieldDto = updateFieldDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['updateFieldDto'] == null) { + if (_updateFieldDto == null) { throw new runtime.RequiredError( 'updateFieldDto', 'Required parameter "updateFieldDto" was null or undefined when calling ().' @@ -1297,11 +1343,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateFieldDtoToJSON(requestParameters['updateFieldDto']), + body: UpdateFieldDtoToJSON(_updateFieldDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1310,37 +1356,42 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Update a schema field. */ - async putField(requestParameters: SchemaFieldsPutFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putFieldRaw(requestParameters, initOverrides); + async putField(schema: string, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putFieldRaw(schema, id, updateFieldDto, initOverrides); return await response.value(); } /** * Update a nested field. */ - async putNestedFieldRaw(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putNestedFieldRaw(schema: string, parentId: number, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _id = id; + const _updateFieldDto = updateFieldDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['updateFieldDto'] == null) { + if (_updateFieldDto == null) { throw new runtime.RequiredError( 'updateFieldDto', 'Required parameter "updateFieldDto" was null or undefined when calling ().' @@ -1354,11 +1405,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateFieldDtoToJSON(requestParameters['updateFieldDto']), + body: UpdateFieldDtoToJSON(_updateFieldDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1367,30 +1418,34 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Update a nested field. */ - async putNestedField(requestParameters: SchemaFieldsPutNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putNestedFieldRaw(requestParameters, initOverrides); + async putNestedField(schema: string, parentId: number, id: number, updateFieldDto: UpdateFieldDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putNestedFieldRaw(schema, parentId, id, updateFieldDto, initOverrides); return await response.value(); } /** * Reorder all nested fields. */ - async putNestedFieldOrderingRaw(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putNestedFieldOrderingRaw(schema: string, parentId: number, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _reorderFieldsDto = reorderFieldsDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['reorderFieldsDto'] == null) { + if (_reorderFieldsDto == null) { throw new runtime.RequiredError( 'reorderFieldsDto', 'Required parameter "reorderFieldsDto" was null or undefined when calling ().' @@ -1404,11 +1459,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/ordering`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/ordering`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: ReorderFieldsDtoToJSON(requestParameters['reorderFieldsDto']), + body: ReorderFieldsDtoToJSON(_reorderFieldsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1417,23 +1472,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Reorder all nested fields. */ - async putNestedFieldOrdering(requestParameters: SchemaFieldsPutNestedFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putNestedFieldOrderingRaw(requestParameters, initOverrides); + async putNestedFieldOrdering(schema: string, parentId: number, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putNestedFieldOrderingRaw(schema, parentId, reorderFieldsDto, initOverrides); return await response.value(); } /** * Reorder all fields. */ - async putSchemaFieldOrderingRaw(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putSchemaFieldOrderingRaw(schema: string, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _reorderFieldsDto = reorderFieldsDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['reorderFieldsDto'] == null) { + if (_reorderFieldsDto == null) { throw new runtime.RequiredError( 'reorderFieldsDto', 'Required parameter "reorderFieldsDto" was null or undefined when calling ().' @@ -1447,11 +1505,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/ordering`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/ordering`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: ReorderFieldsDtoToJSON(requestParameters['reorderFieldsDto']), + body: ReorderFieldsDtoToJSON(_reorderFieldsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1460,23 +1518,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Reorder all fields. */ - async putSchemaFieldOrdering(requestParameters: SchemaFieldsPutSchemaFieldOrderingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putSchemaFieldOrderingRaw(requestParameters, initOverrides); + async putSchemaFieldOrdering(schema: string, reorderFieldsDto: ReorderFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaFieldOrderingRaw(schema, reorderFieldsDto, initOverrides); return await response.value(); } /** * Configure UI fields. */ - async putSchemaUIFieldsRaw(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putSchemaUIFieldsRaw(schema: string, configureUIFieldsDto: ConfigureUIFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _configureUIFieldsDto = configureUIFieldsDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['configureUIFieldsDto'] == null) { + if (_configureUIFieldsDto == null) { throw new runtime.RequiredError( 'configureUIFieldsDto', 'Required parameter "configureUIFieldsDto" was null or undefined when calling ().' @@ -1490,11 +1551,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/ui`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/ui`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: ConfigureUIFieldsDtoToJSON(requestParameters['configureUIFieldsDto']), + body: ConfigureUIFieldsDtoToJSON(_configureUIFieldsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1503,8 +1564,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Configure UI fields. */ - async putSchemaUIFields(requestParameters: SchemaFieldsPutSchemaUIFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putSchemaUIFieldsRaw(requestParameters, initOverrides); + async putSchemaUIFields(schema: string, configureUIFieldsDto: ConfigureUIFieldsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaUIFieldsRaw(schema, configureUIFieldsDto, initOverrides); return await response.value(); } @@ -1512,15 +1573,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Show a schema field. */ - async showFieldRaw(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async showFieldRaw(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1532,7 +1596,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{id}/show`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{id}/show`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1545,8 +1609,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Show a schema field. */ - async showField(requestParameters: SchemaFieldsShowFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.showFieldRaw(requestParameters, initOverrides); + async showField(schema: string, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.showFieldRaw(schema, id, initOverrides); return await response.value(); } @@ -1554,22 +1618,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Show a nested field. */ - async showNestedFieldRaw(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async showNestedFieldRaw(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _parentId = parentId; + const _id = id; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['parentId'] == null) { + if (_parentId == null) { throw new runtime.RequiredError( 'parentId', 'Required parameter "parentId" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -1581,7 +1649,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/show`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace(`{${"parentId"}}`, encodeURIComponent(String((requestParameters as any)['parentId']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/fields/{parentId}/nested/{id}/show`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace(`{${"parentId"}}`, encodeURIComponent(String(_parentId))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1594,16 +1662,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * A hidden field is not part of the API response, but can still be edited in the portal. * Show a nested field. */ - async showNestedField(requestParameters: SchemaFieldsShowNestedFieldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.showNestedFieldRaw(requestParameters, initOverrides); + async showNestedField(schema: string, parentId: number, id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.showNestedFieldRaw(schema, parentId, id, initOverrides); return await response.value(); } /** * Delete a schema. */ - async deleteSchemaRaw(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async deleteSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' @@ -1615,7 +1685,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -1627,15 +1697,17 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Delete a schema. */ - async deleteSchema(requestParameters: SchemasDeleteSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteSchemaRaw(requestParameters, initOverrides); + async deleteSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteSchemaRaw(schema, initOverrides); } /** * Get a schema by name. */ - async getSchemaRaw(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async getSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' @@ -1647,7 +1719,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -1659,8 +1731,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Get a schema by name. */ - async getSchema(requestParameters: SchemasGetSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSchemaRaw(requestParameters, initOverrides); + async getSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSchemaRaw(schema, initOverrides); return await response.value(); } @@ -1668,6 +1740,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { * Get schemas. */ async getSchemasRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -1693,8 +1766,10 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Create a new schema. */ - async postSchemaRaw(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createSchemaDto'] == null) { + async postSchemaRaw(createSchemaDto: CreateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createSchemaDto = createSchemaDto; + + if (_createSchemaDto == null) { throw new runtime.RequiredError( 'createSchemaDto', 'Required parameter "createSchemaDto" was null or undefined when calling ().' @@ -1712,7 +1787,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateSchemaDtoToJSON(requestParameters['createSchemaDto']), + body: CreateSchemaDtoToJSON(_createSchemaDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1721,16 +1796,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Create a new schema. */ - async postSchema(requestParameters: SchemasPostSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postSchemaRaw(requestParameters, initOverrides); + async postSchema(createSchemaDto: CreateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postSchemaRaw(createSchemaDto, initOverrides); return await response.value(); } /** * Publish a schema. */ - async publishSchemaRaw(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async publishSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' @@ -1742,7 +1819,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/publish`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/publish`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -1754,23 +1831,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Publish a schema. */ - async publishSchema(requestParameters: SchemasPublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.publishSchemaRaw(requestParameters, initOverrides); + async publishSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.publishSchemaRaw(schema, initOverrides); return await response.value(); } /** * Update a schema category. */ - async putCategoryRaw(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putCategoryRaw(schema: string, changeCategoryDto: ChangeCategoryDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _changeCategoryDto = changeCategoryDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['changeCategoryDto'] == null) { + if (_changeCategoryDto == null) { throw new runtime.RequiredError( 'changeCategoryDto', 'Required parameter "changeCategoryDto" was null or undefined when calling ().' @@ -1784,11 +1864,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/category`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/category`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: ChangeCategoryDtoToJSON(requestParameters['changeCategoryDto']), + body: ChangeCategoryDtoToJSON(_changeCategoryDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1797,23 +1877,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Update a schema category. */ - async putCategory(requestParameters: SchemasPutCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putCategoryRaw(requestParameters, initOverrides); + async putCategory(schema: string, changeCategoryDto: ChangeCategoryDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putCategoryRaw(schema, changeCategoryDto, initOverrides); return await response.value(); } /** * Update the preview urls. */ - async putPreviewUrlsRaw(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putPreviewUrlsRaw(schema: string, requestBody: { [key: string]: string; }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _requestBody = requestBody; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['requestBody'] == null) { + if (_requestBody == null) { throw new runtime.RequiredError( 'requestBody', 'Required parameter "requestBody" was null or undefined when calling ().' @@ -1827,11 +1910,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/preview-urls`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/preview-urls`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: _requestBody, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1840,23 +1923,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Update the preview urls. */ - async putPreviewUrls(requestParameters: SchemasPutPreviewUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putPreviewUrlsRaw(requestParameters, initOverrides); + async putPreviewUrls(schema: string, requestBody: { [key: string]: string; }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putPreviewUrlsRaw(schema, requestBody, initOverrides); return await response.value(); } /** * Update the rules. */ - async putRulesRaw(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putRulesRaw(schema: string, configureFieldRulesDto: ConfigureFieldRulesDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _configureFieldRulesDto = configureFieldRulesDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['configureFieldRulesDto'] == null) { + if (_configureFieldRulesDto == null) { throw new runtime.RequiredError( 'configureFieldRulesDto', 'Required parameter "configureFieldRulesDto" was null or undefined when calling ().' @@ -1870,11 +1956,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/rules`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/rules`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: ConfigureFieldRulesDtoToJSON(requestParameters['configureFieldRulesDto']), + body: ConfigureFieldRulesDtoToJSON(_configureFieldRulesDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1883,23 +1969,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Update the rules. */ - async putRules(requestParameters: SchemasPutRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putRulesRaw(requestParameters, initOverrides); + async putRules(schema: string, configureFieldRulesDto: ConfigureFieldRulesDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putRulesRaw(schema, configureFieldRulesDto, initOverrides); return await response.value(); } /** * Update a schema. */ - async putSchemaRaw(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putSchemaRaw(schema: string, updateSchemaDto: UpdateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _updateSchemaDto = updateSchemaDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['updateSchemaDto'] == null) { + if (_updateSchemaDto == null) { throw new runtime.RequiredError( 'updateSchemaDto', 'Required parameter "updateSchemaDto" was null or undefined when calling ().' @@ -1913,11 +2002,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateSchemaDtoToJSON(requestParameters['updateSchemaDto']), + body: UpdateSchemaDtoToJSON(_updateSchemaDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1926,23 +2015,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Update a schema. */ - async putSchema(requestParameters: SchemasPutSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putSchemaRaw(requestParameters, initOverrides); + async putSchema(schema: string, updateSchemaDto: UpdateSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaRaw(schema, updateSchemaDto, initOverrides); return await response.value(); } /** * Synchronize a schema. */ - async putSchemaSyncRaw(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putSchemaSyncRaw(schema: string, synchronizeSchemaDto: SynchronizeSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _synchronizeSchemaDto = synchronizeSchemaDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['synchronizeSchemaDto'] == null) { + if (_synchronizeSchemaDto == null) { throw new runtime.RequiredError( 'synchronizeSchemaDto', 'Required parameter "synchronizeSchemaDto" was null or undefined when calling ().' @@ -1956,11 +2048,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/sync`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/sync`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: SynchronizeSchemaDtoToJSON(requestParameters['synchronizeSchemaDto']), + body: SynchronizeSchemaDtoToJSON(_synchronizeSchemaDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -1969,23 +2061,26 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Synchronize a schema. */ - async putSchemaSync(requestParameters: SchemasPutSchemaSyncRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putSchemaSyncRaw(requestParameters, initOverrides); + async putSchemaSync(schema: string, synchronizeSchemaDto: SynchronizeSchemaDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putSchemaSyncRaw(schema, synchronizeSchemaDto, initOverrides); return await response.value(); } /** * Update the scripts. */ - async putScriptsRaw(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async putScriptsRaw(schema: string, schemaScriptsDto: SchemaScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + const _schemaScriptsDto = schemaScriptsDto; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' ); } - if (requestParameters['schemaScriptsDto'] == null) { + if (_schemaScriptsDto == null) { throw new runtime.RequiredError( 'schemaScriptsDto', 'Required parameter "schemaScriptsDto" was null or undefined when calling ().' @@ -1999,11 +2094,11 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/scripts`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/scripts`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: SchemaScriptsDtoToJSON(requestParameters['schemaScriptsDto']), + body: SchemaScriptsDtoToJSON(_schemaScriptsDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SchemaDtoFromJSON(jsonValue)); @@ -2012,16 +2107,18 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Update the scripts. */ - async putScripts(requestParameters: SchemasPutScriptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putScriptsRaw(requestParameters, initOverrides); + async putScripts(schema: string, schemaScriptsDto: SchemaScriptsDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putScriptsRaw(schema, schemaScriptsDto, initOverrides); return await response.value(); } /** * Unpublish a schema. */ - async unpublishSchemaRaw(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['schema'] == null) { + async unpublishSchemaRaw(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _schema = schema; + + if (_schema == null) { throw new runtime.RequiredError( 'schema', 'Required parameter "schema" was null or undefined when calling ().' @@ -2033,7 +2130,7 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/schemas/{schema}/unpublish`.replace(`{${"schema"}}`, encodeURIComponent(String((requestParameters as any)['schema']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/schemas/{schema}/unpublish`.replace(`{${"schema"}}`, encodeURIComponent(String(_schema))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -2045,8 +2142,8 @@ export class SchemasApi extends runtime.BaseAPI implements SchemasApiInterface { /** * Unpublish a schema. */ - async unpublishSchema(requestParameters: SchemasUnpublishSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.unpublishSchemaRaw(requestParameters, initOverrides); + async unpublishSchema(schema: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.unpublishSchemaRaw(schema, initOverrides); return await response.value(); } diff --git a/src/generated/apis/SearchApi.ts b/src/generated/apis/SearchApi.ts index 2b16d3c..0c38776 100644 --- a/src/generated/apis/SearchApi.ts +++ b/src/generated/apis/SearchApi.ts @@ -23,6 +23,10 @@ export interface SearchGetSearchResultsRequest { query?: string | null; } +export interface SearchGetSearchResultsRequestRaw { + query?: string | null; +} + /** * SearchApi - interface * @@ -38,12 +42,12 @@ export interface SearchApiInterface { * @throws {RequiredError} * @memberof SearchApiInterface */ - getSearchResultsRaw(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getSearchResultsRaw(requestParameters?: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Get search results. */ - getSearchResults(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getSearchResults(requestParameters?: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; } @@ -56,10 +60,12 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface { * Get search results. */ async getSearchResultsRaw(requestParameters: SearchGetSearchResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _query = requestParameters?.['query']; + const queryParameters: any = {}; - if (requestParameters['query'] != null) { - queryParameters['query'] = requestParameters['query']; + if (_query != null) { + queryParameters['query'] = _query; } const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/generated/apis/StatisticsApi.ts b/src/generated/apis/StatisticsApi.ts index bb6ffca..035bfa5 100644 --- a/src/generated/apis/StatisticsApi.ts +++ b/src/generated/apis/StatisticsApi.ts @@ -25,27 +25,27 @@ import { StorageUsagePerDateDtoFromJSON, } from '../models/index'; -export interface UsagesGetStorageSizesRequest { +export interface UsagesGetStorageSizesRequestRaw { fromDate: Date; toDate: Date; } -export interface UsagesGetStorageSizesForTeamRequest { +export interface UsagesGetStorageSizesForTeamRequestRaw { team: string; fromDate: Date; toDate: Date; } -export interface UsagesGetTeamCurrentStorageSizeForTeamRequest { +export interface UsagesGetTeamCurrentStorageSizeForTeamRequestRaw { team: string; } -export interface UsagesGetUsagesRequest { +export interface UsagesGetUsagesRequestRaw { fromDate: Date; toDate: Date; } -export interface UsagesGetUsagesForTeamRequest { +export interface UsagesGetUsagesForTeamRequestRaw { team: string; fromDate: Date; toDate: Date; @@ -95,12 +95,12 @@ export interface StatisticsApiInterface { * @throws {RequiredError} * @memberof StatisticsApiInterface */ - getStorageSizesRaw(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getStorageSizesRaw(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Get asset usage by date for app. */ - getStorageSizes(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getStorageSizes(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * @@ -112,12 +112,12 @@ export interface StatisticsApiInterface { * @throws {RequiredError} * @memberof StatisticsApiInterface */ - getStorageSizesForTeamRaw(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getStorageSizesForTeamRaw(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Get asset usage by date for team. */ - getStorageSizesForTeam(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getStorageSizesForTeam(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * @@ -127,12 +127,12 @@ export interface StatisticsApiInterface { * @throws {RequiredError} * @memberof StatisticsApiInterface */ - getTeamCurrentStorageSizeForTeamRaw(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTeamCurrentStorageSizeForTeamRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get total asset size for team. */ - getTeamCurrentStorageSizeForTeam(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getTeamCurrentStorageSizeForTeam(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -143,12 +143,12 @@ export interface StatisticsApiInterface { * @throws {RequiredError} * @memberof StatisticsApiInterface */ - getUsagesRaw(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getUsagesRaw(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get api calls in date range for app. */ - getUsages(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getUsages(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -160,12 +160,12 @@ export interface StatisticsApiInterface { * @throws {RequiredError} * @memberof StatisticsApiInterface */ - getUsagesForTeamRaw(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getUsagesForTeamRaw(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get api calls in date range for team. */ - getUsagesForTeam(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getUsagesForTeam(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -178,6 +178,7 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter * Get total asset size for app. */ async getCurrentStorageSizeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -204,6 +205,7 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter * Get api calls as log file. */ async getLogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -229,15 +231,18 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get asset usage by date for app. */ - async getStorageSizesRaw(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['fromDate'] == null) { + async getStorageSizesRaw(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _fromDate = fromDate; + const _toDate = toDate; + + if (_fromDate == null) { throw new runtime.RequiredError( 'fromDate', 'Required parameter "fromDate" was null or undefined when calling ().' ); } - if (requestParameters['toDate'] == null) { + if (_toDate == null) { throw new runtime.RequiredError( 'toDate', 'Required parameter "toDate" was null or undefined when calling ().' @@ -249,7 +254,7 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/usages/storage/{fromDate}/{toDate}`.replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/usages/storage/{fromDate}/{toDate}`.replace(`{${"fromDate"}}`, encodeURIComponent(String(_fromDate))).replace(`{${"toDate"}}`, encodeURIComponent(String(_toDate))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -261,30 +266,34 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get asset usage by date for app. */ - async getStorageSizes(requestParameters: UsagesGetStorageSizesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getStorageSizesRaw(requestParameters, initOverrides); + async getStorageSizes(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getStorageSizesRaw(fromDate, toDate, initOverrides); return await response.value(); } /** * Get asset usage by date for team. */ - async getStorageSizesForTeamRaw(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters['team'] == null) { + async getStorageSizesForTeamRaw(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _team = team; + const _fromDate = fromDate; + const _toDate = toDate; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' ); } - if (requestParameters['fromDate'] == null) { + if (_fromDate == null) { throw new runtime.RequiredError( 'fromDate', 'Required parameter "fromDate" was null or undefined when calling ().' ); } - if (requestParameters['toDate'] == null) { + if (_toDate == null) { throw new runtime.RequiredError( 'toDate', 'Required parameter "toDate" was null or undefined when calling ().' @@ -296,7 +305,7 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/usages/storage/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/usages/storage/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace(`{${"fromDate"}}`, encodeURIComponent(String(_fromDate))).replace(`{${"toDate"}}`, encodeURIComponent(String(_toDate))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -308,16 +317,18 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get asset usage by date for team. */ - async getStorageSizesForTeam(requestParameters: UsagesGetStorageSizesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getStorageSizesForTeamRaw(requestParameters, initOverrides); + async getStorageSizesForTeam(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getStorageSizesForTeamRaw(team, fromDate, toDate, initOverrides); return await response.value(); } /** * Get total asset size for team. */ - async getTeamCurrentStorageSizeForTeamRaw(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async getTeamCurrentStorageSizeForTeamRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -329,7 +340,7 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/usages/storage/today`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/usages/storage/today`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -341,23 +352,26 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get total asset size for team. */ - async getTeamCurrentStorageSizeForTeam(requestParameters: UsagesGetTeamCurrentStorageSizeForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getTeamCurrentStorageSizeForTeamRaw(requestParameters, initOverrides); + async getTeamCurrentStorageSizeForTeam(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamCurrentStorageSizeForTeamRaw(team, initOverrides); return await response.value(); } /** * Get api calls in date range for app. */ - async getUsagesRaw(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['fromDate'] == null) { + async getUsagesRaw(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _fromDate = fromDate; + const _toDate = toDate; + + if (_fromDate == null) { throw new runtime.RequiredError( 'fromDate', 'Required parameter "fromDate" was null or undefined when calling ().' ); } - if (requestParameters['toDate'] == null) { + if (_toDate == null) { throw new runtime.RequiredError( 'toDate', 'Required parameter "toDate" was null or undefined when calling ().' @@ -369,7 +383,7 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/apps/$app$/usages/calls/{fromDate}/{toDate}`.replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/apps/$app$/usages/calls/{fromDate}/{toDate}`.replace(`{${"fromDate"}}`, encodeURIComponent(String(_fromDate))).replace(`{${"toDate"}}`, encodeURIComponent(String(_toDate))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -381,30 +395,34 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get api calls in date range for app. */ - async getUsages(requestParameters: UsagesGetUsagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUsagesRaw(requestParameters, initOverrides); + async getUsages(fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUsagesRaw(fromDate, toDate, initOverrides); return await response.value(); } /** * Get api calls in date range for team. */ - async getUsagesForTeamRaw(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async getUsagesForTeamRaw(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + const _fromDate = fromDate; + const _toDate = toDate; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' ); } - if (requestParameters['fromDate'] == null) { + if (_fromDate == null) { throw new runtime.RequiredError( 'fromDate', 'Required parameter "fromDate" was null or undefined when calling ().' ); } - if (requestParameters['toDate'] == null) { + if (_toDate == null) { throw new runtime.RequiredError( 'toDate', 'Required parameter "toDate" was null or undefined when calling ().' @@ -416,7 +434,7 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/usages/calls/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"fromDate"}}`, encodeURIComponent(String((requestParameters as any)['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String((requestParameters as any)['toDate']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/usages/calls/{fromDate}/{toDate}`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace(`{${"fromDate"}}`, encodeURIComponent(String(_fromDate))).replace(`{${"toDate"}}`, encodeURIComponent(String(_toDate))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -428,8 +446,8 @@ export class StatisticsApi extends runtime.BaseAPI implements StatisticsApiInter /** * Get api calls in date range for team. */ - async getUsagesForTeam(requestParameters: UsagesGetUsagesForTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUsagesForTeamRaw(requestParameters, initOverrides); + async getUsagesForTeam(team: string, fromDate: Date, toDate: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUsagesForTeamRaw(team, fromDate, toDate, initOverrides); return await response.value(); } diff --git a/src/generated/apis/TeamsApi.ts b/src/generated/apis/TeamsApi.ts index 56bfd23..5a91881 100644 --- a/src/generated/apis/TeamsApi.ts +++ b/src/generated/apis/TeamsApi.ts @@ -31,46 +31,46 @@ import { UpdateTeamDtoToJSON, } from '../models/index'; -export interface TeamContributorsDeleteContributorRequest { +export interface TeamContributorsDeleteContributorRequestRaw { team: string; id: string; } -export interface TeamContributorsDeleteMyselfRequest { +export interface TeamContributorsDeleteMyselfRequestRaw { team: string; } -export interface TeamContributorsGetContributorsRequest { +export interface TeamContributorsGetContributorsRequestRaw { team: string; } -export interface TeamContributorsPostContributorRequest { +export interface TeamContributorsPostContributorRequestRaw { team: string; assignContributorDto: AssignContributorDto; } -export interface TeamsDeleteTeamRequest { +export interface TeamsDeleteTeamRequestRaw { team: string; } -export interface TeamsGetTeamRequest { +export interface TeamsGetTeamRequestRaw { team: string; } -export interface TeamsGetTeamAuthRequest { +export interface TeamsGetTeamAuthRequestRaw { team: string; } -export interface TeamsPostTeamRequest { +export interface TeamsPostTeamRequestRaw { createTeamDto: CreateTeamDto; } -export interface TeamsPutTeamRequest { +export interface TeamsPutTeamRequestRaw { team: string; updateTeamDto: UpdateTeamDto; } -export interface TeamsPutTeamAuthRequest { +export interface TeamsPutTeamAuthRequestRaw { team: string; authSchemeValueDto: AuthSchemeValueDto; } @@ -91,12 +91,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - deleteContributorRaw(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteContributorRaw(team: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove contributor. */ - deleteContributor(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteContributor(team: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -106,12 +106,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - deleteMyselfRaw(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteMyselfRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove yourself. */ - deleteMyself(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteMyself(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -121,12 +121,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - getContributorsRaw(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getContributorsRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get team contributors. */ - getContributors(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getContributors(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -137,12 +137,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - postContributorRaw(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postContributorRaw(team: string, assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Assign contributor to team. */ - postContributor(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postContributor(team: string, assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -152,12 +152,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - deleteTeamRaw(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteTeamRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete the team. */ - deleteTeam(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteTeam(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -167,12 +167,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - getTeamRaw(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTeamRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get an team by ID. */ - getTeam(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getTeam(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -182,12 +182,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - getTeamAuthRaw(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTeamAuthRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the team auth settings. */ - getTeamAuth(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getTeamAuth(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * You can only retrieve the list of teams when you are authenticated as a user (OpenID implicit flow). You will retrieve all teams, where you are assigned as a contributor. @@ -212,13 +212,13 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - postTeamRaw(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postTeamRaw(createTeamDto: CreateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * You can only create an team when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new team automatically. * Create a new team. */ - postTeam(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postTeam(createTeamDto: CreateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -229,12 +229,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - putTeamRaw(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putTeamRaw(team: string, updateTeamDto: UpdateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the team. */ - putTeam(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putTeam(team: string, updateTeamDto: UpdateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -245,12 +245,12 @@ export interface TeamsApiInterface { * @throws {RequiredError} * @memberof TeamsApiInterface */ - putTeamAuthRaw(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putTeamAuthRaw(team: string, authSchemeValueDto: AuthSchemeValueDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the team auth. */ - putTeamAuth(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putTeamAuth(team: string, authSchemeValueDto: AuthSchemeValueDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -262,15 +262,18 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Remove contributor. */ - async deleteContributorRaw(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async deleteContributorRaw(team: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + const _id = id; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' ); } - if (requestParameters['id'] == null) { + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -282,7 +285,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/contributors/{id}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/contributors/{id}`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -294,16 +297,18 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Remove contributor. */ - async deleteContributor(requestParameters: TeamContributorsDeleteContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteContributorRaw(requestParameters, initOverrides); + async deleteContributor(team: string, id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteContributorRaw(team, id, initOverrides); return await response.value(); } /** * Remove yourself. */ - async deleteMyselfRaw(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async deleteMyselfRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -315,7 +320,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/contributors/me`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/contributors/me`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -327,16 +332,18 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Remove yourself. */ - async deleteMyself(requestParameters: TeamContributorsDeleteMyselfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteMyselfRaw(requestParameters, initOverrides); + async deleteMyself(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteMyselfRaw(team, initOverrides); return await response.value(); } /** * Get team contributors. */ - async getContributorsRaw(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async getContributorsRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -348,7 +355,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -360,23 +367,26 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Get team contributors. */ - async getContributors(requestParameters: TeamContributorsGetContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getContributorsRaw(requestParameters, initOverrides); + async getContributors(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getContributorsRaw(team, initOverrides); return await response.value(); } /** * Assign contributor to team. */ - async postContributorRaw(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async postContributorRaw(team: string, assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + const _assignContributorDto = assignContributorDto; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' ); } - if (requestParameters['assignContributorDto'] == null) { + if (_assignContributorDto == null) { throw new runtime.RequiredError( 'assignContributorDto', 'Required parameter "assignContributorDto" was null or undefined when calling ().' @@ -390,11 +400,11 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/contributors`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'POST', headers: headerParameters, query: queryParameters, - body: AssignContributorDtoToJSON(requestParameters['assignContributorDto']), + body: AssignContributorDtoToJSON(_assignContributorDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ContributorsDtoFromJSON(jsonValue)); @@ -403,16 +413,18 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Assign contributor to team. */ - async postContributor(requestParameters: TeamContributorsPostContributorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postContributorRaw(requestParameters, initOverrides); + async postContributor(team: string, assignContributorDto: AssignContributorDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postContributorRaw(team, assignContributorDto, initOverrides); return await response.value(); } /** * Delete the team. */ - async deleteTeamRaw(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async deleteTeamRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -424,7 +436,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -436,15 +448,17 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Delete the team. */ - async deleteTeam(requestParameters: TeamsDeleteTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteTeamRaw(requestParameters, initOverrides); + async deleteTeam(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteTeamRaw(team, initOverrides); } /** * Get an team by ID. */ - async getTeamRaw(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async getTeamRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -456,7 +470,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -468,16 +482,18 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Get an team by ID. */ - async getTeam(requestParameters: TeamsGetTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getTeamRaw(requestParameters, initOverrides); + async getTeam(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamRaw(team, initOverrides); return await response.value(); } /** * Get the team auth settings. */ - async getTeamAuthRaw(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async getTeamAuthRaw(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' @@ -489,7 +505,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -501,8 +517,8 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Get the team auth settings. */ - async getTeamAuth(requestParameters: TeamsGetTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getTeamAuthRaw(requestParameters, initOverrides); + async getTeamAuth(team: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTeamAuthRaw(team, initOverrides); return await response.value(); } @@ -511,6 +527,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { * Get your teams. */ async getTeamsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -538,8 +555,10 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { * You can only create an team when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new team automatically. * Create a new team. */ - async postTeamRaw(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createTeamDto'] == null) { + async postTeamRaw(createTeamDto: CreateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createTeamDto = createTeamDto; + + if (_createTeamDto == null) { throw new runtime.RequiredError( 'createTeamDto', 'Required parameter "createTeamDto" was null or undefined when calling ().' @@ -557,7 +576,7 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateTeamDtoToJSON(requestParameters['createTeamDto']), + body: CreateTeamDtoToJSON(_createTeamDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => TeamDtoFromJSON(jsonValue)); @@ -567,23 +586,26 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { * You can only create an team when you are authenticated as a user (OpenID implicit flow). You will be assigned as owner of the new team automatically. * Create a new team. */ - async postTeam(requestParameters: TeamsPostTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postTeamRaw(requestParameters, initOverrides); + async postTeam(createTeamDto: CreateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postTeamRaw(createTeamDto, initOverrides); return await response.value(); } /** * Update the team. */ - async putTeamRaw(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async putTeamRaw(team: string, updateTeamDto: UpdateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + const _updateTeamDto = updateTeamDto; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' ); } - if (requestParameters['updateTeamDto'] == null) { + if (_updateTeamDto == null) { throw new runtime.RequiredError( 'updateTeamDto', 'Required parameter "updateTeamDto" was null or undefined when calling ().' @@ -597,11 +619,11 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateTeamDtoToJSON(requestParameters['updateTeamDto']), + body: UpdateTeamDtoToJSON(_updateTeamDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => TeamDtoFromJSON(jsonValue)); @@ -610,23 +632,26 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Update the team. */ - async putTeam(requestParameters: TeamsPutTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putTeamRaw(requestParameters, initOverrides); + async putTeam(team: string, updateTeamDto: UpdateTeamDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putTeamRaw(team, updateTeamDto, initOverrides); return await response.value(); } /** * Update the team auth. */ - async putTeamAuthRaw(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['team'] == null) { + async putTeamAuthRaw(team: string, authSchemeValueDto: AuthSchemeValueDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _team = team; + const _authSchemeValueDto = authSchemeValueDto; + + if (_team == null) { throw new runtime.RequiredError( 'team', 'Required parameter "team" was null or undefined when calling ().' ); } - if (requestParameters['authSchemeValueDto'] == null) { + if (_authSchemeValueDto == null) { throw new runtime.RequiredError( 'authSchemeValueDto', 'Required parameter "authSchemeValueDto" was null or undefined when calling ().' @@ -640,11 +665,11 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String((requestParameters as any)['team']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/teams/{team}/auth`.replace(`{${"team"}}`, encodeURIComponent(String(_team))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: AuthSchemeValueDtoToJSON(requestParameters['authSchemeValueDto']), + body: AuthSchemeValueDtoToJSON(_authSchemeValueDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => AuthSchemeResponseDtoFromJSON(jsonValue)); @@ -653,8 +678,8 @@ export class TeamsApi extends runtime.BaseAPI implements TeamsApiInterface { /** * Update the team auth. */ - async putTeamAuth(requestParameters: TeamsPutTeamAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putTeamAuthRaw(requestParameters, initOverrides); + async putTeamAuth(team: string, authSchemeValueDto: AuthSchemeValueDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putTeamAuthRaw(team, authSchemeValueDto, initOverrides); return await response.value(); } diff --git a/src/generated/apis/TemplatesApi.ts b/src/generated/apis/TemplatesApi.ts index 1b31f83..af0a5df 100644 --- a/src/generated/apis/TemplatesApi.ts +++ b/src/generated/apis/TemplatesApi.ts @@ -21,7 +21,7 @@ import { TemplatesDtoFromJSON, } from '../models/index'; -export interface TemplatesGetTemplateRequest { +export interface TemplatesGetTemplateRequestRaw { name: string; } @@ -40,12 +40,12 @@ export interface TemplatesApiInterface { * @throws {RequiredError} * @memberof TemplatesApiInterface */ - getTemplateRaw(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getTemplateRaw(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get template details. */ - getTemplate(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getTemplate(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -71,8 +71,10 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa /** * Get template details. */ - async getTemplateRaw(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['name'] == null) { + async getTemplateRaw(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _name = name; + + if (_name == null) { throw new runtime.RequiredError( 'name', 'Required parameter "name" was null or undefined when calling ().' @@ -84,7 +86,7 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/templates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String((requestParameters as any)['name']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/templates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(_name))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -96,8 +98,8 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa /** * Get template details. */ - async getTemplate(requestParameters: TemplatesGetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getTemplateRaw(requestParameters, initOverrides); + async getTemplate(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getTemplateRaw(name, initOverrides); return await response.value(); } @@ -105,6 +107,7 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa * Get all templates. */ async getTemplatesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/generated/apis/TranslationsApi.ts b/src/generated/apis/TranslationsApi.ts index c14423b..1121374 100644 --- a/src/generated/apis/TranslationsApi.ts +++ b/src/generated/apis/TranslationsApi.ts @@ -21,7 +21,7 @@ import { TranslationDtoFromJSON, } from '../models/index'; -export interface TranslationsPostTranslationRequest { +export interface TranslationsPostTranslationRequestRaw { translateDto: TranslateDto; } @@ -40,12 +40,12 @@ export interface TranslationsApiInterface { * @throws {RequiredError} * @memberof TranslationsApiInterface */ - postTranslationRaw(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postTranslationRaw(translateDto: TranslateDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Translate a text. */ - postTranslation(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postTranslation(translateDto: TranslateDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -57,8 +57,10 @@ export class TranslationsApi extends runtime.BaseAPI implements TranslationsApiI /** * Translate a text. */ - async postTranslationRaw(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['translateDto'] == null) { + async postTranslationRaw(translateDto: TranslateDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _translateDto = translateDto; + + if (_translateDto == null) { throw new runtime.RequiredError( 'translateDto', 'Required parameter "translateDto" was null or undefined when calling ().' @@ -76,7 +78,7 @@ export class TranslationsApi extends runtime.BaseAPI implements TranslationsApiI method: 'POST', headers: headerParameters, query: queryParameters, - body: TranslateDtoToJSON(requestParameters['translateDto']), + body: TranslateDtoToJSON(_translateDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => TranslationDtoFromJSON(jsonValue)); @@ -85,8 +87,8 @@ export class TranslationsApi extends runtime.BaseAPI implements TranslationsApiI /** * Translate a text. */ - async postTranslation(requestParameters: TranslationsPostTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postTranslationRaw(requestParameters, initOverrides); + async postTranslation(translateDto: TranslateDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postTranslationRaw(translateDto, initOverrides); return await response.value(); } diff --git a/src/generated/apis/UserManagementApi.ts b/src/generated/apis/UserManagementApi.ts index fbefac4..e861979 100644 --- a/src/generated/apis/UserManagementApi.ts +++ b/src/generated/apis/UserManagementApi.ts @@ -25,11 +25,11 @@ import { UsersDtoFromJSON, } from '../models/index'; -export interface UserManagementDeleteUserRequest { +export interface UserManagementDeleteUserRequestRaw { id: string; } -export interface UserManagementGetUserRequest { +export interface UserManagementGetUserRequestRaw { id: string; } @@ -39,20 +39,26 @@ export interface UserManagementGetUsersRequest { take?: number; } -export interface UserManagementLockUserRequest { +export interface UserManagementGetUsersRequestRaw { + query?: string | null; + skip?: number; + take?: number; +} + +export interface UserManagementLockUserRequestRaw { id: string; } -export interface UserManagementPostUserRequest { +export interface UserManagementPostUserRequestRaw { createUserDto: CreateUserDto; } -export interface UserManagementPutUserRequest { +export interface UserManagementPutUserRequestRaw { id: string; updateUserDto: UpdateUserDto; } -export interface UserManagementUnlockUserRequest { +export interface UserManagementUnlockUserRequestRaw { id: string; } @@ -71,12 +77,12 @@ export interface UserManagementApiInterface { * @throws {RequiredError} * @memberof UserManagementApiInterface */ - deleteUserRaw(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + deleteUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a User. */ - deleteUser(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + deleteUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -86,12 +92,12 @@ export interface UserManagementApiInterface { * @throws {RequiredError} * @memberof UserManagementApiInterface */ - getUserRaw(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a user by ID. */ - getUser(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -103,12 +109,12 @@ export interface UserManagementApiInterface { * @throws {RequiredError} * @memberof UserManagementApiInterface */ - getUsersRaw(requestParameters: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getUsersRaw(requestParameters?: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get users by query. */ - getUsers(requestParameters: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getUsers(requestParameters?: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -118,12 +124,12 @@ export interface UserManagementApiInterface { * @throws {RequiredError} * @memberof UserManagementApiInterface */ - lockUserRaw(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + lockUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Lock a user. */ - lockUser(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + lockUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -133,12 +139,12 @@ export interface UserManagementApiInterface { * @throws {RequiredError} * @memberof UserManagementApiInterface */ - postUserRaw(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postUserRaw(createUserDto: CreateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new user. */ - postUser(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postUser(createUserDto: CreateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -149,12 +155,12 @@ export interface UserManagementApiInterface { * @throws {RequiredError} * @memberof UserManagementApiInterface */ - putUserRaw(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + putUserRaw(id: string, updateUserDto: UpdateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a user. */ - putUser(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + putUser(id: string, updateUserDto: UpdateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -164,12 +170,12 @@ export interface UserManagementApiInterface { * @throws {RequiredError} * @memberof UserManagementApiInterface */ - unlockUserRaw(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + unlockUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Unlock a user. */ - unlockUser(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + unlockUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -181,8 +187,10 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Delete a User. */ - async deleteUserRaw(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async deleteUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -194,7 +202,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -206,15 +214,17 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Delete a User. */ - async deleteUser(requestParameters: UserManagementDeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.deleteUserRaw(requestParameters, initOverrides); + async deleteUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteUserRaw(id, initOverrides); } /** * Get a user by ID. */ - async getUserRaw(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -226,7 +236,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -238,8 +248,8 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Get a user by ID. */ - async getUser(requestParameters: UserManagementGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserRaw(requestParameters, initOverrides); + async getUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserRaw(id, initOverrides); return await response.value(); } @@ -247,18 +257,22 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement * Get users by query. */ async getUsersRaw(requestParameters: UserManagementGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _query = requestParameters?.['query']; + const _skip = requestParameters?.['skip']; + const _take = requestParameters?.['take']; + const queryParameters: any = {}; - if (requestParameters['query'] != null) { - queryParameters['query'] = requestParameters['query']; + if (_query != null) { + queryParameters['query'] = _query; } - if (requestParameters['skip'] != null) { - queryParameters['skip'] = requestParameters['skip']; + if (_skip != null) { + queryParameters['skip'] = _skip; } - if (requestParameters['take'] != null) { - queryParameters['take'] = requestParameters['take']; + if (_take != null) { + queryParameters['take'] = _take; } const headerParameters: runtime.HTTPHeaders = {}; @@ -284,8 +298,10 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Lock a user. */ - async lockUserRaw(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async lockUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -297,7 +313,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}/lock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/user-management/{id}/lock`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -309,16 +325,18 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Lock a user. */ - async lockUser(requestParameters: UserManagementLockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.lockUserRaw(requestParameters, initOverrides); + async lockUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.lockUserRaw(id, initOverrides); return await response.value(); } /** * Create a new user. */ - async postUserRaw(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createUserDto'] == null) { + async postUserRaw(createUserDto: CreateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _createUserDto = createUserDto; + + if (_createUserDto == null) { throw new runtime.RequiredError( 'createUserDto', 'Required parameter "createUserDto" was null or undefined when calling ().' @@ -336,7 +354,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement method: 'POST', headers: headerParameters, query: queryParameters, - body: CreateUserDtoToJSON(requestParameters['createUserDto']), + body: CreateUserDtoToJSON(_createUserDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); @@ -345,23 +363,26 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Create a new user. */ - async postUser(requestParameters: UserManagementPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.postUserRaw(requestParameters, initOverrides); + async postUser(createUserDto: CreateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.postUserRaw(createUserDto, initOverrides); return await response.value(); } /** * Update a user. */ - async putUserRaw(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async putUserRaw(id: string, updateUserDto: UpdateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + const _updateUserDto = updateUserDto; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' ); } - if (requestParameters['updateUserDto'] == null) { + if (_updateUserDto == null) { throw new runtime.RequiredError( 'updateUserDto', 'Required parameter "updateUserDto" was null or undefined when calling ().' @@ -375,11 +396,11 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/user-management/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, - body: UpdateUserDtoToJSON(requestParameters['updateUserDto']), + body: UpdateUserDtoToJSON(_updateUserDto), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue)); @@ -388,16 +409,18 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Update a user. */ - async putUser(requestParameters: UserManagementPutUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.putUserRaw(requestParameters, initOverrides); + async putUser(id: string, updateUserDto: UpdateUserDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.putUserRaw(id, updateUserDto, initOverrides); return await response.value(); } /** * Unlock a user. */ - async unlockUserRaw(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async unlockUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -409,7 +432,7 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/user-management/{id}/unlock`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/user-management/{id}/unlock`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -421,8 +444,8 @@ export class UserManagementApi extends runtime.BaseAPI implements UserManagement /** * Unlock a user. */ - async unlockUser(requestParameters: UserManagementUnlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.unlockUserRaw(requestParameters, initOverrides); + async unlockUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.unlockUserRaw(id, initOverrides); return await response.value(); } diff --git a/src/generated/apis/UsersApi.ts b/src/generated/apis/UsersApi.ts index cd242b7..a6cd3cd 100644 --- a/src/generated/apis/UsersApi.ts +++ b/src/generated/apis/UsersApi.ts @@ -23,11 +23,11 @@ import { UserDtoFromJSON, } from '../models/index'; -export interface UsersGetUserRequest { +export interface UsersGetUserRequestRaw { id: string; } -export interface UsersGetUserPictureRequest { +export interface UsersGetUserPictureRequestRaw { id: string; } @@ -35,7 +35,11 @@ export interface UsersGetUsersRequest { query?: string; } -export interface UsersPostUserRequest { +export interface UsersGetUsersRequestRaw { + query?: string; +} + +export interface UsersPostUserRequestRaw { updateProfileDto: UpdateProfileDto; } @@ -54,12 +58,12 @@ export interface UsersApiInterface { * @throws {RequiredError} * @memberof UsersApiInterface */ - getUserRaw(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get user by id. */ - getUser(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -69,12 +73,12 @@ export interface UsersApiInterface { * @throws {RequiredError} * @memberof UsersApiInterface */ - getUserPictureRaw(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getUserPictureRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get user picture by id. */ - getUserPicture(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + getUserPicture(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * @@ -98,13 +102,13 @@ export interface UsersApiInterface { * @throws {RequiredError} * @memberof UsersApiInterface */ - getUsersRaw(requestParameters: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + getUsersRaw(requestParameters?: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Search the user by query that contains the email address or the part of the email address. * Get users by query. */ - getUsers(requestParameters: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + getUsers(requestParameters?: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * @@ -114,12 +118,12 @@ export interface UsersApiInterface { * @throws {RequiredError} * @memberof UsersApiInterface */ - postUserRaw(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + postUserRaw(updateProfileDto: UpdateProfileDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the user profile. */ - postUser(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + postUser(updateProfileDto: UpdateProfileDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -131,8 +135,10 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { /** * Get user by id. */ - async getUserRaw(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getUserRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -144,7 +150,7 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -156,16 +162,18 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { /** * Get user by id. */ - async getUser(requestParameters: UsersGetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserRaw(requestParameters, initOverrides); + async getUser(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserRaw(id, initOverrides); return await response.value(); } /** * Get user picture by id. */ - async getUserPictureRaw(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async getUserPictureRaw(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _id = id; + + if (_id == null) { throw new runtime.RequiredError( 'id', 'Required parameter "id" was null or undefined when calling ().' @@ -177,7 +185,7 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/users/{id}/picture`.replace(`{${"id"}}`, encodeURIComponent(String((requestParameters as any)['id']))).replace("$app$", encodeURIComponent(this.appName)), + path: `/api/users/{id}/picture`.replace(`{${"id"}}`, encodeURIComponent(String(_id))).replace("$app$", encodeURIComponent(this.appName)), method: 'GET', headers: headerParameters, query: queryParameters, @@ -189,8 +197,8 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { /** * Get user picture by id. */ - async getUserPicture(requestParameters: UsersGetUserPictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserPictureRaw(requestParameters, initOverrides); + async getUserPicture(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserPictureRaw(id, initOverrides); return await response.value(); } @@ -198,6 +206,7 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { * Get the user resources. */ async getUserResourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -225,10 +234,12 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { * Get users by query. */ async getUsersRaw(requestParameters: UsersGetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const _query = requestParameters?.['query']; + const queryParameters: any = {}; - if (requestParameters['query'] != null) { - queryParameters['query'] = requestParameters['query']; + if (_query != null) { + queryParameters['query'] = _query; } const headerParameters: runtime.HTTPHeaders = {}; @@ -255,8 +266,10 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { /** * Update the user profile. */ - async postUserRaw(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['updateProfileDto'] == null) { + async postUserRaw(updateProfileDto: UpdateProfileDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const _updateProfileDto = updateProfileDto; + + if (_updateProfileDto == null) { throw new runtime.RequiredError( 'updateProfileDto', 'Required parameter "updateProfileDto" was null or undefined when calling ().' @@ -274,7 +287,7 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { method: 'POST', headers: headerParameters, query: queryParameters, - body: UpdateProfileDtoToJSON(requestParameters['updateProfileDto']), + body: UpdateProfileDtoToJSON(_updateProfileDto), }, initOverrides); return new runtime.VoidApiResponse(response); @@ -283,8 +296,8 @@ export class UsersApi extends runtime.BaseAPI implements UsersApiInterface { /** * Update the user profile. */ - async postUser(requestParameters: UsersPostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.postUserRaw(requestParameters, initOverrides); + async postUser(updateProfileDto: UpdateProfileDto, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.postUserRaw(updateProfileDto, initOverrides); } } diff --git a/templates/apis.mustache b/templates/apis.mustache index 4098e3d..f8d6190 100644 --- a/templates/apis.mustache +++ b/templates/apis.mustache @@ -19,8 +19,16 @@ import { {{#operations}} {{#operation}} -{{#allParams.0}} +{{#optionalParams.0}} export interface {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request { +{{#optionalParams}} + {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#hasReadOnly}}Omit<{{{dataType}}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{{dataType}}}{{/hasReadOnly}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}; +{{/optionalParams}} +} + +{{/optionalParams.0}} +{{#allParams.0}} +export interface {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}RequestRaw { {{#allParams}} {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#hasReadOnly}}Omit<{{{dataType}}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{{dataType}}}{{/hasReadOnly}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}; {{/allParams}} @@ -54,7 +62,7 @@ export interface {{classname}}Interface { * @throws {RequiredError} * @memberof {{classname}}Interface */ - {{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + {{vendorExtensions.x-method-name}}Raw({{#requiredParams}}{{paramName}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/requiredParams}}{{#optionalParams.0}}requestParameters?: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/optionalParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** {{#notes}} @@ -71,7 +79,7 @@ export interface {{classname}}Interface { {{vendorExtensions.x-method-name}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; {{/useSingleRequestParameter}} {{#useSingleRequestParameter}} - {{vendorExtensions.x-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; + {{vendorExtensions.x-method-name}}({{#requiredParams}}{{paramName}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/requiredParams}}{{#optionalParams.0}}requestParameters?: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/optionalParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; {{/useSingleRequestParameter}} {{/operation}} @@ -102,10 +110,17 @@ export class {{classname}} extends runtime.BaseAPI { * @deprecated {{/isDeprecated}} */ - async {{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async {{vendorExtensions.x-method-name}}Raw({{#requiredParams}}{{paramName}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/requiredParams}}{{#optionalParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/optionalParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + {{#requiredParams}} + const _{{paramName}} = {{paramName}}; + {{/requiredParams}} + {{#optionalParams}} + const _{{paramName}} = requestParameters?.['{{paramName}}']; + {{/optionalParams}} + {{#allParams}} {{#required}} - if (requestParameters['{{paramName}}'] == null) { + if (_{{paramName}} == null) { throw new runtime.RequiredError( '{{paramName}}', 'Required parameter "{{paramName}}" was null or undefined when calling {{vendorExtensions.x-method-name}}().' @@ -118,27 +133,27 @@ export class {{classname}} extends runtime.BaseAPI { {{#queryParams}} {{#isArray}} - if (requestParameters['{{paramName}}'] != null) { + if (_{{paramName}} != null) { {{#isCollectionFormatMulti}} - queryParameters['{{baseName}}'] = requestParameters['{{paramName}}']; + queryParameters['{{baseName}}'] = _{{paramName}}; {{/isCollectionFormatMulti}} {{^isCollectionFormatMulti}} - queryParameters['{{baseName}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); + queryParameters['{{baseName}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}_{{paramName}}{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); {{/isCollectionFormatMulti}} } {{/isArray}} {{^isArray}} - if (requestParameters['{{paramName}}'] != null) { + if (_{{paramName}} != null) { {{#isDateTimeType}} - queryParameters['{{baseName}}'] = (requestParameters['{{paramName}}'] as any).toISOString(); + queryParameters['{{baseName}}'] = (_{{paramName}} as any).toISOString(); {{/isDateTimeType}} {{^isDateTimeType}} {{#isDateType}} - queryParameters['{{baseName}}'] = (requestParameters['{{paramName}}'] as any).toISOString().substring(0,10); + queryParameters['{{baseName}}'] = (_{{paramName}} as any).toISOString().substring(0,10); {{/isDateType}} {{^isDateType}} - queryParameters['{{baseName}}'] = requestParameters['{{paramName}}']; + queryParameters['{{baseName}}'] = _{{paramName}}; {{/isDateType}} {{/isDateTimeType}} } @@ -159,14 +174,14 @@ export class {{classname}} extends runtime.BaseAPI { {{/bodyParam}} {{#headerParams}} {{#isArray}} - if (requestParameters['{{paramName}}'] != null) { - headerParameters['{{vendorExtensions.x-header-name}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); + if (_{{paramName}} != null) { + headerParameters['{{vendorExtensions.x-header-name}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}_{{paramName}}{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); } {{/isArray}} {{^isArray}} - if (requestParameters['{{paramName}}'] != null) { - headerParameters['{{vendorExtensions.x-header-name}}'] = String(requestParameters['{{paramName}}']); + if (_{{paramName}} != null) { + headerParameters['{{vendorExtensions.x-header-name}}'] = String(_{{paramName}}); } {{/isArray}} @@ -236,36 +251,36 @@ export class {{classname}} extends runtime.BaseAPI { {{#formParams}} {{#isArray}} - if (requestParameters['{{paramName}}'] != null) { + if (_{{paramName}} != null) { {{#isCollectionFormatMulti}} - requestParameters['{{paramName}}'].forEach((element) => { + _{{paramName}}.forEach((element) => { formParams.append('{{baseName}}{{#useSquareBracketsInArrayNames}}[]{{/useSquareBracketsInArrayNames}}', element as any); }) {{/isCollectionFormatMulti}} {{^isCollectionFormatMulti}} - formParams.append('{{baseName}}{{#useSquareBracketsInArrayNames}}[]{{/useSquareBracketsInArrayNames}}', {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"])); + formParams.append('{{baseName}}{{#useSquareBracketsInArrayNames}}[]{{/useSquareBracketsInArrayNames}}', {{#uniqueItems}}Array.from({{/uniqueItems}}_{{paramName}}{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"])); {{/isCollectionFormatMulti}} } {{/isArray}} {{^isArray}} - if (requestParameters['{{paramName}}'] != null) { + if (_{{paramName}} != null) { {{#isDateTimeType}} - formParams.append('{{baseName}}', (requestParameters['{{paramName}}'] as any).toISOString()); + formParams.append('{{baseName}}', (_{{paramName}} as any).toISOString()); {{/isDateTimeType}} {{^isDateTimeType}} {{#isPrimitiveType}} - formParams.append('{{baseName}}', requestParameters['{{paramName}}'] as any); + formParams.append('{{baseName}}', _{{paramName}} as any); {{/isPrimitiveType}} {{^isPrimitiveType}} {{#isEnumRef}} - formParams.append('{{baseName}}', requestParameters['{{paramName}}'] as any); + formParams.append('{{baseName}}', _{{paramName}} as any); {{/isEnumRef}} {{^isEnumRef}} {{^withoutRuntimeChecks}} - formParams.append('{{baseName}}', new Blob([JSON.stringify({{{dataType}}}ToJSON(requestParameters['{{paramName}}']))], { type: "application/json", })); + formParams.append('{{baseName}}', new Blob([JSON.stringify({{{dataType}}}ToJSON(_{{paramName}}))], { type: "application/json", })); {{/withoutRuntimeChecks}}{{#withoutRuntimeChecks}} - formParams.append('{{baseName}}', new Blob([JSON.stringify(requestParameters['{{paramName}}'])], { type: "application/json", })); + formParams.append('{{baseName}}', new Blob([JSON.stringify(_{{paramName}})], { type: "application/json", })); {{/withoutRuntimeChecks}} {{/isEnumRef}} {{/isPrimitiveType}} @@ -276,7 +291,7 @@ export class {{classname}} extends runtime.BaseAPI { {{/formParams}} {{/hasFormParams}} const response = await this.request({ - path: `{{{path}}}`{{#pathParams}}.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String((requestParameters as any)['{{paramName}}']))){{/pathParams}}.replace("$app$", encodeURIComponent(this.appName)), + path: `{{{path}}}`{{#pathParams}}.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String(_{{paramName}}))){{/pathParams}}.replace("$app$", encodeURIComponent(this.appName)), method: '{{httpMethod}}', headers: headerParameters, query: queryParameters, @@ -284,23 +299,23 @@ export class {{classname}} extends runtime.BaseAPI { {{#bodyParam}} {{#isContainer}} {{^withoutRuntimeChecks}} - body: requestParameters['{{paramName}}']{{#isArray}}{{#items}}{{^isPrimitiveType}}!.map({{datatype}}ToJSON){{/isPrimitiveType}}{{/items}}{{/isArray}}, + body: _{{paramName}}{{#isArray}}{{#items}}{{^isPrimitiveType}}!.map({{datatype}}ToJSON){{/isPrimitiveType}}{{/items}}{{/isArray}}, {{/withoutRuntimeChecks}} {{#withoutRuntimeChecks}} - body: requestParameters['{{paramName}}'], + body: _{{paramName}}, {{/withoutRuntimeChecks}} {{/isContainer}} {{^isContainer}} {{^isPrimitiveType}} {{^withoutRuntimeChecks}} - body: {{dataType}}ToJSON(requestParameters['{{paramName}}']), + body: {{dataType}}ToJSON(_{{paramName}}), {{/withoutRuntimeChecks}} {{#withoutRuntimeChecks}} - body: requestParameters['{{paramName}}'], + body: _{{paramName}}, {{/withoutRuntimeChecks}} {{/isPrimitiveType}} {{#isPrimitiveType}} - body: requestParameters['{{paramName}}'] as any, + body: _{{paramName}} as any, {{/isPrimitiveType}} {{/isContainer}} {{/bodyParam}} @@ -387,9 +402,9 @@ export class {{classname}} extends runtime.BaseAPI { } {{/useSingleRequestParameter}} {{#useSingleRequestParameter}} - async {{vendorExtensions.x-method-name}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { + async {{vendorExtensions.x-method-name}}({{#requiredParams}}{{paramName}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/requiredParams}}{{#optionalParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/optionalParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { {{#returnType}} - const response = await this.{{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + const response = await this.{{vendorExtensions.x-method-name}}Raw({{#requiredParams}}{{paramName}}, {{/requiredParams}}{{#optionalParams.0}}requestParameters, {{/optionalParams.0}}initOverrides); {{#isResponseOptional}} switch (response.raw.status) { {{#responses}} @@ -407,7 +422,7 @@ export class {{classname}} extends runtime.BaseAPI { {{/isResponseOptional}} {{/returnType}} {{^returnType}} - await this.{{vendorExtensions.x-method-name}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + await this.{{vendorExtensions.x-method-name}}Raw({{#requiredParams}}{{paramName}}, {{/requiredParams}}{{#optionalParams.0}}requestParameters, {{/optionalParams.0}}initOverrides); {{/returnType}} } {{/useSingleRequestParameter}} diff --git a/tests/_utils.ts b/tests/_utils.ts index b8bf2f7..24c5d5d 100644 --- a/tests/_utils.ts +++ b/tests/_utils.ts @@ -1,5 +1,5 @@ import { SquidexClient } from "../src"; -import https from "https"; +import { Agent, setGlobalDispatcher } from "undici"; let singleClient: { client: SquidexClient; create: (app: string) => SquidexClient }; @@ -13,18 +13,19 @@ export function getClient() { const clientSecret = getEnvironment("CONFIG__CLIENT__SECRET", "xeLd6jFxqbXJrfmNLlO2j1apagGGGSyZJhFnIuHp4I0="); const environment = getEnvironment("CONFIG__SERVER__URL", "http://localhost:8080"); + const httpsAgent = new Agent({ + connect: { + rejectUnauthorized: false, + }, + }); + + setGlobalDispatcher(httpsAgent); + const client = new SquidexClient({ appName, clientId, clientSecret, environment, - middleware: { - pre: async ({ init }) => { - (init as any)["agent"] = new https.Agent({ - rejectUnauthorized: false, - }); - }, - }, }); const create = (app: string) => { diff --git a/tests/assets.test.ts b/tests/assets.test.ts index 20008e8..2659987 100644 --- a/tests/assets.test.ts +++ b/tests/assets.test.ts @@ -11,7 +11,7 @@ describe("Assets", () => { const createdAsset = await client.assets.postAsset({ file: fileBlob }); - const asset = await client.assets.getAsset({ id: createdAsset.id }); + const asset = await client.assets.getAsset(createdAsset.id); expect(asset.id).toEqual(createdAsset.id); expect(asset.fileName).toEqual("logo-wide.png"); expect(asset.fileSize).toEqual(fileInfo.size); @@ -25,10 +25,23 @@ describe("Assets", () => { const createdAsset = await client.assets.postAsset({ file: fileBlob }); - const assetResponse = await client.assets.getAssetContentBySlugRaw({ idOrSlug: createdAsset.id }); + const assetResponse = await client.assets.getAssetContentBySlugRaw(createdAsset.id); const assetBlob = await assetResponse.value(); expect(assetResponse.raw.headers.get("Content-Type")).toEqual("image/png"); expect(assetBlob.size).toEqual(fileInfo.size); }); + + it("should upload and fetch asset from url", async () => { + const fileName = "logo.png"; + const fileUrl = "https://raw.githubusercontent.com/Squidex/squidex/master/media/logo-squared.png"; + + const createdAsset = await client.assets.postAsset({ name: fileName, url: fileUrl }); + + const asset = await client.assets.getAsset(createdAsset.id); + expect(asset.id).toEqual(createdAsset.id); + expect(asset.fileName).toEqual(fileName); + expect(asset.fileSize).toBeGreaterThan(100); + expect(asset.mimeType).toEqual("image/png"); + }); }); diff --git a/tests/contents.test.ts b/tests/contents.test.ts index 50ff556..63d0e94 100644 --- a/tests/contents.test.ts +++ b/tests/contents.test.ts @@ -7,18 +7,16 @@ let createdSchema: SchemaDto; beforeAll(async () => { createdSchema = await client.schemas.postSchema({ - createSchemaDto: { - name: `schema-${guid()}`, - fields: [ - { - name: "field1", - properties: { - fieldType: "String", - }, + name: `schema-${guid()}`, + fields: [ + { + name: "field1", + properties: { + fieldType: "String", }, - ], - isPublished: true, - }, + }, + ], + isPublished: true, }); }); @@ -26,17 +24,19 @@ describe("Contents", () => { it("should create and fetch content", async () => { const value = guid(); - const createdContent = await client.contents.postContent({ - schema: createdSchema.name, - requestBody: { + const createdContent = await client.contents.postContent( + createdSchema.name, + { field1: { iv: value, }, }, - publish: true, - }); + { + publish: true, + }, + ); - const content = await client.contents.getContent({ schema: createdSchema.name, id: createdContent.id }); + const content = await client.contents.getContent(createdSchema.name, createdContent.id); expect(content.data).toEqual({ field1: { iv: value } }); expect(content.lastModified).toBeDefined(); expect(content.lastModifiedBy).toBeDefined(); @@ -46,20 +46,13 @@ describe("Contents", () => { it("should create and fetch unpublished content", async () => { const value = guid(); - const createdContent = await client.contents.postContent({ - schema: createdSchema.name, - requestBody: { - field1: { - iv: value, - }, + const createdContent = await client.contents.postContent(createdSchema.name, { + field1: { + iv: value, }, }); - const content = await client.contents.getContent({ - schema: createdSchema.name, - id: createdContent.id, - unpublished: true, - }); + const content = await client.contents.getContent(createdSchema.name, createdContent.id, { unpublished: true }); expect(content.data).toEqual({ field1: { iv: value } }); expect(content.lastModified).toBeDefined(); expect(content.lastModifiedBy).toBeDefined(); diff --git a/tests/globalSetup.ts b/tests/globalSetup.ts index e56d0d0..73eeff5 100644 --- a/tests/globalSetup.ts +++ b/tests/globalSetup.ts @@ -49,7 +49,7 @@ export async function setup() { await waitForServer(); try { - await client.apps.postApp({ createAppDto: { name: client.appName } }); + await client.apps.postApp({ name: client.appName }); } catch (ex) { if (!(ex instanceof SquidexBadRequestError)) { throw ex; diff --git a/tests/rules.test.ts b/tests/rules.test.ts index 5ce37ac..4563aef 100644 --- a/tests/rules.test.ts +++ b/tests/rules.test.ts @@ -6,17 +6,15 @@ const { client } = getClient(); describe("Rules", () => { it("should create and fetch rule", async () => { const createdRule = await client.rules.postRule({ - createRuleDto: { - action: { - actionType: "Webhook", - method: "POST", - payload: "payload", - payloadType: "text/plain", - url: "https://squidex.io", - } as WebhookRuleActionDto, - trigger: { - triggerType: "Manual", - }, + action: { + actionType: "Webhook", + method: "POST", + payload: "payload", + payloadType: "text/plain", + url: "https://squidex.io", + } as WebhookRuleActionDto, + trigger: { + triggerType: "Manual", }, }); diff --git a/tests/schemas.test.ts b/tests/schemas.test.ts index 6cff147..1c6c472 100644 --- a/tests/schemas.test.ts +++ b/tests/schemas.test.ts @@ -5,21 +5,19 @@ const { client } = getClient(); describe("Schemas", () => { it("should create and fetch schema", async () => { const createdSchema = await client.schemas.postSchema({ - createSchemaDto: { - name: `schema-${guid()}`, - fields: [ - { - name: "field1", - properties: { - fieldType: "String", - }, + name: `schema-${guid()}`, + fields: [ + { + name: "field1", + properties: { + fieldType: "String", }, - ], - isPublished: true, - }, + }, + ], + isPublished: true, }); - const schema = await client.schemas.getSchema({ schema: createdSchema.id }); + const schema = await client.schemas.getSchema(createdSchema.id); expect(schema.name).toEqual(createdSchema.name); expect(schema.fields.length).toEqual(1); expect(schema.fields[0].properties.fieldType).toEqual("String"); diff --git a/tests/userManagement.test.ts b/tests/userManagement.test.ts index 25489e2..bc7c58a 100644 --- a/tests/userManagement.test.ts +++ b/tests/userManagement.test.ts @@ -7,15 +7,13 @@ describe("User management", () => { const email = `user${guid()}@email.com`; const createdUser = await client.userManagement.postUser({ - createUserDto: { - email, - displayName: "Jane Smith", - password: "1q2w3e$R", - permissions: [], - }, + email, + displayName: "Jane Smith", + password: "1q2w3e$R", + permissions: [], }); - const user = await client.userManagement.getUser({ id: createdUser.id }); + const user = await client.userManagement.getUser(createdUser.id); expect(user.email).toEqual(email); expect(user.displayName).toEqual("Jane Smith"); }); From 33c5e0df81e0b0c53654aa586617a6080d0da75b Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 27 Aug 2024 09:46:31 +0200 Subject: [PATCH 16/16] Update version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2df9e4e..8d49c46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@squidex/squidex", - "version": "1.2.1", + "version": "2.0.0-rc1", "private": false, "repository": "https://github.com/squidex/sdk-node", "main": "./index.js",