Skip to content

Commit 3397753

Browse files
committed
Release 0.0.34
1 parent 136f6db commit 3397753

File tree

61 files changed

+971
-912
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+971
-912
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@squidex/squidex",
3-
"version": "0.0.33",
3+
"version": "0.0.34",
44
"private": false,
55
"repository": "https://github.com/squidex/sdk-node",
66
"main": "./index.js",

src/api/resources/apps/client/Client.ts

Lines changed: 125 additions & 130 deletions
Large diffs are not rendered by default.

src/api/resources/assets/client/Client.ts

Lines changed: 74 additions & 79 deletions
Large diffs are not rendered by default.

src/api/resources/backups/client/Client.ts

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
77
import * as stream from "stream";
88
import urlJoin from "url-join";
99
import * as errors from "../../../../errors";
10-
import * as serializers from "../../../../serialization";
1110
import * as Squidex from "../../..";
11+
import * as serializers from "../../../../serialization";
1212
import URLSearchParams from "@ungap/url-search-params";
1313

1414
export declare namespace Backups {
@@ -33,7 +33,7 @@ export class Backups {
3333
Authorization: await this._getAuthorizationHeader(),
3434
"X-Fern-Language": "JavaScript",
3535
"X-Fern-SDK-Name": "@squidex/squidex",
36-
"X-Fern-SDK-Version": "0.0.33",
36+
"X-Fern-SDK-Version": "0.0.34",
3737
},
3838
timeoutMs: 60000,
3939
onError: (error) => {
@@ -45,9 +45,9 @@ export class Backups {
4545
}
4646

4747
/**
48-
* @throws {Squidex.BadRequestError}
49-
* @throws {Squidex.NotFoundError}
50-
* @throws {Squidex.InternalServerError}
48+
* @throws {@link Squidex.BadRequestError}
49+
* @throws {@link Squidex.NotFoundError}
50+
* @throws {@link Squidex.InternalServerError}
5151
*/
5252
public async deleteBackup(id: string): Promise<void> {
5353
const _response = await core.fetcher({
@@ -60,7 +60,7 @@ export class Backups {
6060
Authorization: await this._getAuthorizationHeader(),
6161
"X-Fern-Language": "JavaScript",
6262
"X-Fern-SDK-Name": "@squidex/squidex",
63-
"X-Fern-SDK-Version": "0.0.33",
63+
"X-Fern-SDK-Version": "0.0.34",
6464
},
6565
contentType: "application/json",
6666
timeoutMs: 60000,
@@ -135,7 +135,7 @@ export class Backups {
135135
Authorization: await this._getAuthorizationHeader(),
136136
"X-Fern-Language": "JavaScript",
137137
"X-Fern-SDK-Name": "@squidex/squidex",
138-
"X-Fern-SDK-Version": "0.0.33",
138+
"X-Fern-SDK-Version": "0.0.34",
139139
},
140140
queryParameters: _queryParams,
141141
timeoutMs: 60000,
@@ -148,8 +148,8 @@ export class Backups {
148148
}
149149

150150
/**
151-
* @throws {Squidex.NotFoundError}
152-
* @throws {Squidex.InternalServerError}
151+
* @throws {@link Squidex.NotFoundError}
152+
* @throws {@link Squidex.InternalServerError}
153153
*/
154154
public async getBackups(): Promise<Squidex.BackupJobsDto> {
155155
const _response = await core.fetcher({
@@ -162,7 +162,7 @@ export class Backups {
162162
Authorization: await this._getAuthorizationHeader(),
163163
"X-Fern-Language": "JavaScript",
164164
"X-Fern-SDK-Name": "@squidex/squidex",
165-
"X-Fern-SDK-Version": "0.0.33",
165+
"X-Fern-SDK-Version": "0.0.34",
166166
},
167167
contentType: "application/json",
168168
timeoutMs: 60000,
@@ -213,9 +213,9 @@ export class Backups {
213213
}
214214

215215
/**
216-
* @throws {Squidex.BadRequestError}
217-
* @throws {Squidex.NotFoundError}
218-
* @throws {Squidex.InternalServerError}
216+
* @throws {@link Squidex.BadRequestError}
217+
* @throws {@link Squidex.NotFoundError}
218+
* @throws {@link Squidex.InternalServerError}
219219
*/
220220
public async postBackup(): Promise<void> {
221221
const _response = await core.fetcher({
@@ -228,7 +228,7 @@ export class Backups {
228228
Authorization: await this._getAuthorizationHeader(),
229229
"X-Fern-Language": "JavaScript",
230230
"X-Fern-SDK-Name": "@squidex/squidex",
231-
"X-Fern-SDK-Version": "0.0.33",
231+
"X-Fern-SDK-Version": "0.0.34",
232232
},
233233
contentType: "application/json",
234234
timeoutMs: 60000,
@@ -283,7 +283,7 @@ export class Backups {
283283
}
284284

285285
/**
286-
* @throws {Squidex.InternalServerError}
286+
* @throws {@link Squidex.InternalServerError}
287287
*/
288288
public async getRestoreJob(): Promise<Squidex.RestoreJobDto> {
289289
const _response = await core.fetcher({
@@ -293,7 +293,7 @@ export class Backups {
293293
Authorization: await this._getAuthorizationHeader(),
294294
"X-Fern-Language": "JavaScript",
295295
"X-Fern-SDK-Name": "@squidex/squidex",
296-
"X-Fern-SDK-Version": "0.0.33",
296+
"X-Fern-SDK-Version": "0.0.34",
297297
},
298298
contentType: "application/json",
299299
timeoutMs: 60000,
@@ -342,8 +342,8 @@ export class Backups {
342342
}
343343

344344
/**
345-
* @throws {Squidex.BadRequestError}
346-
* @throws {Squidex.InternalServerError}
345+
* @throws {@link Squidex.BadRequestError}
346+
* @throws {@link Squidex.InternalServerError}
347347
*/
348348
public async postRestoreJob(request: Squidex.RestoreRequestDto): Promise<void> {
349349
const _response = await core.fetcher({
@@ -353,7 +353,7 @@ export class Backups {
353353
Authorization: await this._getAuthorizationHeader(),
354354
"X-Fern-Language": "JavaScript",
355355
"X-Fern-SDK-Name": "@squidex/squidex",
356-
"X-Fern-SDK-Version": "0.0.33",
356+
"X-Fern-SDK-Version": "0.0.34",
357357
},
358358
contentType: "application/json",
359359
body: await serializers.RestoreRequestDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -407,11 +407,6 @@ export class Backups {
407407
}
408408

409409
protected async _getAuthorizationHeader() {
410-
const bearer = await core.Supplier.get(this.options.token);
411-
if (bearer != null) {
412-
return `Bearer ${bearer}`;
413-
}
414-
415-
return undefined;
410+
return `Bearer ${await core.Supplier.get(this.options.token)}`;
416411
}
417412
}

src/api/resources/comments/client/Client.ts

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
import * as environments from "../../../../environments";
66
import * as core from "../../../../core";
7+
import * as Squidex from "../../..";
78
import urlJoin from "url-join";
89
import * as serializers from "../../../../serialization";
910
import * as errors from "../../../../errors";
10-
import * as Squidex from "../../..";
1111
import URLSearchParams from "@ungap/url-search-params";
1212

1313
export declare namespace Comments {
@@ -22,8 +22,8 @@ export class Comments {
2222
constructor(protected readonly options: Comments.Options) {}
2323

2424
/**
25-
* @throws {Squidex.NotFoundError}
26-
* @throws {Squidex.InternalServerError}
25+
* @throws {@link Squidex.NotFoundError}
26+
* @throws {@link Squidex.InternalServerError}
2727
*/
2828
public async getWatchingUsers(resource: string | undefined): Promise<string[]> {
2929
const _response = await core.fetcher({
@@ -36,7 +36,7 @@ export class Comments {
3636
Authorization: await this._getAuthorizationHeader(),
3737
"X-Fern-Language": "JavaScript",
3838
"X-Fern-SDK-Name": "@squidex/squidex",
39-
"X-Fern-SDK-Version": "0.0.33",
39+
"X-Fern-SDK-Version": "0.0.34",
4040
},
4141
contentType: "application/json",
4242
timeoutMs: 60000,
@@ -88,8 +88,8 @@ export class Comments {
8888

8989
/**
9090
* When passing in a version you can retrieve all updates since then.
91-
* @throws {Squidex.NotFoundError}
92-
* @throws {Squidex.InternalServerError}
91+
* @throws {@link Squidex.NotFoundError}
92+
* @throws {@link Squidex.InternalServerError}
9393
*/
9494
public async getComments(
9595
commentsId: string,
@@ -111,7 +111,7 @@ export class Comments {
111111
Authorization: await this._getAuthorizationHeader(),
112112
"X-Fern-Language": "JavaScript",
113113
"X-Fern-SDK-Name": "@squidex/squidex",
114-
"X-Fern-SDK-Version": "0.0.33",
114+
"X-Fern-SDK-Version": "0.0.34",
115115
},
116116
contentType: "application/json",
117117
queryParameters: _queryParams,
@@ -163,9 +163,9 @@ export class Comments {
163163
}
164164

165165
/**
166-
* @throws {Squidex.BadRequestError}
167-
* @throws {Squidex.NotFoundError}
168-
* @throws {Squidex.InternalServerError}
166+
* @throws {@link Squidex.BadRequestError}
167+
* @throws {@link Squidex.NotFoundError}
168+
* @throws {@link Squidex.InternalServerError}
169169
*/
170170
public async postComment(commentsId: string, request: Squidex.UpsertCommentDto): Promise<Squidex.CommentDto> {
171171
const _response = await core.fetcher({
@@ -178,7 +178,7 @@ export class Comments {
178178
Authorization: await this._getAuthorizationHeader(),
179179
"X-Fern-Language": "JavaScript",
180180
"X-Fern-SDK-Name": "@squidex/squidex",
181-
"X-Fern-SDK-Version": "0.0.33",
181+
"X-Fern-SDK-Version": "0.0.34",
182182
},
183183
contentType: "application/json",
184184
body: await serializers.UpsertCommentDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -239,9 +239,9 @@ export class Comments {
239239
}
240240

241241
/**
242-
* @throws {Squidex.BadRequestError}
243-
* @throws {Squidex.NotFoundError}
244-
* @throws {Squidex.InternalServerError}
242+
* @throws {@link Squidex.BadRequestError}
243+
* @throws {@link Squidex.NotFoundError}
244+
* @throws {@link Squidex.InternalServerError}
245245
*/
246246
public async putComment(commentsId: string, commentId: string, request: Squidex.UpsertCommentDto): Promise<void> {
247247
const _response = await core.fetcher({
@@ -254,7 +254,7 @@ export class Comments {
254254
Authorization: await this._getAuthorizationHeader(),
255255
"X-Fern-Language": "JavaScript",
256256
"X-Fern-SDK-Name": "@squidex/squidex",
257-
"X-Fern-SDK-Version": "0.0.33",
257+
"X-Fern-SDK-Version": "0.0.34",
258258
},
259259
contentType: "application/json",
260260
body: await serializers.UpsertCommentDto.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -310,9 +310,9 @@ export class Comments {
310310
}
311311

312312
/**
313-
* @throws {Squidex.BadRequestError}
314-
* @throws {Squidex.NotFoundError}
315-
* @throws {Squidex.InternalServerError}
313+
* @throws {@link Squidex.BadRequestError}
314+
* @throws {@link Squidex.NotFoundError}
315+
* @throws {@link Squidex.InternalServerError}
316316
*/
317317
public async deleteComment(commentsId: string, commentId: string): Promise<void> {
318318
const _response = await core.fetcher({
@@ -325,7 +325,7 @@ export class Comments {
325325
Authorization: await this._getAuthorizationHeader(),
326326
"X-Fern-Language": "JavaScript",
327327
"X-Fern-SDK-Name": "@squidex/squidex",
328-
"X-Fern-SDK-Version": "0.0.33",
328+
"X-Fern-SDK-Version": "0.0.34",
329329
},
330330
contentType: "application/json",
331331
timeoutMs: 60000,
@@ -380,11 +380,6 @@ export class Comments {
380380
}
381381

382382
protected async _getAuthorizationHeader() {
383-
const bearer = await core.Supplier.get(this.options.token);
384-
if (bearer != null) {
385-
return `Bearer ${bearer}`;
386-
}
387-
388-
return undefined;
383+
return `Bearer ${await core.Supplier.get(this.options.token)}`;
389384
}
390385
}

0 commit comments

Comments
 (0)