@scaleway/sdk 1.6.0 → 1.8.0
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/api/applesilicon/v1alpha1/api.gen.js +5 -4
- package/dist/api/baremetal/v1/api.gen.js +6 -6
- package/dist/api/baremetal/v1/api.utils.js +1 -1
- package/dist/api/cockpit/v1beta1/api.gen.js +39 -30
- package/dist/api/container/v1beta1/api.gen.js +35 -33
- package/dist/api/container/v1beta1/marshalling.gen.js +3 -1
- package/dist/api/domain/v2beta1/api.gen.js +63 -54
- package/dist/api/flexibleip/v1alpha1/api.gen.js +28 -15
- package/dist/api/function/v1beta1/api.gen.js +39 -30
- package/dist/api/function/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/iam/v1alpha1/api.gen.js +2 -3
- package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/instance/v1/api.gen.js +2 -2
- package/dist/api/instance/v1/api.utils.js +7 -13
- package/dist/api/iot/v1/api.gen.js +68 -36
- package/dist/api/k8s/v1/api.gen.js +4 -4
- package/dist/api/lb/v1/api.gen.js +4 -4
- package/dist/api/lb/v1/api.utils.js +4 -4
- package/dist/api/marketplace/v2/api.gen.js +46 -3
- package/dist/api/mnq/v1alpha1/api.gen.js +36 -13
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +3 -9
- package/dist/api/rdb/v1/api.gen.js +5 -5
- package/dist/api/redis/v1/api.gen.js +1 -1
- package/dist/api/registry/v1/api.gen.js +44 -22
- package/dist/api/secret/v1alpha1/api.gen.js +29 -18
- package/dist/api/secret/v1alpha1/marshalling.gen.js +8 -1
- package/dist/api/tem/v1alpha1/api.gen.js +3 -7
- package/dist/api/test/v1/api.gen.js +1 -1
- package/dist/api/vpc/v1/api.gen.js +13 -5
- package/dist/api/vpcgw/v1/api.gen.js +2 -2
- package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
- package/dist/helpers/marshalling.js +1 -1
- package/dist/index.cjs +457 -269
- package/dist/index.d.ts +1412 -736
- package/dist/internal/async/interval-retrier.js +2 -2
- package/dist/scw/constants.js +1 -1
- package/dist/scw/custom-marshalling.js +4 -7
- package/package.json +2 -2
|
@@ -91,7 +91,7 @@ const tryAtIntervals = async function (retry, strategy, timeout) {
|
|
|
91
91
|
*/
|
|
92
92
|
const waitForResource = function (stop, fetcher, request, options, strategy) {
|
|
93
93
|
if (strategy === void 0) {
|
|
94
|
-
strategy = createExponentialBackoffStrategy(
|
|
94
|
+
strategy = createExponentialBackoffStrategy(options?.minDelay ?? DEFAULT_MIN_DELAY_SECONDS, options?.maxDelay ?? DEFAULT_MAX_DELAY_SECONDS);
|
|
95
95
|
}
|
|
96
96
|
return tryAtIntervals(async () => {
|
|
97
97
|
const value = await fetcher(request);
|
|
@@ -99,7 +99,7 @@ const waitForResource = function (stop, fetcher, request, options, strategy) {
|
|
|
99
99
|
done: await stop(value),
|
|
100
100
|
value
|
|
101
101
|
};
|
|
102
|
-
}, strategy, options
|
|
102
|
+
}, strategy, options?.timeout);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
export { createExponentialBackoffStrategy, tryAtIntervals, waitForResource };
|
package/dist/scw/constants.js
CHANGED
|
@@ -108,13 +108,10 @@ const marshalMoney = obj => ({
|
|
|
108
108
|
*
|
|
109
109
|
* @internal
|
|
110
110
|
*/
|
|
111
|
-
const marshalTimeSeriesPoint = obj => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
value: obj.value
|
|
116
|
-
};
|
|
117
|
-
};
|
|
111
|
+
const marshalTimeSeriesPoint = obj => ({
|
|
112
|
+
timestamp: obj.timestamp?.toISOString(),
|
|
113
|
+
value: obj.value
|
|
114
|
+
});
|
|
118
115
|
|
|
119
116
|
/**
|
|
120
117
|
* Marshals {@link TimeSeries}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "74003d36a8c8dfd5b53853c7bc1754ab7fff68cd"
|
|
39
39
|
}
|