@azure/data-tables 13.3.1-alpha.20241125.1 → 13.3.1-alpha.20241127.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/browser/TableClient.d.ts +436 -0
- package/dist/browser/TableClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/TableClient.js +18 -18
- package/dist/browser/TableClient.js.map +1 -0
- package/dist/browser/TablePolicies.d.ts +6 -0
- package/dist/browser/TablePolicies.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/TablePolicies.js +2 -2
- package/dist/browser/TablePolicies.js.map +1 -0
- package/dist/browser/TableServiceClient.d.ts +161 -0
- package/dist/browser/TableServiceClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/TableServiceClient.js +13 -13
- package/dist/browser/TableServiceClient.js.map +1 -0
- package/dist/browser/TableTransaction.d.ts +114 -0
- package/dist/browser/TableTransaction.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/TableTransaction.js +9 -7
- package/dist/browser/TableTransaction.js.map +1 -0
- package/dist/browser/cosmosPathPolicy.d.ts +3 -0
- package/dist/browser/cosmosPathPolicy.d.ts.map +1 -0
- package/dist/browser/generated/generatedClient.d.ts +17 -0
- package/dist/browser/generated/generatedClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/generatedClient.js +1 -1
- package/dist/browser/generated/generatedClient.js.map +1 -0
- package/dist/browser/generated/generatedClientContext.d.ts +14 -0
- package/dist/browser/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/browser/generated/generatedClientContext.js.map +1 -0
- package/dist/browser/generated/index.d.ts +4 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/index.js +3 -3
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/models/index.d.ts +603 -0
- package/dist/browser/generated/models/index.d.ts.map +1 -0
- package/dist/browser/generated/models/mappers.d.ts +47 -0
- package/dist/browser/generated/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/models/parameters.d.ts +35 -0
- package/dist/browser/generated/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/models/parameters.js +1 -1
- package/dist/browser/generated/models/parameters.js.map +1 -0
- package/dist/browser/generated/operations/index.d.ts +3 -0
- package/dist/browser/generated/operations/index.d.ts.map +1 -0
- package/dist/browser/generated/operations/index.js +10 -0
- package/{dist-esm/src → dist/browser}/generated/operations/index.js.map +1 -1
- package/dist/browser/generated/operations/service.d.ts +32 -0
- package/dist/browser/generated/operations/service.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/operations/service.js +2 -2
- package/dist/browser/generated/operations/service.js.map +1 -0
- package/dist/browser/generated/operations/table.d.ts +90 -0
- package/dist/browser/generated/operations/table.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/operations/table.js +2 -2
- package/dist/browser/generated/operations/table.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/browser/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/index.js +10 -0
- package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/generated/operationsInterfaces/service.d.ts +24 -0
- package/dist/browser/generated/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/service.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/table.d.ts +82 -0
- package/dist/browser/generated/operationsInterfaces/table.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/table.js.map +1 -0
- package/dist/browser/generatedModels.d.ts +2 -0
- package/dist/browser/generatedModels.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generatedModels.js +1 -1
- package/{dist-esm/src → dist/browser}/generatedModels.js.map +1 -1
- package/dist/browser/index.d.ts +10 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +12 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +6 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/models.d.ts +247 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/odata.d.ts +7 -0
- package/dist/browser/odata.d.ts.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/sas/accountSasPermissions.d.ts +48 -0
- package/dist/browser/sas/accountSasPermissions.d.ts.map +1 -0
- package/dist/browser/sas/accountSasResourceTypes.d.ts +32 -0
- package/dist/browser/sas/accountSasResourceTypes.d.ts.map +1 -0
- package/dist/browser/sas/accountSasServices.d.ts +34 -0
- package/dist/browser/sas/accountSasServices.d.ts.map +1 -0
- package/dist/browser/sas/accountSasSignatureValues.d.ts +70 -0
- package/dist/browser/sas/accountSasSignatureValues.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sas/accountSasSignatureValues.js +8 -8
- package/dist/browser/sas/accountSasSignatureValues.js.map +1 -0
- package/dist/browser/sas/generateAccountSas.d.ts +54 -0
- package/dist/browser/sas/generateAccountSas.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sas/generateAccountSas.js +3 -3
- package/dist/browser/sas/generateAccountSas.js.map +1 -0
- package/dist/browser/sas/generateTableSas.d.ts +13 -0
- package/dist/browser/sas/generateTableSas.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sas/generateTableSas.js +2 -2
- package/dist/browser/sas/generateTableSas.js.map +1 -0
- package/dist/browser/sas/index.d.ts +9 -0
- package/dist/browser/sas/index.d.ts.map +1 -0
- package/dist/browser/sas/index.js +5 -0
- package/dist/browser/sas/index.js.map +1 -0
- package/dist/browser/sas/models.d.ts +34 -0
- package/dist/browser/sas/models.d.ts.map +1 -0
- package/dist/browser/sas/sasIPRange.d.ts +24 -0
- package/dist/browser/sas/sasIPRange.d.ts.map +1 -0
- package/dist/browser/sas/sasQueryParameters.d.ts +246 -0
- package/dist/browser/sas/sasQueryParameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sas/sasQueryParameters.js +2 -2
- package/dist/browser/sas/sasQueryParameters.js.map +1 -0
- package/dist/browser/sas/tableSasPermisions.d.ts +37 -0
- package/dist/browser/sas/tableSasPermisions.d.ts.map +1 -0
- package/dist/browser/sas/tableSasSignatureValues.d.ts +88 -0
- package/dist/browser/sas/tableSasSignatureValues.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sas/tableSasSignatureValues.js +6 -6
- package/dist/browser/sas/tableSasSignatureValues.js.map +1 -0
- package/dist/browser/secondaryEndpointPolicy.d.ts +17 -0
- package/dist/browser/secondaryEndpointPolicy.d.ts.map +1 -0
- package/dist/browser/serialization.d.ts +15 -0
- package/dist/browser/serialization.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/serialization.js +2 -2
- package/dist/browser/serialization.js.map +1 -0
- package/dist/browser/tablesNamedCredentialPolicy-browser.d.mts.map +1 -0
- package/dist/browser/tablesNamedCredentialPolicy-browser.mjs.map +1 -0
- package/dist/browser/tablesNamedCredentialPolicy.d.ts +5 -0
- package/{dist-esm/src/tablesNamedCredentialPolicy.browser.js → dist/browser/tablesNamedCredentialPolicy.js} +1 -1
- package/dist/browser/tablesSASTokenPolicy.d.ts +12 -0
- package/dist/browser/tablesSASTokenPolicy.d.ts.map +1 -0
- package/dist/browser/utils/accountConnectionString-browser.d.mts.map +1 -0
- package/dist/browser/utils/accountConnectionString-browser.mjs.map +1 -0
- package/dist/browser/utils/accountConnectionString.d.ts +11 -0
- package/{dist-esm/src/utils/accountConnectionString.browser.js → dist/browser/utils/accountConnectionString.js} +1 -1
- package/dist/browser/utils/apiVersionPolicy.d.ts +12 -0
- package/dist/browser/utils/apiVersionPolicy.d.ts.map +1 -0
- package/dist/browser/utils/baseTransactionHeaders.d.ts +7 -0
- package/dist/browser/utils/baseTransactionHeaders.d.ts.map +1 -0
- package/dist/browser/utils/bufferSerializer-browser.d.mts.map +1 -0
- package/dist/browser/utils/bufferSerializer-browser.mjs.map +1 -0
- package/dist/browser/utils/bufferSerializer.d.ts +11 -0
- package/{dist-esm/src/utils/bufferSerializer.browser.js → dist/browser/utils/bufferSerializer.js} +1 -1
- package/dist/browser/utils/challengeAuthenticationUtils.d.ts +8 -0
- package/dist/browser/utils/challengeAuthenticationUtils.d.ts.map +1 -0
- package/dist/browser/utils/computeHMACSHA256-browser.d.mts.map +1 -0
- package/dist/browser/utils/computeHMACSHA256-browser.mjs.map +1 -0
- package/dist/browser/utils/computeHMACSHA256.d.ts +2 -0
- package/{dist-esm/src/utils/computeHMACSHA256.browser.js → dist/browser/utils/computeHMACSHA256.js} +1 -1
- package/dist/browser/utils/connectionString.d.ts +21 -0
- package/dist/browser/utils/connectionString.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/utils/connectionString.js +1 -1
- package/dist/browser/utils/connectionString.js.map +1 -0
- package/dist/browser/utils/constants.d.ts +17 -0
- package/dist/browser/utils/constants.d.ts.map +1 -0
- package/dist/browser/utils/continuationToken.d.ts +14 -0
- package/dist/browser/utils/continuationToken.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/utils/continuationToken.js +1 -1
- package/dist/browser/utils/continuationToken.js.map +1 -0
- package/dist/browser/utils/errorHelpers.d.ts +23 -0
- package/dist/browser/utils/errorHelpers.d.ts.map +1 -0
- package/dist/browser/utils/errorHelpers.js.map +1 -0
- package/dist/browser/utils/internalModels.d.ts +134 -0
- package/dist/browser/utils/internalModels.d.ts.map +1 -0
- package/dist/browser/utils/internalModels.js.map +1 -0
- package/dist/browser/utils/isCosmosEndpoint.d.ts +2 -0
- package/dist/browser/utils/isCosmosEndpoint.d.ts.map +1 -0
- package/dist/browser/utils/isCredential.d.ts +3 -0
- package/dist/browser/utils/isCredential.d.ts.map +1 -0
- package/dist/browser/utils/tracing.d.ts +6 -0
- package/dist/browser/utils/tracing.d.ts.map +1 -0
- package/dist/browser/utils/transactionHeaders-browser.d.mts.map +1 -0
- package/dist/browser/utils/transactionHeaders-browser.mjs.map +1 -0
- package/dist/browser/utils/transactionHeaders.d.ts +7 -0
- package/{dist-esm/src/utils/transactionHeaders.browser.js → dist/browser/utils/transactionHeaders.js} +2 -2
- package/dist/browser/utils/transactionHelpers.d.ts +24 -0
- package/dist/browser/utils/transactionHelpers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/utils/transactionHelpers.js +1 -1
- package/dist/browser/utils/transactionHelpers.js.map +1 -0
- package/dist/browser/utils/truncateISO8061Date.d.ts +10 -0
- package/dist/browser/utils/truncateISO8061Date.d.ts.map +1 -0
- package/dist/browser/utils/uuid.d.ts +4 -0
- package/dist/browser/utils/uuid.d.ts.map +1 -0
- package/dist/commonjs/TableClient.d.ts +436 -0
- package/dist/commonjs/TableClient.d.ts.map +1 -0
- package/dist/commonjs/TableClient.js +589 -0
- package/dist/commonjs/TableClient.js.map +1 -0
- package/dist/commonjs/TablePolicies.d.ts +6 -0
- package/dist/commonjs/TablePolicies.d.ts.map +1 -0
- package/dist/commonjs/TablePolicies.js +67 -0
- package/dist/commonjs/TablePolicies.js.map +1 -0
- package/dist/commonjs/TableServiceClient.d.ts +161 -0
- package/dist/commonjs/TableServiceClient.d.ts.map +1 -0
- package/dist/commonjs/TableServiceClient.js +218 -0
- package/dist/commonjs/TableServiceClient.js.map +1 -0
- package/dist/commonjs/TableTransaction.d.ts +114 -0
- package/dist/commonjs/TableTransaction.d.ts.map +1 -0
- package/dist/commonjs/TableTransaction.js +268 -0
- package/dist/commonjs/TableTransaction.js.map +1 -0
- package/dist/commonjs/cosmosPathPolicy.d.ts +3 -0
- package/dist/commonjs/cosmosPathPolicy.d.ts.map +1 -0
- package/dist/commonjs/cosmosPathPolicy.js +19 -0
- package/dist/commonjs/cosmosPathPolicy.js.map +1 -0
- package/dist/commonjs/generated/generatedClient.d.ts +17 -0
- package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClient.js +50 -0
- package/dist/commonjs/generated/generatedClient.js.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts +14 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.js +46 -0
- package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +4 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +16 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/models/index.d.ts +603 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +31 -0
- package/dist/commonjs/generated/models/index.js.map +1 -0
- package/dist/commonjs/generated/models/mappers.d.ts +47 -0
- package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/models/mappers.js +1334 -0
- package/dist/commonjs/generated/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/models/parameters.d.ts +35 -0
- package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/models/parameters.js +364 -0
- package/dist/commonjs/generated/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/operations/index.d.ts +3 -0
- package/dist/commonjs/generated/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/index.js +13 -0
- package/dist/commonjs/generated/operations/index.js.map +1 -0
- package/dist/commonjs/generated/operations/service.d.ts +32 -0
- package/dist/commonjs/generated/operations/service.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/service.js +125 -0
- package/dist/commonjs/generated/operations/service.js.map +1 -0
- package/dist/commonjs/generated/operations/table.d.ts +90 -0
- package/dist/commonjs/generated/operations/table.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/table.js +455 -0
- package/dist/commonjs/generated/operations/table.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/service.d.ts +24 -0
- package/dist/commonjs/generated/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/service.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/service.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/table.d.ts +82 -0
- package/dist/commonjs/generated/operationsInterfaces/table.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/table.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/table.js.map +1 -0
- package/dist/commonjs/generatedModels.d.ts +2 -0
- package/dist/commonjs/generatedModels.d.ts.map +1 -0
- package/dist/commonjs/generatedModels.js +8 -0
- package/dist/commonjs/generatedModels.js.map +1 -0
- package/dist/commonjs/index.d.ts +10 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +23 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +6 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +11 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +247 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/odata.d.ts +7 -0
- package/dist/commonjs/odata.d.ts.map +1 -0
- package/dist/commonjs/odata.js +41 -0
- package/dist/commonjs/odata.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sas/accountSasPermissions.d.ts +48 -0
- package/dist/commonjs/sas/accountSasPermissions.d.ts.map +1 -0
- package/dist/commonjs/sas/accountSasPermissions.js +75 -0
- package/dist/commonjs/sas/accountSasPermissions.js.map +1 -0
- package/dist/commonjs/sas/accountSasResourceTypes.d.ts +32 -0
- package/dist/commonjs/sas/accountSasResourceTypes.d.ts.map +1 -0
- package/dist/commonjs/sas/accountSasResourceTypes.js +51 -0
- package/dist/commonjs/sas/accountSasResourceTypes.js.map +1 -0
- package/dist/commonjs/sas/accountSasServices.d.ts +34 -0
- package/dist/commonjs/sas/accountSasServices.d.ts.map +1 -0
- package/dist/commonjs/sas/accountSasServices.js +55 -0
- package/dist/commonjs/sas/accountSasServices.js.map +1 -0
- package/dist/commonjs/sas/accountSasSignatureValues.d.ts +70 -0
- package/dist/commonjs/sas/accountSasSignatureValues.d.ts.map +1 -0
- package/dist/commonjs/sas/accountSasSignatureValues.js +58 -0
- package/dist/commonjs/sas/accountSasSignatureValues.js.map +1 -0
- package/dist/commonjs/sas/generateAccountSas.d.ts +54 -0
- package/dist/commonjs/sas/generateAccountSas.d.ts.map +1 -0
- package/dist/commonjs/sas/generateAccountSas.js +33 -0
- package/dist/commonjs/sas/generateAccountSas.js.map +1 -0
- package/dist/commonjs/sas/generateTableSas.d.ts +13 -0
- package/dist/commonjs/sas/generateTableSas.d.ts.map +1 -0
- package/dist/commonjs/sas/generateTableSas.js +38 -0
- package/dist/commonjs/sas/generateTableSas.js.map +1 -0
- package/dist/commonjs/sas/index.d.ts +9 -0
- package/dist/commonjs/sas/index.d.ts.map +1 -0
- package/dist/commonjs/sas/index.js +10 -0
- package/dist/commonjs/sas/index.js.map +1 -0
- package/dist/commonjs/sas/models.d.ts +34 -0
- package/dist/commonjs/sas/models.d.ts.map +1 -0
- package/dist/commonjs/sas/models.js +5 -0
- package/dist/commonjs/sas/models.js.map +1 -0
- package/dist/commonjs/sas/sasIPRange.d.ts +24 -0
- package/dist/commonjs/sas/sasIPRange.d.ts.map +1 -0
- package/dist/commonjs/sas/sasIPRange.js +19 -0
- package/dist/commonjs/sas/sasIPRange.js.map +1 -0
- package/dist/commonjs/sas/sasQueryParameters.d.ts +246 -0
- package/dist/commonjs/sas/sasQueryParameters.d.ts.map +1 -0
- package/dist/commonjs/sas/sasQueryParameters.js +197 -0
- package/dist/commonjs/sas/sasQueryParameters.js.map +1 -0
- package/dist/commonjs/sas/tableSasPermisions.d.ts +37 -0
- package/dist/commonjs/sas/tableSasPermisions.d.ts.map +1 -0
- package/dist/commonjs/sas/tableSasPermisions.js +60 -0
- package/dist/commonjs/sas/tableSasPermisions.js.map +1 -0
- package/dist/commonjs/sas/tableSasSignatureValues.d.ts +88 -0
- package/dist/commonjs/sas/tableSasSignatureValues.d.ts.map +1 -0
- package/dist/commonjs/sas/tableSasSignatureValues.js +77 -0
- package/dist/commonjs/sas/tableSasSignatureValues.js.map +1 -0
- package/dist/commonjs/secondaryEndpointPolicy.d.ts +17 -0
- package/dist/commonjs/secondaryEndpointPolicy.d.ts.map +1 -0
- package/dist/commonjs/secondaryEndpointPolicy.js +50 -0
- package/dist/commonjs/secondaryEndpointPolicy.js.map +1 -0
- package/dist/commonjs/serialization.d.ts +15 -0
- package/dist/commonjs/serialization.d.ts.map +1 -0
- package/dist/commonjs/serialization.js +223 -0
- package/dist/commonjs/serialization.js.map +1 -0
- package/dist/commonjs/tablesNamedCredentialPolicy.d.ts +12 -0
- package/dist/commonjs/tablesNamedCredentialPolicy.d.ts.map +1 -0
- package/dist/commonjs/tablesNamedCredentialPolicy.js +68 -0
- package/dist/commonjs/tablesNamedCredentialPolicy.js.map +1 -0
- package/dist/commonjs/tablesSASTokenPolicy.d.ts +12 -0
- package/dist/commonjs/tablesSASTokenPolicy.d.ts.map +1 -0
- package/dist/commonjs/tablesSASTokenPolicy.js +32 -0
- package/dist/commonjs/tablesSASTokenPolicy.js.map +1 -0
- package/dist/commonjs/utils/accountConnectionString.d.ts +11 -0
- package/dist/commonjs/utils/accountConnectionString.d.ts.map +1 -0
- package/dist/commonjs/utils/accountConnectionString.js +48 -0
- package/dist/commonjs/utils/accountConnectionString.js.map +1 -0
- package/dist/commonjs/utils/apiVersionPolicy.d.ts +12 -0
- package/dist/commonjs/utils/apiVersionPolicy.d.ts.map +1 -0
- package/dist/commonjs/utils/apiVersionPolicy.js +25 -0
- package/dist/commonjs/utils/apiVersionPolicy.js.map +1 -0
- package/dist/commonjs/utils/baseTransactionHeaders.d.ts +7 -0
- package/dist/commonjs/utils/baseTransactionHeaders.d.ts.map +1 -0
- package/dist/commonjs/utils/baseTransactionHeaders.js +19 -0
- package/dist/commonjs/utils/baseTransactionHeaders.js.map +1 -0
- package/dist/commonjs/utils/bufferSerializer.d.ts +11 -0
- package/dist/commonjs/utils/bufferSerializer.d.ts.map +1 -0
- package/dist/commonjs/utils/bufferSerializer.js +27 -0
- package/dist/commonjs/utils/bufferSerializer.js.map +1 -0
- package/dist/commonjs/utils/challengeAuthenticationUtils.d.ts +8 -0
- package/dist/commonjs/utils/challengeAuthenticationUtils.d.ts.map +1 -0
- package/dist/commonjs/utils/challengeAuthenticationUtils.js +23 -0
- package/dist/commonjs/utils/challengeAuthenticationUtils.js.map +1 -0
- package/dist/commonjs/utils/computeHMACSHA256.d.ts +2 -0
- package/dist/commonjs/utils/computeHMACSHA256.d.ts.map +1 -0
- package/dist/commonjs/utils/computeHMACSHA256.js +11 -0
- package/dist/commonjs/utils/computeHMACSHA256.js.map +1 -0
- package/dist/commonjs/utils/connectionString.d.ts +21 -0
- package/dist/commonjs/utils/connectionString.d.ts.map +1 -0
- package/dist/commonjs/utils/connectionString.js +135 -0
- package/dist/commonjs/utils/connectionString.js.map +1 -0
- package/dist/commonjs/utils/constants.d.ts +17 -0
- package/dist/commonjs/utils/constants.d.ts.map +1 -0
- package/dist/commonjs/utils/constants.js +104 -0
- package/dist/commonjs/utils/constants.js.map +1 -0
- package/dist/commonjs/utils/continuationToken.d.ts +14 -0
- package/dist/commonjs/utils/continuationToken.d.ts.map +1 -0
- package/dist/commonjs/utils/continuationToken.js +30 -0
- package/dist/commonjs/utils/continuationToken.js.map +1 -0
- package/dist/commonjs/utils/errorHelpers.d.ts +23 -0
- package/dist/commonjs/utils/errorHelpers.d.ts.map +1 -0
- package/dist/commonjs/utils/errorHelpers.js +37 -0
- package/dist/commonjs/utils/errorHelpers.js.map +1 -0
- package/dist/commonjs/utils/internalModels.d.ts +134 -0
- package/dist/commonjs/utils/internalModels.d.ts.map +1 -0
- package/dist/commonjs/utils/internalModels.js +5 -0
- package/dist/commonjs/utils/internalModels.js.map +1 -0
- package/dist/commonjs/utils/isCosmosEndpoint.d.ts +2 -0
- package/dist/commonjs/utils/isCosmosEndpoint.d.ts.map +1 -0
- package/dist/commonjs/utils/isCosmosEndpoint.js +19 -0
- package/dist/commonjs/utils/isCosmosEndpoint.js.map +1 -0
- package/dist/commonjs/utils/isCredential.d.ts +3 -0
- package/dist/commonjs/utils/isCredential.d.ts.map +1 -0
- package/dist/commonjs/utils/isCredential.js +10 -0
- package/dist/commonjs/utils/isCredential.js.map +1 -0
- package/dist/commonjs/utils/tracing.d.ts +6 -0
- package/dist/commonjs/utils/tracing.d.ts.map +1 -0
- package/dist/commonjs/utils/tracing.js +16 -0
- package/dist/commonjs/utils/tracing.js.map +1 -0
- package/dist/commonjs/utils/transactionHeaders.d.ts +7 -0
- package/dist/commonjs/utils/transactionHeaders.d.ts.map +1 -0
- package/dist/commonjs/utils/transactionHeaders.js +17 -0
- package/dist/commonjs/utils/transactionHeaders.js.map +1 -0
- package/dist/commonjs/utils/transactionHelpers.d.ts +24 -0
- package/dist/commonjs/utils/transactionHelpers.d.ts.map +1 -0
- package/dist/commonjs/utils/transactionHelpers.js +49 -0
- package/dist/commonjs/utils/transactionHelpers.js.map +1 -0
- package/dist/commonjs/utils/truncateISO8061Date.d.ts +10 -0
- package/dist/commonjs/utils/truncateISO8061Date.d.ts.map +1 -0
- package/dist/commonjs/utils/truncateISO8061Date.js +21 -0
- package/dist/commonjs/utils/truncateISO8061Date.js.map +1 -0
- package/dist/commonjs/utils/uuid.d.ts +4 -0
- package/dist/commonjs/utils/uuid.d.ts.map +1 -0
- package/dist/commonjs/utils/uuid.js +15 -0
- package/dist/commonjs/utils/uuid.js.map +1 -0
- package/dist/esm/TableClient.d.ts +436 -0
- package/dist/esm/TableClient.d.ts.map +1 -0
- package/dist/esm/TableClient.js +585 -0
- package/dist/esm/TableClient.js.map +1 -0
- package/dist/esm/TablePolicies.d.ts +6 -0
- package/dist/esm/TablePolicies.d.ts.map +1 -0
- package/dist/esm/TablePolicies.js +62 -0
- package/dist/esm/TablePolicies.js.map +1 -0
- package/dist/esm/TableServiceClient.d.ts +161 -0
- package/dist/esm/TableServiceClient.d.ts.map +1 -0
- package/dist/esm/TableServiceClient.js +214 -0
- package/dist/esm/TableServiceClient.js.map +1 -0
- package/dist/esm/TableTransaction.d.ts +114 -0
- package/dist/esm/TableTransaction.d.ts.map +1 -0
- package/dist/esm/TableTransaction.js +261 -0
- package/dist/esm/TableTransaction.js.map +1 -0
- package/dist/esm/cosmosPathPolicy.d.ts +3 -0
- package/dist/esm/cosmosPathPolicy.d.ts.map +1 -0
- package/dist/esm/cosmosPathPolicy.js +16 -0
- package/dist/esm/cosmosPathPolicy.js.map +1 -0
- package/dist/esm/generated/generatedClient.d.ts +17 -0
- package/dist/esm/generated/generatedClient.d.ts.map +1 -0
- package/dist/esm/generated/generatedClient.js +45 -0
- package/dist/esm/generated/generatedClient.js.map +1 -0
- package/dist/esm/generated/generatedClientContext.d.ts +14 -0
- package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/esm/generated/generatedClientContext.js +41 -0
- package/dist/esm/generated/generatedClientContext.js.map +1 -0
- package/dist/esm/generated/index.d.ts +4 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +11 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +603 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/index.js +28 -0
- package/dist/esm/generated/models/index.js.map +1 -0
- package/dist/esm/generated/models/mappers.d.ts +47 -0
- package/dist/esm/generated/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/models/mappers.js +1331 -0
- package/dist/esm/generated/models/mappers.js.map +1 -0
- package/dist/esm/generated/models/parameters.d.ts +35 -0
- package/dist/esm/generated/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/models/parameters.js +361 -0
- package/dist/esm/generated/models/parameters.js.map +1 -0
- package/dist/esm/generated/operations/index.d.ts +3 -0
- package/dist/esm/generated/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/operations/index.js +10 -0
- package/dist/esm/generated/operations/index.js.map +1 -0
- package/dist/esm/generated/operations/service.d.ts +32 -0
- package/dist/esm/generated/operations/service.d.ts.map +1 -0
- package/dist/esm/generated/operations/service.js +120 -0
- package/dist/esm/generated/operations/service.js.map +1 -0
- package/dist/esm/generated/operations/table.d.ts +90 -0
- package/dist/esm/generated/operations/table.d.ts.map +1 -0
- package/dist/esm/generated/operations/table.js +450 -0
- package/dist/esm/generated/operations/table.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/index.js +10 -0
- package/dist/esm/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/service.d.ts +24 -0
- package/dist/esm/generated/operationsInterfaces/service.d.ts.map +1 -0
- package/{dist-esm/src/generated/operations/index.js → dist/esm/generated/operationsInterfaces/service.js} +2 -3
- package/dist/esm/generated/operationsInterfaces/service.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/table.d.ts +82 -0
- package/dist/esm/generated/operationsInterfaces/table.d.ts.map +1 -0
- package/{dist-esm/src/generated/operationsInterfaces/index.js → dist/esm/generated/operationsInterfaces/table.js} +2 -3
- package/dist/esm/generated/operationsInterfaces/table.js.map +1 -0
- package/dist/esm/generatedModels.d.ts +2 -0
- package/dist/esm/generatedModels.d.ts.map +1 -0
- package/dist/esm/generatedModels.js +4 -0
- package/dist/esm/generatedModels.js.map +1 -0
- package/dist/esm/index.d.ts +10 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +6 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +8 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +247 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/odata.d.ts +7 -0
- package/dist/esm/odata.d.ts.map +1 -0
- package/dist/esm/odata.js +37 -0
- package/dist/esm/odata.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sas/accountSasPermissions.d.ts +48 -0
- package/dist/esm/sas/accountSasPermissions.d.ts.map +1 -0
- package/dist/esm/sas/accountSasPermissions.js +71 -0
- package/dist/esm/sas/accountSasPermissions.js.map +1 -0
- package/dist/esm/sas/accountSasResourceTypes.d.ts +32 -0
- package/dist/esm/sas/accountSasResourceTypes.d.ts.map +1 -0
- package/dist/esm/sas/accountSasResourceTypes.js +47 -0
- package/dist/esm/sas/accountSasResourceTypes.js.map +1 -0
- package/dist/esm/sas/accountSasServices.d.ts +34 -0
- package/dist/esm/sas/accountSasServices.d.ts.map +1 -0
- package/dist/esm/sas/accountSasServices.js +51 -0
- package/dist/esm/sas/accountSasServices.js.map +1 -0
- package/dist/esm/sas/accountSasSignatureValues.d.ts +70 -0
- package/dist/esm/sas/accountSasSignatureValues.d.ts.map +1 -0
- package/dist/esm/sas/accountSasSignatureValues.js +55 -0
- package/dist/esm/sas/accountSasSignatureValues.js.map +1 -0
- package/dist/esm/sas/generateAccountSas.d.ts +54 -0
- package/dist/esm/sas/generateAccountSas.d.ts.map +1 -0
- package/dist/esm/sas/generateAccountSas.js +30 -0
- package/dist/esm/sas/generateAccountSas.js.map +1 -0
- package/dist/esm/sas/generateTableSas.d.ts +13 -0
- package/dist/esm/sas/generateTableSas.d.ts.map +1 -0
- package/dist/esm/sas/generateTableSas.js +35 -0
- package/dist/esm/sas/generateTableSas.js.map +1 -0
- package/dist/esm/sas/index.d.ts +9 -0
- package/dist/esm/sas/index.d.ts.map +1 -0
- package/dist/esm/sas/index.js +5 -0
- package/dist/esm/sas/index.js.map +1 -0
- package/dist/esm/sas/models.d.ts +34 -0
- package/dist/esm/sas/models.d.ts.map +1 -0
- package/dist/esm/sas/models.js +4 -0
- package/dist/esm/sas/models.js.map +1 -0
- package/dist/esm/sas/sasIPRange.d.ts +24 -0
- package/dist/esm/sas/sasIPRange.d.ts.map +1 -0
- package/dist/esm/sas/sasIPRange.js +16 -0
- package/dist/esm/sas/sasIPRange.js.map +1 -0
- package/dist/esm/sas/sasQueryParameters.d.ts +246 -0
- package/dist/esm/sas/sasQueryParameters.d.ts.map +1 -0
- package/dist/esm/sas/sasQueryParameters.js +193 -0
- package/dist/esm/sas/sasQueryParameters.js.map +1 -0
- package/dist/esm/sas/tableSasPermisions.d.ts +37 -0
- package/dist/esm/sas/tableSasPermisions.d.ts.map +1 -0
- package/dist/esm/sas/tableSasPermisions.js +56 -0
- package/dist/esm/sas/tableSasPermisions.js.map +1 -0
- package/dist/esm/sas/tableSasSignatureValues.d.ts +88 -0
- package/dist/esm/sas/tableSasSignatureValues.d.ts.map +1 -0
- package/dist/esm/sas/tableSasSignatureValues.js +74 -0
- package/dist/esm/sas/tableSasSignatureValues.js.map +1 -0
- package/dist/esm/secondaryEndpointPolicy.d.ts +17 -0
- package/dist/esm/secondaryEndpointPolicy.d.ts.map +1 -0
- package/dist/esm/secondaryEndpointPolicy.js +46 -0
- package/dist/esm/secondaryEndpointPolicy.js.map +1 -0
- package/dist/esm/serialization.d.ts +15 -0
- package/dist/esm/serialization.d.ts.map +1 -0
- package/dist/esm/serialization.js +215 -0
- package/dist/esm/serialization.js.map +1 -0
- package/dist/esm/tablesNamedCredentialPolicy.d.ts +12 -0
- package/dist/esm/tablesNamedCredentialPolicy.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/tablesNamedCredentialPolicy.js +2 -2
- package/dist/esm/tablesNamedCredentialPolicy.js.map +1 -0
- package/dist/esm/tablesSASTokenPolicy.d.ts +12 -0
- package/dist/esm/tablesSASTokenPolicy.d.ts.map +1 -0
- package/dist/esm/tablesSASTokenPolicy.js +27 -0
- package/dist/esm/tablesSASTokenPolicy.js.map +1 -0
- package/dist/esm/utils/accountConnectionString.d.ts +11 -0
- package/dist/esm/utils/accountConnectionString.d.ts.map +1 -0
- package/dist/esm/utils/accountConnectionString.js.map +1 -0
- package/dist/esm/utils/apiVersionPolicy.d.ts +12 -0
- package/dist/esm/utils/apiVersionPolicy.d.ts.map +1 -0
- package/dist/esm/utils/apiVersionPolicy.js +21 -0
- package/dist/esm/utils/apiVersionPolicy.js.map +1 -0
- package/dist/esm/utils/baseTransactionHeaders.d.ts +7 -0
- package/dist/esm/utils/baseTransactionHeaders.d.ts.map +1 -0
- package/dist/esm/utils/baseTransactionHeaders.js +16 -0
- package/dist/esm/utils/baseTransactionHeaders.js.map +1 -0
- package/dist/esm/utils/bufferSerializer.d.ts +11 -0
- package/dist/esm/utils/bufferSerializer.d.ts.map +1 -0
- package/dist/esm/utils/challengeAuthenticationUtils.d.ts +8 -0
- package/dist/esm/utils/challengeAuthenticationUtils.d.ts.map +1 -0
- package/dist/esm/utils/challengeAuthenticationUtils.js +20 -0
- package/dist/esm/utils/challengeAuthenticationUtils.js.map +1 -0
- package/dist/esm/utils/computeHMACSHA256.d.ts +2 -0
- package/dist/esm/utils/computeHMACSHA256.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/utils/computeHMACSHA256.js +1 -1
- package/{dist-esm/src → dist/esm}/utils/computeHMACSHA256.js.map +1 -1
- package/dist/esm/utils/connectionString.d.ts +21 -0
- package/dist/esm/utils/connectionString.d.ts.map +1 -0
- package/dist/esm/utils/connectionString.js +131 -0
- package/dist/esm/utils/connectionString.js.map +1 -0
- package/dist/esm/utils/constants.d.ts +17 -0
- package/dist/esm/utils/constants.d.ts.map +1 -0
- package/dist/esm/utils/constants.js +101 -0
- package/dist/esm/utils/constants.js.map +1 -0
- package/dist/esm/utils/continuationToken.d.ts +14 -0
- package/dist/esm/utils/continuationToken.d.ts.map +1 -0
- package/dist/esm/utils/continuationToken.js +26 -0
- package/dist/esm/utils/continuationToken.js.map +1 -0
- package/dist/esm/utils/errorHelpers.d.ts +23 -0
- package/dist/esm/utils/errorHelpers.d.ts.map +1 -0
- package/dist/esm/utils/errorHelpers.js +34 -0
- package/dist/esm/utils/errorHelpers.js.map +1 -0
- package/dist/esm/utils/internalModels.d.ts +134 -0
- package/dist/esm/utils/internalModels.d.ts.map +1 -0
- package/dist/esm/utils/internalModels.js +4 -0
- package/dist/esm/utils/internalModels.js.map +1 -0
- package/dist/esm/utils/isCosmosEndpoint.d.ts +2 -0
- package/dist/esm/utils/isCosmosEndpoint.d.ts.map +1 -0
- package/dist/esm/utils/isCosmosEndpoint.js +16 -0
- package/dist/esm/utils/isCosmosEndpoint.js.map +1 -0
- package/dist/esm/utils/isCredential.d.ts +3 -0
- package/dist/esm/utils/isCredential.d.ts.map +1 -0
- package/dist/esm/utils/isCredential.js +7 -0
- package/dist/esm/utils/isCredential.js.map +1 -0
- package/dist/esm/utils/tracing.d.ts +6 -0
- package/dist/esm/utils/tracing.d.ts.map +1 -0
- package/dist/esm/utils/tracing.js +13 -0
- package/dist/esm/utils/tracing.js.map +1 -0
- package/dist/esm/utils/transactionHeaders.d.ts +7 -0
- package/dist/esm/utils/transactionHeaders.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/utils/transactionHeaders.js +1 -1
- package/dist/esm/utils/transactionHeaders.js.map +1 -0
- package/dist/esm/utils/transactionHelpers.d.ts +24 -0
- package/dist/esm/utils/transactionHelpers.d.ts.map +1 -0
- package/dist/esm/utils/transactionHelpers.js +43 -0
- package/dist/esm/utils/transactionHelpers.js.map +1 -0
- package/dist/esm/utils/truncateISO8061Date.d.ts +10 -0
- package/dist/esm/utils/truncateISO8061Date.d.ts.map +1 -0
- package/dist/esm/utils/truncateISO8061Date.js +18 -0
- package/dist/esm/utils/truncateISO8061Date.js.map +1 -0
- package/dist/esm/utils/uuid.d.ts +4 -0
- package/dist/esm/utils/uuid.d.ts.map +1 -0
- package/dist/esm/utils/uuid.js +11 -0
- package/dist/esm/utils/uuid.js.map +1 -0
- package/dist/react-native/TableClient.d.ts +436 -0
- package/dist/react-native/TableClient.d.ts.map +1 -0
- package/dist/react-native/TableClient.js +585 -0
- package/dist/react-native/TableClient.js.map +1 -0
- package/dist/react-native/TablePolicies.d.ts +6 -0
- package/dist/react-native/TablePolicies.d.ts.map +1 -0
- package/dist/react-native/TablePolicies.js +62 -0
- package/dist/react-native/TablePolicies.js.map +1 -0
- package/dist/react-native/TableServiceClient.d.ts +161 -0
- package/dist/react-native/TableServiceClient.d.ts.map +1 -0
- package/dist/react-native/TableServiceClient.js +214 -0
- package/dist/react-native/TableServiceClient.js.map +1 -0
- package/dist/react-native/TableTransaction.d.ts +114 -0
- package/dist/react-native/TableTransaction.d.ts.map +1 -0
- package/dist/react-native/TableTransaction.js +261 -0
- package/dist/react-native/TableTransaction.js.map +1 -0
- package/dist/react-native/cosmosPathPolicy.d.ts +3 -0
- package/dist/react-native/cosmosPathPolicy.d.ts.map +1 -0
- package/dist/react-native/cosmosPathPolicy.js +16 -0
- package/dist/react-native/cosmosPathPolicy.js.map +1 -0
- package/dist/react-native/generated/generatedClient.d.ts +17 -0
- package/dist/react-native/generated/generatedClient.d.ts.map +1 -0
- package/dist/react-native/generated/generatedClient.js +45 -0
- package/dist/react-native/generated/generatedClient.js.map +1 -0
- package/dist/react-native/generated/generatedClientContext.d.ts +14 -0
- package/dist/react-native/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/react-native/generated/generatedClientContext.js +41 -0
- package/dist/react-native/generated/generatedClientContext.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +4 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/models/index.d.ts +603 -0
- package/dist/react-native/generated/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/models/index.js +28 -0
- package/dist/react-native/generated/models/index.js.map +1 -0
- package/dist/react-native/generated/models/mappers.d.ts +47 -0
- package/dist/react-native/generated/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/models/mappers.js +1331 -0
- package/dist/react-native/generated/models/mappers.js.map +1 -0
- package/dist/react-native/generated/models/parameters.d.ts +35 -0
- package/dist/react-native/generated/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/models/parameters.js +361 -0
- package/dist/react-native/generated/models/parameters.js.map +1 -0
- package/dist/react-native/generated/operations/index.d.ts +3 -0
- package/dist/react-native/generated/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/operations/index.js +10 -0
- package/dist/react-native/generated/operations/index.js.map +1 -0
- package/dist/react-native/generated/operations/service.d.ts +32 -0
- package/dist/react-native/generated/operations/service.d.ts.map +1 -0
- package/dist/react-native/generated/operations/service.js +120 -0
- package/dist/react-native/generated/operations/service.js.map +1 -0
- package/dist/react-native/generated/operations/table.d.ts +90 -0
- package/dist/react-native/generated/operations/table.d.ts.map +1 -0
- package/dist/react-native/generated/operations/table.js +450 -0
- package/dist/react-native/generated/operations/table.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/index.js +10 -0
- package/dist/react-native/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/service.d.ts +24 -0
- package/dist/react-native/generated/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/service.js +9 -0
- package/dist/react-native/generated/operationsInterfaces/service.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/table.d.ts +82 -0
- package/dist/react-native/generated/operationsInterfaces/table.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/table.js +9 -0
- package/dist/react-native/generated/operationsInterfaces/table.js.map +1 -0
- package/dist/react-native/generatedModels.d.ts +2 -0
- package/dist/react-native/generatedModels.d.ts.map +1 -0
- package/dist/react-native/generatedModels.js +4 -0
- package/dist/react-native/generatedModels.js.map +1 -0
- package/dist/react-native/index.d.ts +10 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +12 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +6 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +8 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +247 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/odata.d.ts +7 -0
- package/dist/react-native/odata.d.ts.map +1 -0
- package/dist/react-native/odata.js +37 -0
- package/dist/react-native/odata.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/sas/accountSasPermissions.d.ts +48 -0
- package/dist/react-native/sas/accountSasPermissions.d.ts.map +1 -0
- package/dist/react-native/sas/accountSasPermissions.js +71 -0
- package/dist/react-native/sas/accountSasPermissions.js.map +1 -0
- package/dist/react-native/sas/accountSasResourceTypes.d.ts +32 -0
- package/dist/react-native/sas/accountSasResourceTypes.d.ts.map +1 -0
- package/dist/react-native/sas/accountSasResourceTypes.js +47 -0
- package/dist/react-native/sas/accountSasResourceTypes.js.map +1 -0
- package/dist/react-native/sas/accountSasServices.d.ts +34 -0
- package/dist/react-native/sas/accountSasServices.d.ts.map +1 -0
- package/dist/react-native/sas/accountSasServices.js +51 -0
- package/dist/react-native/sas/accountSasServices.js.map +1 -0
- package/dist/react-native/sas/accountSasSignatureValues.d.ts +70 -0
- package/dist/react-native/sas/accountSasSignatureValues.d.ts.map +1 -0
- package/dist/react-native/sas/accountSasSignatureValues.js +55 -0
- package/dist/react-native/sas/accountSasSignatureValues.js.map +1 -0
- package/dist/react-native/sas/generateAccountSas.d.ts +54 -0
- package/dist/react-native/sas/generateAccountSas.d.ts.map +1 -0
- package/dist/react-native/sas/generateAccountSas.js +30 -0
- package/dist/react-native/sas/generateAccountSas.js.map +1 -0
- package/dist/react-native/sas/generateTableSas.d.ts +13 -0
- package/dist/react-native/sas/generateTableSas.d.ts.map +1 -0
- package/dist/react-native/sas/generateTableSas.js +35 -0
- package/dist/react-native/sas/generateTableSas.js.map +1 -0
- package/dist/react-native/sas/index.d.ts +9 -0
- package/dist/react-native/sas/index.d.ts.map +1 -0
- package/dist/react-native/sas/index.js +5 -0
- package/dist/react-native/sas/index.js.map +1 -0
- package/dist/react-native/sas/models.d.ts +34 -0
- package/dist/react-native/sas/models.d.ts.map +1 -0
- package/dist/react-native/sas/models.js +4 -0
- package/dist/react-native/sas/models.js.map +1 -0
- package/dist/react-native/sas/sasIPRange.d.ts +24 -0
- package/dist/react-native/sas/sasIPRange.d.ts.map +1 -0
- package/dist/react-native/sas/sasIPRange.js +16 -0
- package/dist/react-native/sas/sasIPRange.js.map +1 -0
- package/dist/react-native/sas/sasQueryParameters.d.ts +246 -0
- package/dist/react-native/sas/sasQueryParameters.d.ts.map +1 -0
- package/dist/react-native/sas/sasQueryParameters.js +193 -0
- package/dist/react-native/sas/sasQueryParameters.js.map +1 -0
- package/dist/react-native/sas/tableSasPermisions.d.ts +37 -0
- package/dist/react-native/sas/tableSasPermisions.d.ts.map +1 -0
- package/dist/react-native/sas/tableSasPermisions.js +56 -0
- package/dist/react-native/sas/tableSasPermisions.js.map +1 -0
- package/dist/react-native/sas/tableSasSignatureValues.d.ts +88 -0
- package/dist/react-native/sas/tableSasSignatureValues.d.ts.map +1 -0
- package/dist/react-native/sas/tableSasSignatureValues.js +74 -0
- package/dist/react-native/sas/tableSasSignatureValues.js.map +1 -0
- package/dist/react-native/secondaryEndpointPolicy.d.ts +17 -0
- package/dist/react-native/secondaryEndpointPolicy.d.ts.map +1 -0
- package/dist/react-native/secondaryEndpointPolicy.js +46 -0
- package/dist/react-native/secondaryEndpointPolicy.js.map +1 -0
- package/dist/react-native/serialization.d.ts +15 -0
- package/dist/react-native/serialization.d.ts.map +1 -0
- package/dist/react-native/serialization.js +215 -0
- package/dist/react-native/serialization.js.map +1 -0
- package/dist/react-native/tablesNamedCredentialPolicy.d.ts +12 -0
- package/dist/react-native/tablesNamedCredentialPolicy.d.ts.map +1 -0
- package/dist/react-native/tablesNamedCredentialPolicy.js +63 -0
- package/dist/react-native/tablesNamedCredentialPolicy.js.map +1 -0
- package/dist/react-native/tablesSASTokenPolicy.d.ts +12 -0
- package/dist/react-native/tablesSASTokenPolicy.d.ts.map +1 -0
- package/dist/react-native/tablesSASTokenPolicy.js +27 -0
- package/dist/react-native/tablesSASTokenPolicy.js.map +1 -0
- package/dist/react-native/utils/accountConnectionString.d.ts +11 -0
- package/dist/react-native/utils/accountConnectionString.d.ts.map +1 -0
- package/dist/react-native/utils/accountConnectionString.js +44 -0
- package/dist/react-native/utils/accountConnectionString.js.map +1 -0
- package/dist/react-native/utils/apiVersionPolicy.d.ts +12 -0
- package/dist/react-native/utils/apiVersionPolicy.d.ts.map +1 -0
- package/dist/react-native/utils/apiVersionPolicy.js +21 -0
- package/dist/react-native/utils/apiVersionPolicy.js.map +1 -0
- package/dist/react-native/utils/baseTransactionHeaders.d.ts +7 -0
- package/dist/react-native/utils/baseTransactionHeaders.d.ts.map +1 -0
- package/dist/react-native/utils/baseTransactionHeaders.js +16 -0
- package/dist/react-native/utils/baseTransactionHeaders.js.map +1 -0
- package/dist/react-native/utils/bufferSerializer.d.ts +11 -0
- package/dist/react-native/utils/bufferSerializer.d.ts.map +1 -0
- package/dist/react-native/utils/bufferSerializer.js +23 -0
- package/dist/react-native/utils/bufferSerializer.js.map +1 -0
- package/dist/react-native/utils/challengeAuthenticationUtils.d.ts +8 -0
- package/dist/react-native/utils/challengeAuthenticationUtils.d.ts.map +1 -0
- package/dist/react-native/utils/challengeAuthenticationUtils.js +20 -0
- package/dist/react-native/utils/challengeAuthenticationUtils.js.map +1 -0
- package/dist/react-native/utils/computeHMACSHA256.d.ts +2 -0
- package/dist/react-native/utils/computeHMACSHA256.d.ts.map +1 -0
- package/dist/react-native/utils/computeHMACSHA256.js +8 -0
- package/dist/react-native/utils/computeHMACSHA256.js.map +1 -0
- package/dist/react-native/utils/connectionString.d.ts +21 -0
- package/dist/react-native/utils/connectionString.d.ts.map +1 -0
- package/dist/react-native/utils/connectionString.js +131 -0
- package/dist/react-native/utils/connectionString.js.map +1 -0
- package/dist/react-native/utils/constants.d.ts +17 -0
- package/dist/react-native/utils/constants.d.ts.map +1 -0
- package/dist/react-native/utils/constants.js +101 -0
- package/dist/react-native/utils/constants.js.map +1 -0
- package/dist/react-native/utils/continuationToken.d.ts +14 -0
- package/dist/react-native/utils/continuationToken.d.ts.map +1 -0
- package/dist/react-native/utils/continuationToken.js +26 -0
- package/dist/react-native/utils/continuationToken.js.map +1 -0
- package/dist/react-native/utils/errorHelpers.d.ts +23 -0
- package/dist/react-native/utils/errorHelpers.d.ts.map +1 -0
- package/dist/react-native/utils/errorHelpers.js +34 -0
- package/dist/react-native/utils/errorHelpers.js.map +1 -0
- package/dist/react-native/utils/internalModels.d.ts +134 -0
- package/dist/react-native/utils/internalModels.d.ts.map +1 -0
- package/dist/react-native/utils/internalModels.js +4 -0
- package/dist/react-native/utils/internalModels.js.map +1 -0
- package/dist/react-native/utils/isCosmosEndpoint.d.ts +2 -0
- package/dist/react-native/utils/isCosmosEndpoint.d.ts.map +1 -0
- package/dist/react-native/utils/isCosmosEndpoint.js +16 -0
- package/dist/react-native/utils/isCosmosEndpoint.js.map +1 -0
- package/dist/react-native/utils/isCredential.d.ts +3 -0
- package/dist/react-native/utils/isCredential.d.ts.map +1 -0
- package/dist/react-native/utils/isCredential.js +7 -0
- package/dist/react-native/utils/isCredential.js.map +1 -0
- package/dist/react-native/utils/tracing.d.ts +6 -0
- package/dist/react-native/utils/tracing.d.ts.map +1 -0
- package/dist/react-native/utils/tracing.js +13 -0
- package/dist/react-native/utils/tracing.js.map +1 -0
- package/dist/react-native/utils/transactionHeaders.d.ts +7 -0
- package/dist/react-native/utils/transactionHeaders.d.ts.map +1 -0
- package/dist/react-native/utils/transactionHeaders.js +14 -0
- package/dist/react-native/utils/transactionHeaders.js.map +1 -0
- package/dist/react-native/utils/transactionHelpers.d.ts +24 -0
- package/dist/react-native/utils/transactionHelpers.d.ts.map +1 -0
- package/dist/react-native/utils/transactionHelpers.js +43 -0
- package/dist/react-native/utils/transactionHelpers.js.map +1 -0
- package/dist/react-native/utils/truncateISO8061Date.d.ts +10 -0
- package/dist/react-native/utils/truncateISO8061Date.d.ts.map +1 -0
- package/dist/react-native/utils/truncateISO8061Date.js +18 -0
- package/dist/react-native/utils/truncateISO8061Date.js.map +1 -0
- package/dist/react-native/utils/uuid.d.ts +4 -0
- package/dist/react-native/utils/uuid.d.ts.map +1 -0
- package/dist/react-native/utils/uuid.js +11 -0
- package/dist/react-native/utils/uuid.js.map +1 -0
- package/package.json +68 -66
- package/dist/index.js +0 -5044
- package/dist/index.js.map +0 -1
- package/dist-esm/src/TableClient.js.map +0 -1
- package/dist-esm/src/TablePolicies.js.map +0 -1
- package/dist-esm/src/TableServiceClient.js.map +0 -1
- package/dist-esm/src/TableTransaction.js.map +0 -1
- package/dist-esm/src/generated/generatedClient.js.map +0 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/operations/service.js.map +0 -1
- package/dist-esm/src/generated/operations/table.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/service.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/table.js.map +0 -1
- package/dist-esm/src/index.js +0 -12
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/src/sas/accountSasSignatureValues.js.map +0 -1
- package/dist-esm/src/sas/generateAccountSas.js.map +0 -1
- package/dist-esm/src/sas/generateTableSas.js.map +0 -1
- package/dist-esm/src/sas/index.js +0 -5
- package/dist-esm/src/sas/index.js.map +0 -1
- package/dist-esm/src/sas/sasQueryParameters.js.map +0 -1
- package/dist-esm/src/sas/tableSasSignatureValues.js.map +0 -1
- package/dist-esm/src/serialization.js.map +0 -1
- package/dist-esm/src/tablesNamedCredentialPolicy.browser.js.map +0 -1
- package/dist-esm/src/tablesNamedCredentialPolicy.js.map +0 -1
- package/dist-esm/src/utils/accountConnectionString.browser.js.map +0 -1
- package/dist-esm/src/utils/accountConnectionString.js.map +0 -1
- package/dist-esm/src/utils/bufferSerializer.browser.js.map +0 -1
- package/dist-esm/src/utils/computeHMACSHA256.browser.js.map +0 -1
- package/dist-esm/src/utils/connectionString.js.map +0 -1
- package/dist-esm/src/utils/continuationToken.js.map +0 -1
- package/dist-esm/src/utils/errorHelpers.js.map +0 -1
- package/dist-esm/src/utils/internalModels.js.map +0 -1
- package/dist-esm/src/utils/transactionHeaders.browser.js.map +0 -1
- package/dist-esm/src/utils/transactionHeaders.js.map +0 -1
- package/dist-esm/src/utils/transactionHelpers.js.map +0 -1
- package/types/latest/data-tables.d.ts +0 -1412
- /package/{dist-esm/src → dist/browser}/cosmosPathPolicy.js +0 -0
- /package/{dist-esm/src → dist/browser}/cosmosPathPolicy.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/generatedClientContext.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/service.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/table.js +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/models.js +0 -0
- /package/{dist-esm/src → dist/browser}/odata.js +0 -0
- /package/{dist-esm/src → dist/browser}/odata.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/sas/accountSasPermissions.js +0 -0
- /package/{dist-esm/src → dist/browser}/sas/accountSasPermissions.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/sas/accountSasResourceTypes.js +0 -0
- /package/{dist-esm/src → dist/browser}/sas/accountSasResourceTypes.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/sas/accountSasServices.js +0 -0
- /package/{dist-esm/src → dist/browser}/sas/accountSasServices.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/sas/models.js +0 -0
- /package/{dist-esm/src → dist/browser}/sas/models.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/sas/sasIPRange.js +0 -0
- /package/{dist-esm/src → dist/browser}/sas/sasIPRange.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/sas/tableSasPermisions.js +0 -0
- /package/{dist-esm/src → dist/browser}/sas/tableSasPermisions.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/secondaryEndpointPolicy.js +0 -0
- /package/{dist-esm/src → dist/browser}/secondaryEndpointPolicy.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/tablesSASTokenPolicy.js +0 -0
- /package/{dist-esm/src → dist/browser}/tablesSASTokenPolicy.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/apiVersionPolicy.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/apiVersionPolicy.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/baseTransactionHeaders.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/baseTransactionHeaders.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/challengeAuthenticationUtils.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/challengeAuthenticationUtils.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/constants.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/constants.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/errorHelpers.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/internalModels.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/isCosmosEndpoint.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/isCosmosEndpoint.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/isCredential.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/isCredential.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/tracing.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/tracing.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/truncateISO8061Date.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/truncateISO8061Date.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/uuid.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/uuid.js.map +0 -0
- /package/{types/latest → dist/commonjs}/tsdoc-metadata.json +0 -0
- /package/{dist-esm/src → dist/esm}/utils/accountConnectionString.js +0 -0
- /package/{dist-esm/src → dist/esm}/utils/bufferSerializer.js +0 -0
- /package/{dist-esm/src → dist/esm}/utils/bufferSerializer.js.map +0 -0
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TableClient = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const index_js_1 = require("./generated/index.js");
|
|
8
|
+
const core_auth_1 = require("@azure/core-auth");
|
|
9
|
+
const constants_js_1 = require("./utils/constants.js");
|
|
10
|
+
const continuationToken_js_1 = require("./utils/continuationToken.js");
|
|
11
|
+
const serialization_js_1 = require("./serialization.js");
|
|
12
|
+
const core_xml_1 = require("@azure/core-xml");
|
|
13
|
+
const TableTransaction_js_1 = require("./TableTransaction.js");
|
|
14
|
+
const uuid_js_1 = require("./utils/uuid.js");
|
|
15
|
+
const apiVersionPolicy_js_1 = require("./utils/apiVersionPolicy.js");
|
|
16
|
+
const cosmosPathPolicy_js_1 = require("./cosmosPathPolicy.js");
|
|
17
|
+
const odata_js_1 = require("./odata.js");
|
|
18
|
+
const connectionString_js_1 = require("./utils/connectionString.js");
|
|
19
|
+
const errorHelpers_js_1 = require("./utils/errorHelpers.js");
|
|
20
|
+
const isCosmosEndpoint_js_1 = require("./utils/isCosmosEndpoint.js");
|
|
21
|
+
const isCredential_js_1 = require("./utils/isCredential.js");
|
|
22
|
+
const logger_js_1 = require("./logger.js");
|
|
23
|
+
const challengeAuthenticationUtils_js_1 = require("./utils/challengeAuthenticationUtils.js");
|
|
24
|
+
const tablesNamedCredentialPolicy_js_1 = require("./tablesNamedCredentialPolicy.js");
|
|
25
|
+
const tablesSASTokenPolicy_js_1 = require("./tablesSASTokenPolicy.js");
|
|
26
|
+
const tracing_js_1 = require("./utils/tracing.js");
|
|
27
|
+
/**
|
|
28
|
+
* A TableClient represents a Client to the Azure Tables service allowing you
|
|
29
|
+
* to perform operations on a single table.
|
|
30
|
+
*/
|
|
31
|
+
class TableClient {
|
|
32
|
+
constructor(url, tableName, credentialOrOptions, options = {}) {
|
|
33
|
+
var _a;
|
|
34
|
+
this.url = url;
|
|
35
|
+
this.tableName = tableName;
|
|
36
|
+
const isCosmos = (0, isCosmosEndpoint_js_1.isCosmosEndpoint)(this.url);
|
|
37
|
+
const credential = (0, isCredential_js_1.isCredential)(credentialOrOptions) ? credentialOrOptions : undefined;
|
|
38
|
+
this.credential = credential;
|
|
39
|
+
this.clientOptions = (!(0, isCredential_js_1.isCredential)(credentialOrOptions) ? credentialOrOptions : options) || {};
|
|
40
|
+
this.allowInsecureConnection = (_a = this.clientOptions.allowInsecureConnection) !== null && _a !== void 0 ? _a : false;
|
|
41
|
+
const internalPipelineOptions = Object.assign(Object.assign({}, this.clientOptions), { endpoint: this.clientOptions.endpoint || this.url, loggingOptions: {
|
|
42
|
+
logger: logger_js_1.logger.info,
|
|
43
|
+
additionalAllowedHeaderNames: [...constants_js_1.TablesLoggingAllowedHeaderNames],
|
|
44
|
+
}, deserializationOptions: {
|
|
45
|
+
parseXML: core_xml_1.parseXML,
|
|
46
|
+
}, serializationOptions: {
|
|
47
|
+
stringifyXML: core_xml_1.stringifyXML,
|
|
48
|
+
} });
|
|
49
|
+
const generatedClient = new index_js_1.GeneratedClient(this.url, internalPipelineOptions);
|
|
50
|
+
if ((0, core_auth_1.isNamedKeyCredential)(credential)) {
|
|
51
|
+
generatedClient.pipeline.addPolicy((0, tablesNamedCredentialPolicy_js_1.tablesNamedKeyCredentialPolicy)(credential));
|
|
52
|
+
}
|
|
53
|
+
else if ((0, core_auth_1.isSASCredential)(credential)) {
|
|
54
|
+
generatedClient.pipeline.addPolicy((0, tablesSASTokenPolicy_js_1.tablesSASTokenPolicy)(credential));
|
|
55
|
+
}
|
|
56
|
+
if ((0, core_auth_1.isTokenCredential)(credential)) {
|
|
57
|
+
const scope = isCosmos ? constants_js_1.COSMOS_SCOPE : constants_js_1.STORAGE_SCOPE;
|
|
58
|
+
(0, challengeAuthenticationUtils_js_1.setTokenChallengeAuthenticationPolicy)(generatedClient.pipeline, credential, scope);
|
|
59
|
+
}
|
|
60
|
+
if (isCosmos) {
|
|
61
|
+
generatedClient.pipeline.addPolicy((0, cosmosPathPolicy_js_1.cosmosPatchPolicy)());
|
|
62
|
+
}
|
|
63
|
+
if (options.version) {
|
|
64
|
+
generatedClient.pipeline.addPolicy((0, apiVersionPolicy_js_1.apiVersionPolicy)(options.version));
|
|
65
|
+
}
|
|
66
|
+
this.generatedClient = generatedClient;
|
|
67
|
+
this.table = generatedClient.table;
|
|
68
|
+
this.pipeline = generatedClient.pipeline;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Permanently deletes the current table with all of its entities.
|
|
72
|
+
* @param options - The options parameters.
|
|
73
|
+
*
|
|
74
|
+
* ### Example deleting a table
|
|
75
|
+
* ```js
|
|
76
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
77
|
+
* const account = "<storage account name>";
|
|
78
|
+
* const accountKey = "<account key>"
|
|
79
|
+
* const tableName = "<table name>";
|
|
80
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
81
|
+
*
|
|
82
|
+
* const client = new TableClient(
|
|
83
|
+
* `https://${account}.table.core.windows.net`,
|
|
84
|
+
* `${tableName}`,
|
|
85
|
+
* sharedKeyCredential
|
|
86
|
+
* );
|
|
87
|
+
*
|
|
88
|
+
* // calling deleteTable will delete the table used
|
|
89
|
+
* // to instantiate the TableClient.
|
|
90
|
+
* // Note: If the table doesn't exist this function doesn't fail.
|
|
91
|
+
* await client.deleteTable();
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
95
|
+
deleteTable(options = {}) {
|
|
96
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.deleteTable", options, async (updatedOptions) => {
|
|
97
|
+
try {
|
|
98
|
+
await this.table.delete(this.tableName, updatedOptions);
|
|
99
|
+
}
|
|
100
|
+
catch (e) {
|
|
101
|
+
if (e.statusCode === 404) {
|
|
102
|
+
logger_js_1.logger.info("TableClient.deleteTable: Table doesn't exist");
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
throw e;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a table with the tableName passed to the client constructor
|
|
112
|
+
* @param options - The options parameters.
|
|
113
|
+
*
|
|
114
|
+
* ### Example creating a table
|
|
115
|
+
* ```js
|
|
116
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
117
|
+
* const account = "<storage account name>";
|
|
118
|
+
* const accountKey = "<account key>"
|
|
119
|
+
* const tableName = "<table name>";
|
|
120
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
121
|
+
*
|
|
122
|
+
* const client = new TableClient(
|
|
123
|
+
* `https://${account}.table.core.windows.net`,
|
|
124
|
+
* `${tableName}`,
|
|
125
|
+
* sharedKeyCredential
|
|
126
|
+
* );
|
|
127
|
+
*
|
|
128
|
+
* // calling create table will create the table used
|
|
129
|
+
* // to instantiate the TableClient.
|
|
130
|
+
* // Note: If the table already
|
|
131
|
+
* // exists this function doesn't throw.
|
|
132
|
+
* await client.createTable();
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
136
|
+
createTable(options = {}) {
|
|
137
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.createTable", options, async (updatedOptions) => {
|
|
138
|
+
try {
|
|
139
|
+
await this.table.create({ name: this.tableName }, updatedOptions);
|
|
140
|
+
}
|
|
141
|
+
catch (e) {
|
|
142
|
+
(0, errorHelpers_js_1.handleTableAlreadyExists)(e, Object.assign(Object.assign({}, updatedOptions), { logger: logger_js_1.logger, tableName: this.tableName }));
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Returns a single entity in the table.
|
|
148
|
+
* @param partitionKey - The partition key of the entity.
|
|
149
|
+
* @param rowKey - The row key of the entity.
|
|
150
|
+
* @param options - The options parameters.
|
|
151
|
+
*
|
|
152
|
+
* ### Example getting an entity
|
|
153
|
+
* ```js
|
|
154
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
155
|
+
* const account = "<storage account name>";
|
|
156
|
+
* const accountKey = "<account key>"
|
|
157
|
+
* const tableName = "<table name>";
|
|
158
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
159
|
+
*
|
|
160
|
+
* const client = new TableClient(
|
|
161
|
+
* `https://${account}.table.core.windows.net`,
|
|
162
|
+
* `${tableName}`,
|
|
163
|
+
* sharedKeyCredential
|
|
164
|
+
* );
|
|
165
|
+
*
|
|
166
|
+
* // getEntity will get a single entity stored in the service that
|
|
167
|
+
* // matches exactly the partitionKey and rowKey used as parameters
|
|
168
|
+
* // to the method.
|
|
169
|
+
* const entity = await client.getEntity("<partitionKey>", "<rowKey>");
|
|
170
|
+
* console.log(entity);
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
getEntity(partitionKey, rowKey,
|
|
174
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
175
|
+
options = {}) {
|
|
176
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.getEntity", options, async (updatedOptions) => {
|
|
177
|
+
let parsedBody;
|
|
178
|
+
function onResponse(rawResponse, flatResponse) {
|
|
179
|
+
parsedBody = rawResponse.parsedBody;
|
|
180
|
+
if (updatedOptions.onResponse) {
|
|
181
|
+
updatedOptions.onResponse(rawResponse, flatResponse);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const { disableTypeConversion, queryOptions } = updatedOptions, getEntityOptions = tslib_1.__rest(updatedOptions, ["disableTypeConversion", "queryOptions"]);
|
|
185
|
+
await this.table.queryEntitiesWithPartitionAndRowKey(this.tableName, (0, odata_js_1.escapeQuotes)(partitionKey), (0, odata_js_1.escapeQuotes)(rowKey), Object.assign(Object.assign({}, getEntityOptions), { queryOptions: (0, serialization_js_1.serializeQueryOptions)(queryOptions || {}), onResponse }));
|
|
186
|
+
const tableEntity = (0, serialization_js_1.deserialize)(parsedBody, disableTypeConversion !== null && disableTypeConversion !== void 0 ? disableTypeConversion : false);
|
|
187
|
+
return tableEntity;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Queries entities in a table.
|
|
192
|
+
* @param options - The options parameters.
|
|
193
|
+
*
|
|
194
|
+
* Example listing entities
|
|
195
|
+
* ```js
|
|
196
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
197
|
+
* const account = "<storage account name>";
|
|
198
|
+
* const accountKey = "<account key>"
|
|
199
|
+
* const tableName = "<table name>";
|
|
200
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
201
|
+
*
|
|
202
|
+
* const client = new TableClient(
|
|
203
|
+
* `https://${account}.table.core.windows.net`,
|
|
204
|
+
* `${tableName}`,
|
|
205
|
+
* sharedKeyCredential
|
|
206
|
+
* );
|
|
207
|
+
*
|
|
208
|
+
* // list entities returns a AsyncIterableIterator
|
|
209
|
+
* // this helps consuming paginated responses by
|
|
210
|
+
* // automatically handling getting the next pages
|
|
211
|
+
* const entities = client.listEntities();
|
|
212
|
+
*
|
|
213
|
+
* // this loop will get all the entities from all the pages
|
|
214
|
+
* // returned by the service
|
|
215
|
+
* for await (const entity of entities) {
|
|
216
|
+
* console.log(entity);
|
|
217
|
+
* }
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
listEntities(
|
|
221
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
222
|
+
options = {}) {
|
|
223
|
+
const tableName = this.tableName;
|
|
224
|
+
const iter = this.listEntitiesAll(tableName, options);
|
|
225
|
+
return {
|
|
226
|
+
next() {
|
|
227
|
+
return iter.next();
|
|
228
|
+
},
|
|
229
|
+
[Symbol.asyncIterator]() {
|
|
230
|
+
return this;
|
|
231
|
+
},
|
|
232
|
+
byPage: (settings) => {
|
|
233
|
+
const pageOptions = Object.assign(Object.assign({}, options), { queryOptions: Object.assign(Object.assign({}, options.queryOptions), { top: settings === null || settings === void 0 ? void 0 : settings.maxPageSize }) });
|
|
234
|
+
if (settings === null || settings === void 0 ? void 0 : settings.continuationToken) {
|
|
235
|
+
pageOptions.continuationToken = settings.continuationToken;
|
|
236
|
+
}
|
|
237
|
+
return this.listEntitiesPage(tableName, pageOptions);
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
listEntitiesAll(tableName, options) {
|
|
242
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listEntitiesAll_1() {
|
|
243
|
+
var _a, e_1, _b, _c;
|
|
244
|
+
const firstPage = yield tslib_1.__await(this._listEntities(tableName, options));
|
|
245
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(firstPage)));
|
|
246
|
+
if (firstPage.continuationToken) {
|
|
247
|
+
const optionsWithContinuation = Object.assign(Object.assign({}, options), { continuationToken: firstPage.continuationToken });
|
|
248
|
+
try {
|
|
249
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listEntitiesPage(tableName, optionsWithContinuation)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
250
|
+
_c = _f.value;
|
|
251
|
+
_d = false;
|
|
252
|
+
const page = _c;
|
|
253
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
257
|
+
finally {
|
|
258
|
+
try {
|
|
259
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
260
|
+
}
|
|
261
|
+
finally { if (e_1) throw e_1.error; }
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
listEntitiesPage(tableName_1) {
|
|
267
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listEntitiesPage_1(tableName, options = {}) {
|
|
268
|
+
let result = yield tslib_1.__await(tracing_js_1.tracingClient.withSpan("TableClient.listEntitiesPage", options, (updatedOptions) => this._listEntities(tableName, updatedOptions)));
|
|
269
|
+
yield yield tslib_1.__await(result);
|
|
270
|
+
while (result.continuationToken) {
|
|
271
|
+
const optionsWithContinuation = Object.assign(Object.assign({}, options), { continuationToken: result.continuationToken });
|
|
272
|
+
result = yield tslib_1.__await(tracing_js_1.tracingClient.withSpan("TableClient.listEntitiesPage", optionsWithContinuation, (updatedOptions, span) => {
|
|
273
|
+
span.setAttribute("continuationToken", result.continuationToken);
|
|
274
|
+
return this._listEntities(tableName, updatedOptions);
|
|
275
|
+
}));
|
|
276
|
+
yield yield tslib_1.__await(result);
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
async _listEntities(tableName, options = {}) {
|
|
281
|
+
const { disableTypeConversion = false } = options;
|
|
282
|
+
const queryOptions = (0, serialization_js_1.serializeQueryOptions)(options.queryOptions || {});
|
|
283
|
+
const listEntitiesOptions = Object.assign(Object.assign({}, options), { queryOptions });
|
|
284
|
+
// If a continuation token is used, decode it and set the next row and partition key
|
|
285
|
+
if (options.continuationToken) {
|
|
286
|
+
const continuationToken = (0, continuationToken_js_1.decodeContinuationToken)(options.continuationToken);
|
|
287
|
+
listEntitiesOptions.nextRowKey = continuationToken.nextRowKey;
|
|
288
|
+
listEntitiesOptions.nextPartitionKey = continuationToken.nextPartitionKey;
|
|
289
|
+
}
|
|
290
|
+
const { xMsContinuationNextPartitionKey: nextPartitionKey, xMsContinuationNextRowKey: nextRowKey, value, } = await this.table.queryEntities(tableName, listEntitiesOptions);
|
|
291
|
+
const tableEntities = (0, serialization_js_1.deserializeObjectsArray)(value !== null && value !== void 0 ? value : [], disableTypeConversion);
|
|
292
|
+
// Encode nextPartitionKey and nextRowKey as a single continuation token and add it as a
|
|
293
|
+
// property to the page.
|
|
294
|
+
const continuationToken = (0, continuationToken_js_1.encodeContinuationToken)(nextPartitionKey, nextRowKey);
|
|
295
|
+
const page = Object.assign([...tableEntities], {
|
|
296
|
+
continuationToken,
|
|
297
|
+
});
|
|
298
|
+
return page;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Insert entity in the table.
|
|
302
|
+
* @param entity - The properties for the table entity.
|
|
303
|
+
* @param options - The options parameters.
|
|
304
|
+
*
|
|
305
|
+
* ### Example creating an entity
|
|
306
|
+
* ```js
|
|
307
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
308
|
+
* const account = "<storage account name>";
|
|
309
|
+
* const accountKey = "<account key>"
|
|
310
|
+
* const tableName = "<table name>";
|
|
311
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
312
|
+
*
|
|
313
|
+
* const client = new TableClient(
|
|
314
|
+
* `https://${account}.table.core.windows.net`,
|
|
315
|
+
* `${tableName}`,
|
|
316
|
+
* sharedKeyCredential
|
|
317
|
+
* );
|
|
318
|
+
*
|
|
319
|
+
* // partitionKey and rowKey are required properties of the entity to create
|
|
320
|
+
* // and accepts any other properties
|
|
321
|
+
* await client.createEntity({partitionKey: "p1", rowKey: "r1", foo: "Hello!"});
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
createEntity(entity,
|
|
325
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
326
|
+
options = {}) {
|
|
327
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.createEntity", options, (updatedOptions) => {
|
|
328
|
+
const createTableEntity = tslib_1.__rest(updatedOptions || {}, []);
|
|
329
|
+
return this.table.insertEntity(this.tableName, Object.assign(Object.assign({}, createTableEntity), { tableEntityProperties: (0, serialization_js_1.serialize)(entity), responsePreference: "return-no-content" }));
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Deletes the specified entity in the table.
|
|
334
|
+
* @param partitionKey - The partition key of the entity.
|
|
335
|
+
* @param rowKey - The row key of the entity.
|
|
336
|
+
* @param options - The options parameters.
|
|
337
|
+
*
|
|
338
|
+
* ### Example deleting an entity
|
|
339
|
+
* ```js
|
|
340
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
341
|
+
* const account = "<storage account name>";
|
|
342
|
+
* const accountKey = "<account key>"
|
|
343
|
+
* const tableName = "<table name>";
|
|
344
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
345
|
+
*
|
|
346
|
+
* const client = new TableClient(
|
|
347
|
+
* `https://${account}.table.core.windows.net`,
|
|
348
|
+
* `${tableName}`,
|
|
349
|
+
* sharedKeyCredential
|
|
350
|
+
* );
|
|
351
|
+
*
|
|
352
|
+
* // deleteEntity deletes the entity that matches
|
|
353
|
+
* // exactly the partitionKey and rowKey passed as parameters
|
|
354
|
+
* await client.deleteEntity("<partitionKey>", "<rowKey>")
|
|
355
|
+
* ```
|
|
356
|
+
*/
|
|
357
|
+
deleteEntity(partitionKey, rowKey,
|
|
358
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
359
|
+
options = {}) {
|
|
360
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.deleteEntity", options, (updatedOptions) => {
|
|
361
|
+
const { etag = "*" } = updatedOptions, rest = tslib_1.__rest(updatedOptions, ["etag"]);
|
|
362
|
+
const deleteOptions = Object.assign({}, rest);
|
|
363
|
+
return this.table.deleteEntity(this.tableName, (0, odata_js_1.escapeQuotes)(partitionKey), (0, odata_js_1.escapeQuotes)(rowKey), etag, deleteOptions);
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Update an entity in the table.
|
|
368
|
+
* @param entity - The properties of the entity to be updated.
|
|
369
|
+
* @param mode - The different modes for updating the entity:
|
|
370
|
+
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
|
|
371
|
+
* - Replace: Updates an existing entity by replacing the entire entity.
|
|
372
|
+
* @param options - The options parameters.
|
|
373
|
+
*
|
|
374
|
+
* ### Example updating an entity
|
|
375
|
+
* ```js
|
|
376
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
377
|
+
* const account = "<storage account name>";
|
|
378
|
+
* const accountKey = "<account key>"
|
|
379
|
+
* const tableName = "<table name>";
|
|
380
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
381
|
+
*
|
|
382
|
+
* const client = new TableClient(
|
|
383
|
+
* `https://${account}.table.core.windows.net`,
|
|
384
|
+
* `${tableName}`,
|
|
385
|
+
* sharedKeyCredential
|
|
386
|
+
* );
|
|
387
|
+
*
|
|
388
|
+
* const entity = {partitionKey: "p1", rowKey: "r1", bar: "updatedBar"};
|
|
389
|
+
*
|
|
390
|
+
* // Update uses update mode "Merge" as default
|
|
391
|
+
* // merge means that update will match a stored entity
|
|
392
|
+
* // that has the same partitionKey and rowKey as the entity
|
|
393
|
+
* // passed to the method and then will only update the properties present in it.
|
|
394
|
+
* // Any other properties that are not defined in the entity passed to updateEntity
|
|
395
|
+
* // will remain as they are in the service
|
|
396
|
+
* await client.updateEntity(entity)
|
|
397
|
+
*
|
|
398
|
+
* // We can also set the update mode to Replace, which will match the entity passed
|
|
399
|
+
* // to updateEntity with one stored in the service and replace with the new one.
|
|
400
|
+
* // If there are any missing properties in the entity passed to updateEntity, they
|
|
401
|
+
* // will be removed from the entity stored in the service
|
|
402
|
+
* await client.updateEntity(entity, "Replace")
|
|
403
|
+
* ```
|
|
404
|
+
*/
|
|
405
|
+
updateEntity(entity, mode = "Merge",
|
|
406
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
407
|
+
options = {}) {
|
|
408
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.updateEntity", options, async (updatedOptions) => {
|
|
409
|
+
const partitionKey = (0, odata_js_1.escapeQuotes)(entity.partitionKey);
|
|
410
|
+
const rowKey = (0, odata_js_1.escapeQuotes)(entity.rowKey);
|
|
411
|
+
const _a = updatedOptions || {}, { etag = "*" } = _a, updateEntityOptions = tslib_1.__rest(_a, ["etag"]);
|
|
412
|
+
if (mode === "Merge") {
|
|
413
|
+
return this.table.mergeEntity(this.tableName, partitionKey, rowKey, Object.assign({ tableEntityProperties: (0, serialization_js_1.serialize)(entity), ifMatch: etag }, updateEntityOptions));
|
|
414
|
+
}
|
|
415
|
+
if (mode === "Replace") {
|
|
416
|
+
return this.table.updateEntity(this.tableName, partitionKey, rowKey, Object.assign({ tableEntityProperties: (0, serialization_js_1.serialize)(entity), ifMatch: etag }, updateEntityOptions));
|
|
417
|
+
}
|
|
418
|
+
throw new Error(`Unexpected value for update mode: ${mode}`);
|
|
419
|
+
}, {
|
|
420
|
+
spanAttributes: {
|
|
421
|
+
updateEntityMode: mode,
|
|
422
|
+
},
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Upsert an entity in the table.
|
|
427
|
+
* @param entity - The properties for the table entity.
|
|
428
|
+
* @param mode - The different modes for updating the entity:
|
|
429
|
+
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
|
|
430
|
+
* - Replace: Updates an existing entity by replacing the entire entity.
|
|
431
|
+
* @param options - The options parameters.
|
|
432
|
+
*
|
|
433
|
+
* ### Example upserting an entity
|
|
434
|
+
* ```js
|
|
435
|
+
* const { AzureNamedKeyCredential, TableClient } = require("@azure/data-tables")
|
|
436
|
+
* const account = "<storage account name>";
|
|
437
|
+
* const accountKey = "<account key>"
|
|
438
|
+
* const tableName = "<table name>";
|
|
439
|
+
* const sharedKeyCredential = new AzureNamedKeyCredential(account, accountKey);
|
|
440
|
+
*
|
|
441
|
+
* const client = new TableClient(
|
|
442
|
+
* `https://${account}.table.core.windows.net`,
|
|
443
|
+
* `${tableName}`,
|
|
444
|
+
* sharedKeyCredential
|
|
445
|
+
* );
|
|
446
|
+
*
|
|
447
|
+
* const entity = {partitionKey: "p1", rowKey: "r1", bar: "updatedBar"};
|
|
448
|
+
*
|
|
449
|
+
* // Upsert uses update mode "Merge" as default.
|
|
450
|
+
* // This behaves similarly to update but creates the entity
|
|
451
|
+
* // if it doesn't exist in the service
|
|
452
|
+
* await client.upsertEntity(entity)
|
|
453
|
+
*
|
|
454
|
+
* // We can also set the update mode to Replace.
|
|
455
|
+
* // This behaves similarly to update but creates the entity
|
|
456
|
+
* // if it doesn't exist in the service
|
|
457
|
+
* await client.upsertEntity(entity, "Replace")
|
|
458
|
+
* ```
|
|
459
|
+
*/
|
|
460
|
+
upsertEntity(entity, mode = "Merge",
|
|
461
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
462
|
+
options = {}) {
|
|
463
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.upsertEntity", options, async (updatedOptions) => {
|
|
464
|
+
const partitionKey = (0, odata_js_1.escapeQuotes)(entity.partitionKey);
|
|
465
|
+
const rowKey = (0, odata_js_1.escapeQuotes)(entity.rowKey);
|
|
466
|
+
if (mode === "Merge") {
|
|
467
|
+
return this.table.mergeEntity(this.tableName, partitionKey, rowKey, Object.assign({ tableEntityProperties: (0, serialization_js_1.serialize)(entity) }, updatedOptions));
|
|
468
|
+
}
|
|
469
|
+
if (mode === "Replace") {
|
|
470
|
+
return this.table.updateEntity(this.tableName, partitionKey, rowKey, Object.assign({ tableEntityProperties: (0, serialization_js_1.serialize)(entity) }, updatedOptions));
|
|
471
|
+
}
|
|
472
|
+
throw new Error(`Unexpected value for update mode: ${mode}`);
|
|
473
|
+
}, {
|
|
474
|
+
spanAttributes: {
|
|
475
|
+
upsertEntityMode: mode,
|
|
476
|
+
},
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Retrieves details about any stored access policies specified on the table that may be used with
|
|
481
|
+
* Shared Access Signatures.
|
|
482
|
+
* @param options - The options parameters.
|
|
483
|
+
*/
|
|
484
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
485
|
+
getAccessPolicy(options = {}) {
|
|
486
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.getAccessPolicy", options, async (updatedOptions) => {
|
|
487
|
+
const signedIdentifiers = await this.table.getAccessPolicy(this.tableName, updatedOptions);
|
|
488
|
+
return (0, serialization_js_1.deserializeSignedIdentifier)(signedIdentifiers);
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Sets stored access policies for the table that may be used with Shared Access Signatures.
|
|
493
|
+
* @param tableAcl - The Access Control List for the table.
|
|
494
|
+
* @param options - The options parameters.
|
|
495
|
+
*/
|
|
496
|
+
setAccessPolicy(tableAcl,
|
|
497
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
498
|
+
options = {}) {
|
|
499
|
+
return tracing_js_1.tracingClient.withSpan("TableClient.setAccessPolicy", options, (updatedOptions) => {
|
|
500
|
+
const serlializedAcl = (0, serialization_js_1.serializeSignedIdentifiers)(tableAcl);
|
|
501
|
+
return this.table.setAccessPolicy(this.tableName, Object.assign(Object.assign({}, updatedOptions), { tableAcl: serlializedAcl }));
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Submits a Transaction which is composed of a set of actions. You can provide the actions as a list
|
|
506
|
+
* or you can use {@link TableTransaction} to help building the transaction.
|
|
507
|
+
*
|
|
508
|
+
* Example usage:
|
|
509
|
+
* ```typescript
|
|
510
|
+
* const { TableClient } = require("@azure/data-tables");
|
|
511
|
+
* const connectionString = "<connection-string>"
|
|
512
|
+
* const tableName = "<tableName>"
|
|
513
|
+
* const client = TableClient.fromConnectionString(connectionString, tableName);
|
|
514
|
+
* const actions = [
|
|
515
|
+
* ["create", {partitionKey: "p1", rowKey: "1", data: "test1"}],
|
|
516
|
+
* ["delete", {partitionKey: "p1", rowKey: "2"}],
|
|
517
|
+
* ["update", {partitionKey: "p1", rowKey: "3", data: "newTest"}, "Merge"]
|
|
518
|
+
* ]
|
|
519
|
+
* const result = await client.submitTransaction(actions);
|
|
520
|
+
* ```
|
|
521
|
+
*
|
|
522
|
+
* Example usage with TableTransaction:
|
|
523
|
+
* ```js
|
|
524
|
+
* const { TableClient } = require("@azure/data-tables");
|
|
525
|
+
* const connectionString = "<connection-string>"
|
|
526
|
+
* const tableName = "<tableName>"
|
|
527
|
+
* const client = TableClient.fromConnectionString(connectionString, tableName);
|
|
528
|
+
* const transaction = new TableTransaction();
|
|
529
|
+
* // Call the available action in the TableTransaction object
|
|
530
|
+
* transaction.create({partitionKey: "p1", rowKey: "1", data: "test1"});
|
|
531
|
+
* transaction.delete("p1", "2");
|
|
532
|
+
* transaction.update({partitionKey: "p1", rowKey: "3", data: "newTest"}, "Merge")
|
|
533
|
+
* // submitTransaction with the actions list on the transaction.
|
|
534
|
+
* const result = await client.submitTransaction(transaction.actions);
|
|
535
|
+
* ```
|
|
536
|
+
*
|
|
537
|
+
* @param actions - tuple that contains the action to perform, and the entity to perform the action with
|
|
538
|
+
*/
|
|
539
|
+
async submitTransaction(actions) {
|
|
540
|
+
const partitionKey = actions[0][1].partitionKey;
|
|
541
|
+
const transactionId = uuid_js_1.Uuid.generateUuid();
|
|
542
|
+
const changesetId = uuid_js_1.Uuid.generateUuid();
|
|
543
|
+
// Add pipeline
|
|
544
|
+
const transactionClient = new TableTransaction_js_1.InternalTableTransaction(this.url, partitionKey, transactionId, changesetId, this.generatedClient, new TableClient(this.url, this.tableName), this.credential, this.allowInsecureConnection);
|
|
545
|
+
for (const item of actions) {
|
|
546
|
+
const [action, entity, updateMode = "Merge", updateOptions] = item;
|
|
547
|
+
switch (action) {
|
|
548
|
+
case "create":
|
|
549
|
+
transactionClient.createEntity(entity);
|
|
550
|
+
break;
|
|
551
|
+
case "delete":
|
|
552
|
+
transactionClient.deleteEntity(entity.partitionKey, entity.rowKey);
|
|
553
|
+
break;
|
|
554
|
+
case "update":
|
|
555
|
+
transactionClient.updateEntity(entity, updateMode, updateOptions);
|
|
556
|
+
break;
|
|
557
|
+
case "upsert":
|
|
558
|
+
transactionClient.upsertEntity(entity, updateMode);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
return transactionClient.submitTransaction();
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* Creates an instance of TableClient from connection string.
|
|
566
|
+
*
|
|
567
|
+
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
|
|
568
|
+
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
|
|
569
|
+
* Account connection string example -
|
|
570
|
+
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
|
|
571
|
+
* SAS connection string example -
|
|
572
|
+
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
|
|
573
|
+
* @param options - Options to configure the HTTP pipeline.
|
|
574
|
+
* @returns A new TableClient from the given connection string.
|
|
575
|
+
*/
|
|
576
|
+
static fromConnectionString(connectionString, tableName,
|
|
577
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
578
|
+
options) {
|
|
579
|
+
const { url, options: clientOptions, credential, } = (0, connectionString_js_1.getClientParamsFromConnectionString)(connectionString, options);
|
|
580
|
+
if (credential) {
|
|
581
|
+
return new TableClient(url, tableName, credential, clientOptions);
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
return new TableClient(url, tableName, clientOptions);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
exports.TableClient = TableClient;
|
|
589
|
+
//# sourceMappingURL=TableClient.js.map
|