@azure/data-tables 13.0.1-alpha.20211221.1 → 13.0.1-alpha.20220103.2
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/index.js +50 -52
- package/dist/index.js.map +1 -1
- package/dist-esm/src/TableClient.js +11 -11
- package/dist-esm/src/TableClient.js.map +1 -1
- package/dist-esm/src/TablePolicies.js +6 -6
- package/dist-esm/src/TablePolicies.js.map +1 -1
- package/dist-esm/src/TableServiceClient.js +7 -7
- package/dist-esm/src/TableServiceClient.js.map +1 -1
- package/dist-esm/src/TableTransaction.js +12 -12
- package/dist-esm/src/TableTransaction.js.map +1 -1
- package/dist-esm/src/cosmosPathPolicy.js +1 -1
- package/dist-esm/src/cosmosPathPolicy.js.map +1 -1
- package/dist-esm/src/generatedModels.js +1 -1
- package/dist-esm/src/generatedModels.js.map +1 -1
- package/dist-esm/src/sas/accountSasSignatureValues.js +3 -3
- package/dist-esm/src/sas/accountSasSignatureValues.js.map +1 -1
- package/dist-esm/src/sas/generateAccountSas.js +1 -1
- package/dist-esm/src/sas/generateAccountSas.js.map +1 -1
- package/dist-esm/src/sas/generateTableSas.js +1 -1
- package/dist-esm/src/sas/generateTableSas.js.map +1 -1
- package/dist-esm/src/sas/sasQueryParameters.js +2 -2
- package/dist-esm/src/sas/sasQueryParameters.js.map +1 -1
- package/dist-esm/src/sas/tableSasSignatureValues.js +2 -2
- package/dist-esm/src/sas/tableSasSignatureValues.js.map +1 -1
- package/dist-esm/src/serialization.js +4 -4
- package/dist-esm/src/serialization.js.map +1 -1
- package/dist-esm/src/tablesNamedCredentialPolicy.js +2 -2
- package/dist-esm/src/tablesNamedCredentialPolicy.js.map +1 -1
- package/dist-esm/src/tablesSASTokenPolicy.js +1 -1
- package/dist-esm/src/tablesSASTokenPolicy.js.map +1 -1
- package/dist-esm/src/utils/accountConnectionString.js +2 -2
- package/dist-esm/src/utils/accountConnectionString.js.map +1 -1
- package/dist-esm/src/utils/baseTransactionHeaders.js +1 -1
- package/dist-esm/src/utils/baseTransactionHeaders.js.map +1 -1
- package/dist-esm/src/utils/computeHMACSHA256.js +1 -3
- package/dist-esm/src/utils/computeHMACSHA256.js.map +1 -1
- package/dist-esm/src/utils/connectionString.js +1 -1
- package/dist-esm/src/utils/connectionString.js.map +1 -1
- package/dist-esm/src/utils/constants.js +2 -2
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/continuationToken.js +1 -1
- package/dist-esm/src/utils/continuationToken.js.map +1 -1
- package/dist-esm/src/utils/internalModels.js.map +1 -1
- package/dist-esm/src/utils/isCredential.js +1 -1
- package/dist-esm/src/utils/isCredential.js.map +1 -1
- package/dist-esm/src/utils/tracing.js +1 -1
- package/dist-esm/src/utils/tracing.js.map +1 -1
- package/dist-esm/src/utils/transactionHeaders.js.map +1 -1
- package/dist-esm/src/utils/transactionHelpers.js +1 -1
- package/dist-esm/src/utils/transactionHelpers.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -246,7 +246,7 @@ class SasQueryParameters {
|
|
|
246
246
|
if (this.ipRangeInner) {
|
|
247
247
|
return {
|
|
248
248
|
end: this.ipRangeInner.end,
|
|
249
|
-
start: this.ipRangeInner.start
|
|
249
|
+
start: this.ipRangeInner.start,
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
return undefined;
|
|
@@ -281,7 +281,7 @@ class SasQueryParameters {
|
|
|
281
281
|
"rsct",
|
|
282
282
|
"saoid",
|
|
283
283
|
"scid",
|
|
284
|
-
"tn" // TableName
|
|
284
|
+
"tn", // TableName
|
|
285
285
|
];
|
|
286
286
|
const queries = [];
|
|
287
287
|
for (const param of params) {
|
|
@@ -427,7 +427,7 @@ const HeaderConstants = {
|
|
|
427
427
|
CONTENT_TRANSFER_ENCODING: "content-transfer-encoding",
|
|
428
428
|
DATE: "date",
|
|
429
429
|
X_MS_DATE: "x-ms-date",
|
|
430
|
-
X_MS_VERSION: "x-ms-version"
|
|
430
|
+
X_MS_VERSION: "x-ms-version",
|
|
431
431
|
};
|
|
432
432
|
const TablesLoggingAllowedHeaderNames = [
|
|
433
433
|
"Access-Control-Allow-Origin",
|
|
@@ -510,15 +510,13 @@ const TablesLoggingAllowedHeaderNames = [
|
|
|
510
510
|
"x-ms-source-if-none-match",
|
|
511
511
|
"x-ms-source-if-unmodified-since",
|
|
512
512
|
"x-ms-tag-count",
|
|
513
|
-
"x-ms-encryption-key-sha256"
|
|
513
|
+
"x-ms-encryption-key-sha256",
|
|
514
514
|
];
|
|
515
515
|
|
|
516
516
|
// Copyright (c) Microsoft Corporation.
|
|
517
517
|
function computeHMACSHA256(stringToSign, accountKey) {
|
|
518
518
|
const key = Buffer.from(accountKey, "base64");
|
|
519
|
-
return crypto.createHmac("sha256", key)
|
|
520
|
-
.update(stringToSign, "utf8")
|
|
521
|
-
.digest("base64");
|
|
519
|
+
return crypto.createHmac("sha256", key).update(stringToSign, "utf8").digest("base64");
|
|
522
520
|
}
|
|
523
521
|
|
|
524
522
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -553,7 +551,7 @@ function generateAccountSasQueryParameters(accountSasSignatureValues, credential
|
|
|
553
551
|
accountSasSignatureValues.ipRange ? ipRangeToString(accountSasSignatureValues.ipRange) : "",
|
|
554
552
|
accountSasSignatureValues.protocol ? accountSasSignatureValues.protocol : "",
|
|
555
553
|
version,
|
|
556
|
-
"" // Account SAS requires an additional newline character
|
|
554
|
+
"", // Account SAS requires an additional newline character
|
|
557
555
|
].join("\n");
|
|
558
556
|
const signature = computeHMACSHA256(stringToSign, credential.key);
|
|
559
557
|
return new SasQueryParameters(version, signature, {
|
|
@@ -563,7 +561,7 @@ function generateAccountSasQueryParameters(accountSasSignatureValues, credential
|
|
|
563
561
|
protocol: accountSasSignatureValues.protocol,
|
|
564
562
|
startsOn: accountSasSignatureValues.startsOn,
|
|
565
563
|
expiresOn: accountSasSignatureValues.expiresOn,
|
|
566
|
-
ipRange: accountSasSignatureValues.ipRange
|
|
564
|
+
ipRange: accountSasSignatureValues.ipRange,
|
|
567
565
|
});
|
|
568
566
|
}
|
|
569
567
|
|
|
@@ -691,7 +689,7 @@ function generateTableSasQueryParameters(tableName, credential, tableSasSignatur
|
|
|
691
689
|
startingPartitionKey,
|
|
692
690
|
startingRowKey,
|
|
693
691
|
endingPartitionKey,
|
|
694
|
-
endingRowKey
|
|
692
|
+
endingRowKey,
|
|
695
693
|
].join("\n");
|
|
696
694
|
const signature = computeHMACSHA256(stringToSign, credential.key);
|
|
697
695
|
return new SasQueryParameters(version, signature, {
|
|
@@ -701,7 +699,7 @@ function generateTableSasQueryParameters(tableName, credential, tableSasSignatur
|
|
|
701
699
|
expiresOn: tableSasSignatureValues.expiresOn,
|
|
702
700
|
ipRange: tableSasSignatureValues.ipRange,
|
|
703
701
|
identifier: tableSasSignatureValues.identifier,
|
|
704
|
-
tableName
|
|
702
|
+
tableName,
|
|
705
703
|
});
|
|
706
704
|
}
|
|
707
705
|
function getCanonicalName(accountName, tableName) {
|
|
@@ -3113,7 +3111,7 @@ class GeneratedClient extends GeneratedClientContext {
|
|
|
3113
3111
|
*/
|
|
3114
3112
|
const createSpan = coreTracing.createSpanFunction({
|
|
3115
3113
|
packagePrefix: "Azure.Data.Tables",
|
|
3116
|
-
namespace: "Microsoft.Data.Tables"
|
|
3114
|
+
namespace: "Microsoft.Data.Tables",
|
|
3117
3115
|
});
|
|
3118
3116
|
|
|
3119
3117
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -3128,7 +3126,7 @@ function fromAccountConnectionString(extractedCreds, options = {}) {
|
|
|
3128
3126
|
return {
|
|
3129
3127
|
url: extractedCreds.url,
|
|
3130
3128
|
options,
|
|
3131
|
-
credential: sharedKeyCredential
|
|
3129
|
+
credential: sharedKeyCredential,
|
|
3132
3130
|
};
|
|
3133
3131
|
}
|
|
3134
3132
|
function getAccountConnectionString(accountName, accountKey, defaultEndpointsProtocol, endpointSuffix, tableEndpoint) {
|
|
@@ -3154,7 +3152,7 @@ function getAccountConnectionString(accountName, accountKey, defaultEndpointsPro
|
|
|
3154
3152
|
kind: "AccountConnString",
|
|
3155
3153
|
url: tableEndpoint,
|
|
3156
3154
|
accountName,
|
|
3157
|
-
accountKey
|
|
3155
|
+
accountKey,
|
|
3158
3156
|
};
|
|
3159
3157
|
}
|
|
3160
3158
|
|
|
@@ -3182,7 +3180,7 @@ function getClientParamsFromConnectionString(connectionString, options = {}) {
|
|
|
3182
3180
|
else if (extractedCreds.kind === "SASConnString") {
|
|
3183
3181
|
return {
|
|
3184
3182
|
url: `${extractedCreds.url}?${extractedCreds.accountSas}`,
|
|
3185
|
-
options
|
|
3183
|
+
options,
|
|
3186
3184
|
};
|
|
3187
3185
|
}
|
|
3188
3186
|
else {
|
|
@@ -3350,7 +3348,7 @@ function tablesNamedKeyCredentialPolicy(credential) {
|
|
|
3350
3348
|
async sendRequest(request, next) {
|
|
3351
3349
|
signRequest(request);
|
|
3352
3350
|
return next(request);
|
|
3353
|
-
}
|
|
3351
|
+
},
|
|
3354
3352
|
};
|
|
3355
3353
|
}
|
|
3356
3354
|
function getAuthorizationHeader(request, credential) {
|
|
@@ -3367,7 +3365,7 @@ function getAuthorizationHeader(request, credential) {
|
|
|
3367
3365
|
}
|
|
3368
3366
|
const stringToSign = [
|
|
3369
3367
|
dateHeader,
|
|
3370
|
-
getCanonicalizedResourceString(request, credential)
|
|
3368
|
+
getCanonicalizedResourceString(request, credential),
|
|
3371
3369
|
].join("\n");
|
|
3372
3370
|
const signature = computeHMACSHA256(stringToSign, credential.key);
|
|
3373
3371
|
return `SharedKeyLite ${credential.name}:${signature}`;
|
|
@@ -3406,7 +3404,7 @@ function tablesSASTokenPolicy(credential) {
|
|
|
3406
3404
|
async sendRequest(request, next) {
|
|
3407
3405
|
signURLWithSAS(request, credential);
|
|
3408
3406
|
return next(request);
|
|
3409
|
-
}
|
|
3407
|
+
},
|
|
3410
3408
|
};
|
|
3411
3409
|
}
|
|
3412
3410
|
function signURLWithSAS(request, credential) {
|
|
@@ -3432,14 +3430,14 @@ class TableServiceClient {
|
|
|
3432
3430
|
const internalPipelineOptions = Object.assign(Object.assign(Object.assign({}, clientOptions), {
|
|
3433
3431
|
loggingOptions: {
|
|
3434
3432
|
logger: logger.info,
|
|
3435
|
-
additionalAllowedHeaderNames: [...TablesLoggingAllowedHeaderNames]
|
|
3433
|
+
additionalAllowedHeaderNames: [...TablesLoggingAllowedHeaderNames],
|
|
3436
3434
|
},
|
|
3437
3435
|
deserializationOptions: {
|
|
3438
|
-
parseXML: coreXml.parseXML
|
|
3436
|
+
parseXML: coreXml.parseXML,
|
|
3439
3437
|
},
|
|
3440
3438
|
serializationOptions: {
|
|
3441
|
-
stringifyXML: coreXml.stringifyXML
|
|
3442
|
-
}
|
|
3439
|
+
stringifyXML: coreXml.stringifyXML,
|
|
3440
|
+
},
|
|
3443
3441
|
}), (coreAuth.isTokenCredential(credential) && { credential, credentialScopes: STORAGE_SCOPE }));
|
|
3444
3442
|
const client = new GeneratedClient(this.url, internalPipelineOptions);
|
|
3445
3443
|
if (coreAuth.isNamedKeyCredential(credential)) {
|
|
@@ -3568,7 +3566,7 @@ class TableServiceClient {
|
|
|
3568
3566
|
pageOptions.continuationToken = settings.continuationToken;
|
|
3569
3567
|
}
|
|
3570
3568
|
return this.listTablesPage(pageOptions);
|
|
3571
|
-
}
|
|
3569
|
+
},
|
|
3572
3570
|
};
|
|
3573
3571
|
}
|
|
3574
3572
|
listTablesAll(options) {
|
|
@@ -3637,7 +3635,7 @@ class TableServiceClient {
|
|
|
3637
3635
|
static fromConnectionString(connectionString,
|
|
3638
3636
|
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
3639
3637
|
options) {
|
|
3640
|
-
const { url, options: clientOptions, credential } = getClientParamsFromConnectionString(connectionString, options);
|
|
3638
|
+
const { url, options: clientOptions, credential, } = getClientParamsFromConnectionString(connectionString, options);
|
|
3641
3639
|
if (credential) {
|
|
3642
3640
|
return new TableServiceClient(url, credential, clientOptions);
|
|
3643
3641
|
}
|
|
@@ -3670,7 +3668,7 @@ function getTransactionBoundary(transactionId) {
|
|
|
3670
3668
|
function getInitialTransactionBody(transactionId, changesetId) {
|
|
3671
3669
|
const transactionBoundary = `batch_${transactionId}`;
|
|
3672
3670
|
return [
|
|
3673
|
-
`--${transactionBoundary}${TRANSACTION_HTTP_LINE_ENDING}${HeaderConstants.CONTENT_TYPE}: multipart/mixed; boundary=changeset_${changesetId}${TRANSACTION_HTTP_LINE_ENDING}${TRANSACTION_HTTP_LINE_ENDING}
|
|
3671
|
+
`--${transactionBoundary}${TRANSACTION_HTTP_LINE_ENDING}${HeaderConstants.CONTENT_TYPE}: multipart/mixed; boundary=changeset_${changesetId}${TRANSACTION_HTTP_LINE_ENDING}${TRANSACTION_HTTP_LINE_ENDING}`,
|
|
3674
3672
|
];
|
|
3675
3673
|
}
|
|
3676
3674
|
/**
|
|
@@ -3693,7 +3691,7 @@ const transactionRequestAssemblePolicyName = "transactionRequestAssemblePolicy";
|
|
|
3693
3691
|
const dummyResponse = {
|
|
3694
3692
|
request: coreRestPipeline.createPipelineRequest({ url: "FAKE" }),
|
|
3695
3693
|
status: 200,
|
|
3696
|
-
headers: coreRestPipeline.createHttpHeaders()
|
|
3694
|
+
headers: coreRestPipeline.createHttpHeaders(),
|
|
3697
3695
|
};
|
|
3698
3696
|
function transactionRequestAssemblePolicy(bodyParts, changesetId) {
|
|
3699
3697
|
return {
|
|
@@ -3703,7 +3701,7 @@ function transactionRequestAssemblePolicy(bodyParts, changesetId) {
|
|
|
3703
3701
|
bodyParts.push(subRequest);
|
|
3704
3702
|
// Intercept request from going to wire
|
|
3705
3703
|
return dummyResponse;
|
|
3706
|
-
}
|
|
3704
|
+
},
|
|
3707
3705
|
};
|
|
3708
3706
|
}
|
|
3709
3707
|
const transactionHeaderFilterPolicyName = "transactionHeaderFilterPolicy";
|
|
@@ -3714,7 +3712,7 @@ function transactionHeaderFilterPolicy() {
|
|
|
3714
3712
|
// The subrequests should not have the x-ms-version header.
|
|
3715
3713
|
request.headers.delete(HeaderConstants.X_MS_VERSION);
|
|
3716
3714
|
return next(request);
|
|
3717
|
-
}
|
|
3715
|
+
},
|
|
3718
3716
|
};
|
|
3719
3717
|
}
|
|
3720
3718
|
function getSubRequestUrl(url) {
|
|
@@ -3731,7 +3729,7 @@ function getNextSubrequestBodyPart(request, changesetId) {
|
|
|
3731
3729
|
const subRequest = [
|
|
3732
3730
|
subRequestPrefix,
|
|
3733
3731
|
"",
|
|
3734
|
-
`${request.method.toString()} ${subRequestUrl} ${TRANSACTION_HTTP_VERSION_1_1}
|
|
3732
|
+
`${request.method.toString()} ${subRequestUrl} ${TRANSACTION_HTTP_VERSION_1_1}`, // sub request start line with method,
|
|
3735
3733
|
];
|
|
3736
3734
|
// Add required headers
|
|
3737
3735
|
for (const [name, value] of request.headers) {
|
|
@@ -3758,7 +3756,7 @@ function cosmosPatchPolicy() {
|
|
|
3758
3756
|
request.headers.set("X-HTTP-Method", "MERGE");
|
|
3759
3757
|
}
|
|
3760
3758
|
return next(request);
|
|
3761
|
-
}
|
|
3759
|
+
},
|
|
3762
3760
|
};
|
|
3763
3761
|
}
|
|
3764
3762
|
|
|
@@ -3774,7 +3772,7 @@ function getBaseTransactionHeaders(transactionGuid) {
|
|
|
3774
3772
|
"x-ms-version": "2019-02-02",
|
|
3775
3773
|
DataServiceVersion: "3.0;",
|
|
3776
3774
|
MaxDataServiceVersion: "3.0;NetFx",
|
|
3777
|
-
"Content-Type": `multipart/mixed; boundary=batch_${transactionGuid}
|
|
3775
|
+
"Content-Type": `multipart/mixed; boundary=batch_${transactionGuid}`,
|
|
3778
3776
|
};
|
|
3779
3777
|
}
|
|
3780
3778
|
|
|
@@ -3891,7 +3889,7 @@ class InternalTableTransaction {
|
|
|
3891
3889
|
changesetId,
|
|
3892
3890
|
partitionKey,
|
|
3893
3891
|
pendingOperations,
|
|
3894
|
-
bodyParts
|
|
3892
|
+
bodyParts,
|
|
3895
3893
|
};
|
|
3896
3894
|
}
|
|
3897
3895
|
/**
|
|
@@ -3964,7 +3962,7 @@ class InternalTableTransaction {
|
|
|
3964
3962
|
body,
|
|
3965
3963
|
headers: coreRestPipeline.createHttpHeaders(headers),
|
|
3966
3964
|
tracingOptions: updatedOptions.tracingOptions,
|
|
3967
|
-
allowInsecureConnection: this.allowInsecureConnection
|
|
3965
|
+
allowInsecureConnection: this.allowInsecureConnection,
|
|
3968
3966
|
});
|
|
3969
3967
|
if (coreAuth.isNamedKeyCredential(this.credential)) {
|
|
3970
3968
|
const authHeader = getAuthorizationHeader(request, this.credential);
|
|
@@ -3980,7 +3978,7 @@ class InternalTableTransaction {
|
|
|
3980
3978
|
catch (error) {
|
|
3981
3979
|
span.setStatus({
|
|
3982
3980
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
3983
|
-
message: error.message
|
|
3981
|
+
message: error.message,
|
|
3984
3982
|
});
|
|
3985
3983
|
throw error;
|
|
3986
3984
|
}
|
|
@@ -4029,7 +4027,7 @@ function parseTransactionResponse(transactionResponse) {
|
|
|
4029
4027
|
return {
|
|
4030
4028
|
status,
|
|
4031
4029
|
subResponses: responses,
|
|
4032
|
-
getResponseForEntity: (rowKey) => responses.find((r) => r.rowKey === rowKey)
|
|
4030
|
+
getResponseForEntity: (rowKey) => responses.find((r) => r.rowKey === rowKey),
|
|
4033
4031
|
};
|
|
4034
4032
|
}
|
|
4035
4033
|
function handleBodyError(bodyAsText, statusCode, request, response) {
|
|
@@ -4053,7 +4051,7 @@ function handleBodyError(bodyAsText, statusCode, request, response) {
|
|
|
4053
4051
|
code,
|
|
4054
4052
|
statusCode,
|
|
4055
4053
|
request,
|
|
4056
|
-
response
|
|
4054
|
+
response,
|
|
4057
4055
|
});
|
|
4058
4056
|
}
|
|
4059
4057
|
/**
|
|
@@ -4066,7 +4064,7 @@ function prepateTransactionPipeline(pipeline, bodyParts, changesetId, isCosmos)
|
|
|
4066
4064
|
const policies = pipeline.getOrderedPolicies();
|
|
4067
4065
|
for (const policy of policies) {
|
|
4068
4066
|
pipeline.removePolicy({
|
|
4069
|
-
name: policy.name
|
|
4067
|
+
name: policy.name,
|
|
4070
4068
|
});
|
|
4071
4069
|
}
|
|
4072
4070
|
// With the clear state we now initialize the pipelines required for intercepting the requests.
|
|
@@ -4077,7 +4075,7 @@ function prepateTransactionPipeline(pipeline, bodyParts, changesetId, isCosmos)
|
|
|
4077
4075
|
if (isCosmos) {
|
|
4078
4076
|
pipeline.addPolicy(cosmosPatchPolicy(), {
|
|
4079
4077
|
afterPolicies: [transactionHeaderFilterPolicyName],
|
|
4080
|
-
beforePolicies: [coreClient.serializationPolicyName, transactionRequestAssemblePolicyName]
|
|
4078
|
+
beforePolicies: [coreClient.serializationPolicyName, transactionRequestAssemblePolicyName],
|
|
4081
4079
|
});
|
|
4082
4080
|
}
|
|
4083
4081
|
}
|
|
@@ -4115,7 +4113,7 @@ function encodeContinuationToken(nextPartitionKey = "", nextRowKey = "") {
|
|
|
4115
4113
|
}
|
|
4116
4114
|
const continuationToken = JSON.stringify({
|
|
4117
4115
|
nextPartitionKey,
|
|
4118
|
-
nextRowKey
|
|
4116
|
+
nextRowKey,
|
|
4119
4117
|
});
|
|
4120
4118
|
return base64Encode(continuationToken);
|
|
4121
4119
|
}
|
|
@@ -4137,7 +4135,7 @@ const propertyCaseMap = new Map([
|
|
|
4137
4135
|
["PartitionKey", "partitionKey"],
|
|
4138
4136
|
["RowKey", "rowKey"],
|
|
4139
4137
|
["odata.etag", "etag"],
|
|
4140
|
-
["Timestamp", "timestamp"]
|
|
4138
|
+
["Timestamp", "timestamp"],
|
|
4141
4139
|
]);
|
|
4142
4140
|
const Edm = {
|
|
4143
4141
|
Binary: "Edm.Binary",
|
|
@@ -4147,7 +4145,7 @@ const Edm = {
|
|
|
4147
4145
|
Guid: "Edm.Guid",
|
|
4148
4146
|
Int32: "Edm.Int32",
|
|
4149
4147
|
Int64: "Edm.Int64",
|
|
4150
|
-
String: "Edm.String"
|
|
4148
|
+
String: "Edm.String",
|
|
4151
4149
|
};
|
|
4152
4150
|
function serializePrimitive(value) {
|
|
4153
4151
|
const serializedValue = { value };
|
|
@@ -4313,7 +4311,7 @@ function serializeSignedIdentifiers(signedIdentifiers) {
|
|
|
4313
4311
|
: undefined;
|
|
4314
4312
|
return {
|
|
4315
4313
|
id,
|
|
4316
|
-
accessPolicy: Object.assign(Object.assign(Object.assign({}, (serializedExpiry && { expiry: serializedExpiry })), (serializedStart && { start: serializedStart })), rest)
|
|
4314
|
+
accessPolicy: Object.assign(Object.assign(Object.assign({}, (serializedExpiry && { expiry: serializedExpiry })), (serializedStart && { start: serializedStart })), rest),
|
|
4317
4315
|
};
|
|
4318
4316
|
});
|
|
4319
4317
|
}
|
|
@@ -4325,7 +4323,7 @@ function deserializeSignedIdentifier(signedIdentifiers) {
|
|
|
4325
4323
|
const deserializedExpiry = expiry ? new Date(expiry) : undefined;
|
|
4326
4324
|
return {
|
|
4327
4325
|
id,
|
|
4328
|
-
accessPolicy: Object.assign(Object.assign(Object.assign({}, (deserializedExpiry && { expiry: deserializedExpiry })), (deserializedStart && { start: deserializedStart })), restAcl)
|
|
4326
|
+
accessPolicy: Object.assign(Object.assign(Object.assign({}, (deserializedExpiry && { expiry: deserializedExpiry })), (deserializedStart && { start: deserializedStart })), restAcl),
|
|
4329
4327
|
};
|
|
4330
4328
|
});
|
|
4331
4329
|
}
|
|
@@ -4399,14 +4397,14 @@ class TableClient {
|
|
|
4399
4397
|
this.clientOptions.endpoint = this.clientOptions.endpoint || this.url;
|
|
4400
4398
|
const internalPipelineOptions = Object.assign(Object.assign(Object.assign({}, this.clientOptions), { loggingOptions: {
|
|
4401
4399
|
logger: logger.info,
|
|
4402
|
-
additionalAllowedHeaderNames: [...TablesLoggingAllowedHeaderNames]
|
|
4400
|
+
additionalAllowedHeaderNames: [...TablesLoggingAllowedHeaderNames],
|
|
4403
4401
|
}, deserializationOptions: {
|
|
4404
|
-
parseXML: coreXml.parseXML
|
|
4402
|
+
parseXML: coreXml.parseXML,
|
|
4405
4403
|
}, serializationOptions: {
|
|
4406
|
-
stringifyXML: coreXml.stringifyXML
|
|
4404
|
+
stringifyXML: coreXml.stringifyXML,
|
|
4407
4405
|
} }), (coreAuth.isTokenCredential(this.credential) && {
|
|
4408
4406
|
credential: this.credential,
|
|
4409
|
-
credentialScopes: STORAGE_SCOPE
|
|
4407
|
+
credentialScopes: STORAGE_SCOPE,
|
|
4410
4408
|
}));
|
|
4411
4409
|
const generatedClient = new GeneratedClient(this.url, internalPipelineOptions);
|
|
4412
4410
|
if (coreAuth.isNamedKeyCredential(credential)) {
|
|
@@ -4602,7 +4600,7 @@ class TableClient {
|
|
|
4602
4600
|
pageOptions.continuationToken = settings.continuationToken;
|
|
4603
4601
|
}
|
|
4604
4602
|
return this.listEntitiesPage(tableName, pageOptions);
|
|
4605
|
-
}
|
|
4603
|
+
},
|
|
4606
4604
|
};
|
|
4607
4605
|
}
|
|
4608
4606
|
listEntitiesAll(tableName, options) {
|
|
@@ -4643,7 +4641,7 @@ class TableClient {
|
|
|
4643
4641
|
catch (e) {
|
|
4644
4642
|
span.setStatus({
|
|
4645
4643
|
code: coreTracing.SpanStatusCode.ERROR,
|
|
4646
|
-
message: e.message
|
|
4644
|
+
message: e.message,
|
|
4647
4645
|
});
|
|
4648
4646
|
throw e;
|
|
4649
4647
|
}
|
|
@@ -4662,13 +4660,13 @@ class TableClient {
|
|
|
4662
4660
|
listEntitiesOptions.nextRowKey = continuationToken.nextRowKey;
|
|
4663
4661
|
listEntitiesOptions.nextPartitionKey = continuationToken.nextPartitionKey;
|
|
4664
4662
|
}
|
|
4665
|
-
const { xMsContinuationNextPartitionKey: nextPartitionKey, xMsContinuationNextRowKey: nextRowKey, value } = await this.table.queryEntities(tableName, listEntitiesOptions);
|
|
4663
|
+
const { xMsContinuationNextPartitionKey: nextPartitionKey, xMsContinuationNextRowKey: nextRowKey, value, } = await this.table.queryEntities(tableName, listEntitiesOptions);
|
|
4666
4664
|
const tableEntities = deserializeObjectsArray(value !== null && value !== void 0 ? value : [], disableTypeConversion);
|
|
4667
4665
|
// Encode nextPartitionKey and nextRowKey as a single continuation token and add it as a
|
|
4668
4666
|
// property to the page.
|
|
4669
4667
|
const continuationToken = encodeContinuationToken(nextPartitionKey, nextRowKey);
|
|
4670
4668
|
const page = Object.assign([...tableEntities], {
|
|
4671
|
-
continuationToken
|
|
4669
|
+
continuationToken,
|
|
4672
4670
|
});
|
|
4673
4671
|
return page;
|
|
4674
4672
|
}
|
|
@@ -4993,7 +4991,7 @@ class TableClient {
|
|
|
4993
4991
|
static fromConnectionString(connectionString, tableName,
|
|
4994
4992
|
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
4995
4993
|
options) {
|
|
4996
|
-
const { url, options: clientOptions, credential } = getClientParamsFromConnectionString(connectionString, options);
|
|
4994
|
+
const { url, options: clientOptions, credential, } = getClientParamsFromConnectionString(connectionString, options);
|
|
4997
4995
|
if (credential) {
|
|
4998
4996
|
return new TableClient(url, tableName, credential, clientOptions);
|
|
4999
4997
|
}
|