@scaleway/sdk-client 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bridge.d.ts +4 -4
- package/dist/index.cjs +24 -24
- package/dist/index.d.ts +8 -9
- package/dist/index.js +6 -6
- package/dist/internals.d.ts +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/scw/client.js +1 -1
- package/dist/scw/errors/standard/index.d.ts +4 -4
- package/package.json +2 -2
package/dist/bridge.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** List all helpers required by APIs */
|
|
2
2
|
export { isJSONObject } from './helpers/json.js';
|
|
3
|
-
export {
|
|
3
|
+
export { resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
|
|
4
4
|
export type { WaitForOptions } from './internal/async/interval-retrier.js';
|
|
5
|
+
export { waitForResource } from './internal/async/interval-retrier.js';
|
|
5
6
|
export { API } from './scw/api.js';
|
|
6
7
|
export type { DefaultValues } from './scw/client-settings.js';
|
|
7
|
-
export
|
|
8
|
+
export { marshalBlobToScwFile, marshalDecimal, marshalMoney, marshalScwFile, marshalTimeSeries, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling.js';
|
|
9
|
+
export type { Money, ScwFile, ServiceInfo, TimeSeries, } from './scw/custom-types.js';
|
|
8
10
|
export { Decimal } from './scw/custom-types.js';
|
|
9
|
-
export { marshalScwFile, marshalMoney, marshalTimeSeries, marshalDecimal, marshalBlobToScwFile, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, unmarshalDecimal, } from './scw/custom-marshalling.js';
|
|
10
11
|
export { enrichForPagination } from './scw/fetch/resource-paginator.js';
|
|
11
12
|
export type { Region, Zone } from './scw/locality.js';
|
|
12
|
-
export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,35 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index = require("./internal/logger/index.cjs");
|
|
4
|
-
const client = require("./scw/client.cjs");
|
|
5
|
-
const constants = require("./scw/constants.cjs");
|
|
6
|
-
const clientIniFactory = require("./scw/client-ini-factory.cjs");
|
|
7
|
-
const customTypes = require("./scw/custom-types.cjs");
|
|
8
|
-
const index$1 = require("./scw/errors/standard/index.cjs");
|
|
9
4
|
const json = require("./helpers/json.cjs");
|
|
5
|
+
const marshalling = require("./helpers/marshalling.cjs");
|
|
10
6
|
const intervalRetrier = require("./internal/async/interval-retrier.cjs");
|
|
11
7
|
const helpers = require("./internal/interceptors/helpers.cjs");
|
|
12
8
|
const api = require("./scw/api.cjs");
|
|
13
9
|
const auth = require("./scw/auth.cjs");
|
|
14
10
|
const customMarshalling = require("./scw/custom-marshalling.cjs");
|
|
15
|
-
const marshalling = require("./helpers/marshalling.cjs");
|
|
16
11
|
const resourcePaginator = require("./scw/fetch/resource-paginator.cjs");
|
|
12
|
+
const client = require("./scw/client.cjs");
|
|
13
|
+
const clientIniFactory = require("./scw/client-ini-factory.cjs");
|
|
14
|
+
const constants = require("./scw/constants.cjs");
|
|
15
|
+
const customTypes = require("./scw/custom-types.cjs");
|
|
16
|
+
const index$1 = require("./scw/errors/standard/index.cjs");
|
|
17
17
|
const locality = require("./scw/locality.cjs");
|
|
18
18
|
exports.enableConsoleLogger = index.enableConsoleLogger;
|
|
19
19
|
exports.setLogger = index.setLogger;
|
|
20
|
-
exports.createAdvancedClient = client.createAdvancedClient;
|
|
21
|
-
exports.createClient = client.createClient;
|
|
22
|
-
exports.AUTH_HEADER_KEY = constants.AUTH_HEADER_KEY;
|
|
23
|
-
exports.SESSION_HEADER_KEY = constants.SESSION_HEADER_KEY;
|
|
24
|
-
exports.withAdditionalInterceptors = clientIniFactory.withAdditionalInterceptors;
|
|
25
|
-
exports.withDefaultPageSize = clientIniFactory.withDefaultPageSize;
|
|
26
|
-
exports.withHTTPClient = clientIniFactory.withHTTPClient;
|
|
27
|
-
exports.withProfile = clientIniFactory.withProfile;
|
|
28
|
-
exports.withUserAgent = clientIniFactory.withUserAgent;
|
|
29
|
-
exports.withUserAgentSuffix = clientIniFactory.withUserAgentSuffix;
|
|
30
|
-
exports.Decimal = customTypes.Decimal;
|
|
31
|
-
exports.Errors = index$1;
|
|
32
20
|
exports.isJSONObject = json.isJSONObject;
|
|
21
|
+
exports.resolveOneOf = marshalling.resolveOneOf;
|
|
22
|
+
exports.unmarshalArrayOfObject = marshalling.unmarshalArrayOfObject;
|
|
23
|
+
exports.unmarshalDate = marshalling.unmarshalDate;
|
|
24
|
+
exports.unmarshalMapOfObject = marshalling.unmarshalMapOfObject;
|
|
25
|
+
exports.urlParams = marshalling.urlParams;
|
|
26
|
+
exports.validatePathParam = marshalling.validatePathParam;
|
|
33
27
|
exports.createExponentialBackoffStrategy = intervalRetrier.createExponentialBackoffStrategy;
|
|
34
28
|
exports.tryAtIntervals = intervalRetrier.tryAtIntervals;
|
|
35
29
|
exports.waitForResource = intervalRetrier.waitForResource;
|
|
@@ -48,11 +42,17 @@ exports.unmarshalScwFile = customMarshalling.unmarshalScwFile;
|
|
|
48
42
|
exports.unmarshalServiceInfo = customMarshalling.unmarshalServiceInfo;
|
|
49
43
|
exports.unmarshalTimeSeries = customMarshalling.unmarshalTimeSeries;
|
|
50
44
|
exports.unmarshalTimeSeriesPoint = customMarshalling.unmarshalTimeSeriesPoint;
|
|
51
|
-
exports.resolveOneOf = marshalling.resolveOneOf;
|
|
52
|
-
exports.unmarshalArrayOfObject = marshalling.unmarshalArrayOfObject;
|
|
53
|
-
exports.unmarshalDate = marshalling.unmarshalDate;
|
|
54
|
-
exports.unmarshalMapOfObject = marshalling.unmarshalMapOfObject;
|
|
55
|
-
exports.urlParams = marshalling.urlParams;
|
|
56
|
-
exports.validatePathParam = marshalling.validatePathParam;
|
|
57
45
|
exports.enrichForPagination = resourcePaginator.enrichForPagination;
|
|
46
|
+
exports.createAdvancedClient = client.createAdvancedClient;
|
|
47
|
+
exports.createClient = client.createClient;
|
|
48
|
+
exports.withAdditionalInterceptors = clientIniFactory.withAdditionalInterceptors;
|
|
49
|
+
exports.withDefaultPageSize = clientIniFactory.withDefaultPageSize;
|
|
50
|
+
exports.withHTTPClient = clientIniFactory.withHTTPClient;
|
|
51
|
+
exports.withProfile = clientIniFactory.withProfile;
|
|
52
|
+
exports.withUserAgent = clientIniFactory.withUserAgent;
|
|
53
|
+
exports.withUserAgentSuffix = clientIniFactory.withUserAgentSuffix;
|
|
54
|
+
exports.AUTH_HEADER_KEY = constants.AUTH_HEADER_KEY;
|
|
55
|
+
exports.SESSION_HEADER_KEY = constants.SESSION_HEADER_KEY;
|
|
56
|
+
exports.Decimal = customTypes.Decimal;
|
|
57
|
+
exports.Errors = index$1;
|
|
58
58
|
exports.toApiLocality = locality.toApiLocality;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
export type { WaitForOptions, WaitForStopCondition, } from './internal/async/interval-retrier.js';
|
|
2
|
-
export type { NetworkInterceptors, RequestInterceptor,
|
|
2
|
+
export type { NetworkInterceptors, RequestInterceptor, ResponseErrorInterceptor, ResponseInterceptor, } from './internal/interceptors/types';
|
|
3
3
|
export { enableConsoleLogger, setLogger } from './internal/logger/index.js';
|
|
4
4
|
export type { Logger } from './internal/logger/logger';
|
|
5
|
-
export
|
|
6
|
-
export { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from './scw/constants.js';
|
|
5
|
+
export * from './internals';
|
|
7
6
|
export type { Client } from './scw/client.js';
|
|
7
|
+
export { createAdvancedClient, createClient } from './scw/client.js';
|
|
8
|
+
export type { ClientConfig } from './scw/client-ini-factory.js';
|
|
9
|
+
export { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix, } from './scw/client-ini-factory.js';
|
|
8
10
|
export type { Profile } from './scw/client-ini-profile.js';
|
|
9
11
|
export type { Settings } from './scw/client-settings.js';
|
|
10
|
-
export {
|
|
11
|
-
export type { ClientConfig } from './scw/client-ini-factory.js';
|
|
12
|
-
export { Decimal } from './scw/custom-types.js';
|
|
12
|
+
export { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from './scw/constants.js';
|
|
13
13
|
export type { Money, ScwFile, TimeSeries } from './scw/custom-types.js';
|
|
14
|
+
export { Decimal } from './scw/custom-types.js';
|
|
14
15
|
export * as Errors from './scw/errors/standard/index.js';
|
|
15
|
-
export type { Region, Zone } from './scw/locality.js';
|
|
16
|
-
export * from './internals';
|
|
16
|
+
export type { ApiLocality, Region, Zone } from './scw/locality.js';
|
|
17
17
|
export { toApiLocality } from './scw/locality.js';
|
|
18
|
-
export type { ApiLocality } from './scw/locality.js';
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { enableConsoleLogger, setLogger } from "./internal/logger/index.js";
|
|
2
|
-
import { createAdvancedClient, createClient } from "./scw/client.js";
|
|
3
|
-
import { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from "./scw/constants.js";
|
|
4
|
-
import { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix } from "./scw/client-ini-factory.js";
|
|
5
|
-
import { Decimal } from "./scw/custom-types.js";
|
|
6
|
-
import * as index from "./scw/errors/standard/index.js";
|
|
7
2
|
import { isJSONObject } from "./helpers/json.js";
|
|
3
|
+
import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, urlParams, validatePathParam } from "./helpers/marshalling.js";
|
|
8
4
|
import { createExponentialBackoffStrategy, tryAtIntervals, waitForResource } from "./internal/async/interval-retrier.js";
|
|
9
5
|
import { addAsyncHeaderInterceptor } from "./internal/interceptors/helpers.js";
|
|
10
6
|
import { API } from "./scw/api.js";
|
|
11
7
|
import { authenticateWithSessionToken } from "./scw/auth.js";
|
|
12
8
|
import { marshalBlobToScwFile, marshalDecimal, marshalMoney, marshalScwFile, marshalTimeSeries, unmarshalAnyRes, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint } from "./scw/custom-marshalling.js";
|
|
13
|
-
import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, urlParams, validatePathParam } from "./helpers/marshalling.js";
|
|
14
9
|
import { enrichForPagination } from "./scw/fetch/resource-paginator.js";
|
|
10
|
+
import { createAdvancedClient, createClient } from "./scw/client.js";
|
|
11
|
+
import { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix } from "./scw/client-ini-factory.js";
|
|
12
|
+
import { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from "./scw/constants.js";
|
|
13
|
+
import { Decimal } from "./scw/custom-types.js";
|
|
14
|
+
import * as index from "./scw/errors/standard/index.js";
|
|
15
15
|
import { toApiLocality } from "./scw/locality.js";
|
|
16
16
|
export {
|
|
17
17
|
API,
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { isJSONObject } from './helpers/json.js';
|
|
2
|
+
export { resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
|
|
2
3
|
export { createExponentialBackoffStrategy, tryAtIntervals, waitForResource, } from './internal/async/interval-retrier.js';
|
|
3
4
|
export { addAsyncHeaderInterceptor } from './internal/interceptors/helpers.js';
|
|
4
5
|
export { API } from './scw/api.js';
|
|
@@ -6,5 +7,4 @@ export { authenticateWithSessionToken } from './scw/auth.js';
|
|
|
6
7
|
export type { DefaultValues } from './scw/client-settings.js';
|
|
7
8
|
export { marshalBlobToScwFile, marshalDecimal, marshalMoney, marshalScwFile, marshalTimeSeries, unmarshalAnyRes, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling.js';
|
|
8
9
|
export type { ServiceInfo } from './scw/custom-types.js';
|
|
9
|
-
export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
|
|
10
10
|
export { enrichForPagination } from './scw/fetch/resource-paginator.js';
|
package/dist/package.json.cjs
CHANGED
package/dist/package.json.js
CHANGED
package/dist/scw/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLogger } from "../internal/logger/index.js";
|
|
2
|
-
import { withAdditionalInterceptors, withProfile
|
|
2
|
+
import { withLegacyInterceptors, withAdditionalInterceptors, withProfile } from "./client-ini-factory.js";
|
|
3
3
|
import { assertValidSettings } from "./client-settings.js";
|
|
4
4
|
import { userAgent, version } from "./constants.js";
|
|
5
5
|
import { buildFetcher } from "./fetch/build-fetcher.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { ScalewayError } from '../scw-error.js';
|
|
2
2
|
export { AlreadyExistsError } from './already-exists-error.js';
|
|
3
3
|
export { DeniedAuthenticationError } from './denied-authentication-error.js';
|
|
4
|
-
export { InvalidArgumentsError } from './invalid-arguments-error.js';
|
|
5
4
|
export type { InvalidArgumentsErrorDetails } from './invalid-arguments-error.js';
|
|
5
|
+
export { InvalidArgumentsError } from './invalid-arguments-error.js';
|
|
6
6
|
export { OutOfStockError } from './out-of-stock-error.js';
|
|
7
|
-
export { PermissionsDeniedError } from './permissions-denied-error.js';
|
|
8
7
|
export type { PermissionsDeniedErrorDetails } from './permissions-denied-error.js';
|
|
8
|
+
export { PermissionsDeniedError } from './permissions-denied-error.js';
|
|
9
9
|
export { PreconditionFailedError } from './precondition-failed-error.js';
|
|
10
|
-
export { QuotasExceededError } from './quotas-exceeded-error.js';
|
|
11
10
|
export type { QuotasExceededErrorDetails, QuotasExceededErrorScope, } from './quotas-exceeded-error.js';
|
|
11
|
+
export { QuotasExceededError } from './quotas-exceeded-error.js';
|
|
12
12
|
export { ResourceExpiredError } from './resource-expired-error.js';
|
|
13
13
|
export { ResourceLockedError } from './resource-locked-error.js';
|
|
14
14
|
export { ResourceNotFoundError } from './resource-not-found-error.js';
|
|
15
|
-
export { TooManyRequestsError } from './too-many-requests-error.js';
|
|
16
15
|
export type { TooManyRequestsQuotaPolicy } from './too-many-requests-error.js';
|
|
16
|
+
export { TooManyRequestsError } from './too-many-requests-error.js';
|
|
17
17
|
export { TransientStateError } from './transient-state-error.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK Client",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"directory": "packages/client"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=20.19.
|
|
24
|
+
"node": ">=20.19.4"
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
27
|
"exports": {
|