Skip to content

Commit 006bde3

Browse files
committed
chore: type aliases updated
1 parent 3f2e573 commit 006bde3

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

lib/adapters/REST/endpoints/component-type.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import type { AxiosInstance } from 'contentful-sdk-core'
33
import copy from 'fast-copy'
44
import type { SetOptional } from 'type-fest'
55
import type {
6-
ExoCursorPaginatedCollectionProp,
76
GetComponentTypeParams,
87
GetSpaceEnvironmentParams,
98
} from '../../../common-types'
10-
import type {
11-
ComponentTypeProps,
12-
ComponentTypeQueryOptions,
13-
CreateComponentTypeProps,
14-
UpdateComponentTypeProps,
9+
import {
10+
ComponentTypeCollection,
11+
type ComponentTypeProps,
12+
type ComponentTypeQueryOptions,
13+
type CreateComponentTypeProps,
14+
type UpdateComponentTypeProps,
1515
} from '../../../entities/component-type'
1616
import type { RestEndpoint } from '../types'
1717
import * as raw from './raw'
@@ -24,7 +24,7 @@ export const getMany: RestEndpoint<'ComponentType', 'getMany'> = (
2424
params: GetSpaceEnvironmentParams & { query: ComponentTypeQueryOptions },
2525
headers?: RawAxiosRequestHeaders,
2626
) => {
27-
return raw.get<ExoCursorPaginatedCollectionProp<ComponentTypeProps>>(http, getBaseUrl(params), {
27+
return raw.get<ComponentTypeCollection>(http, getBaseUrl(params), {
2828
params: params.query,
2929
headers,
3030
})

lib/adapters/REST/endpoints/experience.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { AxiosInstance } from 'contentful-sdk-core'
33
import copy from 'fast-copy'
44
import type { SetOptional } from 'type-fest'
55
import type {
6-
ExoCursorPaginatedCollectionProp,
76
GetSpaceEnvironmentParams,
87
GetExperienceParams,
98
} from '../../../common-types'
@@ -13,6 +12,7 @@ import type {
1312
ExperienceLocalePublishPayload,
1413
ExperienceProps,
1514
ExperienceQueryOptions,
15+
ExperienceCollection,
1616
} from '../../../entities/experience'
1717
import type { RestEndpoint } from '../types'
1818
import * as raw from './raw'
@@ -25,7 +25,7 @@ export const getMany: RestEndpoint<'Experience', 'getMany'> = (
2525
params: GetSpaceEnvironmentParams & { query: ExperienceQueryOptions },
2626
headers?: RawAxiosRequestHeaders,
2727
) => {
28-
return raw.get<ExoCursorPaginatedCollectionProp<ExperienceProps>>(http, getBaseUrl(params), {
28+
return raw.get<ExperienceCollection>(http, getBaseUrl(params), {
2929
params: params.query,
3030
headers,
3131
})

lib/adapters/REST/endpoints/fragment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { AxiosInstance } from 'contentful-sdk-core'
33
import copy from 'fast-copy'
44
import type { SetOptional } from 'type-fest'
55
import type {
6-
ExoCursorPaginatedCollectionProp,
76
GetFragmentParams,
87
GetSpaceEnvironmentParams,
98
} from '../../../common-types'
@@ -12,6 +11,7 @@ import type {
1211
FragmentProps,
1312
FragmentQueryOptions,
1413
UpdateFragmentProps,
14+
FragmentCollection,
1515
} from '../../../entities/fragment'
1616
import type { RestEndpoint } from '../types'
1717
import * as raw from './raw'
@@ -24,7 +24,7 @@ export const getMany: RestEndpoint<'Fragment', 'getMany'> = (
2424
params: GetSpaceEnvironmentParams & { query: FragmentQueryOptions },
2525
headers?: RawAxiosRequestHeaders,
2626
) => {
27-
return raw.get<ExoCursorPaginatedCollectionProp<FragmentProps>>(http, getBaseUrl(params), {
27+
return raw.get<FragmentCollection>(http, getBaseUrl(params), {
2828
params: params.query,
2929
headers,
3030
})

lib/adapters/REST/endpoints/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { AxiosInstance } from 'contentful-sdk-core'
33
import copy from 'fast-copy'
44
import type { SetOptional } from 'type-fest'
55
import type {
6-
ExoCursorPaginatedCollectionProp,
76
GetSpaceEnvironmentParams,
87
GetTemplateParams,
98
} from '../../../common-types'
@@ -12,6 +11,7 @@ import type {
1211
TemplateProps,
1312
TemplateQueryOptions,
1413
UpdateTemplateProps,
14+
TemplateCollection
1515
} from '../../../entities/template'
1616
import type { RestEndpoint } from '../types'
1717
import * as raw from './raw'
@@ -24,7 +24,7 @@ export const getMany: RestEndpoint<'Template', 'getMany'> = (
2424
params: GetSpaceEnvironmentParams & { query: TemplateQueryOptions },
2525
headers?: RawAxiosRequestHeaders,
2626
) => {
27-
return raw.get<ExoCursorPaginatedCollectionProp<TemplateProps>>(http, getBaseUrl(params), {
27+
return raw.get<TemplateCollection>(http, getBaseUrl(params), {
2828
params: params.query,
2929
headers,
3030
})

0 commit comments

Comments
 (0)