@aws-sdk/client-cognito-sync 3.300.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.
@@ -106,13 +106,12 @@ class TooManyRequestsException extends CognitoSyncServiceException_1.CognitoSync
106
106
  }
107
107
  }
108
108
  exports.TooManyRequestsException = TooManyRequestsException;
109
- var BulkPublishStatus;
110
- (function (BulkPublishStatus) {
111
- BulkPublishStatus["FAILED"] = "FAILED";
112
- BulkPublishStatus["IN_PROGRESS"] = "IN_PROGRESS";
113
- BulkPublishStatus["NOT_STARTED"] = "NOT_STARTED";
114
- BulkPublishStatus["SUCCEEDED"] = "SUCCEEDED";
115
- })(BulkPublishStatus = exports.BulkPublishStatus || (exports.BulkPublishStatus = {}));
109
+ exports.BulkPublishStatus = {
110
+ FAILED: "FAILED",
111
+ IN_PROGRESS: "IN_PROGRESS",
112
+ NOT_STARTED: "NOT_STARTED",
113
+ SUCCEEDED: "SUCCEEDED",
114
+ };
116
115
  class InvalidConfigurationException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
117
116
  constructor(opts) {
118
117
  super({
@@ -95,13 +95,12 @@ export class TooManyRequestsException extends __BaseException {
95
95
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
96
96
  }
97
97
  }
98
- export var BulkPublishStatus;
99
- (function (BulkPublishStatus) {
100
- BulkPublishStatus["FAILED"] = "FAILED";
101
- BulkPublishStatus["IN_PROGRESS"] = "IN_PROGRESS";
102
- BulkPublishStatus["NOT_STARTED"] = "NOT_STARTED";
103
- BulkPublishStatus["SUCCEEDED"] = "SUCCEEDED";
104
- })(BulkPublishStatus || (BulkPublishStatus = {}));
98
+ export const BulkPublishStatus = {
99
+ FAILED: "FAILED",
100
+ IN_PROGRESS: "IN_PROGRESS",
101
+ NOT_STARTED: "NOT_STARTED",
102
+ SUCCEEDED: "SUCCEEDED",
103
+ };
105
104
  export class InvalidConfigurationException extends __BaseException {
106
105
  constructor(opts) {
107
106
  super({
@@ -26,7 +26,7 @@ export interface BulkPublishCommandOutput extends BulkPublishResponse, __Metadat
26
26
  * import { CognitoSyncClient, BulkPublishCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
27
27
  * // const { CognitoSyncClient, BulkPublishCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
28
28
  * const client = new CognitoSyncClient(config);
29
- * const input = {
29
+ * const input = { // BulkPublishRequest
30
30
  * IdentityPoolId: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new BulkPublishCommand(input);
@@ -30,7 +30,7 @@ export interface DeleteDatasetCommandOutput extends DeleteDatasetResponse, __Met
30
30
  * import { CognitoSyncClient, DeleteDatasetCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
31
31
  * // const { CognitoSyncClient, DeleteDatasetCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
32
32
  * const client = new CognitoSyncClient(config);
33
- * const input = {
33
+ * const input = { // DeleteDatasetRequest
34
34
  * IdentityPoolId: "STRING_VALUE", // required
35
35
  * IdentityId: "STRING_VALUE", // required
36
36
  * DatasetName: "STRING_VALUE", // required
@@ -29,7 +29,7 @@ export interface DescribeDatasetCommandOutput extends DescribeDatasetResponse, _
29
29
  * import { CognitoSyncClient, DescribeDatasetCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
30
30
  * // const { CognitoSyncClient, DescribeDatasetCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
31
31
  * const client = new CognitoSyncClient(config);
32
- * const input = {
32
+ * const input = { // DescribeDatasetRequest
33
33
  * IdentityPoolId: "STRING_VALUE", // required
34
34
  * IdentityId: "STRING_VALUE", // required
35
35
  * DatasetName: "STRING_VALUE", // required
@@ -74,7 +74,7 @@ export interface DescribeIdentityPoolUsageCommandOutput extends DescribeIdentity
74
74
  * import { CognitoSyncClient, DescribeIdentityPoolUsageCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
75
75
  * // const { CognitoSyncClient, DescribeIdentityPoolUsageCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
76
76
  * const client = new CognitoSyncClient(config);
77
- * const input = {
77
+ * const input = { // DescribeIdentityPoolUsageRequest
78
78
  * IdentityPoolId: "STRING_VALUE", // required
79
79
  * };
80
80
  * const command = new DescribeIdentityPoolUsageCommand(input);
@@ -75,7 +75,7 @@ export interface DescribeIdentityUsageCommandOutput extends DescribeIdentityUsag
75
75
  * import { CognitoSyncClient, DescribeIdentityUsageCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
76
76
  * // const { CognitoSyncClient, DescribeIdentityUsageCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
77
77
  * const client = new CognitoSyncClient(config);
78
- * const input = {
78
+ * const input = { // DescribeIdentityUsageRequest
79
79
  * IdentityPoolId: "STRING_VALUE", // required
80
80
  * IdentityId: "STRING_VALUE", // required
81
81
  * };
@@ -26,7 +26,7 @@ export interface GetBulkPublishDetailsCommandOutput extends GetBulkPublishDetail
26
26
  * import { CognitoSyncClient, GetBulkPublishDetailsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
27
27
  * // const { CognitoSyncClient, GetBulkPublishDetailsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
28
28
  * const client = new CognitoSyncClient(config);
29
- * const input = {
29
+ * const input = { // GetBulkPublishDetailsRequest
30
30
  * IdentityPoolId: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new GetBulkPublishDetailsCommand(input);
@@ -26,7 +26,7 @@ export interface GetCognitoEventsCommandOutput extends GetCognitoEventsResponse,
26
26
  * import { CognitoSyncClient, GetCognitoEventsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
27
27
  * // const { CognitoSyncClient, GetCognitoEventsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
28
28
  * const client = new CognitoSyncClient(config);
29
- * const input = {
29
+ * const input = { // GetCognitoEventsRequest
30
30
  * IdentityPoolId: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new GetCognitoEventsCommand(input);
@@ -72,7 +72,7 @@ export interface GetIdentityPoolConfigurationCommandOutput extends GetIdentityPo
72
72
  * import { CognitoSyncClient, GetIdentityPoolConfigurationCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
73
73
  * // const { CognitoSyncClient, GetIdentityPoolConfigurationCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
74
74
  * const client = new CognitoSyncClient(config);
75
- * const input = {
75
+ * const input = { // GetIdentityPoolConfigurationRequest
76
76
  * IdentityPoolId: "STRING_VALUE", // required
77
77
  * };
78
78
  * const command = new GetIdentityPoolConfigurationCommand(input);
@@ -84,7 +84,7 @@ export interface ListDatasetsCommandOutput extends ListDatasetsResponse, __Metad
84
84
  * import { CognitoSyncClient, ListDatasetsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
85
85
  * // const { CognitoSyncClient, ListDatasetsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
86
86
  * const client = new CognitoSyncClient(config);
87
- * const input = {
87
+ * const input = { // ListDatasetsRequest
88
88
  * IdentityPoolId: "STRING_VALUE", // required
89
89
  * IdentityId: "STRING_VALUE", // required
90
90
  * NextToken: "STRING_VALUE",
@@ -84,7 +84,7 @@ export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsag
84
84
  * import { CognitoSyncClient, ListIdentityPoolUsageCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
85
85
  * // const { CognitoSyncClient, ListIdentityPoolUsageCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
86
86
  * const client = new CognitoSyncClient(config);
87
- * const input = {
87
+ * const input = { // ListIdentityPoolUsageRequest
88
88
  * NextToken: "STRING_VALUE",
89
89
  * MaxResults: Number("int"),
90
90
  * };
@@ -81,7 +81,7 @@ export interface ListRecordsCommandOutput extends ListRecordsResponse, __Metadat
81
81
  * import { CognitoSyncClient, ListRecordsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
82
82
  * // const { CognitoSyncClient, ListRecordsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
83
83
  * const client = new CognitoSyncClient(config);
84
- * const input = {
84
+ * const input = { // ListRecordsRequest
85
85
  * IdentityPoolId: "STRING_VALUE", // required
86
86
  * IdentityId: "STRING_VALUE", // required
87
87
  * DatasetName: "STRING_VALUE", // required
@@ -70,7 +70,7 @@ export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __M
70
70
  * import { CognitoSyncClient, RegisterDeviceCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
71
71
  * // const { CognitoSyncClient, RegisterDeviceCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
72
72
  * const client = new CognitoSyncClient(config);
73
- * const input = {
73
+ * const input = { // RegisterDeviceRequest
74
74
  * IdentityPoolId: "STRING_VALUE", // required
75
75
  * IdentityId: "STRING_VALUE", // required
76
76
  * Platform: "STRING_VALUE", // required
@@ -26,9 +26,9 @@ export interface SetCognitoEventsCommandOutput extends __MetadataBearer {
26
26
  * import { CognitoSyncClient, SetCognitoEventsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
27
27
  * // const { CognitoSyncClient, SetCognitoEventsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
28
28
  * const client = new CognitoSyncClient(config);
29
- * const input = {
29
+ * const input = { // SetCognitoEventsRequest
30
30
  * IdentityPoolId: "STRING_VALUE", // required
31
- * Events: { // required
31
+ * Events: { // Events // required
32
32
  * "<keys>": "STRING_VALUE",
33
33
  * },
34
34
  * };
@@ -76,15 +76,15 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
76
76
  * import { CognitoSyncClient, SetIdentityPoolConfigurationCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
77
77
  * // const { CognitoSyncClient, SetIdentityPoolConfigurationCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
78
78
  * const client = new CognitoSyncClient(config);
79
- * const input = {
79
+ * const input = { // SetIdentityPoolConfigurationRequest
80
80
  * IdentityPoolId: "STRING_VALUE", // required
81
- * PushSync: {
82
- * ApplicationArns: [
81
+ * PushSync: { // PushSync
82
+ * ApplicationArns: [ // ApplicationArnList
83
83
  * "STRING_VALUE",
84
84
  * ],
85
85
  * RoleArn: "STRING_VALUE",
86
86
  * },
87
- * CognitoStreams: {
87
+ * CognitoStreams: { // CognitoStreams
88
88
  * StreamName: "STRING_VALUE",
89
89
  * RoleArn: "STRING_VALUE",
90
90
  * StreamingStatus: "STRING_VALUE",
@@ -69,7 +69,7 @@ export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetRespo
69
69
  * import { CognitoSyncClient, SubscribeToDatasetCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
70
70
  * // const { CognitoSyncClient, SubscribeToDatasetCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
71
71
  * const client = new CognitoSyncClient(config);
72
- * const input = {
72
+ * const input = { // SubscribeToDatasetRequest
73
73
  * IdentityPoolId: "STRING_VALUE", // required
74
74
  * IdentityId: "STRING_VALUE", // required
75
75
  * DatasetName: "STRING_VALUE", // required
@@ -70,7 +70,7 @@ export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromData
70
70
  * import { CognitoSyncClient, UnsubscribeFromDatasetCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
71
71
  * // const { CognitoSyncClient, UnsubscribeFromDatasetCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
72
72
  * const client = new CognitoSyncClient(config);
73
- * const input = {
73
+ * const input = { // UnsubscribeFromDatasetRequest
74
74
  * IdentityPoolId: "STRING_VALUE", // required
75
75
  * IdentityId: "STRING_VALUE", // required
76
76
  * DatasetName: "STRING_VALUE", // required
@@ -28,13 +28,13 @@ export interface UpdateRecordsCommandOutput extends UpdateRecordsResponse, __Met
28
28
  * import { CognitoSyncClient, UpdateRecordsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
29
29
  * // const { CognitoSyncClient, UpdateRecordsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
30
30
  * const client = new CognitoSyncClient(config);
31
- * const input = {
31
+ * const input = { // UpdateRecordsRequest
32
32
  * IdentityPoolId: "STRING_VALUE", // required
33
33
  * IdentityId: "STRING_VALUE", // required
34
34
  * DatasetName: "STRING_VALUE", // required
35
35
  * DeviceId: "STRING_VALUE",
36
- * RecordPatches: [
37
- * {
36
+ * RecordPatches: [ // RecordPatchList
37
+ * { // RecordPatch
38
38
  * Op: "STRING_VALUE", // required
39
39
  * Key: "STRING_VALUE", // required
40
40
  * Value: "STRING_VALUE",
@@ -382,13 +382,18 @@ export interface GetBulkPublishDetailsRequest {
382
382
  }
383
383
  /**
384
384
  * @public
385
+ * @enum
385
386
  */
386
- export declare enum BulkPublishStatus {
387
- FAILED = "FAILED",
388
- IN_PROGRESS = "IN_PROGRESS",
389
- NOT_STARTED = "NOT_STARTED",
390
- SUCCEEDED = "SUCCEEDED"
391
- }
387
+ export declare const BulkPublishStatus: {
388
+ readonly FAILED: "FAILED";
389
+ readonly IN_PROGRESS: "IN_PROGRESS";
390
+ readonly NOT_STARTED: "NOT_STARTED";
391
+ readonly SUCCEEDED: "SUCCEEDED";
392
+ };
393
+ /**
394
+ * @public
395
+ */
396
+ export type BulkPublishStatus = (typeof BulkPublishStatus)[keyof typeof BulkPublishStatus];
392
397
  /**
393
398
  * @public
394
399
  * The output for the GetBulkPublishDetails operation.
@@ -116,12 +116,14 @@ export interface DescribeIdentityUsageResponse {
116
116
  export interface GetBulkPublishDetailsRequest {
117
117
  IdentityPoolId: string | undefined;
118
118
  }
119
- export declare enum BulkPublishStatus {
120
- FAILED = "FAILED",
121
- IN_PROGRESS = "IN_PROGRESS",
122
- NOT_STARTED = "NOT_STARTED",
123
- SUCCEEDED = "SUCCEEDED",
124
- }
119
+ export declare const BulkPublishStatus: {
120
+ readonly FAILED: "FAILED";
121
+ readonly IN_PROGRESS: "IN_PROGRESS";
122
+ readonly NOT_STARTED: "NOT_STARTED";
123
+ readonly SUCCEEDED: "SUCCEEDED";
124
+ };
125
+ export type BulkPublishStatus =
126
+ (typeof BulkPublishStatus)[keyof typeof BulkPublishStatus];
125
127
  export interface GetBulkPublishDetailsResponse {
126
128
  IdentityPoolId?: string;
127
129
  BulkPublishStartTime?: Date;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-sync",
3
3
  "description": "AWS SDK for JavaScript Cognito Sync Client for Node.js, Browser and React Native",
4
- "version": "3.300.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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.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",