@aws-sdk/client-sagemaker-metrics 3.301.0 → 3.303.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.
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutMetricsErrorCode = void 0;
4
- var PutMetricsErrorCode;
5
- (function (PutMetricsErrorCode) {
6
- PutMetricsErrorCode["CONFLICT_ERROR"] = "CONFLICT_ERROR";
7
- PutMetricsErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
8
- PutMetricsErrorCode["METRIC_LIMIT_EXCEEDED"] = "METRIC_LIMIT_EXCEEDED";
9
- PutMetricsErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
10
- })(PutMetricsErrorCode = exports.PutMetricsErrorCode || (exports.PutMetricsErrorCode = {}));
4
+ exports.PutMetricsErrorCode = {
5
+ CONFLICT_ERROR: "CONFLICT_ERROR",
6
+ INTERNAL_ERROR: "INTERNAL_ERROR",
7
+ METRIC_LIMIT_EXCEEDED: "METRIC_LIMIT_EXCEEDED",
8
+ VALIDATION_ERROR: "VALIDATION_ERROR",
9
+ };
@@ -1,7 +1,6 @@
1
- export var PutMetricsErrorCode;
2
- (function (PutMetricsErrorCode) {
3
- PutMetricsErrorCode["CONFLICT_ERROR"] = "CONFLICT_ERROR";
4
- PutMetricsErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
5
- PutMetricsErrorCode["METRIC_LIMIT_EXCEEDED"] = "METRIC_LIMIT_EXCEEDED";
6
- PutMetricsErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
7
- })(PutMetricsErrorCode || (PutMetricsErrorCode = {}));
1
+ export const PutMetricsErrorCode = {
2
+ CONFLICT_ERROR: "CONFLICT_ERROR",
3
+ INTERNAL_ERROR: "INTERNAL_ERROR",
4
+ METRIC_LIMIT_EXCEEDED: "METRIC_LIMIT_EXCEEDED",
5
+ VALIDATION_ERROR: "VALIDATION_ERROR",
6
+ };
@@ -36,13 +36,18 @@ export interface BatchPutMetricsRequest {
36
36
  }
37
37
  /**
38
38
  * @public
39
+ * @enum
39
40
  */
40
- export declare enum PutMetricsErrorCode {
41
- CONFLICT_ERROR = "CONFLICT_ERROR",
42
- INTERNAL_ERROR = "INTERNAL_ERROR",
43
- METRIC_LIMIT_EXCEEDED = "METRIC_LIMIT_EXCEEDED",
44
- VALIDATION_ERROR = "VALIDATION_ERROR"
45
- }
41
+ export declare const PutMetricsErrorCode: {
42
+ readonly CONFLICT_ERROR: "CONFLICT_ERROR";
43
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
44
+ readonly METRIC_LIMIT_EXCEEDED: "METRIC_LIMIT_EXCEEDED";
45
+ readonly VALIDATION_ERROR: "VALIDATION_ERROR";
46
+ };
47
+ /**
48
+ * @public
49
+ */
50
+ export type PutMetricsErrorCode = (typeof PutMetricsErrorCode)[keyof typeof PutMetricsErrorCode];
46
51
  /**
47
52
  * @public
48
53
  * <p>An error that occured when putting the metric data.</p>
@@ -8,12 +8,14 @@ export interface BatchPutMetricsRequest {
8
8
  TrialComponentName: string | undefined;
9
9
  MetricData: RawMetricData[] | undefined;
10
10
  }
11
- export declare enum PutMetricsErrorCode {
12
- CONFLICT_ERROR = "CONFLICT_ERROR",
13
- INTERNAL_ERROR = "INTERNAL_ERROR",
14
- METRIC_LIMIT_EXCEEDED = "METRIC_LIMIT_EXCEEDED",
15
- VALIDATION_ERROR = "VALIDATION_ERROR",
16
- }
11
+ export declare const PutMetricsErrorCode: {
12
+ readonly CONFLICT_ERROR: "CONFLICT_ERROR";
13
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
14
+ readonly METRIC_LIMIT_EXCEEDED: "METRIC_LIMIT_EXCEEDED";
15
+ readonly VALIDATION_ERROR: "VALIDATION_ERROR";
16
+ };
17
+ export type PutMetricsErrorCode =
18
+ (typeof PutMetricsErrorCode)[keyof typeof PutMetricsErrorCode];
17
19
  export interface BatchPutMetricsError {
18
20
  Code?: PutMetricsErrorCode | string;
19
21
  MetricIndex?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-metrics",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Metrics Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",