Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 20, 2023
1 parent 6d0d4be commit 5f3c94c
Show file tree
Hide file tree
Showing 143 changed files with 1,346 additions and 441 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
70 changes: 35 additions & 35 deletions src/api/resources/apps/client/Client.ts

Large diffs are not rendered by default.

50 changes: 30 additions & 20 deletions src/api/resources/assets/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Assets {

public async getAssetContentBySlug(
idOrSlug: string,
more: string | undefined,
more: string,
request: Squidex.AssetsGetAssetContentBySlugRequest = {},
requestOptions?: Assets.RequestOptions
): Promise<{
Expand All @@ -54,6 +54,7 @@ export class Assets {
nofocus,
auto,
force,
deleted,
format,
} = request;
const _queryParams = new URLSearchParams();
Expand Down Expand Up @@ -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);
}
Expand All @@ -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,
Expand Down Expand Up @@ -164,6 +169,7 @@ export class Assets {
nofocus,
auto,
force,
deleted,
format,
} = request;
const _queryParams = new URLSearchParams();
Expand Down Expand Up @@ -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);
}
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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" }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
14 changes: 7 additions & 7 deletions src/api/resources/backups/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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" }),
Expand Down
15 changes: 6 additions & 9 deletions src/api/resources/comments/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]> {
public async getWatchingUsers(resource: string, requestOptions?: Comments.RequestOptions): Promise<string[]> {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.SquidexEnvironment.Default,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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" }),
Expand Down Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 5f3c94c

Please sign in to comment.