@scaleway/sdk 1.6.0 → 1.7.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.
Files changed (36) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -1
  2. package/dist/api/baremetal/v1/api.gen.js +1 -1
  3. package/dist/api/baremetal/v1/api.utils.js +1 -1
  4. package/dist/api/cockpit/v1beta1/api.gen.js +41 -31
  5. package/dist/api/container/v1beta1/api.gen.js +34 -28
  6. package/dist/api/container/v1beta1/marshalling.gen.js +1 -1
  7. package/dist/api/domain/v2beta1/api.gen.js +2 -2
  8. package/dist/api/flexibleip/v1alpha1/api.gen.js +1 -1
  9. package/dist/api/function/v1beta1/api.gen.js +39 -30
  10. package/dist/api/function/v1beta1/marshalling.gen.js +1 -0
  11. package/dist/api/iam/v1alpha1/api.gen.js +2 -3
  12. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
  13. package/dist/api/instance/v1/api.utils.js +7 -13
  14. package/dist/api/iot/v1/api.gen.js +1 -1
  15. package/dist/api/k8s/v1/api.gen.js +3 -3
  16. package/dist/api/lb/v1/api.gen.js +4 -4
  17. package/dist/api/lb/v1/api.utils.js +4 -4
  18. package/dist/api/marketplace/v2/api.gen.js +46 -3
  19. package/dist/api/mnq/v1alpha1/api.gen.js +35 -12
  20. package/dist/api/rdb/v1/api.gen.js +5 -5
  21. package/dist/api/redis/v1/api.gen.js +1 -1
  22. package/dist/api/registry/v1/api.gen.js +3 -3
  23. package/dist/api/secret/v1alpha1/api.gen.js +26 -15
  24. package/dist/api/secret/v1alpha1/marshalling.gen.js +8 -1
  25. package/dist/api/tem/v1alpha1/api.gen.js +2 -2
  26. package/dist/api/test/v1/api.gen.js +1 -1
  27. package/dist/api/vpc/v1/api.gen.js +13 -5
  28. package/dist/api/vpcgw/v1/api.gen.js +2 -2
  29. package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
  30. package/dist/helpers/marshalling.js +1 -1
  31. package/dist/index.cjs +241 -117
  32. package/dist/index.d.ts +825 -257
  33. package/dist/internal/async/interval-retrier.js +2 -2
  34. package/dist/scw/constants.js +1 -1
  35. package/dist/scw/custom-marshalling.js +4 -7
  36. 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((options == null ? void 0 : options.minDelay) ?? DEFAULT_MIN_DELAY_SECONDS, (options == null ? void 0 : options.maxDelay) ?? DEFAULT_MAX_DELAY_SECONDS);
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 == null ? void 0 : options.timeout);
102
+ }, strategy, options?.timeout);
103
103
  };
104
104
 
105
105
  export { createExponentialBackoffStrategy, tryAtIntervals, waitForResource };
@@ -1,4 +1,4 @@
1
- const version = 'v1.5.0';
1
+ const version = 'v1.6.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
@@ -108,13 +108,10 @@ const marshalMoney = obj => ({
108
108
  *
109
109
  * @internal
110
110
  */
111
- const marshalTimeSeriesPoint = obj => {
112
- var _obj$timestamp;
113
- return {
114
- timestamp: (_obj$timestamp = obj.timestamp) == null ? void 0 : _obj$timestamp.toISOString(),
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.6.0",
3
+ "version": "1.7.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": "5d5bb4ab4cbd585b82597b854749659957664a80"
38
+ "gitHead": "4323306b63c07c8eb8d6ad76efeb6d3f387ffe17"
39
39
  }