@scaleway/sdk-std 1.0.1 → 1.0.3
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/package.json +4 -7
- package/node_modules/@scaleway/sdk-client/README.md +0 -36
- package/node_modules/@scaleway/sdk-client/dist/bridge.d.ts +0 -12
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-browser.cjs +0 -4
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-browser.d.ts +0 -1
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-browser.js +0 -4
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-response.cjs +0 -4
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-response.d.ts +0 -8
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-response.js +0 -4
- package/node_modules/@scaleway/sdk-client/dist/helpers/json.cjs +0 -47
- package/node_modules/@scaleway/sdk-client/dist/helpers/json.d.ts +0 -32
- package/node_modules/@scaleway/sdk-client/dist/helpers/json.js +0 -47
- package/node_modules/@scaleway/sdk-client/dist/helpers/marshalling.cjs +0 -76
- package/node_modules/@scaleway/sdk-client/dist/helpers/marshalling.d.ts +0 -60
- package/node_modules/@scaleway/sdk-client/dist/helpers/marshalling.js +0 -76
- package/node_modules/@scaleway/sdk-client/dist/index.cjs +0 -56
- package/node_modules/@scaleway/sdk-client/dist/index.d.ts +0 -16
- package/node_modules/@scaleway/sdk-client/dist/index.js +0 -56
- package/node_modules/@scaleway/sdk-client/dist/internal/async/interval-retrier.cjs +0 -53
- package/node_modules/@scaleway/sdk-client/dist/internal/async/interval-retrier.d.ts +0 -111
- package/node_modules/@scaleway/sdk-client/dist/internal/async/interval-retrier.js +0 -53
- package/node_modules/@scaleway/sdk-client/dist/internal/async/sleep.cjs +0 -6
- package/node_modules/@scaleway/sdk-client/dist/internal/async/sleep.d.ts +0 -9
- package/node_modules/@scaleway/sdk-client/dist/internal/async/sleep.js +0 -6
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/composer.cjs +0 -25
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/composer.d.ts +0 -25
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/composer.js +0 -25
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/helpers.cjs +0 -12
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/helpers.d.ts +0 -21
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/helpers.js +0 -12
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/types.d.ts +0 -89
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/console-logger.cjs +0 -24
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/console-logger.d.ts +0 -23
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/console-logger.js +0 -24
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/index.cjs +0 -12
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/index.d.ts +0 -25
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/index.js +0 -12
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/level-resolver.cjs +0 -13
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/level-resolver.d.ts +0 -9
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/level-resolver.js +0 -13
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/logger.d.ts +0 -13
- package/node_modules/@scaleway/sdk-client/dist/internal/validations/string-validation.cjs +0 -30
- package/node_modules/@scaleway/sdk-client/dist/internal/validations/string-validation.d.ts +0 -18
- package/node_modules/@scaleway/sdk-client/dist/internal/validations/string-validation.js +0 -30
- package/node_modules/@scaleway/sdk-client/dist/internals.d.ts +0 -10
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +0 -8
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +0 -8
- package/node_modules/@scaleway/sdk-client/dist/scw/api.cjs +0 -8
- package/node_modules/@scaleway/sdk-client/dist/scw/api.d.ts +0 -10
- package/node_modules/@scaleway/sdk-client/dist/scw/api.js +0 -8
- package/node_modules/@scaleway/sdk-client/dist/scw/auth.cjs +0 -25
- package/node_modules/@scaleway/sdk-client/dist/scw/auth.d.ts +0 -70
- package/node_modules/@scaleway/sdk-client/dist/scw/auth.js +0 -25
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-factory.cjs +0 -66
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-factory.d.ts +0 -111
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-factory.js +0 -66
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-profile.cjs +0 -23
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-profile.d.ts +0 -82
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-profile.js +0 -23
- package/node_modules/@scaleway/sdk-client/dist/scw/client-settings.cjs +0 -51
- package/node_modules/@scaleway/sdk-client/dist/scw/client-settings.d.ts +0 -59
- package/node_modules/@scaleway/sdk-client/dist/scw/client-settings.js +0 -51
- package/node_modules/@scaleway/sdk-client/dist/scw/client.cjs +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/client.d.ts +0 -71
- package/node_modules/@scaleway/sdk-client/dist/scw/client.js +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/constants.cjs +0 -11
- package/node_modules/@scaleway/sdk-client/dist/scw/constants.d.ts +0 -4
- package/node_modules/@scaleway/sdk-client/dist/scw/constants.js +0 -11
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-marshalling.cjs +0 -152
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-marshalling.d.ts +0 -104
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-marshalling.js +0 -152
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-types.cjs +0 -11
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-types.d.ts +0 -74
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-types.js +0 -11
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/error-parser.cjs +0 -76
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/error-parser.d.ts +0 -12
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/error-parser.js +0 -76
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/invalid-request-mapper.cjs +0 -36
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +0 -12
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/invalid-request-mapper.js +0 -36
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +0 -23
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +0 -11
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/unknown-resource-mapper.js +0 -23
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/scw-error-from-json.d.ts +0 -10
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/scw-error.cjs +0 -43
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/scw-error.d.ts +0 -25
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/scw-error.js +0 -43
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/already-exists-error.cjs +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/already-exists-error.d.ts +0 -16
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/already-exists-error.js +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/denied-authentication-error.cjs +0 -37
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/denied-authentication-error.d.ts +0 -15
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/denied-authentication-error.js +0 -37
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/index.cjs +0 -28
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/index.d.ts +0 -17
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/index.js +0 -28
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/invalid-arguments-error.cjs +0 -54
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/invalid-arguments-error.d.ts +0 -24
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/invalid-arguments-error.js +0 -54
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/out-of-stock-error.cjs +0 -17
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/out-of-stock-error.d.ts +0 -14
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/out-of-stock-error.js +0 -17
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/permissions-denied-error.cjs +0 -29
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/permissions-denied-error.d.ts +0 -23
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/permissions-denied-error.js +0 -29
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/precondition-failed-error.cjs +0 -32
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/precondition-failed-error.d.ts +0 -15
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/precondition-failed-error.js +0 -32
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/quotas-exceeded-error.cjs +0 -43
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/quotas-exceeded-error.d.ts +0 -34
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/quotas-exceeded-error.js +0 -43
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-expired-error.cjs +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-expired-error.d.ts +0 -16
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-expired-error.js +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-locked-error.cjs +0 -20
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-locked-error.d.ts +0 -15
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-locked-error.js +0 -20
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-not-found-error.cjs +0 -24
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-not-found-error.d.ts +0 -15
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-not-found-error.js +0 -24
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/too-many-requests-error.cjs +0 -58
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/too-many-requests-error.d.ts +0 -32
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/too-many-requests-error.js +0 -58
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/transient-state-error.cjs +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/transient-state-error.d.ts +0 -16
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/transient-state-error.js +0 -31
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/types.cjs +0 -15
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/types.d.ts +0 -9
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/types.js +0 -15
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/build-fetcher.cjs +0 -60
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/build-fetcher.d.ts +0 -23
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/build-fetcher.js +0 -60
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-dumper.cjs +0 -20
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-dumper.d.ts +0 -18
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-dumper.js +0 -20
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-interceptors.cjs +0 -43
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-interceptors.d.ts +0 -38
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-interceptors.js +0 -43
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/resource-paginator.cjs +0 -36
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/resource-paginator.d.ts +0 -47
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/resource-paginator.js +0 -36
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/response-parser.cjs +0 -55
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/response-parser.d.ts +0 -25
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/response-parser.js +0 -55
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/types.d.ts +0 -16
- package/node_modules/@scaleway/sdk-client/dist/scw/locality.d.ts +0 -2
- package/node_modules/@scaleway/sdk-client/dist/vendor/base64/index.cjs +0 -46
- package/node_modules/@scaleway/sdk-client/dist/vendor/base64/index.js +0 -46
- package/node_modules/@scaleway/sdk-client/package.json +0 -36
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { isOrganizationId, isProjectId, isRegion, isZone, isURL } from "../internal/validations/string-validation.js";
|
|
2
|
-
const assertValidSettings = (obj) => {
|
|
3
|
-
if (obj.defaultOrganizationId !== void 0) {
|
|
4
|
-
if (typeof obj.defaultOrganizationId !== "string" || obj.defaultOrganizationId.length === 0) {
|
|
5
|
-
throw new Error("Default organization ID cannot be empty");
|
|
6
|
-
}
|
|
7
|
-
if (!isOrganizationId(obj.defaultOrganizationId)) {
|
|
8
|
-
throw new Error(
|
|
9
|
-
`Invalid organization ID format '${obj.defaultOrganizationId}', expected a UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
if (obj.defaultProjectId !== void 0) {
|
|
14
|
-
if (typeof obj.defaultProjectId !== "string" || obj.defaultProjectId.length === 0) {
|
|
15
|
-
throw new Error("Default project ID cannot be empty");
|
|
16
|
-
}
|
|
17
|
-
if (!isProjectId(obj.defaultProjectId)) {
|
|
18
|
-
throw new Error(
|
|
19
|
-
`Invalid project ID format '${obj.defaultProjectId}', expected a UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (obj.defaultRegion && !isRegion(obj.defaultRegion)) {
|
|
24
|
-
throw new Error(`Invalid default region format '${obj.defaultRegion}'`);
|
|
25
|
-
}
|
|
26
|
-
if (obj.defaultZone && !isZone(obj.defaultZone)) {
|
|
27
|
-
throw new Error(`Invalid default zone format '${obj.defaultZone}'`);
|
|
28
|
-
}
|
|
29
|
-
if (obj.apiURL && !isURL(obj.apiURL)) {
|
|
30
|
-
throw new Error(`Invalid URL ${obj.apiURL}`);
|
|
31
|
-
}
|
|
32
|
-
if (obj.apiURL?.endsWith("/")) {
|
|
33
|
-
throw new Error(
|
|
34
|
-
`Invalid URL ${obj.apiURL}: it should not have a trailing slash`
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
if (typeof obj.httpClient !== typeof fetch) {
|
|
38
|
-
throw new Error(`Invalid HTTP Client`);
|
|
39
|
-
}
|
|
40
|
-
if (obj.defaultPageSize !== void 0 && (typeof obj.defaultPageSize !== "number" || Number.isNaN(obj.defaultPageSize) || obj.defaultPageSize <= 0)) {
|
|
41
|
-
throw new Error(
|
|
42
|
-
`Invalid defaultPageSize ${obj.defaultPageSize}: it should be a number above 0`
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
if (typeof obj.userAgent !== "string") {
|
|
46
|
-
throw new Error(`Invalid User-Agent`);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
assertValidSettings
|
|
51
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../internal/logger/index.cjs");
|
|
4
|
-
const clientIniFactory = require("./client-ini-factory.cjs");
|
|
5
|
-
const clientSettings = require("./client-settings.cjs");
|
|
6
|
-
const constants = require("./constants.cjs");
|
|
7
|
-
const buildFetcher = require("./fetch/build-fetcher.cjs");
|
|
8
|
-
const DEFAULT_SETTINGS = {
|
|
9
|
-
apiURL: "https://api.scaleway.com",
|
|
10
|
-
httpClient: fetch,
|
|
11
|
-
interceptors: [],
|
|
12
|
-
userAgent: constants.userAgent
|
|
13
|
-
};
|
|
14
|
-
const createAdvancedClient = (...configs) => {
|
|
15
|
-
const settings = configs.concat([clientIniFactory.withLegacyInterceptors()]).reduce(
|
|
16
|
-
(currentSettings, config) => config(currentSettings),
|
|
17
|
-
DEFAULT_SETTINGS
|
|
18
|
-
);
|
|
19
|
-
clientSettings.assertValidSettings(settings);
|
|
20
|
-
index.getLogger().info(`init Scaleway SDK version ${constants.version}`);
|
|
21
|
-
return {
|
|
22
|
-
fetch: buildFetcher.buildFetcher(settings, settings.httpClient),
|
|
23
|
-
settings
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
const createClient = (settings = {}) => createAdvancedClient(
|
|
27
|
-
clientIniFactory.withProfile(settings),
|
|
28
|
-
clientIniFactory.withAdditionalInterceptors(settings.interceptors ?? [])
|
|
29
|
-
);
|
|
30
|
-
exports.createAdvancedClient = createAdvancedClient;
|
|
31
|
-
exports.createClient = createClient;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { ClientConfig } from './client-ini-factory.js';
|
|
2
|
-
import type { Settings } from './client-settings.js';
|
|
3
|
-
import type { Fetcher } from './fetch/build-fetcher.js';
|
|
4
|
-
/**
|
|
5
|
-
* Scaleway client.
|
|
6
|
-
*/
|
|
7
|
-
export interface Client {
|
|
8
|
-
fetch: Fetcher;
|
|
9
|
-
settings: Settings;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Creates a Scaleway client with advanced options.
|
|
13
|
-
* You can either use existing factories
|
|
14
|
-
* (like `withProfile`, `withUserAgentSuffix`, etc)
|
|
15
|
-
* or write your own using the interface `ClientConfig`.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* Creates a client with factories:
|
|
19
|
-
* ```
|
|
20
|
-
* createAdvancedClient(
|
|
21
|
-
* (obj: Settings) => ({
|
|
22
|
-
* ...obj,
|
|
23
|
-
* defaultPageSize: 100 ,
|
|
24
|
-
* httpClient: myFetchWrapper,
|
|
25
|
-
* }),
|
|
26
|
-
* withUserAgentSuffix('bot-name/1.0'),
|
|
27
|
-
* )
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @throws Error
|
|
31
|
-
* Thrown if the setup fails.
|
|
32
|
-
*
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
export declare const createAdvancedClient: (...configs: ClientConfig[]) => Client;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a Scaleway client with a profile.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* Creates a client with credentials & default values (see https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/):
|
|
41
|
-
* ```
|
|
42
|
-
* import { createClient } from '@scaleway/sdk'
|
|
43
|
-
*
|
|
44
|
-
* createClient({
|
|
45
|
-
* accessKey: 'SCWXXXXXXXXXXXXXXXXX',
|
|
46
|
-
* secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
|
|
47
|
-
* defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
|
|
48
|
-
* defaultRegion: 'fr-par',
|
|
49
|
-
* defaultZone: 'fr-par-1',
|
|
50
|
-
* })
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* Creates a client by loading values from the environment (see https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/)
|
|
55
|
-
* or the config file created by CLI `scw init` (see https://www.scaleway.com/en/cli/):
|
|
56
|
-
* ```
|
|
57
|
-
* import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
|
|
58
|
-
* import { createClient } from '@scaleway/sdk'
|
|
59
|
-
*
|
|
60
|
-
* createClient({
|
|
61
|
-
* ...await loadProfileFromConfigurationFile(),
|
|
62
|
-
* defaultZone: 'fr-par-3',
|
|
63
|
-
* })
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @throws Error
|
|
67
|
-
* Thrown if the setup fails.
|
|
68
|
-
*
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
|
-
export declare const createClient: (settings?: Partial<Settings>) => Client;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { getLogger } from "../internal/logger/index.js";
|
|
2
|
-
import { withAdditionalInterceptors, withProfile, withLegacyInterceptors } from "./client-ini-factory.js";
|
|
3
|
-
import { assertValidSettings } from "./client-settings.js";
|
|
4
|
-
import { userAgent, version } from "./constants.js";
|
|
5
|
-
import { buildFetcher } from "./fetch/build-fetcher.js";
|
|
6
|
-
const DEFAULT_SETTINGS = {
|
|
7
|
-
apiURL: "https://api.scaleway.com",
|
|
8
|
-
httpClient: fetch,
|
|
9
|
-
interceptors: [],
|
|
10
|
-
userAgent
|
|
11
|
-
};
|
|
12
|
-
const createAdvancedClient = (...configs) => {
|
|
13
|
-
const settings = configs.concat([withLegacyInterceptors()]).reduce(
|
|
14
|
-
(currentSettings, config) => config(currentSettings),
|
|
15
|
-
DEFAULT_SETTINGS
|
|
16
|
-
);
|
|
17
|
-
assertValidSettings(settings);
|
|
18
|
-
getLogger().info(`init Scaleway SDK version ${version}`);
|
|
19
|
-
return {
|
|
20
|
-
fetch: buildFetcher(settings, settings.httpClient),
|
|
21
|
-
settings
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
const createClient = (settings = {}) => createAdvancedClient(
|
|
25
|
-
withProfile(settings),
|
|
26
|
-
withAdditionalInterceptors(settings.interceptors ?? [])
|
|
27
|
-
);
|
|
28
|
-
export {
|
|
29
|
-
createAdvancedClient,
|
|
30
|
-
createClient
|
|
31
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _package = require("../package.json.cjs");
|
|
4
|
-
const { version } = _package.default;
|
|
5
|
-
const userAgent = `scaleway-sdk-js/${version}`;
|
|
6
|
-
const SESSION_HEADER_KEY = "x-session-token";
|
|
7
|
-
const AUTH_HEADER_KEY = "x-auth-token";
|
|
8
|
-
exports.AUTH_HEADER_KEY = AUTH_HEADER_KEY;
|
|
9
|
-
exports.SESSION_HEADER_KEY = SESSION_HEADER_KEY;
|
|
10
|
-
exports.userAgent = userAgent;
|
|
11
|
-
exports.version = version;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import pkg from "../package.json.js";
|
|
2
|
-
const { version } = pkg;
|
|
3
|
-
const userAgent = `scaleway-sdk-js/${version}`;
|
|
4
|
-
const SESSION_HEADER_KEY = "x-session-token";
|
|
5
|
-
const AUTH_HEADER_KEY = "x-auth-token";
|
|
6
|
-
export {
|
|
7
|
-
AUTH_HEADER_KEY,
|
|
8
|
-
SESSION_HEADER_KEY,
|
|
9
|
-
userAgent,
|
|
10
|
-
version
|
|
11
|
-
};
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const json = require("../helpers/json.cjs");
|
|
4
|
-
const marshalling = require("../helpers/marshalling.cjs");
|
|
5
|
-
const index = require("../vendor/base64/index.cjs");
|
|
6
|
-
const customTypes = require("./custom-types.cjs");
|
|
7
|
-
const unmarshalMoney = (data) => {
|
|
8
|
-
if (!json.isJSONObject(data)) {
|
|
9
|
-
throw new TypeError(
|
|
10
|
-
`Unmarshalling the type 'Money' failed as data isn't a dictionary.`
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
currencyCode: data.currency_code,
|
|
15
|
-
nanos: data.nanos,
|
|
16
|
-
units: data.units
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
const unmarshalServiceInfo = (data) => {
|
|
20
|
-
if (!json.isJSONObject(data)) {
|
|
21
|
-
throw new TypeError(
|
|
22
|
-
`Unmarshalling the type 'ServiceInfo' failed as data isn't a dictionary.`
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
description: data.description,
|
|
27
|
-
documentationUrl: data.documentation_url,
|
|
28
|
-
name: data.name,
|
|
29
|
-
version: data.version
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
const unmarshalScwFile = (data) => {
|
|
33
|
-
if (!json.isJSONObject(data)) {
|
|
34
|
-
throw new TypeError(
|
|
35
|
-
`Unmarshalling the type 'ScwFile' failed as data isn't a dictionary.`
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
content: data.content,
|
|
40
|
-
contentType: data.content_type,
|
|
41
|
-
name: data.name
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
const unmarshalTimeSeriesPoint = (data) => {
|
|
45
|
-
if (!Array.isArray(data)) {
|
|
46
|
-
throw new TypeError(
|
|
47
|
-
`Unmarshalling the type 'TimeSeriesPoint' failed as data isn't an array.`
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
timestamp: marshalling.unmarshalDate(data[0]),
|
|
52
|
-
value: data[1]
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
const unmarshalTimeSeries = (data) => {
|
|
56
|
-
if (!json.isJSONObject(data)) {
|
|
57
|
-
throw new TypeError(
|
|
58
|
-
`Unmarshalling the type 'TimeSeries' failed as data isn't a dictionary.`
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
metadata: data.metadata,
|
|
63
|
-
name: data.name,
|
|
64
|
-
points: marshalling.unmarshalArrayOfObject(data.points, unmarshalTimeSeriesPoint)
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
const unmarshalDecimal = (data) => {
|
|
68
|
-
if (!(typeof data === "object")) {
|
|
69
|
-
throw new TypeError(
|
|
70
|
-
`Unmarshalling the type 'Decimal' failed as data isn't an object.`
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
if (data === null) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
if (!("value" in data)) {
|
|
77
|
-
throw new TypeError(
|
|
78
|
-
`Unmarshalling the type 'Decimal' failed as data object does not have a 'value' key.`
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
if (!(typeof data.value === "string")) {
|
|
82
|
-
throw new TypeError(
|
|
83
|
-
`Unmarshalling the type 'Decimal' failed as 'value' is not a string.`
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
return new customTypes.Decimal(data.value);
|
|
87
|
-
};
|
|
88
|
-
const marshalScwFile = (obj) => ({
|
|
89
|
-
content: obj.content,
|
|
90
|
-
content_type: obj.contentType,
|
|
91
|
-
name: obj.name
|
|
92
|
-
});
|
|
93
|
-
const marshalBlobToScwFile = async (blob) => ({
|
|
94
|
-
content: index.fromByteArray(new Uint8Array(await blob.arrayBuffer())),
|
|
95
|
-
content_type: blob.type,
|
|
96
|
-
name: "file"
|
|
97
|
-
});
|
|
98
|
-
const marshalMoney = (obj) => ({
|
|
99
|
-
currency_code: obj.currencyCode,
|
|
100
|
-
nanos: obj.nanos,
|
|
101
|
-
units: obj.units
|
|
102
|
-
});
|
|
103
|
-
const marshalTimeSeriesPoint = (obj) => ({
|
|
104
|
-
timestamp: obj.timestamp?.toISOString(),
|
|
105
|
-
value: obj.value
|
|
106
|
-
});
|
|
107
|
-
const marshalTimeSeries = (obj) => ({
|
|
108
|
-
metadata: obj.metadata,
|
|
109
|
-
name: obj.name,
|
|
110
|
-
points: obj.points.map((elt) => marshalTimeSeriesPoint(elt))
|
|
111
|
-
});
|
|
112
|
-
const marshalDecimal = (obj) => ({
|
|
113
|
-
value: obj.toString()
|
|
114
|
-
});
|
|
115
|
-
const unmarshalDates = (obj, keys) => {
|
|
116
|
-
if (Array.isArray(obj)) {
|
|
117
|
-
return obj.map((v) => unmarshalDates(v, keys));
|
|
118
|
-
}
|
|
119
|
-
if (obj && typeof obj === "object") {
|
|
120
|
-
return Object.entries(obj).reduce(
|
|
121
|
-
(acc, [key, value]) => ({
|
|
122
|
-
...acc,
|
|
123
|
-
[key]: typeof value === "string" && keys.includes(key) ? new Date(value) : unmarshalDates(value, keys)
|
|
124
|
-
}),
|
|
125
|
-
{}
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
return obj;
|
|
129
|
-
};
|
|
130
|
-
const unmarshalAnyRes = (obj, ignoreKeys = [], dateKeys) => {
|
|
131
|
-
if (!json.isJSONObject(obj)) {
|
|
132
|
-
throw new TypeError(`Data isn't a dictionary.`);
|
|
133
|
-
}
|
|
134
|
-
return json.camelizeKeys(
|
|
135
|
-
dateKeys && dateKeys.length > 0 ? unmarshalDates(obj, dateKeys) : obj,
|
|
136
|
-
ignoreKeys
|
|
137
|
-
);
|
|
138
|
-
};
|
|
139
|
-
exports.marshalBlobToScwFile = marshalBlobToScwFile;
|
|
140
|
-
exports.marshalDecimal = marshalDecimal;
|
|
141
|
-
exports.marshalMoney = marshalMoney;
|
|
142
|
-
exports.marshalScwFile = marshalScwFile;
|
|
143
|
-
exports.marshalTimeSeries = marshalTimeSeries;
|
|
144
|
-
exports.marshalTimeSeriesPoint = marshalTimeSeriesPoint;
|
|
145
|
-
exports.unmarshalAnyRes = unmarshalAnyRes;
|
|
146
|
-
exports.unmarshalDates = unmarshalDates;
|
|
147
|
-
exports.unmarshalDecimal = unmarshalDecimal;
|
|
148
|
-
exports.unmarshalMoney = unmarshalMoney;
|
|
149
|
-
exports.unmarshalScwFile = unmarshalScwFile;
|
|
150
|
-
exports.unmarshalServiceInfo = unmarshalServiceInfo;
|
|
151
|
-
exports.unmarshalTimeSeries = unmarshalTimeSeries;
|
|
152
|
-
exports.unmarshalTimeSeriesPoint = unmarshalTimeSeriesPoint;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type { Money, ScwFile, ServiceInfo, TimeSeries, TimeSeriesPoint } from './custom-types.js';
|
|
2
|
-
import { Decimal } from './custom-types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Unmarshals {@link Money}
|
|
5
|
-
*
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare const unmarshalMoney: (data: unknown) => Money;
|
|
9
|
-
/**
|
|
10
|
-
* Unmarshals {@link ServiceInfo}.
|
|
11
|
-
*
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare const unmarshalServiceInfo: (data: unknown) => ServiceInfo;
|
|
15
|
-
/**
|
|
16
|
-
* Unmarshals {@link ScwFile}.
|
|
17
|
-
*
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export declare const unmarshalScwFile: (data: unknown) => ScwFile;
|
|
21
|
-
/**
|
|
22
|
-
* Unmarshals {@link TimeSeriesPoint}
|
|
23
|
-
*
|
|
24
|
-
* @remarks To optimize the size of this message,
|
|
25
|
-
* the JSON is compressed in an array instead of a dictionary.
|
|
26
|
-
* Example: `["2019-08-08T15:00:00Z", 0.2]`.
|
|
27
|
-
*
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
|
-
export declare const unmarshalTimeSeriesPoint: (data: unknown) => TimeSeriesPoint;
|
|
31
|
-
/**
|
|
32
|
-
* Unmarshals {@link TimeSeries}
|
|
33
|
-
*
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
export declare const unmarshalTimeSeries: (data: unknown) => TimeSeries;
|
|
37
|
-
/**
|
|
38
|
-
* Unmarshals {@link Decimal}
|
|
39
|
-
*
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
export declare const unmarshalDecimal: (data: unknown) => Decimal | null;
|
|
43
|
-
/**
|
|
44
|
-
* Marshals {@link ScwFile}.
|
|
45
|
-
*
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
export declare const marshalScwFile: (obj: ScwFile) => Record<string, unknown>;
|
|
49
|
-
/**
|
|
50
|
-
* Marshals {@link Blob}.
|
|
51
|
-
*
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
export declare const marshalBlobToScwFile: (blob: Blob) => Promise<Record<string, unknown>>;
|
|
55
|
-
/**
|
|
56
|
-
* Marshals {@link Money}
|
|
57
|
-
*
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
export declare const marshalMoney: (obj: Money) => Record<string, unknown>;
|
|
61
|
-
/**
|
|
62
|
-
* Marshals {@link TimeSeriesPoint}
|
|
63
|
-
*
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
export declare const marshalTimeSeriesPoint: (obj: TimeSeriesPoint) => Record<string, unknown>;
|
|
67
|
-
/**
|
|
68
|
-
* Marshals {@link TimeSeries}
|
|
69
|
-
*
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
export declare const marshalTimeSeries: (obj: TimeSeries) => Record<string, unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* Marshals {@link Decimal}
|
|
75
|
-
*
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
|
-
export declare const marshalDecimal: (obj: Decimal) => {
|
|
79
|
-
value: string;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Unmarshals record to convert iso dates from string to Dates.
|
|
83
|
-
*
|
|
84
|
-
* @param obj - The input
|
|
85
|
-
* @param keys - The keys requiring a conversion
|
|
86
|
-
* @returns The updated input
|
|
87
|
-
*
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
export declare const unmarshalDates: <T>(obj: unknown, keys: string[]) => T;
|
|
91
|
-
/**
|
|
92
|
-
* Unmarshals input to a record with camilized keys and instanciated Date.
|
|
93
|
-
*
|
|
94
|
-
* @param obj - The input
|
|
95
|
-
* @param ignoreKeys - The keys which should be not be transformed
|
|
96
|
-
* @param dateKeys - The keys which should be transformed to Date
|
|
97
|
-
* @returns The record
|
|
98
|
-
*
|
|
99
|
-
* @throws TypeError
|
|
100
|
-
* Thrown if the input isn't {@link JSONObject}.
|
|
101
|
-
*
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
export declare const unmarshalAnyRes: <T>(obj: unknown, ignoreKeys?: string[], dateKeys?: string[]) => T;
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { isJSONObject, camelizeKeys } from "../helpers/json.js";
|
|
2
|
-
import { unmarshalArrayOfObject, unmarshalDate } from "../helpers/marshalling.js";
|
|
3
|
-
import { fromByteArray } from "../vendor/base64/index.js";
|
|
4
|
-
import { Decimal } from "./custom-types.js";
|
|
5
|
-
const unmarshalMoney = (data) => {
|
|
6
|
-
if (!isJSONObject(data)) {
|
|
7
|
-
throw new TypeError(
|
|
8
|
-
`Unmarshalling the type 'Money' failed as data isn't a dictionary.`
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
return {
|
|
12
|
-
currencyCode: data.currency_code,
|
|
13
|
-
nanos: data.nanos,
|
|
14
|
-
units: data.units
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
const unmarshalServiceInfo = (data) => {
|
|
18
|
-
if (!isJSONObject(data)) {
|
|
19
|
-
throw new TypeError(
|
|
20
|
-
`Unmarshalling the type 'ServiceInfo' failed as data isn't a dictionary.`
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
description: data.description,
|
|
25
|
-
documentationUrl: data.documentation_url,
|
|
26
|
-
name: data.name,
|
|
27
|
-
version: data.version
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
const unmarshalScwFile = (data) => {
|
|
31
|
-
if (!isJSONObject(data)) {
|
|
32
|
-
throw new TypeError(
|
|
33
|
-
`Unmarshalling the type 'ScwFile' failed as data isn't a dictionary.`
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
content: data.content,
|
|
38
|
-
contentType: data.content_type,
|
|
39
|
-
name: data.name
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
const unmarshalTimeSeriesPoint = (data) => {
|
|
43
|
-
if (!Array.isArray(data)) {
|
|
44
|
-
throw new TypeError(
|
|
45
|
-
`Unmarshalling the type 'TimeSeriesPoint' failed as data isn't an array.`
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
timestamp: unmarshalDate(data[0]),
|
|
50
|
-
value: data[1]
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
const unmarshalTimeSeries = (data) => {
|
|
54
|
-
if (!isJSONObject(data)) {
|
|
55
|
-
throw new TypeError(
|
|
56
|
-
`Unmarshalling the type 'TimeSeries' failed as data isn't a dictionary.`
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
metadata: data.metadata,
|
|
61
|
-
name: data.name,
|
|
62
|
-
points: unmarshalArrayOfObject(data.points, unmarshalTimeSeriesPoint)
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
const unmarshalDecimal = (data) => {
|
|
66
|
-
if (!(typeof data === "object")) {
|
|
67
|
-
throw new TypeError(
|
|
68
|
-
`Unmarshalling the type 'Decimal' failed as data isn't an object.`
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
if (data === null) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
if (!("value" in data)) {
|
|
75
|
-
throw new TypeError(
|
|
76
|
-
`Unmarshalling the type 'Decimal' failed as data object does not have a 'value' key.`
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
if (!(typeof data.value === "string")) {
|
|
80
|
-
throw new TypeError(
|
|
81
|
-
`Unmarshalling the type 'Decimal' failed as 'value' is not a string.`
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
return new Decimal(data.value);
|
|
85
|
-
};
|
|
86
|
-
const marshalScwFile = (obj) => ({
|
|
87
|
-
content: obj.content,
|
|
88
|
-
content_type: obj.contentType,
|
|
89
|
-
name: obj.name
|
|
90
|
-
});
|
|
91
|
-
const marshalBlobToScwFile = async (blob) => ({
|
|
92
|
-
content: fromByteArray(new Uint8Array(await blob.arrayBuffer())),
|
|
93
|
-
content_type: blob.type,
|
|
94
|
-
name: "file"
|
|
95
|
-
});
|
|
96
|
-
const marshalMoney = (obj) => ({
|
|
97
|
-
currency_code: obj.currencyCode,
|
|
98
|
-
nanos: obj.nanos,
|
|
99
|
-
units: obj.units
|
|
100
|
-
});
|
|
101
|
-
const marshalTimeSeriesPoint = (obj) => ({
|
|
102
|
-
timestamp: obj.timestamp?.toISOString(),
|
|
103
|
-
value: obj.value
|
|
104
|
-
});
|
|
105
|
-
const marshalTimeSeries = (obj) => ({
|
|
106
|
-
metadata: obj.metadata,
|
|
107
|
-
name: obj.name,
|
|
108
|
-
points: obj.points.map((elt) => marshalTimeSeriesPoint(elt))
|
|
109
|
-
});
|
|
110
|
-
const marshalDecimal = (obj) => ({
|
|
111
|
-
value: obj.toString()
|
|
112
|
-
});
|
|
113
|
-
const unmarshalDates = (obj, keys) => {
|
|
114
|
-
if (Array.isArray(obj)) {
|
|
115
|
-
return obj.map((v) => unmarshalDates(v, keys));
|
|
116
|
-
}
|
|
117
|
-
if (obj && typeof obj === "object") {
|
|
118
|
-
return Object.entries(obj).reduce(
|
|
119
|
-
(acc, [key, value]) => ({
|
|
120
|
-
...acc,
|
|
121
|
-
[key]: typeof value === "string" && keys.includes(key) ? new Date(value) : unmarshalDates(value, keys)
|
|
122
|
-
}),
|
|
123
|
-
{}
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
return obj;
|
|
127
|
-
};
|
|
128
|
-
const unmarshalAnyRes = (obj, ignoreKeys = [], dateKeys) => {
|
|
129
|
-
if (!isJSONObject(obj)) {
|
|
130
|
-
throw new TypeError(`Data isn't a dictionary.`);
|
|
131
|
-
}
|
|
132
|
-
return camelizeKeys(
|
|
133
|
-
dateKeys && dateKeys.length > 0 ? unmarshalDates(obj, dateKeys) : obj,
|
|
134
|
-
ignoreKeys
|
|
135
|
-
);
|
|
136
|
-
};
|
|
137
|
-
export {
|
|
138
|
-
marshalBlobToScwFile,
|
|
139
|
-
marshalDecimal,
|
|
140
|
-
marshalMoney,
|
|
141
|
-
marshalScwFile,
|
|
142
|
-
marshalTimeSeries,
|
|
143
|
-
marshalTimeSeriesPoint,
|
|
144
|
-
unmarshalAnyRes,
|
|
145
|
-
unmarshalDates,
|
|
146
|
-
unmarshalDecimal,
|
|
147
|
-
unmarshalMoney,
|
|
148
|
-
unmarshalScwFile,
|
|
149
|
-
unmarshalServiceInfo,
|
|
150
|
-
unmarshalTimeSeries,
|
|
151
|
-
unmarshalTimeSeriesPoint
|
|
152
|
-
};
|