Skip to content

Commit e82c07a

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
fix lint
1 parent 7a5a27f commit e82c07a

32 files changed

Lines changed: 1231 additions & 1253 deletions

src/core/endpoints/data_sync/channel/create.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ type RequestParameters = DataSync.CreateChannelParameters & {
3131
*
3232
* @internal
3333
*/
34-
export class CreateChannelRequest<
35-
Response extends DataSync.CreateChannelResponse,
36-
> extends AbstractRequest<Response, Response> {
34+
export class CreateChannelRequest<Response extends DataSync.CreateChannelResponse> extends AbstractRequest<
35+
Response,
36+
Response
37+
> {
3738
constructor(private readonly parameters: RequestParameters) {
3839
super({ method: TransportMethod.POST });
3940
}
@@ -51,8 +52,7 @@ export class CreateChannelRequest<
5152
protected get headers(): Record<string, string> | undefined {
5253
let headers = super.headers ?? {};
5354

54-
if (this.parameters.idempotencyKey)
55-
headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
55+
if (this.parameters.idempotencyKey) headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
5656

5757
return {
5858
...headers,

src/core/endpoints/data_sync/channel/get-all.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ type RequestParameters = DataSync.GetAllChannelsParameters & {
4141
*
4242
* @internal
4343
*/
44-
export class GetAllChannelsRequest<
45-
Response extends DataSync.GetAllChannelsResponse,
46-
> extends AbstractRequest<Response, Response> {
44+
export class GetAllChannelsRequest<Response extends DataSync.GetAllChannelsResponse> extends AbstractRequest<
45+
Response,
46+
Response
47+
> {
4748
constructor(private readonly parameters: RequestParameters) {
4849
super();
4950

src/core/endpoints/data_sync/channel/get.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ type RequestParameters = DataSync.GetChannelParameters & {
3131
*
3232
* @internal
3333
*/
34-
export class GetChannelRequest<
35-
Response extends DataSync.GetChannelResponse,
36-
> extends AbstractRequest<Response, Response> {
34+
export class GetChannelRequest<Response extends DataSync.GetChannelResponse> extends AbstractRequest<
35+
Response,
36+
Response
37+
> {
3738
constructor(private readonly parameters: RequestParameters) {
3839
super();
3940
}

src/core/endpoints/data_sync/channel/patch.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ type RequestParameters = DataSync.PatchChannelParameters & {
3737
*
3838
* @internal
3939
*/
40-
export class PatchChannelRequest<
41-
Response extends DataSync.PatchChannelResponse,
42-
> extends AbstractRequest<Response, Response> {
40+
export class PatchChannelRequest<Response extends DataSync.PatchChannelResponse> extends AbstractRequest<
41+
Response,
42+
Response
43+
> {
4344
constructor(private readonly parameters: RequestParameters) {
4445
super({ method: TransportMethod.PATCH });
4546
}
@@ -60,11 +61,9 @@ export class PatchChannelRequest<
6061
protected get headers(): Record<string, string> | undefined {
6162
let headers = super.headers ?? {};
6263

63-
if (this.parameters.ifMatchesEtag)
64-
headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
64+
if (this.parameters.ifMatchesEtag) headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
6565

66-
if (this.parameters.idempotencyKey)
67-
headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
66+
if (this.parameters.idempotencyKey) headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
6867

6968
return {
7069
...headers,

src/core/endpoints/data_sync/channel/remove.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ type RequestParameters = DataSync.RemoveChannelParameters & {
3333
*
3434
* @internal
3535
*/
36-
export class RemoveChannelRequest<
37-
Response extends DataSync.RemoveChannelResponse,
38-
> extends AbstractRequest<Response, Response> {
36+
export class RemoveChannelRequest<Response extends DataSync.RemoveChannelResponse> extends AbstractRequest<
37+
Response,
38+
Response
39+
> {
3940
constructor(private readonly parameters: RequestParameters) {
4041
super({ method: TransportMethod.DELETE });
4142
}
@@ -51,8 +52,7 @@ export class RemoveChannelRequest<
5152
protected get headers(): Record<string, string> | undefined {
5253
let headers = super.headers ?? {};
5354

54-
if (this.parameters.ifMatchesEtag)
55-
headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
55+
if (this.parameters.ifMatchesEtag) headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
5656

5757
return Object.keys(headers).length > 0 ? headers : undefined;
5858
}

src/core/endpoints/data_sync/channel/update.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ type RequestParameters = DataSync.UpdateChannelParameters & {
3434
*
3535
* @internal
3636
*/
37-
export class UpdateChannelRequest<
38-
Response extends DataSync.UpdateChannelResponse,
39-
> extends AbstractRequest<Response, Response> {
37+
export class UpdateChannelRequest<Response extends DataSync.UpdateChannelResponse> extends AbstractRequest<
38+
Response,
39+
Response
40+
> {
4041
constructor(private readonly parameters: RequestParameters) {
4142
super({ method: TransportMethod.PUT });
4243
}
@@ -55,8 +56,7 @@ export class UpdateChannelRequest<
5556
protected get headers(): Record<string, string> | undefined {
5657
let headers = super.headers ?? {};
5758

58-
if (this.parameters.ifMatchesEtag)
59-
headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
59+
if (this.parameters.ifMatchesEtag) headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
6060

6161
return {
6262
...headers,

src/core/endpoints/data_sync/entity/create.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ type RequestParameters = DataSync.CreateEntityParameters & {
3131
*
3232
* @internal
3333
*/
34-
export class CreateEntityRequest<
35-
Response extends DataSync.CreateEntityResponse,
36-
> extends AbstractRequest<Response, Response> {
34+
export class CreateEntityRequest<Response extends DataSync.CreateEntityResponse> extends AbstractRequest<
35+
Response,
36+
Response
37+
> {
3738
constructor(private readonly parameters: RequestParameters) {
3839
super({ method: TransportMethod.POST });
3940
}
@@ -52,8 +53,7 @@ export class CreateEntityRequest<
5253
protected get headers(): Record<string, string> | undefined {
5354
let headers = super.headers ?? {};
5455

55-
if (this.parameters.idempotencyKey)
56-
headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
56+
if (this.parameters.idempotencyKey) headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
5757

5858
return {
5959
...headers,

src/core/endpoints/data_sync/entity/get-all.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ type RequestParameters = DataSync.GetAllEntitiesParameters & {
4141
*
4242
* @internal
4343
*/
44-
export class GetAllEntitiesRequest<
45-
Response extends DataSync.GetAllEntitiesResponse,
46-
> extends AbstractRequest<Response, Response> {
44+
export class GetAllEntitiesRequest<Response extends DataSync.GetAllEntitiesResponse> extends AbstractRequest<
45+
Response,
46+
Response
47+
> {
4748
constructor(private readonly parameters: RequestParameters) {
4849
super();
4950

src/core/endpoints/data_sync/entity/get.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ type RequestParameters = DataSync.GetEntityParameters & {
3131
*
3232
* @internal
3333
*/
34-
export class GetEntityRequest<
35-
Response extends DataSync.GetEntityResponse,
36-
> extends AbstractRequest<Response, Response> {
34+
export class GetEntityRequest<Response extends DataSync.GetEntityResponse> extends AbstractRequest<Response, Response> {
3735
constructor(private readonly parameters: RequestParameters) {
3836
super();
3937
}

src/core/endpoints/data_sync/entity/patch.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ type RequestParameters = DataSync.PatchEntityParameters & {
3737
*
3838
* @internal
3939
*/
40-
export class PatchEntityRequest<
41-
Response extends DataSync.PatchEntityResponse,
42-
> extends AbstractRequest<Response, Response> {
40+
export class PatchEntityRequest<Response extends DataSync.PatchEntityResponse> extends AbstractRequest<
41+
Response,
42+
Response
43+
> {
4344
constructor(private readonly parameters: RequestParameters) {
4445
super({ method: TransportMethod.PATCH });
4546
}
@@ -60,11 +61,9 @@ export class PatchEntityRequest<
6061
protected get headers(): Record<string, string> | undefined {
6162
let headers = super.headers ?? {};
6263

63-
if (this.parameters.ifMatchesEtag)
64-
headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
64+
if (this.parameters.ifMatchesEtag) headers = { ...headers, 'If-Match': this.parameters.ifMatchesEtag };
6565

66-
if (this.parameters.idempotencyKey)
67-
headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
66+
if (this.parameters.idempotencyKey) headers = { ...headers, 'Idempotency-Key': this.parameters.idempotencyKey };
6867

6968
return {
7069
...headers,

0 commit comments

Comments
 (0)