@aws-sdk/client-schemas 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.
@@ -2,16 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PreconditionFailedException = exports.GoneException = exports.TooManyRequestsException = exports.NotFoundException = exports.UnauthorizedException = exports.ServiceUnavailableException = exports.InternalServerErrorException = exports.ForbiddenException = exports.ConflictException = exports.CodeGenerationStatus = exports.BadRequestException = exports.Type = exports.DiscovererState = void 0;
4
4
  const SchemasServiceException_1 = require("./SchemasServiceException");
5
- var DiscovererState;
6
- (function (DiscovererState) {
7
- DiscovererState["STARTED"] = "STARTED";
8
- DiscovererState["STOPPED"] = "STOPPED";
9
- })(DiscovererState = exports.DiscovererState || (exports.DiscovererState = {}));
10
- var Type;
11
- (function (Type) {
12
- Type["JSONSchemaDraft4"] = "JSONSchemaDraft4";
13
- Type["OpenApi3"] = "OpenApi3";
14
- })(Type = exports.Type || (exports.Type = {}));
5
+ exports.DiscovererState = {
6
+ STARTED: "STARTED",
7
+ STOPPED: "STOPPED",
8
+ };
9
+ exports.Type = {
10
+ JSONSchemaDraft4: "JSONSchemaDraft4",
11
+ OpenApi3: "OpenApi3",
12
+ };
15
13
  class BadRequestException extends SchemasServiceException_1.SchemasServiceException {
16
14
  constructor(opts) {
17
15
  super({
@@ -27,12 +25,11 @@ class BadRequestException extends SchemasServiceException_1.SchemasServiceExcept
27
25
  }
28
26
  }
29
27
  exports.BadRequestException = BadRequestException;
30
- var CodeGenerationStatus;
31
- (function (CodeGenerationStatus) {
32
- CodeGenerationStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
33
- CodeGenerationStatus["CREATE_FAILED"] = "CREATE_FAILED";
34
- CodeGenerationStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
35
- })(CodeGenerationStatus = exports.CodeGenerationStatus || (exports.CodeGenerationStatus = {}));
28
+ exports.CodeGenerationStatus = {
29
+ CREATE_COMPLETE: "CREATE_COMPLETE",
30
+ CREATE_FAILED: "CREATE_FAILED",
31
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
32
+ };
36
33
  class ConflictException extends SchemasServiceException_1.SchemasServiceException {
37
34
  constructor(opts) {
38
35
  super({
@@ -1,14 +1,12 @@
1
1
  import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
2
- export var DiscovererState;
3
- (function (DiscovererState) {
4
- DiscovererState["STARTED"] = "STARTED";
5
- DiscovererState["STOPPED"] = "STOPPED";
6
- })(DiscovererState || (DiscovererState = {}));
7
- export var Type;
8
- (function (Type) {
9
- Type["JSONSchemaDraft4"] = "JSONSchemaDraft4";
10
- Type["OpenApi3"] = "OpenApi3";
11
- })(Type || (Type = {}));
2
+ export const DiscovererState = {
3
+ STARTED: "STARTED",
4
+ STOPPED: "STOPPED",
5
+ };
6
+ export const Type = {
7
+ JSONSchemaDraft4: "JSONSchemaDraft4",
8
+ OpenApi3: "OpenApi3",
9
+ };
12
10
  export class BadRequestException extends __BaseException {
13
11
  constructor(opts) {
14
12
  super({
@@ -23,12 +21,11 @@ export class BadRequestException extends __BaseException {
23
21
  this.Message = opts.Message;
24
22
  }
25
23
  }
26
- export var CodeGenerationStatus;
27
- (function (CodeGenerationStatus) {
28
- CodeGenerationStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
29
- CodeGenerationStatus["CREATE_FAILED"] = "CREATE_FAILED";
30
- CodeGenerationStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
31
- })(CodeGenerationStatus || (CodeGenerationStatus = {}));
24
+ export const CodeGenerationStatus = {
25
+ CREATE_COMPLETE: "CREATE_COMPLETE",
26
+ CREATE_FAILED: "CREATE_FAILED",
27
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
28
+ };
32
29
  export class ConflictException extends __BaseException {
33
30
  constructor(opts) {
34
31
  super({
@@ -2,11 +2,16 @@ import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJ
2
2
  import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum DiscovererState {
7
- STARTED = "STARTED",
8
- STOPPED = "STOPPED"
9
- }
7
+ export declare const DiscovererState: {
8
+ readonly STARTED: "STARTED";
9
+ readonly STOPPED: "STOPPED";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type DiscovererState = (typeof DiscovererState)[keyof typeof DiscovererState];
10
15
  /**
11
16
  * @public
12
17
  */
@@ -81,11 +86,16 @@ export interface SchemaSummary {
81
86
  }
82
87
  /**
83
88
  * @public
89
+ * @enum
84
90
  */
85
- export declare enum Type {
86
- JSONSchemaDraft4 = "JSONSchemaDraft4",
87
- OpenApi3 = "OpenApi3"
88
- }
91
+ export declare const Type: {
92
+ readonly JSONSchemaDraft4: "JSONSchemaDraft4";
93
+ readonly OpenApi3: "OpenApi3";
94
+ };
95
+ /**
96
+ * @public
97
+ */
98
+ export type Type = (typeof Type)[keyof typeof Type];
89
99
  /**
90
100
  * @public
91
101
  */
@@ -166,12 +176,17 @@ export declare class BadRequestException extends __BaseException {
166
176
  }
167
177
  /**
168
178
  * @public
179
+ * @enum
169
180
  */
170
- export declare enum CodeGenerationStatus {
171
- CREATE_COMPLETE = "CREATE_COMPLETE",
172
- CREATE_FAILED = "CREATE_FAILED",
173
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS"
174
- }
181
+ export declare const CodeGenerationStatus: {
182
+ readonly CREATE_COMPLETE: "CREATE_COMPLETE";
183
+ readonly CREATE_FAILED: "CREATE_FAILED";
184
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
185
+ };
186
+ /**
187
+ * @public
188
+ */
189
+ export type CodeGenerationStatus = (typeof CodeGenerationStatus)[keyof typeof CodeGenerationStatus];
175
190
  /**
176
191
  * @public
177
192
  */
@@ -3,10 +3,12 @@ import {
3
3
  LazyJsonString as __LazyJsonString,
4
4
  } from "@aws-sdk/smithy-client";
5
5
  import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
6
- export declare enum DiscovererState {
7
- STARTED = "STARTED",
8
- STOPPED = "STOPPED",
9
- }
6
+ export declare const DiscovererState: {
7
+ readonly STARTED: "STARTED";
8
+ readonly STOPPED: "STOPPED";
9
+ };
10
+ export type DiscovererState =
11
+ (typeof DiscovererState)[keyof typeof DiscovererState];
10
12
  export interface DiscovererSummary {
11
13
  DiscovererArn?: string;
12
14
  DiscovererId?: string;
@@ -27,10 +29,11 @@ export interface SchemaSummary {
27
29
  Tags?: Record<string, string>;
28
30
  VersionCount?: number;
29
31
  }
30
- export declare enum Type {
31
- JSONSchemaDraft4 = "JSONSchemaDraft4",
32
- OpenApi3 = "OpenApi3",
33
- }
32
+ export declare const Type: {
33
+ readonly JSONSchemaDraft4: "JSONSchemaDraft4";
34
+ readonly OpenApi3: "OpenApi3";
35
+ };
36
+ export type Type = (typeof Type)[keyof typeof Type];
34
37
  export interface SchemaVersionSummary {
35
38
  SchemaArn?: string;
36
39
  SchemaName?: string;
@@ -57,11 +60,13 @@ export declare class BadRequestException extends __BaseException {
57
60
  opts: __ExceptionOptionType<BadRequestException, __BaseException>
58
61
  );
59
62
  }
60
- export declare enum CodeGenerationStatus {
61
- CREATE_COMPLETE = "CREATE_COMPLETE",
62
- CREATE_FAILED = "CREATE_FAILED",
63
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
64
- }
63
+ export declare const CodeGenerationStatus: {
64
+ readonly CREATE_COMPLETE: "CREATE_COMPLETE";
65
+ readonly CREATE_FAILED: "CREATE_FAILED";
66
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
67
+ };
68
+ export type CodeGenerationStatus =
69
+ (typeof CodeGenerationStatus)[keyof typeof CodeGenerationStatus];
65
70
  export declare class ConflictException extends __BaseException {
66
71
  readonly name: "ConflictException";
67
72
  readonly $fault: "client";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-schemas",
3
3
  "description": "AWS SDK for JavaScript Schemas 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,44 +21,44 @@
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",
56
- "@aws-sdk/util-waiter": "3.296.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
+ "@aws-sdk/util-waiter": "3.303.0",
57
57
  "tslib": "^2.5.0",
58
58
  "uuid": "^8.3.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
61
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
62
62
  "@tsconfig/node14": "1.0.3",
63
63
  "@types/node": "^14.14.31",
64
64
  "@types/uuid": "^8.3.0",