@aws-sdk/client-cognito-sync 3.758.0 → 3.772.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-cjs/index.js +26 -26
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
AlreadyStreamedException: () => AlreadyStreamedException,
|
|
25
25
|
BulkPublishCommand: () => BulkPublishCommand,
|
|
26
26
|
BulkPublishStatus: () => BulkPublishStatus,
|
|
@@ -60,7 +60,7 @@ __export(src_exports, {
|
|
|
60
60
|
UpdateRecordsCommand: () => UpdateRecordsCommand,
|
|
61
61
|
__Client: () => import_smithy_client.Client
|
|
62
62
|
});
|
|
63
|
-
module.exports = __toCommonJS(
|
|
63
|
+
module.exports = __toCommonJS(index_exports);
|
|
64
64
|
|
|
65
65
|
// src/CognitoSyncClient.ts
|
|
66
66
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
@@ -187,9 +187,9 @@ var CognitoSyncClient = class extends import_smithy_client.Client {
|
|
|
187
187
|
this.middlewareStack.use(
|
|
188
188
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
189
189
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCognitoSyncHttpAuthSchemeParametersProvider,
|
|
190
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
190
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
191
191
|
"aws.auth#sigv4": config.credentials
|
|
192
|
-
})
|
|
192
|
+
}), "identityProviderConfigProvider")
|
|
193
193
|
})
|
|
194
194
|
);
|
|
195
195
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -637,7 +637,7 @@ var se_SetCognitoEventsCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
637
637
|
let body;
|
|
638
638
|
body = JSON.stringify(
|
|
639
639
|
(0, import_smithy_client.take)(input, {
|
|
640
|
-
Events: (_) => (0, import_smithy_client._json)(_)
|
|
640
|
+
Events: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Events")
|
|
641
641
|
})
|
|
642
642
|
);
|
|
643
643
|
b.m("POST").h(headers).b(body);
|
|
@@ -653,8 +653,8 @@ var se_SetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (input
|
|
|
653
653
|
let body;
|
|
654
654
|
body = JSON.stringify(
|
|
655
655
|
(0, import_smithy_client.take)(input, {
|
|
656
|
-
CognitoStreams: (_) => (0, import_smithy_client._json)(_),
|
|
657
|
-
PushSync: (_) => (0, import_smithy_client._json)(_)
|
|
656
|
+
CognitoStreams: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CognitoStreams"),
|
|
657
|
+
PushSync: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "PushSync")
|
|
658
658
|
})
|
|
659
659
|
);
|
|
660
660
|
b.m("POST").h(headers).b(body);
|
|
@@ -698,7 +698,7 @@ var se_UpdateRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
698
698
|
body = JSON.stringify(
|
|
699
699
|
(0, import_smithy_client.take)(input, {
|
|
700
700
|
DeviceId: [],
|
|
701
|
-
RecordPatches: (_) => se_RecordPatchList(_, context),
|
|
701
|
+
RecordPatches: /* @__PURE__ */ __name((_) => se_RecordPatchList(_, context), "RecordPatches"),
|
|
702
702
|
SyncSessionToken: []
|
|
703
703
|
})
|
|
704
704
|
);
|
|
@@ -728,7 +728,7 @@ var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
728
728
|
});
|
|
729
729
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
730
730
|
const doc = (0, import_smithy_client.take)(data, {
|
|
731
|
-
Dataset: (_) => de_Dataset(_, context)
|
|
731
|
+
Dataset: /* @__PURE__ */ __name((_) => de_Dataset(_, context), "Dataset")
|
|
732
732
|
});
|
|
733
733
|
Object.assign(contents, doc);
|
|
734
734
|
return contents;
|
|
@@ -742,7 +742,7 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
742
742
|
});
|
|
743
743
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
744
744
|
const doc = (0, import_smithy_client.take)(data, {
|
|
745
|
-
Dataset: (_) => de_Dataset(_, context)
|
|
745
|
+
Dataset: /* @__PURE__ */ __name((_) => de_Dataset(_, context), "Dataset")
|
|
746
746
|
});
|
|
747
747
|
Object.assign(contents, doc);
|
|
748
748
|
return contents;
|
|
@@ -756,7 +756,7 @@ var de_DescribeIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output,
|
|
|
756
756
|
});
|
|
757
757
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
758
758
|
const doc = (0, import_smithy_client.take)(data, {
|
|
759
|
-
IdentityPoolUsage: (_) => de_IdentityPoolUsage(_, context)
|
|
759
|
+
IdentityPoolUsage: /* @__PURE__ */ __name((_) => de_IdentityPoolUsage(_, context), "IdentityPoolUsage")
|
|
760
760
|
});
|
|
761
761
|
Object.assign(contents, doc);
|
|
762
762
|
return contents;
|
|
@@ -770,7 +770,7 @@ var de_DescribeIdentityUsageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
770
770
|
});
|
|
771
771
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
772
772
|
const doc = (0, import_smithy_client.take)(data, {
|
|
773
|
-
IdentityUsage: (_) => de_IdentityUsage(_, context)
|
|
773
|
+
IdentityUsage: /* @__PURE__ */ __name((_) => de_IdentityUsage(_, context), "IdentityUsage")
|
|
774
774
|
});
|
|
775
775
|
Object.assign(contents, doc);
|
|
776
776
|
return contents;
|
|
@@ -784,8 +784,8 @@ var de_GetBulkPublishDetailsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
784
784
|
});
|
|
785
785
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
786
786
|
const doc = (0, import_smithy_client.take)(data, {
|
|
787
|
-
BulkPublishCompleteTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
788
|
-
BulkPublishStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
787
|
+
BulkPublishCompleteTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "BulkPublishCompleteTime"),
|
|
788
|
+
BulkPublishStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "BulkPublishStartTime"),
|
|
789
789
|
BulkPublishStatus: import_smithy_client.expectString,
|
|
790
790
|
FailureMessage: import_smithy_client.expectString,
|
|
791
791
|
IdentityPoolId: import_smithy_client.expectString
|
|
@@ -833,7 +833,7 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
833
833
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
834
834
|
const doc = (0, import_smithy_client.take)(data, {
|
|
835
835
|
Count: import_smithy_client.expectInt32,
|
|
836
|
-
Datasets: (_) => de_DatasetList(_, context),
|
|
836
|
+
Datasets: /* @__PURE__ */ __name((_) => de_DatasetList(_, context), "Datasets"),
|
|
837
837
|
NextToken: import_smithy_client.expectString
|
|
838
838
|
});
|
|
839
839
|
Object.assign(contents, doc);
|
|
@@ -849,7 +849,7 @@ var de_ListIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
849
849
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
850
850
|
const doc = (0, import_smithy_client.take)(data, {
|
|
851
851
|
Count: import_smithy_client.expectInt32,
|
|
852
|
-
IdentityPoolUsages: (_) => de_IdentityPoolUsageList(_, context),
|
|
852
|
+
IdentityPoolUsages: /* @__PURE__ */ __name((_) => de_IdentityPoolUsageList(_, context), "IdentityPoolUsages"),
|
|
853
853
|
MaxResults: import_smithy_client.expectInt32,
|
|
854
854
|
NextToken: import_smithy_client.expectString
|
|
855
855
|
});
|
|
@@ -872,7 +872,7 @@ var de_ListRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
872
872
|
LastModifiedBy: import_smithy_client.expectString,
|
|
873
873
|
MergedDatasetNames: import_smithy_client._json,
|
|
874
874
|
NextToken: import_smithy_client.expectString,
|
|
875
|
-
Records: (_) => de_RecordList(_, context),
|
|
875
|
+
Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records"),
|
|
876
876
|
SyncSessionToken: import_smithy_client.expectString
|
|
877
877
|
});
|
|
878
878
|
Object.assign(contents, doc);
|
|
@@ -947,7 +947,7 @@ var de_UpdateRecordsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
947
947
|
});
|
|
948
948
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
949
949
|
const doc = (0, import_smithy_client.take)(data, {
|
|
950
|
-
Records: (_) => de_RecordList(_, context)
|
|
950
|
+
Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records")
|
|
951
951
|
});
|
|
952
952
|
Object.assign(contents, doc);
|
|
953
953
|
return contents;
|
|
@@ -1179,7 +1179,7 @@ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
|
|
|
1179
1179
|
}, "de_TooManyRequestsExceptionRes");
|
|
1180
1180
|
var se_RecordPatch = /* @__PURE__ */ __name((input, context) => {
|
|
1181
1181
|
return (0, import_smithy_client.take)(input, {
|
|
1182
|
-
DeviceLastModifiedDate: (_) => _.getTime() / 1e3,
|
|
1182
|
+
DeviceLastModifiedDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "DeviceLastModifiedDate"),
|
|
1183
1183
|
Key: [],
|
|
1184
1184
|
Op: [],
|
|
1185
1185
|
SyncCount: [],
|
|
@@ -1193,12 +1193,12 @@ var se_RecordPatchList = /* @__PURE__ */ __name((input, context) => {
|
|
|
1193
1193
|
}, "se_RecordPatchList");
|
|
1194
1194
|
var de_Dataset = /* @__PURE__ */ __name((output, context) => {
|
|
1195
1195
|
return (0, import_smithy_client.take)(output, {
|
|
1196
|
-
CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1196
|
+
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
1197
1197
|
DataStorage: import_smithy_client.expectLong,
|
|
1198
1198
|
DatasetName: import_smithy_client.expectString,
|
|
1199
1199
|
IdentityId: import_smithy_client.expectString,
|
|
1200
1200
|
LastModifiedBy: import_smithy_client.expectString,
|
|
1201
|
-
LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1201
|
+
LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate"),
|
|
1202
1202
|
NumRecords: import_smithy_client.expectLong
|
|
1203
1203
|
});
|
|
1204
1204
|
}, "de_Dataset");
|
|
@@ -1212,7 +1212,7 @@ var de_IdentityPoolUsage = /* @__PURE__ */ __name((output, context) => {
|
|
|
1212
1212
|
return (0, import_smithy_client.take)(output, {
|
|
1213
1213
|
DataStorage: import_smithy_client.expectLong,
|
|
1214
1214
|
IdentityPoolId: import_smithy_client.expectString,
|
|
1215
|
-
LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1215
|
+
LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate"),
|
|
1216
1216
|
SyncSessionsCount: import_smithy_client.expectLong
|
|
1217
1217
|
});
|
|
1218
1218
|
}, "de_IdentityPoolUsage");
|
|
@@ -1228,15 +1228,15 @@ var de_IdentityUsage = /* @__PURE__ */ __name((output, context) => {
|
|
|
1228
1228
|
DatasetCount: import_smithy_client.expectInt32,
|
|
1229
1229
|
IdentityId: import_smithy_client.expectString,
|
|
1230
1230
|
IdentityPoolId: import_smithy_client.expectString,
|
|
1231
|
-
LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1231
|
+
LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate")
|
|
1232
1232
|
});
|
|
1233
1233
|
}, "de_IdentityUsage");
|
|
1234
1234
|
var de__Record = /* @__PURE__ */ __name((output, context) => {
|
|
1235
1235
|
return (0, import_smithy_client.take)(output, {
|
|
1236
|
-
DeviceLastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1236
|
+
DeviceLastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeviceLastModifiedDate"),
|
|
1237
1237
|
Key: import_smithy_client.expectString,
|
|
1238
1238
|
LastModifiedBy: import_smithy_client.expectString,
|
|
1239
|
-
LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1239
|
+
LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate"),
|
|
1240
1240
|
SyncCount: import_smithy_client.expectLong,
|
|
1241
1241
|
Value: import_smithy_client.expectString
|
|
1242
1242
|
});
|
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.
|
|
4
|
+
"version": "3.772.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cognito-sync",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.758.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.772.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.772.0",
|
|
28
28
|
"@aws-sdk/middleware-user-agent": "3.758.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
30
30
|
"@aws-sdk/types": "3.734.0",
|