File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export { isJSONObject } from './helpers/json'
33export { waitForResource } from './internal/async/interval-retrier'
44export type { WaitForOptions } from './internal/async/interval-retrier'
55export { API } from './scw/api'
6- export type { DefaultValues } from './scw/client-ini-profile '
6+ export type { DefaultValues } from './scw/client-settings '
77export type {
88 Money ,
99 ServiceInfo ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export type { RequestInterceptor } from './internal/interceptors/request'
44export type { ResponseInterceptor } from './internal/interceptors/response'
55export { API } from './scw/api'
66export { authenticateWithSessionToken } from './scw/auth'
7- export type { DefaultValues } from './scw/client-ini-profile '
7+ export type { DefaultValues } from './scw/client-settings '
88export {
99 marshalScwFile ,
1010 marshalMoney ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export interface AuthenticationSecrets {
2828 *
2929 * @public
3030 */
31- export interface DefaultValues {
31+ export interface ProfileDefaultValues {
3232 /**
3333 * APIURL overrides the API URL of the Scaleway API to the given URL.
3434 * Change that if you want to direct requests to a different endpoint.
@@ -65,7 +65,7 @@ export interface DefaultValues {
6565 *
6666 * @public
6767 */
68- export type Profile = Partial < DefaultValues & AuthenticationSecrets >
68+ export type Profile = Partial < ProfileDefaultValues & AuthenticationSecrets >
6969
7070/**
7171 * Verifies that the payload contains both the accessKey and the secretKey.
Original file line number Diff line number Diff line change @@ -7,7 +7,19 @@ import {
77 isURL ,
88 isZone ,
99} from '../internal/validations/string-validation'
10- import type { DefaultValues } from './client-ini-profile'
10+ import type { ProfileDefaultValues } from './client-ini-profile'
11+
12+ /**
13+ * Holds default values of settings.
14+ *
15+ * @public
16+ */
17+ export type DefaultValues = ProfileDefaultValues & {
18+ /**
19+ * The default number of results when requesting a paginated resource.
20+ */
21+ defaultPageSize ?: number
22+ }
1123
1224/**
1325 * Settings hold the values of all client options.
You can’t perform that action at this time.
0 commit comments