diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61bca42..e2b82d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v4.0.0 + uses: actions/checkout@v3 - name: Set up node uses: actions/setup-node@v3 @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v4.0.0 + uses: actions/checkout@v3 - name: Set up node uses: actions/setup-node@v3 diff --git a/package.json b/package.json index bb8c7d8..fa4448a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@squidex/squidex", - "version": "1.1.0", + "version": "1.2.0", "private": false, "repository": "https://github.com/squidex/sdk-node", "main": "./index.js", diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts index 647c465..0f8c002 100644 --- a/src/api/resources/apps/client/Client.ts +++ b/src/api/resources/apps/client/Client.ts @@ -44,7 +44,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -113,7 +113,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateAssetScriptsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -189,7 +189,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -260,7 +260,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateClientDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -341,7 +341,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateClientDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -418,7 +418,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -492,7 +492,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -561,7 +561,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AssignContributorDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -637,7 +637,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -712,7 +712,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -786,7 +786,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, onError: (error) => { @@ -824,7 +824,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "Content-Length": (await core.getFormDataContentLength(_request)).toString(), }, contentType: "multipart/form-data; boundary=" + _request.getBoundary(), @@ -901,7 +901,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -975,7 +975,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1044,7 +1044,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AddLanguageDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1124,7 +1124,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateLanguageDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1203,7 +1203,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1277,7 +1277,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1346,7 +1346,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AddRoleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1421,7 +1421,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1491,7 +1491,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateRoleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1567,7 +1567,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1642,7 +1642,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1708,7 +1708,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateAppDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1791,7 +1791,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1854,7 +1854,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1923,7 +1923,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateAppDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1999,7 +1999,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -2072,7 +2072,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.TransferToTeamDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2147,7 +2147,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -2216,7 +2216,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateAppSettingsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2291,7 +2291,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -2360,7 +2360,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AddWorkflowDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2440,7 +2440,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateWorkflowDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2516,7 +2516,7 @@ export class Apps { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/assets/client/Client.ts b/src/api/resources/assets/client/Client.ts index 0f8992c..6838bb2 100644 --- a/src/api/resources/assets/client/Client.ts +++ b/src/api/resources/assets/client/Client.ts @@ -32,7 +32,7 @@ export class Assets { public async getAssetContentBySlug( idOrSlug: string, - more: string | undefined, + more: string, request: Squidex.AssetsGetAssetContentBySlugRequest = {}, requestOptions?: Assets.RequestOptions ): Promise<{ @@ -54,6 +54,7 @@ export class Assets { nofocus, auto, force, + deleted, format, } = request; const _queryParams = new URLSearchParams(); @@ -109,6 +110,10 @@ export class Assets { _queryParams.append("force", force.toString()); } + if (deleted != null) { + _queryParams.append("deleted", deleted.toString()); + } + if (format != null) { _queryParams.append("format", format); } @@ -123,7 +128,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, queryParameters: _queryParams, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -164,6 +169,7 @@ export class Assets { nofocus, auto, force, + deleted, format, } = request; const _queryParams = new URLSearchParams(); @@ -219,6 +225,10 @@ export class Assets { _queryParams.append("force", force.toString()); } + if (deleted != null) { + _queryParams.append("deleted", deleted.toString()); + } + if (format != null) { _queryParams.append("format", format); } @@ -233,7 +243,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, queryParameters: _queryParams, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -280,7 +290,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -350,7 +360,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateAssetFolderDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -430,7 +440,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.RenameAssetFolderDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -506,7 +516,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -580,7 +590,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.MoveAssetFolderDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -656,7 +666,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -726,7 +736,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.RenameTagDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -835,7 +845,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, }, @@ -911,7 +921,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "Content-Length": (await core.getFormDataContentLength(_request)).toString(), }, contentType: "multipart/form-data; boundary=" + _request.getBoundary(), @@ -1002,7 +1012,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-NoTotal": noTotal != null ? noTotal.toString() : undefined, "X-NoSlowTotal": noSlowTotal != null ? noSlowTotal.toString() : undefined, }, @@ -1079,7 +1089,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1153,7 +1163,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "Content-Length": (await core.getFormDataContentLength(_request)).toString(), }, contentType: "multipart/form-data; boundary=" + _request.getBoundary(), @@ -1243,7 +1253,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AnnotateAssetDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1333,7 +1343,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -1407,7 +1417,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.BulkUpdateAssetsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1491,7 +1501,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "Content-Length": (await core.getFormDataContentLength(_request)).toString(), }, contentType: "multipart/form-data; boundary=" + _request.getBoundary(), @@ -1581,7 +1591,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.MoveAssetDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts b/src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts index 00f79ee..3063554 100644 --- a/src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts +++ b/src/api/resources/assets/client/requests/AssetsGetAssetContentBySlugRequest.ts @@ -57,6 +57,10 @@ export interface AssetsGetAssetContentBySlugRequest { * 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. */ diff --git a/src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts b/src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts index 097d5f3..932b3e4 100644 --- a/src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts +++ b/src/api/resources/assets/client/requests/AssetsGetAssetContentRequest.ts @@ -57,6 +57,10 @@ export interface AssetsGetAssetContentRequest { * 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. */ diff --git a/src/api/resources/backups/client/Client.ts b/src/api/resources/backups/client/Client.ts index 8312a2e..2459867 100644 --- a/src/api/resources/backups/client/Client.ts +++ b/src/api/resources/backups/client/Client.ts @@ -46,7 +46,7 @@ export class Backups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, onError: (error) => { @@ -79,7 +79,7 @@ export class Backups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -162,7 +162,7 @@ export class Backups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, queryParameters: _queryParams, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -195,7 +195,7 @@ export class Backups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -261,7 +261,7 @@ export class Backups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -329,7 +329,7 @@ export class Backups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -395,7 +395,7 @@ export class Backups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.RestoreRequestDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/comments/client/Client.ts b/src/api/resources/comments/client/Client.ts index 3f3d1b6..577f6d2 100644 --- a/src/api/resources/comments/client/Client.ts +++ b/src/api/resources/comments/client/Client.ts @@ -31,10 +31,7 @@ export class Comments { * @throws {@link Squidex.NotFoundError} * @throws {@link Squidex.InternalServerError} */ - public async getWatchingUsers( - resource: string | undefined, - requestOptions?: Comments.RequestOptions - ): Promise { + 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, @@ -45,7 +42,7 @@ export class Comments { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -121,7 +118,7 @@ export class Comments { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -192,7 +189,7 @@ export class Comments { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpsertCommentDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -273,7 +270,7 @@ export class Comments { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpsertCommentDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -348,7 +345,7 @@ export class Comments { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/contents/client/Client.ts b/src/api/resources/contents/client/Client.ts index ec3e11c..1ba5254 100644 --- a/src/api/resources/contents/client/Client.ts +++ b/src/api/resources/contents/client/Client.ts @@ -38,8 +38,21 @@ export class Contents { request: Squidex.ContentsGetContentsRequest = {}, requestOptions?: Contents.RequestOptions ): Promise { - const { ids, q, search, top, skip, orderby, filter, flatten, languages, noSlowTotal, noTotal, unpublished } = - request; + 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); @@ -79,7 +92,8 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", + "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, @@ -170,7 +184,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -246,7 +260,7 @@ export class Contents { request: Squidex.ContentsGetContentsPostRequest, requestOptions?: Contents.RequestOptions ): Promise { - const { flatten, languages, noSlowTotal, noTotal, unpublished, body: _body } = request; + 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, @@ -257,7 +271,8 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", + "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, @@ -333,7 +348,7 @@ export class Contents { request: Squidex.ContentsGetContentRequest = {}, requestOptions?: Contents.RequestOptions ): Promise { - const { version, flatten, languages, unpublished } = request; + const { version, fields, flatten, languages, unpublished } = request; const _queryParams = new URLSearchParams(); if (version != null) { _queryParams.append("version", version.toString()); @@ -349,7 +364,8 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", + "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, @@ -439,7 +455,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -527,7 +543,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -612,7 +628,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -708,7 +724,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -784,7 +800,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -849,7 +865,7 @@ export class Contents { request: Squidex.ContentsGetReferencesRequest = {}, requestOptions?: Contents.RequestOptions ): Promise { - const { q, flatten, languages, unpublished, noSlowTotal, noTotal } = request; + const { q, fields, flatten, languages, unpublished, noSlowTotal, noTotal } = request; const _queryParams = new URLSearchParams(); if (q != null) { _queryParams.append("q", q); @@ -865,7 +881,8 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", + "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, @@ -932,7 +949,7 @@ export class Contents { request: Squidex.ContentsGetReferencingRequest = {}, requestOptions?: Contents.RequestOptions ): Promise { - const { q, flatten, languages, unpublished, noSlowTotal, noTotal } = request; + const { q, fields, flatten, languages, unpublished, noSlowTotal, noTotal } = request; const _queryParams = new URLSearchParams(); if (q != null) { _queryParams.append("q", q); @@ -948,7 +965,8 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", + "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, @@ -1029,7 +1047,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -1069,7 +1087,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ImportContentsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1150,7 +1168,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.BulkUpdateContentsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1233,7 +1251,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -1318,7 +1336,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -1402,7 +1420,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -1486,7 +1504,7 @@ export class Contents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", "X-Unpublished": unpublished != null ? unpublished.toString() : undefined, "X-Languages": languages != null ? languages : undefined, }, @@ -1547,6 +1565,375 @@ export class Contents { } } + /** + * You can read the generated documentation for your app at /api/content/{appName}/docs. + */ + public async getGraphQl( + request: Squidex.ContentsGetGraphQlRequest = {}, + requestOptions?: Contents.RequestOptions + ): Promise<{ + data: stream.Readable; + contentLengthInBytes?: number; + contentType?: string; + }> { + const { unpublished } = 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}/graphql` + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@squidex/squidex", + "X-Fern-SDK-Version": "1.2.0", + "X-Unpublished": unpublished != null ? unpublished.toString() : 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. + */ + public async getGraphQl2( + request: Squidex.ContentsGetGraphQl2Request = {}, + requestOptions?: Contents.RequestOptions + ): Promise<{ + data: stream.Readable; + contentLengthInBytes?: number; + contentType?: string; + }> { + const { unpublished } = 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}/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.0", + "X-Unpublished": unpublished != null ? unpublished.toString() : 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.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.0", + "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.0", + "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.0", + }, + 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/requests/AllContentsByPostDto.ts b/src/api/resources/contents/client/requests/AllContentsByPostDto.ts new file mode 100644 index 0000000..fee3707 --- /dev/null +++ b/src/api/resources/contents/client/requests/AllContentsByPostDto.ts @@ -0,0 +1,43 @@ +/** + * 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 index afd6468..e2fb6c4 100644 --- a/src/api/resources/contents/client/requests/ChangeStatusDto.ts +++ b/src/api/resources/contents/client/requests/ChangeStatusDto.ts @@ -8,13 +8,13 @@ export interface ChangeStatusDto { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; /** The new status. `non-empty` */ status: string; /** The due time. */ - dueTime?: string; + 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 new file mode 100644 index 0000000..5af6859 --- /dev/null +++ b/src/api/resources/contents/client/requests/ContentsBulkUpdateAllContentsRequest.ts @@ -0,0 +1,13 @@ +/** + * 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 index 91dcd59..19762f5 100644 --- a/src/api/resources/contents/client/requests/ContentsCreateDraftRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsCreateDraftRequest.ts @@ -8,7 +8,7 @@ export interface ContentsCreateDraftRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; } diff --git a/src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts b/src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts index effc6f4..8294553 100644 --- a/src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsDeleteContentStatusRequest.ts @@ -8,7 +8,7 @@ export interface ContentsDeleteContentStatusRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * 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 index 3316f5e..d0824ba 100644 --- a/src/api/resources/contents/client/requests/ContentsDeleteVersionRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsDeleteVersionRequest.ts @@ -8,7 +8,7 @@ export interface ContentsDeleteVersionRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * 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 new file mode 100644 index 0000000..d27ad5f --- /dev/null +++ b/src/api/resources/contents/client/requests/ContentsGetAllContentsRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 index b7749d7..5a8ae2f 100644 --- a/src/api/resources/contents/client/requests/ContentsGetContentRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsGetContentRequest.ts @@ -7,12 +7,16 @@ 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; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; /** diff --git a/src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts b/src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts index 24f6d13..dd4a4de 100644 --- a/src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsGetContentVersionRequest.ts @@ -8,7 +8,7 @@ export interface ContentsGetContentVersionRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * 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 index 6f68cf8..f1bef02 100644 --- a/src/api/resources/contents/client/requests/ContentsGetContentsPostRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsGetContentsPostRequest.ts @@ -5,12 +5,16 @@ import * as Squidex from "../../../.."; export interface ContentsGetContentsPostRequest { + /** + * The list of content fields (comma-separated). + */ + fields?: string; /** * Provide the data as flat object. */ flatten?: boolean; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; /** diff --git a/src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts b/src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts index b21ae5c..86180ba 100644 --- a/src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsGetContentsRequest.ts @@ -31,12 +31,16 @@ export interface ContentsGetContentsRequest { * Optional OData filter. */ filter?: string; + /** + * The list of content fields (comma-separated). + */ + fields?: string; /** * Provide the data as flat object. */ flatten?: boolean; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; /** diff --git a/src/api/resources/contents/client/requests/ContentsGetGraphQl2Request.ts b/src/api/resources/contents/client/requests/ContentsGetGraphQl2Request.ts new file mode 100644 index 0000000..8a2f954 --- /dev/null +++ b/src/api/resources/contents/client/requests/ContentsGetGraphQl2Request.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ContentsGetGraphQl2Request { + /** + * 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 new file mode 100644 index 0000000..902c82a --- /dev/null +++ b/src/api/resources/contents/client/requests/ContentsGetGraphQlRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ContentsGetGraphQlRequest { + /** + * 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 index 3dd2f64..72f917e 100644 --- a/src/api/resources/contents/client/requests/ContentsGetReferencesRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsGetReferencesRequest.ts @@ -7,12 +7,16 @@ 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; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; /** diff --git a/src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts b/src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts index fe8492b..4edea17 100644 --- a/src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsGetReferencingRequest.ts @@ -7,12 +7,16 @@ 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; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; /** diff --git a/src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts b/src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts index f6f5012..b636fd1 100644 --- a/src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsPatchContentRequest.ts @@ -10,7 +10,7 @@ export interface ContentsPatchContentRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * 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 index 73d1be9..830c6a5 100644 --- a/src/api/resources/contents/client/requests/ContentsPostContentRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsPostContentRequest.ts @@ -22,7 +22,7 @@ export interface ContentsPostContentRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; body: Record; diff --git a/src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts b/src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts index ba0a58a..9e658ae 100644 --- a/src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsPostUpsertContentRequest.ts @@ -22,7 +22,7 @@ export interface ContentsPostUpsertContentRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * 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 index e30a969..33172f8 100644 --- a/src/api/resources/contents/client/requests/ContentsPutContentRequest.ts +++ b/src/api/resources/contents/client/requests/ContentsPutContentRequest.ts @@ -10,7 +10,7 @@ export interface ContentsPutContentRequest { */ unpublished?: boolean; /** - * Only resolve these languages (comma-separated). + * The list of languages to resolve (comma-separated). */ languages?: string; body: Record; diff --git a/src/api/resources/contents/client/requests/index.ts b/src/api/resources/contents/client/requests/index.ts index edee20c..2ad253e 100644 --- a/src/api/resources/contents/client/requests/index.ts +++ b/src/api/resources/contents/client/requests/index.ts @@ -10,8 +10,12 @@ export { ContentsGetReferencesRequest } from "./ContentsGetReferencesRequest"; export { ContentsGetReferencingRequest } from "./ContentsGetReferencingRequest"; export { ContentsGetContentVersionRequest } from "./ContentsGetContentVersionRequest"; export { ImportContentsDto } from "./ImportContentsDto"; -export { BulkUpdateContentsDto } from "./BulkUpdateContentsDto"; export { ChangeStatusDto } from "./ChangeStatusDto"; export { ContentsDeleteContentStatusRequest } from "./ContentsDeleteContentStatusRequest"; export { ContentsCreateDraftRequest } from "./ContentsCreateDraftRequest"; export { ContentsDeleteVersionRequest } from "./ContentsDeleteVersionRequest"; +export { ContentsGetGraphQlRequest } from "./ContentsGetGraphQlRequest"; +export { ContentsGetGraphQl2Request } from "./ContentsGetGraphQl2Request"; +export { ContentsGetAllContentsRequest } from "./ContentsGetAllContentsRequest"; +export { AllContentsByPostDto } from "./AllContentsByPostDto"; +export { ContentsBulkUpdateAllContentsRequest } from "./ContentsBulkUpdateAllContentsRequest"; diff --git a/src/api/resources/diagnostics/client/Client.ts b/src/api/resources/diagnostics/client/Client.ts index 6b85ae1..79c5ed9 100644 --- a/src/api/resources/diagnostics/client/Client.ts +++ b/src/api/resources/diagnostics/client/Client.ts @@ -41,7 +41,7 @@ export class Diagnostics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -108,7 +108,7 @@ export class Diagnostics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/eventConsumers/client/Client.ts b/src/api/resources/eventConsumers/client/Client.ts index 1208009..8e4e6c5 100644 --- a/src/api/resources/eventConsumers/client/Client.ts +++ b/src/api/resources/eventConsumers/client/Client.ts @@ -40,7 +40,7 @@ export class EventConsumers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -107,7 +107,7 @@ export class EventConsumers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -185,7 +185,7 @@ export class EventConsumers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -263,7 +263,7 @@ export class EventConsumers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/history/client/Client.ts b/src/api/resources/history/client/Client.ts index 66c67a6..b47be48 100644 --- a/src/api/resources/history/client/Client.ts +++ b/src/api/resources/history/client/Client.ts @@ -51,7 +51,7 @@ export class History { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -127,7 +127,7 @@ export class History { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/languages/client/Client.ts b/src/api/resources/languages/client/Client.ts index b23319b..1b99736 100644 --- a/src/api/resources/languages/client/Client.ts +++ b/src/api/resources/languages/client/Client.ts @@ -41,7 +41,7 @@ export class Languages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/news/client/Client.ts b/src/api/resources/news/client/Client.ts index cf9d956..4705ae9 100644 --- a/src/api/resources/news/client/Client.ts +++ b/src/api/resources/news/client/Client.ts @@ -50,7 +50,7 @@ export class News { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/notifications/client/Client.ts b/src/api/resources/notifications/client/Client.ts index f4d24f3..9c912c0 100644 --- a/src/api/resources/notifications/client/Client.ts +++ b/src/api/resources/notifications/client/Client.ts @@ -52,7 +52,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -121,7 +121,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ping/client/Client.ts b/src/api/resources/ping/client/Client.ts index f1f5dc4..becf079 100644 --- a/src/api/resources/ping/client/Client.ts +++ b/src/api/resources/ping/client/Client.ts @@ -40,7 +40,7 @@ export class Ping { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -103,7 +103,7 @@ export class Ping { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -161,7 +161,7 @@ export class Ping { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/plans/client/Client.ts b/src/api/resources/plans/client/Client.ts index 8f0b555..42f2ad6 100644 --- a/src/api/resources/plans/client/Client.ts +++ b/src/api/resources/plans/client/Client.ts @@ -41,7 +41,7 @@ export class Plans { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class Plans { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ChangePlanDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -185,7 +185,7 @@ export class Plans { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -255,7 +255,7 @@ export class Plans { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ChangePlanDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/rules/client/Client.ts b/src/api/resources/rules/client/Client.ts index 2491071..2d62ce0 100644 --- a/src/api/resources/rules/client/Client.ts +++ b/src/api/resources/rules/client/Client.ts @@ -41,7 +41,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -104,7 +104,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -173,7 +173,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateRuleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -248,7 +248,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -320,7 +320,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateRuleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -396,7 +396,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -466,7 +466,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -541,7 +541,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -616,7 +616,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -695,7 +695,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -763,7 +763,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -834,7 +834,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateRuleDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -912,7 +912,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -994,7 +994,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -1060,7 +1060,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1128,7 +1128,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1198,7 +1198,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1266,7 +1266,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1329,7 +1329,7 @@ export class Rules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/rules/client/requests/UpdateRuleDto.ts b/src/api/resources/rules/client/requests/UpdateRuleDto.ts index 61113be..1838ed4 100644 --- a/src/api/resources/rules/client/requests/UpdateRuleDto.ts +++ b/src/api/resources/rules/client/requests/UpdateRuleDto.ts @@ -7,7 +7,9 @@ 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/schemas/client/Client.ts b/src/api/resources/schemas/client/Client.ts index fa27aa1..f01572c 100644 --- a/src/api/resources/schemas/client/Client.ts +++ b/src/api/resources/schemas/client/Client.ts @@ -47,7 +47,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AddFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -138,7 +138,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AddFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -227,7 +227,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ConfigureUiFieldsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -307,7 +307,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ReorderFieldsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -388,7 +388,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ReorderFieldsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -469,7 +469,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -549,7 +549,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -630,7 +630,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateFieldDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -711,7 +711,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -791,7 +791,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -872,7 +872,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -952,7 +952,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1033,7 +1033,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1113,7 +1113,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1194,7 +1194,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1274,7 +1274,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1355,7 +1355,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1435,7 +1435,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1516,7 +1516,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1590,7 +1590,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1659,7 +1659,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateSchemaDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1741,7 +1741,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1811,7 +1811,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateSchemaDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -1887,7 +1887,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -1961,7 +1961,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.SynchronizeSchemaDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2041,7 +2041,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ChangeCategoryDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2121,7 +2121,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.schemas.putPreviewUrls.Request.jsonOrThrow(request, { @@ -2203,7 +2203,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.SchemaScriptsDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2283,7 +2283,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.ConfigureFieldRulesDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -2359,7 +2359,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -2434,7 +2434,7 @@ export class Schemas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/schemas/client/requests/CreateSchemaDto.ts b/src/api/resources/schemas/client/requests/CreateSchemaDto.ts index 489580d..43a8363 100644 --- a/src/api/resources/schemas/client/requests/CreateSchemaDto.ts +++ b/src/api/resources/schemas/client/requests/CreateSchemaDto.ts @@ -7,6 +7,7 @@ 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/search/client/Client.ts b/src/api/resources/search/client/Client.ts index 4a507bf..455fa1e 100644 --- a/src/api/resources/search/client/Client.ts +++ b/src/api/resources/search/client/Client.ts @@ -51,7 +51,7 @@ export class Search { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/statistics/client/Client.ts b/src/api/resources/statistics/client/Client.ts index 8c1bada..68668ab 100644 --- a/src/api/resources/statistics/client/Client.ts +++ b/src/api/resources/statistics/client/Client.ts @@ -41,7 +41,7 @@ export class Statistics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class Statistics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -180,7 +180,7 @@ export class Statistics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -245,7 +245,7 @@ export class Statistics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -313,7 +313,7 @@ export class Statistics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -382,7 +382,7 @@ export class Statistics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -452,7 +452,7 @@ export class Statistics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/teams/client/Client.ts b/src/api/resources/teams/client/Client.ts index 99fad8c..aad46b7 100644 --- a/src/api/resources/teams/client/Client.ts +++ b/src/api/resources/teams/client/Client.ts @@ -44,7 +44,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -114,7 +114,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.AssignContributorDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -190,7 +190,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -269,7 +269,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -344,7 +344,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -413,7 +413,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateTeamDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -495,7 +495,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -565,7 +565,7 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateTeamDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts index 94bb05a..36f9920 100644 --- a/src/api/resources/templates/client/Client.ts +++ b/src/api/resources/templates/client/Client.ts @@ -40,7 +40,7 @@ export class Templates { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -106,7 +106,7 @@ export class Templates { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/translations/client/Client.ts b/src/api/resources/translations/client/Client.ts index 0d79960..70968b3 100644 --- a/src/api/resources/translations/client/Client.ts +++ b/src/api/resources/translations/client/Client.ts @@ -44,7 +44,7 @@ export class Translations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.TranslateDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -102,6 +102,82 @@ export class Translations { } } + /** + * @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.0", + }, + 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/requests/AskDto.ts b/src/api/resources/translations/client/requests/AskDto.ts new file mode 100644 index 0000000..943bee9 --- /dev/null +++ b/src/api/resources/translations/client/requests/AskDto.ts @@ -0,0 +1,8 @@ +/** + * 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/index.ts b/src/api/resources/translations/client/requests/index.ts index 23e9414..0025378 100644 --- a/src/api/resources/translations/client/requests/index.ts +++ b/src/api/resources/translations/client/requests/index.ts @@ -1 +1,2 @@ export { TranslateDto } from "./TranslateDto"; +export { AskDto } from "./AskDto"; diff --git a/src/api/resources/userManagement/client/Client.ts b/src/api/resources/userManagement/client/Client.ts index 78d3122..5c3f7c8 100644 --- a/src/api/resources/userManagement/client/Client.ts +++ b/src/api/resources/userManagement/client/Client.ts @@ -58,7 +58,7 @@ export class UserManagement { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -125,7 +125,7 @@ export class UserManagement { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.CreateUserDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -198,7 +198,7 @@ export class UserManagement { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -268,7 +268,7 @@ export class UserManagement { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", body: await serializers.UpdateUserDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -345,7 +345,7 @@ export class UserManagement { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -425,7 +425,7 @@ export class UserManagement { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -510,7 +510,7 @@ export class UserManagement { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 5d01ff7..2a6d9af 100644 --- a/src/api/resources/users/client/Client.ts +++ b/src/api/resources/users/client/Client.ts @@ -42,7 +42,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -90,6 +90,77 @@ export class Users { } } + /** + * @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.0", + }, + 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} @@ -114,7 +185,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", queryParameters: _queryParams, @@ -178,7 +249,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -246,7 +317,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@squidex/squidex", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.2.0", }, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, onError: (error) => { diff --git a/src/api/resources/users/client/requests/UpdateProfileDto.ts b/src/api/resources/users/client/requests/UpdateProfileDto.ts new file mode 100644 index 0000000..ac30237 --- /dev/null +++ b/src/api/resources/users/client/requests/UpdateProfileDto.ts @@ -0,0 +1,8 @@ +/** + * 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/index.ts b/src/api/resources/users/client/requests/index.ts index e1ee2a1..d11076e 100644 --- a/src/api/resources/users/client/requests/index.ts +++ b/src/api/resources/users/client/requests/index.ts @@ -1 +1,2 @@ +export { UpdateProfileDto } from "./UpdateProfileDto"; export { UsersGetUsersRequest } from "./UsersGetUsersRequest"; diff --git a/src/api/types/AddFieldDto.ts b/src/api/types/AddFieldDto.ts index 1091e52..7f9eb3f 100644 --- a/src/api/types/AddFieldDto.ts +++ b/src/api/types/AddFieldDto.ts @@ -9,5 +9,6 @@ export interface AddFieldDto { name: string; /** Determines the optional partitioning of the field. */ partitioning?: string; + /** The field properties. */ properties: Squidex.FieldPropertiesDto; } diff --git a/src/api/types/AllContentsByPostDto.ts b/src/api/types/AllContentsByPostDto.ts deleted file mode 100644 index 576f753..0000000 --- a/src/api/types/AllContentsByPostDto.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AllContentsByPostDto { - /** The list of ids to query. */ - ids?: string[]; - /** The start of the schedule. */ - scheduledFrom?: string; - /** The end of the schedule. */ - scheduledTo?: string; - /** 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/types/AppDto.ts b/src/api/types/AppDto.ts index 51612dc..80d99c0 100644 --- a/src/api/types/AppDto.ts +++ b/src/api/types/AppDto.ts @@ -16,9 +16,9 @@ export interface AppDto extends Squidex.Resource { /** The version of the app. */ version: number; /** The timestamp when the app has been created. */ - created: string; + created: Date; /** The timestamp when the app has been modified last. */ - lastModified: string; + lastModified: Date; /** The ID of the team. */ teamId?: string; /** The permission level of the user. */ diff --git a/src/api/types/ArrayCalculatedDefaultValue.ts b/src/api/types/ArrayCalculatedDefaultValue.ts new file mode 100644 index 0000000..2bcbe57 --- /dev/null +++ b/src/api/types/ArrayCalculatedDefaultValue.ts @@ -0,0 +1,13 @@ +/** + * 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 index 8583b5a..2e946f2 100644 --- a/src/api/types/ArrayFieldPropertiesDto.ts +++ b/src/api/types/ArrayFieldPropertiesDto.ts @@ -2,11 +2,15 @@ * 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/AssetDto.ts b/src/api/types/AssetDto.ts index f4b67dc..63e0384 100644 --- a/src/api/types/AssetDto.ts +++ b/src/api/types/AssetDto.ts @@ -33,17 +33,19 @@ export interface AssetDto extends Squidex.Resource { 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: string; + created: Date; /** The date and time when the asset has been modified last. */ - lastModified: string; + lastModified: Date; /** The version of the asset. */ version: number; + /** The metadata. */ meta?: Squidex.AssetMeta; /** Determines of the created file is an image. */ isImage: boolean; diff --git a/src/api/types/AssetsFieldPropertiesDto.ts b/src/api/types/AssetsFieldPropertiesDto.ts index 333e8ee..8b85d93 100644 --- a/src/api/types/AssetsFieldPropertiesDto.ts +++ b/src/api/types/AssetsFieldPropertiesDto.ts @@ -5,7 +5,9 @@ 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[]; @@ -33,6 +35,7 @@ export interface AssetsFieldPropertiesDto { 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; diff --git a/src/api/types/BackupJobDto.ts b/src/api/types/BackupJobDto.ts index 76e3ea6..d21b09f 100644 --- a/src/api/types/BackupJobDto.ts +++ b/src/api/types/BackupJobDto.ts @@ -8,12 +8,13 @@ export interface BackupJobDto extends Squidex.Resource { /** The ID of the backup job. */ id: string; /** The time when the job has been started. */ - started: string; + started: Date; /** The time when the job has been stopped. */ - stopped?: string; + 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/BooleanFieldPropertiesDto.ts b/src/api/types/BooleanFieldPropertiesDto.ts index 256737d..017f7ff 100644 --- a/src/api/types/BooleanFieldPropertiesDto.ts +++ b/src/api/types/BooleanFieldPropertiesDto.ts @@ -5,10 +5,12 @@ 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 index f6d5c96..462fa85 100644 --- a/src/api/types/BulkResultDto.ts +++ b/src/api/types/BulkResultDto.ts @@ -5,6 +5,7 @@ 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; diff --git a/src/api/types/BulkUpdateAssetsJobDto.ts b/src/api/types/BulkUpdateAssetsJobDto.ts index 03af97c..07fd5fb 100644 --- a/src/api/types/BulkUpdateAssetsJobDto.ts +++ b/src/api/types/BulkUpdateAssetsJobDto.ts @@ -7,6 +7,7 @@ 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; diff --git a/src/api/resources/contents/client/requests/BulkUpdateContentsDto.ts b/src/api/types/BulkUpdateContentsDto.ts similarity index 95% rename from src/api/resources/contents/client/requests/BulkUpdateContentsDto.ts rename to src/api/types/BulkUpdateContentsDto.ts index 88406b1..16fcfdf 100644 --- a/src/api/resources/contents/client/requests/BulkUpdateContentsDto.ts +++ b/src/api/types/BulkUpdateContentsDto.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Squidex from "../../../.."; +import * as Squidex from ".."; export interface BulkUpdateContentsDto { /** The contents to update or insert. */ diff --git a/src/api/types/BulkUpdateContentsJobDto.ts b/src/api/types/BulkUpdateContentsJobDto.ts index ff5cd8f..3eafb6f 100644 --- a/src/api/types/BulkUpdateContentsJobDto.ts +++ b/src/api/types/BulkUpdateContentsJobDto.ts @@ -5,14 +5,17 @@ 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?: string; + dueTime?: Date; + /** The update type. */ type?: Squidex.BulkUpdateContentType; /** The optional schema id or name. */ schema?: string; diff --git a/src/api/types/CommentDto.ts b/src/api/types/CommentDto.ts index 6348042..b718181 100644 --- a/src/api/types/CommentDto.ts +++ b/src/api/types/CommentDto.ts @@ -6,7 +6,7 @@ export interface CommentDto { /** The ID of the comment. */ id: string; /** The time when the comment was created or updated last. */ - time: string; + time: Date; /** The user who created or updated the comment. */ user: string; /** The text of the comment. */ diff --git a/src/api/types/ComponentsFieldPropertiesDto.ts b/src/api/types/ComponentsFieldPropertiesDto.ts index 472f6f4..299a784 100644 --- a/src/api/types/ComponentsFieldPropertiesDto.ts +++ b/src/api/types/ComponentsFieldPropertiesDto.ts @@ -2,11 +2,15 @@ * 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. */ diff --git a/src/api/types/ContentDto.ts b/src/api/types/ContentDto.ts index 601c5cd..b1b479a 100644 --- a/src/api/types/ContentDto.ts +++ b/src/api/types/ContentDto.ts @@ -12,11 +12,12 @@ export interface ContentDto extends Squidex.Resource { /** 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: string; + created: Date; /** The date and time when the content item has been modified last. */ - lastModified: string; + lastModified: Date; /** The status of the content. */ status: string; /** The new status of the content. */ @@ -27,6 +28,7 @@ export interface ContentDto extends Squidex.Resource { newStatusColor?: string; /** The UI token. */ editToken?: string; + /** The scheduled status. */ scheduleJob?: Squidex.ScheduleJobDto; /** The ID of the schema. */ schemaId: string; diff --git a/src/api/types/ContributorsDto.ts b/src/api/types/ContributorsDto.ts index 31d622e..052a06f 100644 --- a/src/api/types/ContributorsDto.ts +++ b/src/api/types/ContributorsDto.ts @@ -9,5 +9,6 @@ export interface ContributorsDto extends Squidex.Resource { 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/CreateRuleDto.ts b/src/api/types/CreateRuleDto.ts index b6d2d50..ea4042a 100644 --- a/src/api/types/CreateRuleDto.ts +++ b/src/api/types/CreateRuleDto.ts @@ -5,6 +5,8 @@ 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/DateTimeFieldPropertiesDto.ts b/src/api/types/DateTimeFieldPropertiesDto.ts index b353077..004f12c 100644 --- a/src/api/types/DateTimeFieldPropertiesDto.ts +++ b/src/api/types/DateTimeFieldPropertiesDto.ts @@ -5,15 +5,18 @@ 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?: string; + defaultValue?: Date; /** The maximum allowed value for the field value. */ - maxValue?: string; + maxValue?: Date; /** The minimum allowed value for the field value. */ - minValue?: string; + 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 new file mode 100644 index 0000000..77262e5 --- /dev/null +++ b/src/api/types/DeepDetectRuleActionDto.ts @@ -0,0 +1,10 @@ +/** + * 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/FieldDto.ts b/src/api/types/FieldDto.ts index 34cd01b..64d7e6e 100644 --- a/src/api/types/FieldDto.ts +++ b/src/api/types/FieldDto.ts @@ -17,6 +17,7 @@ export interface FieldDto extends Squidex.Resource { 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/FieldRuleDto.ts b/src/api/types/FieldRuleDto.ts index 2125c54..9b58a0c 100644 --- a/src/api/types/FieldRuleDto.ts +++ b/src/api/types/FieldRuleDto.ts @@ -5,6 +5,7 @@ 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; diff --git a/src/api/types/GeolocationFieldPropertiesDto.ts b/src/api/types/GeolocationFieldPropertiesDto.ts index 8e44e02..675169a 100644 --- a/src/api/types/GeolocationFieldPropertiesDto.ts +++ b/src/api/types/GeolocationFieldPropertiesDto.ts @@ -5,5 +5,6 @@ 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 index 7a0f174..3fe6520 100644 --- a/src/api/types/HistoryEventDto.ts +++ b/src/api/types/HistoryEventDto.ts @@ -12,7 +12,7 @@ export interface HistoryEventDto { /** Gets a unique id for the event. */ eventId: string; /** The time when the event happened. */ - created: string; + created: Date; /** The version identifier. */ version: number; } diff --git a/src/api/types/LocalizedValueOfNullableInstant.ts b/src/api/types/LocalizedValueOfNullableInstant.ts index a1b7fc1..37b645c 100644 --- a/src/api/types/LocalizedValueOfNullableInstant.ts +++ b/src/api/types/LocalizedValueOfNullableInstant.ts @@ -2,4 +2,4 @@ * This file was auto-generated by Fern from our API Definition. */ -export type LocalizedValueOfNullableInstant = Record; +export type LocalizedValueOfNullableInstant = Record; diff --git a/src/api/types/NestedFieldDto.ts b/src/api/types/NestedFieldDto.ts index 6e8584e..095fe00 100644 --- a/src/api/types/NestedFieldDto.ts +++ b/src/api/types/NestedFieldDto.ts @@ -15,5 +15,6 @@ export interface NestedFieldDto extends Squidex.Resource { isLocked: boolean; /** Defines if the field is disabled. */ isDisabled: boolean; + /** The field properties. */ properties: Squidex.FieldPropertiesDto; } diff --git a/src/api/types/NumberFieldPropertiesDto.ts b/src/api/types/NumberFieldPropertiesDto.ts index a561d75..c9760fa 100644 --- a/src/api/types/NumberFieldPropertiesDto.ts +++ b/src/api/types/NumberFieldPropertiesDto.ts @@ -5,6 +5,7 @@ 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; @@ -18,5 +19,6 @@ export interface NumberFieldPropertiesDto { 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/PlansDto.ts b/src/api/types/PlansDto.ts index 861ffe8..6bb35bd 100644 --- a/src/api/types/PlansDto.ts +++ b/src/api/types/PlansDto.ts @@ -13,6 +13,8 @@ export interface PlansDto { 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/ReferencesFieldPropertiesDto.ts b/src/api/types/ReferencesFieldPropertiesDto.ts index 0849e8f..1bd69e2 100644 --- a/src/api/types/ReferencesFieldPropertiesDto.ts +++ b/src/api/types/ReferencesFieldPropertiesDto.ts @@ -5,6 +5,7 @@ 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[]; @@ -18,6 +19,9 @@ export interface ReferencesFieldPropertiesDto { 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/RestoreJobDto.ts b/src/api/types/RestoreJobDto.ts index c293887..ff56748 100644 --- a/src/api/types/RestoreJobDto.ts +++ b/src/api/types/RestoreJobDto.ts @@ -10,8 +10,9 @@ export interface RestoreJobDto { /** The status log. */ log: string[]; /** The time when the job has been started. */ - started: string; + started: Date; /** The time when the job has been stopped. */ - stopped?: string; + stopped?: Date; + /** The status of the operation. */ status: Squidex.JobStatus; } diff --git a/src/api/types/RuleActionDto.ts b/src/api/types/RuleActionDto.ts index 94fe8c4..bee50d8 100644 --- a/src/api/types/RuleActionDto.ts +++ b/src/api/types/RuleActionDto.ts @@ -9,6 +9,7 @@ export type RuleActionDto = | Squidex.RuleActionDto.AzureQueue | Squidex.RuleActionDto.Comment | Squidex.RuleActionDto.CreateContent + | Squidex.RuleActionDto.DeepDetect | Squidex.RuleActionDto.Discourse | Squidex.RuleActionDto.ElasticSearch | Squidex.RuleActionDto.Email @@ -41,6 +42,10 @@ export declare namespace RuleActionDto { actionType: "CreateContent"; } + interface DeepDetect extends Squidex.DeepDetectRuleActionDto { + actionType: "DeepDetect"; + } + interface Discourse extends Squidex.DiscourseRuleActionDto { actionType: "Discourse"; } diff --git a/src/api/types/RuleDto.ts b/src/api/types/RuleDto.ts index 17f1bd6..33be036 100644 --- a/src/api/types/RuleDto.ts +++ b/src/api/types/RuleDto.ts @@ -12,21 +12,23 @@ export interface RuleDto extends Squidex.Resource { /** The user that has updated the rule. */ lastModifiedBy: string; /** The date and time when the rule has been created. */ - created: string; + created: Date; /** The date and time when the rule has been modified last. */ - lastModified: string; + 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?: string; + lastExecuted?: Date; } diff --git a/src/api/types/RuleElementPropertyDto.ts b/src/api/types/RuleElementPropertyDto.ts index c573d07..d869ab7 100644 --- a/src/api/types/RuleElementPropertyDto.ts +++ b/src/api/types/RuleElementPropertyDto.ts @@ -5,6 +5,7 @@ import * as Squidex from ".."; export interface RuleElementPropertyDto { + /** The html editor. */ editor: Squidex.RuleFieldEditor; /** The name of the editor. */ name: string; diff --git a/src/api/types/RuleEventDto.ts b/src/api/types/RuleEventDto.ts index 91d9efe..20a181a 100644 --- a/src/api/types/RuleEventDto.ts +++ b/src/api/types/RuleEventDto.ts @@ -8,7 +8,7 @@ export interface RuleEventDto extends Squidex.Resource { /** The ID of the event. */ id: string; /** The time when the event has been created. */ - created: string; + created: Date; /** The description. */ description: string; /** The name of the event. */ @@ -18,7 +18,9 @@ export interface RuleEventDto extends Squidex.Resource { /** The number of calls. */ numCalls: number; /** The next attempt. */ - nextAttempt?: string; + nextAttempt?: Date; + /** The result of the event. */ result: Squidex.RuleResult; + /** The result of the job. */ jobResult: Squidex.RuleJobResult; } diff --git a/src/api/types/ScheduleJobDto.ts b/src/api/types/ScheduleJobDto.ts index 3320440..70a32ba 100644 --- a/src/api/types/ScheduleJobDto.ts +++ b/src/api/types/ScheduleJobDto.ts @@ -8,7 +8,7 @@ export interface ScheduleJobDto { /** The new status. */ status: string; /** The target date and time when the content should be scheduled. */ - dueTime: string; + dueTime: Date; /** The color of the scheduled status. */ color: string; /** The user who schedule the content. */ diff --git a/src/api/types/SchemaDto.ts b/src/api/types/SchemaDto.ts index 50d58b7..f8e2155 100644 --- a/src/api/types/SchemaDto.ts +++ b/src/api/types/SchemaDto.ts @@ -13,20 +13,23 @@ export interface SchemaDto extends Squidex.Resource { 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: string; + created: Date; /** The date and time when the schema has been modified last. */ - lastModified: string; + lastModified: Date; /** The version of the schema. */ version: number; + /** The scripts. */ scripts: Squidex.SchemaScriptsDto; /** The preview Urls. */ previewUrls: Record; diff --git a/src/api/types/SearchResultDto.ts b/src/api/types/SearchResultDto.ts index db0d90c..bf60d4b 100644 --- a/src/api/types/SearchResultDto.ts +++ b/src/api/types/SearchResultDto.ts @@ -7,6 +7,7 @@ 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/SignalRRuleActionDto.ts b/src/api/types/SignalRRuleActionDto.ts index 4a0fed2..24cc550 100644 --- a/src/api/types/SignalRRuleActionDto.ts +++ b/src/api/types/SignalRRuleActionDto.ts @@ -9,6 +9,11 @@ export interface SignalRRuleActionDto { 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; diff --git a/src/api/types/StringFieldPropertiesDto.ts b/src/api/types/StringFieldPropertiesDto.ts index 20d2f14..699b49f 100644 --- a/src/api/types/StringFieldPropertiesDto.ts +++ b/src/api/types/StringFieldPropertiesDto.ts @@ -5,6 +5,7 @@ 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; @@ -38,6 +39,8 @@ export interface StringFieldPropertiesDto { 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/TagsFieldPropertiesDto.ts b/src/api/types/TagsFieldPropertiesDto.ts index 7b5472d..5124876 100644 --- a/src/api/types/TagsFieldPropertiesDto.ts +++ b/src/api/types/TagsFieldPropertiesDto.ts @@ -5,6 +5,7 @@ import * as Squidex from ".."; export interface TagsFieldPropertiesDto { + /** The language specific default value for the field value. */ defaultValues?: Squidex.LocalizedValueOfReadonlyListOfString; /** The default value. */ defaultValue?: string[]; @@ -16,5 +17,6 @@ export interface TagsFieldPropertiesDto { 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 index 022b2c8..948ad3c 100644 --- a/src/api/types/TeamDto.ts +++ b/src/api/types/TeamDto.ts @@ -12,9 +12,9 @@ export interface TeamDto extends Squidex.Resource { /** The version of the team. */ version: number; /** The timestamp when the team has been created. */ - created: string; + created: Date; /** The timestamp when the team has been modified last. */ - lastModified: string; + lastModified: Date; /** The role name of the user. */ roleName?: string; } diff --git a/src/api/types/TranslationDto.ts b/src/api/types/TranslationDto.ts index 5a2e67b..216b006 100644 --- a/src/api/types/TranslationDto.ts +++ b/src/api/types/TranslationDto.ts @@ -5,7 +5,10 @@ import * as Squidex from ".."; export interface TranslationDto { - result: Squidex.TranslationResultCode; + /** 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/TranslationResultCode.ts b/src/api/types/TranslationStatus.ts similarity index 85% rename from src/api/types/TranslationResultCode.ts rename to src/api/types/TranslationStatus.ts index 0a8fb49..e94e37c 100644 --- a/src/api/types/TranslationResultCode.ts +++ b/src/api/types/TranslationStatus.ts @@ -5,7 +5,7 @@ /** * */ -export type TranslationResultCode = +export type TranslationStatus = | "Translated" | "LanguageNotSupported" | "NotTranslated" @@ -13,7 +13,7 @@ export type TranslationResultCode = | "Unauthorized" | "Failed"; -export const TranslationResultCode = { +export const TranslationStatus = { Translated: "Translated", LanguageNotSupported: "LanguageNotSupported", NotTranslated: "NotTranslated", diff --git a/src/api/types/UiFieldPropertiesDto.ts b/src/api/types/UiFieldPropertiesDto.ts index 5f7fafb..9090e31 100644 --- a/src/api/types/UiFieldPropertiesDto.ts +++ b/src/api/types/UiFieldPropertiesDto.ts @@ -5,5 +5,6 @@ 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/UiSettingsDto.ts b/src/api/types/UiSettingsDto.ts deleted file mode 100644 index 5b22255..0000000 --- a/src/api/types/UiSettingsDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UiSettingsDto { - /** True when the user can create apps. */ - canCreateApps: boolean; - /** True when the user can create teams. */ - canCreateTeams: boolean; -} diff --git a/src/api/types/UpdateFieldDto.ts b/src/api/types/UpdateFieldDto.ts index 8834906..7ae2f76 100644 --- a/src/api/types/UpdateFieldDto.ts +++ b/src/api/types/UpdateFieldDto.ts @@ -5,5 +5,6 @@ import * as Squidex from ".."; export interface UpdateFieldDto { + /** The field properties. */ properties: Squidex.FieldPropertiesDto; } diff --git a/src/api/types/UpsertSchemaDto.ts b/src/api/types/UpsertSchemaDto.ts index 1110a9d..4e2243f 100644 --- a/src/api/types/UpsertSchemaDto.ts +++ b/src/api/types/UpsertSchemaDto.ts @@ -5,7 +5,9 @@ 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[]; diff --git a/src/api/types/UpsertSchemaFieldDto.ts b/src/api/types/UpsertSchemaFieldDto.ts index d2c2288..d77b53a 100644 --- a/src/api/types/UpsertSchemaFieldDto.ts +++ b/src/api/types/UpsertSchemaFieldDto.ts @@ -15,6 +15,7 @@ export interface UpsertSchemaFieldDto { 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 index 3b88500..8ea75c0 100644 --- a/src/api/types/UpsertSchemaNestedFieldDto.ts +++ b/src/api/types/UpsertSchemaNestedFieldDto.ts @@ -13,5 +13,6 @@ export interface UpsertSchemaNestedFieldDto { isLocked?: boolean; /** Defines if the field is disabled. */ isDisabled?: boolean; + /** The field properties. */ properties: Squidex.FieldPropertiesDto; } diff --git a/src/api/types/WebhookRuleActionDto.ts b/src/api/types/WebhookRuleActionDto.ts index a1e2d3b..282bed3 100644 --- a/src/api/types/WebhookRuleActionDto.ts +++ b/src/api/types/WebhookRuleActionDto.ts @@ -7,6 +7,7 @@ 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; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index e8b890e..de1c0d5 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -6,19 +6,41 @@ 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 "./UiSettingsDto"; export * from "./UpdateSettingDto"; -export * from "./ContentsDto"; -export * from "./ContentDto"; -export * from "./ContentData"; -export * from "./ContentFieldData"; -export * from "./ScheduleJobDto"; +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"; @@ -49,41 +71,6 @@ export * from "./TagsFieldEditor"; export * from "./UiFieldPropertiesDto"; export * from "./UiFieldEditor"; export * from "./NestedFieldDto"; -export * from "./Resource"; -export * from "./ResourceLink"; -export * from "./StatusInfoDto"; -export * from "./AllContentsByPostDto"; -export * from "./BulkResultDto"; -export * from "./BulkUpdateContentsJobDto"; -export * from "./QueryJsonDto"; -export * from "./SortNode"; -export * from "./PropertyPath"; -export * from "./SortOrder"; -export * from "./BulkUpdateContentType"; -export * from "./UsersDto"; -export * from "./UserDto"; -export * from "./ResourcesDto"; -export * from "./TranslationDto"; -export * from "./TranslationResultCode"; -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 "./SchemasDto"; export * from "./UpsertSchemaDto"; export * from "./UpsertSchemaFieldDto"; @@ -107,6 +94,7 @@ export * from "./AlgoliaRuleActionDto"; export * from "./AzureQueueRuleActionDto"; export * from "./CommentRuleActionDto"; export * from "./CreateContentRuleActionDto"; +export * from "./DeepDetectRuleActionDto"; export * from "./DiscourseRuleActionDto"; export * from "./ElasticSearchRuleActionDto"; export * from "./EmailRuleActionDto"; @@ -142,6 +130,19 @@ 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"; diff --git a/src/serialization/resources/contents/client/bulkUpdateAllContents.ts b/src/serialization/resources/contents/client/bulkUpdateAllContents.ts new file mode 100644 index 0000000..4e3e522 --- /dev/null +++ b/src/serialization/resources/contents/client/bulkUpdateAllContents.ts @@ -0,0 +1,16 @@ +/** + * 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/index.ts b/src/serialization/resources/contents/client/index.ts index 8d8371b..9d13f16 100644 --- a/src/serialization/resources/contents/client/index.ts +++ b/src/serialization/resources/contents/client/index.ts @@ -4,4 +4,5 @@ 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/types/AllContentsByPostDto.ts b/src/serialization/resources/contents/client/requests/AllContentsByPostDto.ts similarity index 63% rename from src/serialization/types/AllContentsByPostDto.ts rename to src/serialization/resources/contents/client/requests/AllContentsByPostDto.ts index e160ce4..2c52a39 100644 --- a/src/serialization/types/AllContentsByPostDto.ts +++ b/src/serialization/resources/contents/client/requests/AllContentsByPostDto.ts @@ -2,17 +2,17 @@ * 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"; +import * as serializers from "../../../.."; +import * as Squidex from "../../../../../api"; +import * as core from "../../../../../core"; -export const AllContentsByPostDto: core.serialization.ObjectSchema< +export const AllContentsByPostDto: core.serialization.Schema< serializers.AllContentsByPostDto.Raw, - Squidex.AllContentsByPostDto + Omit > = core.serialization.object({ ids: core.serialization.list(core.serialization.string()).optional(), - scheduledFrom: core.serialization.string().optional(), - scheduledTo: 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(), diff --git a/src/serialization/resources/contents/client/requests/ChangeStatusDto.ts b/src/serialization/resources/contents/client/requests/ChangeStatusDto.ts index 8ff1f0b..57f6911 100644 --- a/src/serialization/resources/contents/client/requests/ChangeStatusDto.ts +++ b/src/serialization/resources/contents/client/requests/ChangeStatusDto.ts @@ -11,7 +11,7 @@ export const ChangeStatusDto: core.serialization.Schema< Omit > = core.serialization.object({ status: core.serialization.string(), - dueTime: core.serialization.string().optional(), + dueTime: core.serialization.date().optional(), checkReferrers: core.serialization.boolean().optional(), }); diff --git a/src/serialization/resources/contents/client/requests/index.ts b/src/serialization/resources/contents/client/requests/index.ts index de2d44e..2112ac6 100644 --- a/src/serialization/resources/contents/client/requests/index.ts +++ b/src/serialization/resources/contents/client/requests/index.ts @@ -1,3 +1,3 @@ export { ImportContentsDto } from "./ImportContentsDto"; -export { BulkUpdateContentsDto } from "./BulkUpdateContentsDto"; export { ChangeStatusDto } from "./ChangeStatusDto"; +export { AllContentsByPostDto } from "./AllContentsByPostDto"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 003761c..d98f340 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,4 +1,5 @@ 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"; @@ -12,7 +13,7 @@ export * as assets from "./assets"; export * as apps from "./apps"; export * as userManagement from "./userManagement"; export * from "./userManagement/client/requests"; -export * as translations from "./translations"; +export * from "./users/client/requests"; export * from "./translations/client/requests"; export * from "./teams/client/requests"; export * from "./schemas/client/requests"; diff --git a/src/serialization/resources/translations/client/index.ts b/src/serialization/resources/translations/client/index.ts index 415726b..cedfa6d 100644 --- a/src/serialization/resources/translations/client/index.ts +++ b/src/serialization/resources/translations/client/index.ts @@ -1 +1,2 @@ +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 new file mode 100644 index 0000000..798b514 --- /dev/null +++ b/src/serialization/resources/translations/client/postQuestion.ts @@ -0,0 +1,13 @@ +/** + * 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 new file mode 100644 index 0000000..d870086 --- /dev/null +++ b/src/serialization/resources/translations/client/requests/AskDto.ts @@ -0,0 +1,17 @@ +/** + * 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/index.ts b/src/serialization/resources/translations/client/requests/index.ts index 23e9414..0025378 100644 --- a/src/serialization/resources/translations/client/requests/index.ts +++ b/src/serialization/resources/translations/client/requests/index.ts @@ -1 +1,2 @@ export { TranslateDto } from "./TranslateDto"; +export { AskDto } from "./AskDto"; diff --git a/src/serialization/resources/users/client/index.ts b/src/serialization/resources/users/client/index.ts index fbcd6c6..d687eb7 100644 --- a/src/serialization/resources/users/client/index.ts +++ b/src/serialization/resources/users/client/index.ts @@ -1 +1,2 @@ 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 new file mode 100644 index 0000000..d014aee --- /dev/null +++ b/src/serialization/resources/users/client/requests/UpdateProfileDto.ts @@ -0,0 +1,20 @@ +/** + * 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 new file mode 100644 index 0000000..07e194e --- /dev/null +++ b/src/serialization/resources/users/client/requests/index.ts @@ -0,0 +1 @@ +export { UpdateProfileDto } from "./UpdateProfileDto"; diff --git a/src/serialization/types/AppDto.ts b/src/serialization/types/AppDto.ts index 154875a..9c344c5 100644 --- a/src/serialization/types/AppDto.ts +++ b/src/serialization/types/AppDto.ts @@ -13,8 +13,8 @@ export const AppDto: core.serialization.ObjectSchema = 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 index d2a5b8e..a48027e 100644 --- a/src/serialization/types/ArrayFieldPropertiesDto.ts +++ b/src/serialization/types/ArrayFieldPropertiesDto.ts @@ -12,6 +12,9 @@ export const ArrayFieldPropertiesDto: core.serialization.ObjectSchema< > = 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(), }); @@ -19,6 +22,7 @@ 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/AssetDto.ts b/src/serialization/types/AssetDto.ts index 93a1073..d880494 100644 --- a/src/serialization/types/AssetDto.ts +++ b/src/serialization/types/AssetDto.ts @@ -25,8 +25,8 @@ export const AssetDto: core.serialization.ObjectSchema (await import("..")).AssetType), createdBy: core.serialization.string(), lastModifiedBy: core.serialization.string(), - created: core.serialization.string(), - lastModified: core.serialization.string(), + created: core.serialization.date(), + lastModified: core.serialization.date(), version: core.serialization.number(), meta: core.serialization.property( "_meta", diff --git a/src/serialization/types/BackupJobDto.ts b/src/serialization/types/BackupJobDto.ts index 20011a8..0b3167f 100644 --- a/src/serialization/types/BackupJobDto.ts +++ b/src/serialization/types/BackupJobDto.ts @@ -10,8 +10,8 @@ export const BackupJobDto: core.serialization.ObjectSchema (await import("..")).JobStatus), diff --git a/src/serialization/resources/contents/client/requests/BulkUpdateContentsDto.ts b/src/serialization/types/BulkUpdateContentsDto.ts similarity index 81% rename from src/serialization/resources/contents/client/requests/BulkUpdateContentsDto.ts rename to src/serialization/types/BulkUpdateContentsDto.ts index fbf806b..9b2f328 100644 --- a/src/serialization/resources/contents/client/requests/BulkUpdateContentsDto.ts +++ b/src/serialization/types/BulkUpdateContentsDto.ts @@ -2,16 +2,16 @@ * 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"; +import * as serializers from ".."; +import * as Squidex from "../../api"; +import * as core from "../../core"; -export const BulkUpdateContentsDto: core.serialization.Schema< +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) + core.serialization.lazyObject(async () => (await import("..")).BulkUpdateContentsJobDto) ), publish: core.serialization.boolean().optional(), doNotScript: core.serialization.boolean().optional(), diff --git a/src/serialization/types/BulkUpdateContentsJobDto.ts b/src/serialization/types/BulkUpdateContentsJobDto.ts index 97596c5..74d5010 100644 --- a/src/serialization/types/BulkUpdateContentsJobDto.ts +++ b/src/serialization/types/BulkUpdateContentsJobDto.ts @@ -14,7 +14,7 @@ export const BulkUpdateContentsJobDto: core.serialization.ObjectSchema< id: core.serialization.string().optional(), data: core.serialization.lazy(async () => (await import("..")).ContentData).optional(), status: core.serialization.string().optional(), - dueTime: 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(), diff --git a/src/serialization/types/CommentDto.ts b/src/serialization/types/CommentDto.ts index 31cf461..19e7435 100644 --- a/src/serialization/types/CommentDto.ts +++ b/src/serialization/types/CommentDto.ts @@ -9,7 +9,7 @@ import * as core from "../../core"; export const CommentDto: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), - time: core.serialization.string(), + time: core.serialization.date(), user: core.serialization.string(), text: core.serialization.string(), url: core.serialization.string().optional(), diff --git a/src/serialization/types/ComponentsFieldPropertiesDto.ts b/src/serialization/types/ComponentsFieldPropertiesDto.ts index c32ea3b..8d2cd1b 100644 --- a/src/serialization/types/ComponentsFieldPropertiesDto.ts +++ b/src/serialization/types/ComponentsFieldPropertiesDto.ts @@ -12,6 +12,9 @@ export const ComponentsFieldPropertiesDto: core.serialization.ObjectSchema< > = 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(), }); @@ -20,6 +23,7 @@ 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/ContentDto.ts b/src/serialization/types/ContentDto.ts index f5afaf1..3803d60 100644 --- a/src/serialization/types/ContentDto.ts +++ b/src/serialization/types/ContentDto.ts @@ -14,8 +14,8 @@ export const ContentDto: core.serialization.ObjectSchema (await import("..")).ContentData).optional(), - created: core.serialization.string(), - lastModified: core.serialization.string(), + created: core.serialization.date(), + lastModified: core.serialization.date(), status: core.serialization.string(), newStatus: core.serialization.string().optional(), statusColor: core.serialization.string(), diff --git a/src/serialization/types/DateTimeFieldPropertiesDto.ts b/src/serialization/types/DateTimeFieldPropertiesDto.ts index 5d50087..72f4a44 100644 --- a/src/serialization/types/DateTimeFieldPropertiesDto.ts +++ b/src/serialization/types/DateTimeFieldPropertiesDto.ts @@ -11,9 +11,9 @@ export const DateTimeFieldPropertiesDto: core.serialization.ObjectSchema< Squidex.DateTimeFieldPropertiesDto > = core.serialization.object({ defaultValues: core.serialization.lazy(async () => (await import("..")).LocalizedValueOfNullableInstant).optional(), - defaultValue: core.serialization.string().optional(), - maxValue: core.serialization.string().optional(), - minValue: core.serialization.string().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 diff --git a/src/serialization/types/DeepDetectRuleActionDto.ts b/src/serialization/types/DeepDetectRuleActionDto.ts new file mode 100644 index 0000000..e656e12 --- /dev/null +++ b/src/serialization/types/DeepDetectRuleActionDto.ts @@ -0,0 +1,22 @@ +/** + * 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/HistoryEventDto.ts b/src/serialization/types/HistoryEventDto.ts index de7862f..1cc47c6 100644 --- a/src/serialization/types/HistoryEventDto.ts +++ b/src/serialization/types/HistoryEventDto.ts @@ -14,7 +14,7 @@ export const HistoryEventDto: core.serialization.ObjectSchema< eventType: core.serialization.string(), actor: core.serialization.string(), eventId: core.serialization.string(), - created: core.serialization.string(), + created: core.serialization.date(), version: core.serialization.number(), }); diff --git a/src/serialization/types/LocalizedValueOfNullableInstant.ts b/src/serialization/types/LocalizedValueOfNullableInstant.ts index 4cd7788..40e7e6b 100644 --- a/src/serialization/types/LocalizedValueOfNullableInstant.ts +++ b/src/serialization/types/LocalizedValueOfNullableInstant.ts @@ -9,7 +9,7 @@ import * as core from "../../core"; export const LocalizedValueOfNullableInstant: core.serialization.Schema< serializers.LocalizedValueOfNullableInstant.Raw, Squidex.LocalizedValueOfNullableInstant -> = core.serialization.record(core.serialization.string(), core.serialization.string().optional()); +> = core.serialization.record(core.serialization.string(), core.serialization.date().optional()); export declare namespace LocalizedValueOfNullableInstant { type Raw = Record; diff --git a/src/serialization/types/ReferencesFieldPropertiesDto.ts b/src/serialization/types/ReferencesFieldPropertiesDto.ts index 5ca8dc9..6d4ba72 100644 --- a/src/serialization/types/ReferencesFieldPropertiesDto.ts +++ b/src/serialization/types/ReferencesFieldPropertiesDto.ts @@ -19,6 +19,7 @@ export const ReferencesFieldPropertiesDto: core.serialization.ObjectSchema< 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(), }); @@ -32,6 +33,7 @@ export declare namespace ReferencesFieldPropertiesDto { 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/RestoreJobDto.ts b/src/serialization/types/RestoreJobDto.ts index 1137eef..b81f500 100644 --- a/src/serialization/types/RestoreJobDto.ts +++ b/src/serialization/types/RestoreJobDto.ts @@ -10,8 +10,8 @@ export const RestoreJobDto: core.serialization.ObjectSchema (await import("..")).JobStatus), }); diff --git a/src/serialization/types/RuleActionDto.ts b/src/serialization/types/RuleActionDto.ts index c51994f..c808bfc 100644 --- a/src/serialization/types/RuleActionDto.ts +++ b/src/serialization/types/RuleActionDto.ts @@ -13,6 +13,7 @@ export const RuleActionDto: core.serialization.Schema (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), @@ -39,6 +40,7 @@ export declare namespace RuleActionDto { | RuleActionDto.AzureQueue | RuleActionDto.Comment | RuleActionDto.CreateContent + | RuleActionDto.DeepDetect | RuleActionDto.Discourse | RuleActionDto.ElasticSearch | RuleActionDto.Email @@ -70,6 +72,10 @@ export declare namespace RuleActionDto { actionType: "CreateContent"; } + interface DeepDetect extends serializers.DeepDetectRuleActionDto.Raw { + actionType: "DeepDetect"; + } + interface Discourse extends serializers.DiscourseRuleActionDto.Raw { actionType: "Discourse"; } diff --git a/src/serialization/types/RuleDto.ts b/src/serialization/types/RuleDto.ts index 9edb8d1..5fdf42c 100644 --- a/src/serialization/types/RuleDto.ts +++ b/src/serialization/types/RuleDto.ts @@ -11,8 +11,8 @@ export const RuleDto: core.serialization.ObjectSchema (await import("..")).RuleActionDto), numSucceeded: core.serialization.number(), numFailed: core.serialization.number(), - lastExecuted: core.serialization.string().optional(), + lastExecuted: core.serialization.date().optional(), }) .extend(core.serialization.lazyObject(async () => (await import("..")).Resource)); diff --git a/src/serialization/types/RuleEventDto.ts b/src/serialization/types/RuleEventDto.ts index f50a99b..ee32a28 100644 --- a/src/serialization/types/RuleEventDto.ts +++ b/src/serialization/types/RuleEventDto.ts @@ -10,12 +10,12 @@ export const RuleEventDto: core.serialization.ObjectSchema (await import("..")).RuleResult), jobResult: core.serialization.lazy(async () => (await import("..")).RuleJobResult), }) diff --git a/src/serialization/types/ScheduleJobDto.ts b/src/serialization/types/ScheduleJobDto.ts index 28f67d6..9f40bf6 100644 --- a/src/serialization/types/ScheduleJobDto.ts +++ b/src/serialization/types/ScheduleJobDto.ts @@ -10,7 +10,7 @@ export const ScheduleJobDto: core.serialization.ObjectSchema (await import("..")).SchemaPropertiesDto), isSingleton: core.serialization.boolean(), isPublished: core.serialization.boolean(), - created: core.serialization.string(), - lastModified: core.serialization.string(), + 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()), diff --git a/src/serialization/types/TeamDto.ts b/src/serialization/types/TeamDto.ts index dea9468..366c68b 100644 --- a/src/serialization/types/TeamDto.ts +++ b/src/serialization/types/TeamDto.ts @@ -11,8 +11,8 @@ export const TeamDto: core.serialization.ObjectSchema (await import("..")).Resource)); diff --git a/src/serialization/types/TranslationDto.ts b/src/serialization/types/TranslationDto.ts index bef4175..684ca4f 100644 --- a/src/serialization/types/TranslationDto.ts +++ b/src/serialization/types/TranslationDto.ts @@ -8,13 +8,15 @@ import * as core from "../../core"; export const TranslationDto: core.serialization.ObjectSchema = core.serialization.object({ - result: core.serialization.lazy(async () => (await import("..")).TranslationResultCode), + 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 { - result: serializers.TranslationResultCode.Raw; + status: serializers.TranslationStatus.Raw; + result: serializers.TranslationStatus.Raw; text?: string | null; } } diff --git a/src/serialization/types/TranslationResultCode.ts b/src/serialization/types/TranslationStatus.ts similarity index 70% rename from src/serialization/types/TranslationResultCode.ts rename to src/serialization/types/TranslationStatus.ts index 56802a8..dbc8ddb 100644 --- a/src/serialization/types/TranslationResultCode.ts +++ b/src/serialization/types/TranslationStatus.ts @@ -6,9 +6,9 @@ import * as serializers from ".."; import * as Squidex from "../../api"; import * as core from "../../core"; -export const TranslationResultCode: core.serialization.Schema< - serializers.TranslationResultCode.Raw, - Squidex.TranslationResultCode +export const TranslationStatus: core.serialization.Schema< + serializers.TranslationStatus.Raw, + Squidex.TranslationStatus > = core.serialization.enum_([ "Translated", "LanguageNotSupported", @@ -18,6 +18,6 @@ export const TranslationResultCode: core.serialization.Schema< "Failed", ]); -export declare namespace TranslationResultCode { +export declare namespace TranslationStatus { type Raw = "Translated" | "LanguageNotSupported" | "NotTranslated" | "NotConfigured" | "Unauthorized" | "Failed"; } diff --git a/src/serialization/types/UiSettingsDto.ts b/src/serialization/types/UiSettingsDto.ts deleted file mode 100644 index 5250629..0000000 --- a/src/serialization/types/UiSettingsDto.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 UiSettingsDto: core.serialization.ObjectSchema = - core.serialization.object({ - canCreateApps: core.serialization.boolean(), - canCreateTeams: core.serialization.boolean(), - }); - -export declare namespace UiSettingsDto { - interface Raw { - canCreateApps: boolean; - canCreateTeams: boolean; - } -} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index e8b890e..de1c0d5 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -6,19 +6,41 @@ 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 "./UiSettingsDto"; export * from "./UpdateSettingDto"; -export * from "./ContentsDto"; -export * from "./ContentDto"; -export * from "./ContentData"; -export * from "./ContentFieldData"; -export * from "./ScheduleJobDto"; +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"; @@ -49,41 +71,6 @@ export * from "./TagsFieldEditor"; export * from "./UiFieldPropertiesDto"; export * from "./UiFieldEditor"; export * from "./NestedFieldDto"; -export * from "./Resource"; -export * from "./ResourceLink"; -export * from "./StatusInfoDto"; -export * from "./AllContentsByPostDto"; -export * from "./BulkResultDto"; -export * from "./BulkUpdateContentsJobDto"; -export * from "./QueryJsonDto"; -export * from "./SortNode"; -export * from "./PropertyPath"; -export * from "./SortOrder"; -export * from "./BulkUpdateContentType"; -export * from "./UsersDto"; -export * from "./UserDto"; -export * from "./ResourcesDto"; -export * from "./TranslationDto"; -export * from "./TranslationResultCode"; -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 "./SchemasDto"; export * from "./UpsertSchemaDto"; export * from "./UpsertSchemaFieldDto"; @@ -107,6 +94,7 @@ export * from "./AlgoliaRuleActionDto"; export * from "./AzureQueueRuleActionDto"; export * from "./CommentRuleActionDto"; export * from "./CreateContentRuleActionDto"; +export * from "./DeepDetectRuleActionDto"; export * from "./DiscourseRuleActionDto"; export * from "./ElasticSearchRuleActionDto"; export * from "./EmailRuleActionDto"; @@ -142,6 +130,19 @@ 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"; diff --git a/yarn.lock b/yarn.lock index 7efd571..1f153d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4,27 +4,27 @@ "@types/node@17.0.33": version "17.0.33" - resolved "https://registry.npmjs.org/@types/node/-/node-17.0.33.tgz" + 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.npmjs.org/@types/url-join/-/url-join-4.0.1.tgz" + 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.npmjs.org/@ungap/url-search-params/-/url-search-params-0.2.2.tgz" + 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.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + 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.npmjs.org/axios/-/axios-0.27.2.tgz" + 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" @@ -32,24 +32,24 @@ axios@0.27.2: combined-stream@^1.0.8: version "1.0.8" - resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + 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.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + 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.2" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" - integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== + 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: +form-data@4.0.0, form-data@^4.0.0: version "4.0.0" - resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" + 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" @@ -58,32 +58,32 @@ form-data@^4.0.0, form-data@4.0.0: js-base64@3.7.2: version "3.7.2" - resolved "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz" + 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.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + 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.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + 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.npmjs.org/prettier/-/prettier-2.7.1.tgz" + 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.npmjs.org/typescript/-/typescript-4.6.4.tgz" + 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.npmjs.org/url-join/-/url-join-4.0.1.tgz" + resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==