@azure/storage-file-share 12.32.0 → 12.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/dist/browser/Clients.d.ts +123 -1
- package/dist/browser/Clients.d.ts.map +1 -1
- package/dist/browser/Clients.js +461 -236
- package/dist/browser/Clients.js.map +1 -1
- package/dist/browser/Pipeline.d.ts.map +1 -1
- package/dist/browser/Pipeline.js +5 -23
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/ShareClientInternal.d.ts +1 -1
- package/dist/browser/ShareClientInternal.d.ts.map +1 -1
- package/dist/browser/ShareClientInternal.js +2 -1
- package/dist/browser/ShareClientInternal.js.map +1 -1
- package/dist/browser/ShareServiceClient.d.ts.map +1 -1
- package/dist/browser/ShareServiceClient.js +9 -9
- package/dist/browser/ShareServiceClient.js.map +1 -1
- package/dist/browser/StorageClient.d.ts +12 -2
- package/dist/browser/StorageClient.d.ts.map +1 -1
- package/dist/browser/StorageClient.js +46 -9
- package/dist/browser/StorageClient.js.map +1 -1
- package/dist/browser/generated/api/directory/index.d.ts +3 -0
- package/dist/browser/generated/api/directory/index.d.ts.map +1 -0
- package/dist/browser/generated/api/directory/index.js +4 -0
- package/dist/browser/generated/api/directory/index.js.map +1 -0
- package/dist/browser/generated/api/directory/operations.d.ts +413 -0
- package/dist/browser/generated/api/directory/operations.d.ts.map +1 -0
- package/dist/browser/generated/api/directory/operations.js +1020 -0
- package/dist/browser/generated/api/directory/operations.js.map +1 -0
- package/dist/browser/generated/api/directory/options.d.ts +202 -0
- package/dist/browser/generated/api/directory/options.d.ts.map +1 -0
- package/dist/browser/generated/api/directory/options.js +4 -0
- package/dist/browser/generated/api/directory/options.js.map +1 -0
- package/dist/browser/generated/api/file/index.d.ts +3 -0
- package/dist/browser/generated/api/file/index.d.ts.map +1 -0
- package/dist/browser/generated/api/file/index.js +4 -0
- package/dist/browser/generated/api/file/index.js.map +1 -0
- package/dist/browser/generated/api/file/operations.d.ts +1095 -0
- package/dist/browser/generated/api/file/operations.d.ts.map +1 -0
- package/dist/browser/generated/api/file/operations.js +2638 -0
- package/dist/browser/generated/api/file/operations.js.map +1 -0
- package/dist/browser/generated/api/file/options.d.ts +499 -0
- package/dist/browser/generated/api/file/options.d.ts.map +1 -0
- package/dist/browser/generated/api/file/options.js +4 -0
- package/dist/browser/generated/api/file/options.js.map +1 -0
- package/dist/browser/generated/api/fileContext.d.ts +15 -0
- package/dist/browser/generated/api/fileContext.d.ts.map +1 -0
- package/dist/browser/generated/api/fileContext.js +23 -0
- package/dist/browser/generated/api/fileContext.js.map +1 -0
- package/dist/browser/generated/api/index.d.ts +3 -0
- package/dist/browser/generated/api/index.d.ts.map +1 -0
- package/dist/browser/generated/api/index.js +4 -0
- package/dist/browser/generated/api/index.js.map +1 -0
- package/dist/browser/generated/api/service/index.d.ts +3 -0
- package/dist/browser/generated/api/service/index.d.ts.map +1 -0
- package/dist/browser/generated/api/service/index.js +4 -0
- package/dist/browser/generated/api/service/index.js.map +1 -0
- package/dist/browser/generated/api/service/operations.d.ts +115 -0
- package/dist/browser/generated/api/service/operations.d.ts.map +1 -0
- package/dist/browser/generated/api/service/operations.js +338 -0
- package/dist/browser/generated/api/service/operations.js.map +1 -0
- package/dist/browser/generated/api/service/options.d.ts +45 -0
- package/dist/browser/generated/api/service/options.d.ts.map +1 -0
- package/dist/browser/generated/api/service/options.js +4 -0
- package/dist/browser/generated/api/service/options.js.map +1 -0
- package/dist/browser/generated/api/share/index.d.ts +3 -0
- package/dist/browser/generated/api/share/index.d.ts.map +1 -0
- package/dist/browser/generated/api/share/index.js +4 -0
- package/dist/browser/generated/api/share/index.js.map +1 -0
- package/dist/browser/generated/api/share/operations.d.ts +679 -0
- package/dist/browser/generated/api/share/operations.d.ts.map +1 -0
- package/dist/browser/generated/api/share/operations.js +1676 -0
- package/dist/browser/generated/api/share/operations.js.map +1 -0
- package/dist/browser/generated/api/share/options.d.ts +254 -0
- package/dist/browser/generated/api/share/options.d.ts.map +1 -0
- package/dist/browser/generated/api/share/options.js +4 -0
- package/dist/browser/generated/api/share/options.js.map +1 -0
- package/dist/browser/generated/classic/directory/index.d.ts +240 -0
- package/dist/browser/generated/classic/directory/index.d.ts.map +1 -0
- package/dist/browser/generated/classic/directory/index.js +22 -0
- package/dist/browser/generated/classic/directory/index.js.map +1 -0
- package/dist/browser/generated/classic/file/index.d.ts +634 -0
- package/dist/browser/generated/classic/file/index.d.ts.map +1 -0
- package/dist/browser/generated/classic/file/index.js +35 -0
- package/dist/browser/generated/classic/file/index.js.map +1 -0
- package/dist/browser/generated/classic/index.d.ts +5 -0
- package/dist/browser/generated/classic/index.d.ts.map +1 -0
- package/dist/browser/generated/classic/index.js +4 -0
- package/dist/browser/generated/classic/index.js.map +1 -0
- package/dist/browser/generated/classic/service/index.d.ts +63 -0
- package/dist/browser/generated/classic/service/index.d.ts.map +1 -0
- package/dist/browser/generated/classic/service/index.js +17 -0
- package/dist/browser/generated/classic/service/index.js.map +1 -0
- package/dist/browser/generated/classic/share/index.d.ts +380 -0
- package/dist/browser/generated/classic/share/index.d.ts.map +1 -0
- package/dist/browser/generated/classic/share/index.js +30 -0
- package/dist/browser/generated/classic/share/index.js.map +1 -0
- package/dist/browser/generated/fileClient.d.ts +24 -0
- package/dist/browser/generated/fileClient.d.ts.map +1 -0
- package/dist/browser/generated/fileClient.js +37 -0
- package/dist/browser/generated/fileClient.js.map +1 -0
- package/dist/browser/generated/index.d.ts +11 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +6 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/logger.d.ts +2 -0
- package/dist/browser/generated/logger.d.ts.map +1 -0
- package/dist/browser/generated/logger.js +5 -0
- package/dist/browser/generated/logger.js.map +1 -0
- package/dist/browser/generated/models/index.d.ts +3 -0
- package/dist/browser/generated/models/index.d.ts.map +1 -0
- package/dist/browser/generated/models/index.js +4 -0
- package/dist/browser/generated/models/index.js.map +1 -0
- package/dist/browser/generated/models/models.d.ts +942 -0
- package/dist/browser/generated/models/models.d.ts.map +1 -0
- package/dist/browser/generated/models/models.js +2515 -0
- package/dist/browser/generated/models/models.js.map +1 -0
- package/dist/browser/generated/static-helpers/platform-types-browser.d.mts +6 -0
- package/dist/browser/generated/static-helpers/platform-types-browser.d.mts.map +1 -0
- package/dist/browser/generated/static-helpers/platform-types-browser.mjs +2 -0
- package/dist/browser/generated/static-helpers/platform-types-browser.mjs.map +1 -0
- package/dist/browser/generated/static-helpers/platform-types.d.ts +6 -0
- package/dist/browser/generated/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/browser/generated/static-helpers/platform-types.js +2 -0
- package/dist/browser/generated/static-helpers/platform-types.js.map +1 -0
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.d.ts +13 -0
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.js +15 -0
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.js.map +1 -0
- package/dist/browser/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
- package/dist/browser/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
- package/dist/browser/generated/static-helpers/serialization/xml-helpers.js +446 -0
- package/dist/browser/generated/static-helpers/serialization/xml-helpers.js.map +1 -0
- package/dist/browser/generated/static-helpers/storageCompatResponse.d.ts +44 -0
- package/dist/browser/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
- package/dist/browser/generated/static-helpers/storageCompatResponse.js +36 -0
- package/dist/browser/generated/static-helpers/storageCompatResponse.js.map +1 -0
- package/dist/browser/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/generated/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/generated/static-helpers/urlTemplate.js.map +1 -0
- package/dist/browser/{generated/src/models/index.d.ts → generated-classic-models.d.ts} +58 -58
- package/dist/browser/generated-classic-models.d.ts.map +1 -0
- package/dist/browser/{generated/src/models/index.js → generated-classic-models.js} +1 -1
- package/dist/browser/generated-classic-models.js.map +1 -0
- package/dist/browser/generatedModels.d.ts +21 -2
- package/dist/browser/generatedModels.d.ts.map +1 -1
- package/dist/browser/generatedModels.js.map +1 -1
- package/dist/browser/models.d.ts +3 -0
- package/dist/browser/models.d.ts.map +1 -1
- package/dist/browser/models.js +20 -0
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/utils/constants.js +2 -2
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +22 -2
- package/dist/browser/utils/utils.common.d.ts.map +1 -1
- package/dist/browser/utils/utils.common.js +48 -0
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/Clients.d.ts +123 -1
- package/dist/commonjs/Clients.d.ts.map +1 -1
- package/dist/commonjs/Clients.js +710 -376
- package/dist/commonjs/Clients.js.map +2 -2
- package/dist/commonjs/Pipeline.d.ts.map +1 -1
- package/dist/commonjs/Pipeline.js +4 -22
- package/dist/commonjs/Pipeline.js.map +2 -2
- package/dist/commonjs/ShareClientInternal.d.ts +1 -1
- package/dist/commonjs/ShareClientInternal.d.ts.map +1 -1
- package/dist/commonjs/ShareClientInternal.js +2 -1
- package/dist/commonjs/ShareClientInternal.js.map +2 -2
- package/dist/commonjs/ShareServiceClient.d.ts.map +1 -1
- package/dist/commonjs/ShareServiceClient.js +31 -23
- package/dist/commonjs/ShareServiceClient.js.map +2 -2
- package/dist/commonjs/StorageClient.d.ts +12 -2
- package/dist/commonjs/StorageClient.d.ts.map +1 -1
- package/dist/commonjs/StorageClient.js +47 -10
- package/dist/commonjs/StorageClient.js.map +3 -3
- package/dist/commonjs/generated/api/directory/index.d.ts +3 -0
- package/dist/commonjs/generated/api/directory/index.d.ts.map +1 -0
- package/dist/commonjs/generated/api/directory/index.js +44 -0
- package/dist/commonjs/generated/api/directory/index.js.map +7 -0
- package/dist/commonjs/generated/api/directory/operations.d.ts +413 -0
- package/dist/commonjs/generated/api/directory/operations.d.ts.map +1 -0
- package/dist/commonjs/generated/api/directory/operations.js +810 -0
- package/dist/commonjs/generated/api/directory/operations.js.map +7 -0
- package/dist/commonjs/generated/api/directory/options.d.ts +202 -0
- package/dist/commonjs/generated/api/directory/options.d.ts.map +1 -0
- package/dist/commonjs/generated/{src/operationsInterfaces/service.js → api/directory/options.js} +3 -3
- package/dist/commonjs/generated/api/directory/options.js.map +7 -0
- package/dist/commonjs/generated/api/file/index.d.ts +3 -0
- package/dist/commonjs/generated/api/file/index.d.ts.map +1 -0
- package/dist/commonjs/generated/api/file/index.js +70 -0
- package/dist/commonjs/generated/api/file/index.js.map +7 -0
- package/dist/commonjs/generated/api/file/operations.d.ts +1095 -0
- package/dist/commonjs/generated/api/file/operations.d.ts.map +1 -0
- package/dist/commonjs/generated/api/file/operations.js +2028 -0
- package/dist/commonjs/generated/api/file/operations.js.map +7 -0
- package/dist/commonjs/generated/api/file/options.d.ts +499 -0
- package/dist/commonjs/generated/api/file/options.d.ts.map +1 -0
- package/dist/commonjs/generated/{src/operationsInterfaces/file.js → api/file/options.js} +3 -3
- package/dist/commonjs/generated/api/file/options.js.map +7 -0
- package/dist/commonjs/generated/api/fileContext.d.ts +15 -0
- package/dist/commonjs/generated/api/fileContext.d.ts.map +1 -0
- package/dist/commonjs/generated/api/fileContext.js +44 -0
- package/dist/commonjs/generated/api/fileContext.js.map +7 -0
- package/dist/commonjs/generated/api/index.d.ts +3 -0
- package/dist/commonjs/generated/api/index.d.ts.map +1 -0
- package/dist/commonjs/generated/{src → api}/index.js +6 -11
- package/dist/commonjs/generated/api/index.js.map +7 -0
- package/dist/commonjs/generated/api/service/index.d.ts +3 -0
- package/dist/commonjs/generated/api/service/index.d.ts.map +1 -0
- package/dist/commonjs/generated/{src/operations → api/service}/index.js +17 -11
- package/dist/commonjs/generated/api/service/index.js.map +7 -0
- package/dist/commonjs/generated/api/service/operations.d.ts +115 -0
- package/dist/commonjs/generated/api/service/operations.d.ts.map +1 -0
- package/dist/commonjs/generated/api/service/operations.js +344 -0
- package/dist/commonjs/generated/api/service/operations.js.map +7 -0
- package/dist/commonjs/generated/api/service/options.d.ts +45 -0
- package/dist/commonjs/generated/api/service/options.d.ts.map +1 -0
- package/dist/commonjs/generated/{src/operationsInterfaces/directory.js → api/service/options.js} +3 -3
- package/dist/commonjs/generated/api/service/options.js.map +7 -0
- package/dist/commonjs/generated/api/share/index.d.ts +3 -0
- package/dist/commonjs/generated/api/share/index.d.ts.map +1 -0
- package/dist/commonjs/generated/api/share/index.js +60 -0
- package/dist/commonjs/generated/api/share/index.js.map +7 -0
- package/dist/commonjs/generated/api/share/operations.d.ts +679 -0
- package/dist/commonjs/generated/api/share/operations.d.ts.map +1 -0
- package/dist/commonjs/generated/api/share/operations.js +1435 -0
- package/dist/commonjs/generated/api/share/operations.js.map +7 -0
- package/dist/commonjs/generated/api/share/options.d.ts +254 -0
- package/dist/commonjs/generated/api/share/options.d.ts.map +1 -0
- package/dist/commonjs/generated/api/share/options.js +16 -0
- package/dist/commonjs/generated/api/share/options.js.map +7 -0
- package/dist/commonjs/generated/classic/directory/index.d.ts +240 -0
- package/dist/commonjs/generated/classic/directory/index.d.ts.map +1 -0
- package/dist/commonjs/generated/classic/directory/index.js +46 -0
- package/dist/commonjs/generated/classic/directory/index.js.map +7 -0
- package/dist/commonjs/generated/classic/file/index.d.ts +634 -0
- package/dist/commonjs/generated/classic/file/index.d.ts.map +1 -0
- package/dist/commonjs/generated/classic/file/index.js +59 -0
- package/dist/commonjs/generated/classic/file/index.js.map +7 -0
- package/dist/commonjs/generated/classic/index.d.ts +5 -0
- package/dist/commonjs/generated/classic/index.d.ts.map +1 -0
- package/dist/commonjs/generated/{src/operationsInterfaces/share.js → classic/index.js} +3 -3
- package/dist/commonjs/generated/classic/index.js.map +7 -0
- package/dist/commonjs/generated/classic/service/index.d.ts +63 -0
- package/dist/commonjs/generated/classic/service/index.d.ts.map +1 -0
- package/dist/commonjs/generated/classic/service/index.js +41 -0
- package/dist/commonjs/generated/classic/service/index.js.map +7 -0
- package/dist/commonjs/generated/classic/share/index.d.ts +380 -0
- package/dist/commonjs/generated/classic/share/index.d.ts.map +1 -0
- package/dist/commonjs/generated/classic/share/index.js +54 -0
- package/dist/commonjs/generated/classic/share/index.js.map +7 -0
- package/dist/commonjs/generated/fileClient.d.ts +24 -0
- package/dist/commonjs/generated/fileClient.d.ts.map +1 -0
- package/dist/commonjs/generated/fileClient.js +59 -0
- package/dist/commonjs/generated/fileClient.js.map +7 -0
- package/dist/commonjs/generated/index.d.ts +11 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +46 -0
- package/dist/commonjs/generated/index.js.map +7 -0
- package/dist/commonjs/generated/logger.d.ts +2 -0
- package/dist/commonjs/generated/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/logger.js +29 -0
- package/dist/commonjs/generated/logger.js.map +7 -0
- package/dist/commonjs/generated/models/index.d.ts +3 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +38 -0
- package/dist/commonjs/generated/models/index.js.map +7 -0
- package/dist/commonjs/generated/models/models.d.ts +942 -0
- package/dist/commonjs/generated/models/models.d.ts.map +1 -0
- package/dist/commonjs/generated/models/models.js +2678 -0
- package/dist/commonjs/generated/models/models.js.map +7 -0
- package/dist/commonjs/generated/static-helpers/platform-types.d.ts +8 -0
- package/dist/commonjs/generated/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/commonjs/generated/static-helpers/platform-types.js +16 -0
- package/dist/commonjs/generated/static-helpers/platform-types.js.map +7 -0
- package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.d.ts +13 -0
- package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
- package/dist/commonjs/{StorageContextClient.js → generated/static-helpers/serialization/get-binary-stream-response.js} +13 -15
- package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.js.map +7 -0
- package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
- package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
- package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.js +421 -0
- package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.js.map +7 -0
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.d.ts +44 -0
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.js +49 -0
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.js.map +7 -0
- package/dist/commonjs/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/generated/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/generated/static-helpers/urlTemplate.js.map +7 -0
- package/dist/{esm/generated/src/models/index.d.ts → commonjs/generated-classic-models.d.ts} +58 -58
- package/dist/commonjs/generated-classic-models.d.ts.map +1 -0
- package/dist/commonjs/{generated/src/models/index.js → generated-classic-models.js} +4 -4
- package/dist/commonjs/generated-classic-models.js.map +7 -0
- package/dist/commonjs/generatedModels.d.ts +21 -2
- package/dist/commonjs/generatedModels.d.ts.map +1 -1
- package/dist/commonjs/generatedModels.js.map +2 -2
- package/dist/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +2 -0
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/models.d.ts +3 -0
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js +24 -0
- package/dist/commonjs/models.js.map +2 -2
- package/dist/commonjs/utils/constants.js +2 -2
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/commonjs/utils/utils.common.d.ts +22 -2
- package/dist/commonjs/utils/utils.common.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.common.js +40 -0
- package/dist/commonjs/utils/utils.common.js.map +2 -2
- package/dist/esm/Clients.d.ts +123 -1
- package/dist/esm/Clients.d.ts.map +1 -1
- package/dist/esm/Clients.js +461 -236
- package/dist/esm/Clients.js.map +1 -1
- package/dist/esm/Pipeline.d.ts.map +1 -1
- package/dist/esm/Pipeline.js +5 -23
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/ShareClientInternal.d.ts +1 -1
- package/dist/esm/ShareClientInternal.d.ts.map +1 -1
- package/dist/esm/ShareClientInternal.js +2 -1
- package/dist/esm/ShareClientInternal.js.map +1 -1
- package/dist/esm/ShareServiceClient.d.ts.map +1 -1
- package/dist/esm/ShareServiceClient.js +9 -9
- package/dist/esm/ShareServiceClient.js.map +1 -1
- package/dist/esm/StorageClient.d.ts +12 -2
- package/dist/esm/StorageClient.d.ts.map +1 -1
- package/dist/esm/StorageClient.js +46 -9
- package/dist/esm/StorageClient.js.map +1 -1
- package/dist/esm/generated/api/directory/index.d.ts +3 -0
- package/dist/esm/generated/api/directory/index.d.ts.map +1 -0
- package/dist/esm/generated/api/directory/index.js +4 -0
- package/dist/esm/generated/api/directory/index.js.map +1 -0
- package/dist/esm/generated/api/directory/operations.d.ts +413 -0
- package/dist/esm/generated/api/directory/operations.d.ts.map +1 -0
- package/dist/esm/generated/api/directory/operations.js +1020 -0
- package/dist/esm/generated/api/directory/operations.js.map +1 -0
- package/dist/esm/generated/api/directory/options.d.ts +202 -0
- package/dist/esm/generated/api/directory/options.d.ts.map +1 -0
- package/dist/esm/generated/api/directory/options.js +4 -0
- package/dist/esm/generated/api/directory/options.js.map +1 -0
- package/dist/esm/generated/api/file/index.d.ts +3 -0
- package/dist/esm/generated/api/file/index.d.ts.map +1 -0
- package/dist/esm/generated/api/file/index.js +4 -0
- package/dist/esm/generated/api/file/index.js.map +1 -0
- package/dist/esm/generated/api/file/operations.d.ts +1095 -0
- package/dist/esm/generated/api/file/operations.d.ts.map +1 -0
- package/dist/esm/generated/api/file/operations.js +2638 -0
- package/dist/esm/generated/api/file/operations.js.map +1 -0
- package/dist/esm/generated/api/file/options.d.ts +499 -0
- package/dist/esm/generated/api/file/options.d.ts.map +1 -0
- package/dist/esm/generated/api/file/options.js +4 -0
- package/dist/esm/generated/api/file/options.js.map +1 -0
- package/dist/esm/generated/api/fileContext.d.ts +15 -0
- package/dist/esm/generated/api/fileContext.d.ts.map +1 -0
- package/dist/esm/generated/api/fileContext.js +23 -0
- package/dist/esm/generated/api/fileContext.js.map +1 -0
- package/dist/esm/generated/api/index.d.ts +3 -0
- package/dist/esm/generated/api/index.d.ts.map +1 -0
- package/dist/esm/generated/api/index.js +4 -0
- package/dist/esm/generated/api/index.js.map +1 -0
- package/dist/esm/generated/api/service/index.d.ts +3 -0
- package/dist/esm/generated/api/service/index.d.ts.map +1 -0
- package/dist/esm/generated/api/service/index.js +4 -0
- package/dist/esm/generated/api/service/index.js.map +1 -0
- package/dist/esm/generated/api/service/operations.d.ts +115 -0
- package/dist/esm/generated/api/service/operations.d.ts.map +1 -0
- package/dist/esm/generated/api/service/operations.js +338 -0
- package/dist/esm/generated/api/service/operations.js.map +1 -0
- package/dist/esm/generated/api/service/options.d.ts +45 -0
- package/dist/esm/generated/api/service/options.d.ts.map +1 -0
- package/dist/esm/generated/api/service/options.js +4 -0
- package/dist/esm/generated/api/service/options.js.map +1 -0
- package/dist/esm/generated/api/share/index.d.ts +3 -0
- package/dist/esm/generated/api/share/index.d.ts.map +1 -0
- package/dist/esm/generated/api/share/index.js +4 -0
- package/dist/esm/generated/api/share/index.js.map +1 -0
- package/dist/esm/generated/api/share/operations.d.ts +679 -0
- package/dist/esm/generated/api/share/operations.d.ts.map +1 -0
- package/dist/esm/generated/api/share/operations.js +1676 -0
- package/dist/esm/generated/api/share/operations.js.map +1 -0
- package/dist/esm/generated/api/share/options.d.ts +254 -0
- package/dist/esm/generated/api/share/options.d.ts.map +1 -0
- package/dist/esm/generated/api/share/options.js +4 -0
- package/dist/esm/generated/api/share/options.js.map +1 -0
- package/dist/esm/generated/classic/directory/index.d.ts +240 -0
- package/dist/esm/generated/classic/directory/index.d.ts.map +1 -0
- package/dist/esm/generated/classic/directory/index.js +22 -0
- package/dist/esm/generated/classic/directory/index.js.map +1 -0
- package/dist/esm/generated/classic/file/index.d.ts +634 -0
- package/dist/esm/generated/classic/file/index.d.ts.map +1 -0
- package/dist/esm/generated/classic/file/index.js +35 -0
- package/dist/esm/generated/classic/file/index.js.map +1 -0
- package/dist/esm/generated/classic/index.d.ts +5 -0
- package/dist/esm/generated/classic/index.d.ts.map +1 -0
- package/dist/esm/generated/classic/index.js +4 -0
- package/dist/esm/generated/classic/index.js.map +1 -0
- package/dist/esm/generated/classic/service/index.d.ts +63 -0
- package/dist/esm/generated/classic/service/index.d.ts.map +1 -0
- package/dist/esm/generated/classic/service/index.js +17 -0
- package/dist/esm/generated/classic/service/index.js.map +1 -0
- package/dist/esm/generated/classic/share/index.d.ts +380 -0
- package/dist/esm/generated/classic/share/index.d.ts.map +1 -0
- package/dist/esm/generated/classic/share/index.js +30 -0
- package/dist/esm/generated/classic/share/index.js.map +1 -0
- package/dist/esm/generated/fileClient.d.ts +24 -0
- package/dist/esm/generated/fileClient.d.ts.map +1 -0
- package/dist/esm/generated/fileClient.js +37 -0
- package/dist/esm/generated/fileClient.js.map +1 -0
- package/dist/esm/generated/index.d.ts +11 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +6 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/logger.d.ts +2 -0
- package/dist/esm/generated/logger.d.ts.map +1 -0
- package/dist/esm/generated/logger.js +5 -0
- package/dist/esm/generated/logger.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +3 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/index.js +4 -0
- package/dist/esm/generated/models/index.js.map +1 -0
- package/dist/esm/generated/models/models.d.ts +942 -0
- package/dist/esm/generated/models/models.d.ts.map +1 -0
- package/dist/esm/generated/models/models.js +2515 -0
- package/dist/esm/generated/models/models.js.map +1 -0
- package/dist/esm/generated/static-helpers/platform-types.d.ts +8 -0
- package/dist/esm/generated/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/esm/generated/static-helpers/platform-types.js +4 -0
- package/dist/esm/generated/static-helpers/platform-types.js.map +1 -0
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.d.ts +13 -0
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.js +17 -0
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.js.map +1 -0
- package/dist/esm/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
- package/dist/esm/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
- package/dist/esm/generated/static-helpers/serialization/xml-helpers.js +446 -0
- package/dist/esm/generated/static-helpers/serialization/xml-helpers.js.map +1 -0
- package/dist/esm/generated/static-helpers/storageCompatResponse.d.ts +44 -0
- package/dist/esm/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
- package/dist/esm/generated/static-helpers/storageCompatResponse.js +36 -0
- package/dist/esm/generated/static-helpers/storageCompatResponse.js.map +1 -0
- package/dist/esm/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/generated/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/generated/static-helpers/urlTemplate.js.map +1 -0
- package/dist/{commonjs/generated/src/models/index.d.ts → esm/generated-classic-models.d.ts} +58 -58
- package/dist/esm/generated-classic-models.d.ts.map +1 -0
- package/dist/esm/{generated/src/models/index.js → generated-classic-models.js} +1 -1
- package/dist/esm/generated-classic-models.js.map +1 -0
- package/dist/esm/generatedModels.d.ts +21 -2
- package/dist/esm/generatedModels.d.ts.map +1 -1
- package/dist/esm/generatedModels.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models.d.ts +3 -0
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js +20 -0
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/utils/constants.js +2 -2
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +22 -2
- package/dist/esm/utils/utils.common.d.ts.map +1 -1
- package/dist/esm/utils/utils.common.js +48 -0
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/Clients.d.ts +123 -1
- package/dist/react-native/Clients.d.ts.map +1 -1
- package/dist/react-native/Clients.js +461 -236
- package/dist/react-native/Clients.js.map +1 -1
- package/dist/react-native/Pipeline.d.ts.map +1 -1
- package/dist/react-native/Pipeline.js +5 -23
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/ShareClientInternal.d.ts +1 -1
- package/dist/react-native/ShareClientInternal.d.ts.map +1 -1
- package/dist/react-native/ShareClientInternal.js +2 -1
- package/dist/react-native/ShareClientInternal.js.map +1 -1
- package/dist/react-native/ShareServiceClient.d.ts.map +1 -1
- package/dist/react-native/ShareServiceClient.js +9 -9
- package/dist/react-native/ShareServiceClient.js.map +1 -1
- package/dist/react-native/StorageClient.d.ts +12 -2
- package/dist/react-native/StorageClient.d.ts.map +1 -1
- package/dist/react-native/StorageClient.js +46 -9
- package/dist/react-native/StorageClient.js.map +1 -1
- package/dist/react-native/generated/api/directory/index.d.ts +3 -0
- package/dist/react-native/generated/api/directory/index.d.ts.map +1 -0
- package/dist/react-native/generated/api/directory/index.js +4 -0
- package/dist/react-native/generated/api/directory/index.js.map +1 -0
- package/dist/react-native/generated/api/directory/operations.d.ts +413 -0
- package/dist/react-native/generated/api/directory/operations.d.ts.map +1 -0
- package/dist/react-native/generated/api/directory/operations.js +1020 -0
- package/dist/react-native/generated/api/directory/operations.js.map +1 -0
- package/dist/react-native/generated/api/directory/options.d.ts +202 -0
- package/dist/react-native/generated/api/directory/options.d.ts.map +1 -0
- package/dist/react-native/generated/api/directory/options.js +4 -0
- package/dist/react-native/generated/api/directory/options.js.map +1 -0
- package/dist/react-native/generated/api/file/index.d.ts +3 -0
- package/dist/react-native/generated/api/file/index.d.ts.map +1 -0
- package/dist/react-native/generated/api/file/index.js +4 -0
- package/dist/react-native/generated/api/file/index.js.map +1 -0
- package/dist/react-native/generated/api/file/operations.d.ts +1095 -0
- package/dist/react-native/generated/api/file/operations.d.ts.map +1 -0
- package/dist/react-native/generated/api/file/operations.js +2638 -0
- package/dist/react-native/generated/api/file/operations.js.map +1 -0
- package/dist/react-native/generated/api/file/options.d.ts +499 -0
- package/dist/react-native/generated/api/file/options.d.ts.map +1 -0
- package/dist/react-native/generated/api/file/options.js +4 -0
- package/dist/react-native/generated/api/file/options.js.map +1 -0
- package/dist/react-native/generated/api/fileContext.d.ts +15 -0
- package/dist/react-native/generated/api/fileContext.d.ts.map +1 -0
- package/dist/react-native/generated/api/fileContext.js +23 -0
- package/dist/react-native/generated/api/fileContext.js.map +1 -0
- package/dist/react-native/generated/api/index.d.ts +3 -0
- package/dist/react-native/generated/api/index.d.ts.map +1 -0
- package/dist/react-native/generated/api/index.js +4 -0
- package/dist/react-native/generated/api/index.js.map +1 -0
- package/dist/react-native/generated/api/service/index.d.ts +3 -0
- package/dist/react-native/generated/api/service/index.d.ts.map +1 -0
- package/dist/react-native/generated/api/service/index.js +4 -0
- package/dist/react-native/generated/api/service/index.js.map +1 -0
- package/dist/react-native/generated/api/service/operations.d.ts +115 -0
- package/dist/react-native/generated/api/service/operations.d.ts.map +1 -0
- package/dist/react-native/generated/api/service/operations.js +338 -0
- package/dist/react-native/generated/api/service/operations.js.map +1 -0
- package/dist/react-native/generated/api/service/options.d.ts +45 -0
- package/dist/react-native/generated/api/service/options.d.ts.map +1 -0
- package/dist/react-native/generated/api/service/options.js +4 -0
- package/dist/react-native/generated/api/service/options.js.map +1 -0
- package/dist/react-native/generated/api/share/index.d.ts +3 -0
- package/dist/react-native/generated/api/share/index.d.ts.map +1 -0
- package/dist/react-native/generated/api/share/index.js +4 -0
- package/dist/react-native/generated/api/share/index.js.map +1 -0
- package/dist/react-native/generated/api/share/operations.d.ts +679 -0
- package/dist/react-native/generated/api/share/operations.d.ts.map +1 -0
- package/dist/react-native/generated/api/share/operations.js +1676 -0
- package/dist/react-native/generated/api/share/operations.js.map +1 -0
- package/dist/react-native/generated/api/share/options.d.ts +254 -0
- package/dist/react-native/generated/api/share/options.d.ts.map +1 -0
- package/dist/react-native/generated/api/share/options.js +4 -0
- package/dist/react-native/generated/api/share/options.js.map +1 -0
- package/dist/react-native/generated/classic/directory/index.d.ts +240 -0
- package/dist/react-native/generated/classic/directory/index.d.ts.map +1 -0
- package/dist/react-native/generated/classic/directory/index.js +22 -0
- package/dist/react-native/generated/classic/directory/index.js.map +1 -0
- package/dist/react-native/generated/classic/file/index.d.ts +634 -0
- package/dist/react-native/generated/classic/file/index.d.ts.map +1 -0
- package/dist/react-native/generated/classic/file/index.js +35 -0
- package/dist/react-native/generated/classic/file/index.js.map +1 -0
- package/dist/react-native/generated/classic/index.d.ts +5 -0
- package/dist/react-native/generated/classic/index.d.ts.map +1 -0
- package/dist/react-native/generated/classic/index.js +4 -0
- package/dist/react-native/generated/classic/index.js.map +1 -0
- package/dist/react-native/generated/classic/service/index.d.ts +63 -0
- package/dist/react-native/generated/classic/service/index.d.ts.map +1 -0
- package/dist/react-native/generated/classic/service/index.js +17 -0
- package/dist/react-native/generated/classic/service/index.js.map +1 -0
- package/dist/react-native/generated/classic/share/index.d.ts +380 -0
- package/dist/react-native/generated/classic/share/index.d.ts.map +1 -0
- package/dist/react-native/generated/classic/share/index.js +30 -0
- package/dist/react-native/generated/classic/share/index.js.map +1 -0
- package/dist/react-native/generated/fileClient.d.ts +24 -0
- package/dist/react-native/generated/fileClient.d.ts.map +1 -0
- package/dist/react-native/generated/fileClient.js +37 -0
- package/dist/react-native/generated/fileClient.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +11 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +6 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/logger.d.ts +2 -0
- package/dist/react-native/generated/logger.d.ts.map +1 -0
- package/dist/react-native/generated/logger.js +5 -0
- package/dist/react-native/generated/logger.js.map +1 -0
- package/dist/react-native/generated/models/index.d.ts +3 -0
- package/dist/react-native/generated/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/models/index.js +4 -0
- package/dist/react-native/generated/models/index.js.map +1 -0
- package/dist/react-native/generated/models/models.d.ts +942 -0
- package/dist/react-native/generated/models/models.d.ts.map +1 -0
- package/dist/react-native/generated/models/models.js +2515 -0
- package/dist/react-native/generated/models/models.js.map +1 -0
- package/dist/react-native/generated/static-helpers/platform-types-browser.d.mts +6 -0
- package/dist/react-native/generated/static-helpers/platform-types-browser.d.mts.map +1 -0
- package/dist/react-native/generated/static-helpers/platform-types-browser.mjs +2 -0
- package/dist/react-native/generated/static-helpers/platform-types-browser.mjs.map +1 -0
- package/dist/react-native/generated/static-helpers/platform-types.d.ts +6 -0
- package/dist/react-native/generated/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/react-native/generated/static-helpers/platform-types.js +2 -0
- package/dist/react-native/generated/static-helpers/platform-types.js.map +1 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.d.mts +13 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.d.mts.map +1 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.mjs +15 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.mjs.map +1 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.d.ts +2 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.js +2 -0
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.js.map +1 -0
- package/dist/react-native/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
- package/dist/react-native/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
- package/dist/react-native/generated/static-helpers/serialization/xml-helpers.js +446 -0
- package/dist/react-native/generated/static-helpers/serialization/xml-helpers.js.map +1 -0
- package/dist/react-native/generated/static-helpers/storageCompatResponse.d.ts +44 -0
- package/dist/react-native/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
- package/dist/react-native/generated/static-helpers/storageCompatResponse.js +36 -0
- package/dist/react-native/generated/static-helpers/storageCompatResponse.js.map +1 -0
- package/dist/react-native/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/generated/static-helpers/urlTemplate.js +200 -0
- package/dist/react-native/generated/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/{generated/src/models/index.d.ts → generated-classic-models.d.ts} +58 -58
- package/dist/react-native/generated-classic-models.d.ts.map +1 -0
- package/dist/react-native/{generated/src/models/index.js → generated-classic-models.js} +1 -1
- package/dist/react-native/generated-classic-models.js.map +1 -0
- package/dist/react-native/generatedModels.d.ts +21 -2
- package/dist/react-native/generatedModels.d.ts.map +1 -1
- package/dist/react-native/generatedModels.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -2
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models.d.ts +3 -0
- package/dist/react-native/models.d.ts.map +1 -1
- package/dist/react-native/models.js +20 -0
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/utils/constants.js +2 -2
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +22 -2
- package/dist/react-native/utils/utils.common.d.ts.map +1 -1
- package/dist/react-native/utils/utils.common.js +48 -0
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +19 -22
- package/dist/browser/StorageContextClient.d.ts +0 -9
- package/dist/browser/StorageContextClient.d.ts.map +0 -1
- package/dist/browser/StorageContextClient.js +0 -18
- package/dist/browser/StorageContextClient.js.map +0 -1
- package/dist/browser/generated/src/index.d.ts +0 -4
- package/dist/browser/generated/src/index.d.ts.map +0 -1
- package/dist/browser/generated/src/index.js +0 -11
- package/dist/browser/generated/src/index.js.map +0 -1
- package/dist/browser/generated/src/models/index.d.ts.map +0 -1
- package/dist/browser/generated/src/models/index.js.map +0 -1
- package/dist/browser/generated/src/models/mappers.d.ts +0 -135
- package/dist/browser/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/browser/generated/src/models/mappers.js +0 -6300
- package/dist/browser/generated/src/models/mappers.js.map +0 -1
- package/dist/browser/generated/src/models/parameters.d.ts +0 -134
- package/dist/browser/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/browser/generated/src/models/parameters.js +0 -1419
- package/dist/browser/generated/src/models/parameters.js.map +0 -1
- package/dist/browser/generated/src/operations/directory.d.ts +0 -65
- package/dist/browser/generated/src/operations/directory.d.ts.map +0 -1
- package/dist/browser/generated/src/operations/directory.js +0 -380
- package/dist/browser/generated/src/operations/directory.js.map +0 -1
- package/dist/browser/generated/src/operations/file.d.ts +0 -162
- package/dist/browser/generated/src/operations/file.d.ts.map +0 -1
- package/dist/browser/generated/src/operations/file.js +0 -879
- package/dist/browser/generated/src/operations/file.js.map +0 -1
- package/dist/browser/generated/src/operations/index.d.ts +0 -5
- package/dist/browser/generated/src/operations/index.d.ts.map +0 -1
- package/dist/browser/generated/src/operations/index.js +0 -12
- package/dist/browser/generated/src/operations/index.js.map +0 -1
- package/dist/browser/generated/src/operations/service.d.ts +0 -39
- package/dist/browser/generated/src/operations/service.d.ts.map +0 -1
- package/dist/browser/generated/src/operations/service.js +0 -176
- package/dist/browser/generated/src/operations/service.js.map +0 -1
- package/dist/browser/generated/src/operations/share.d.ts +0 -111
- package/dist/browser/generated/src/operations/share.d.ts.map +0 -1
- package/dist/browser/generated/src/operations/share.js +0 -672
- package/dist/browser/generated/src/operations/share.js.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/directory.d.ts +0 -57
- package/dist/browser/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/directory.js +0 -9
- package/dist/browser/generated/src/operationsInterfaces/directory.js.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/file.d.ts +0 -154
- package/dist/browser/generated/src/operationsInterfaces/file.d.ts.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/file.js +0 -9
- package/dist/browser/generated/src/operationsInterfaces/file.js.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +0 -5
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/index.js +0 -12
- package/dist/browser/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/service.d.ts +0 -31
- package/dist/browser/generated/src/operationsInterfaces/service.d.ts.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/service.js +0 -9
- package/dist/browser/generated/src/operationsInterfaces/service.js.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/share.d.ts +0 -103
- package/dist/browser/generated/src/operationsInterfaces/share.d.ts.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/share.js +0 -9
- package/dist/browser/generated/src/operationsInterfaces/share.js.map +0 -1
- package/dist/browser/generated/src/storageClient.d.ts +0 -20
- package/dist/browser/generated/src/storageClient.d.ts.map +0 -1
- package/dist/browser/generated/src/storageClient.js +0 -59
- package/dist/browser/generated/src/storageClient.js.map +0 -1
- package/dist/commonjs/StorageContextClient.d.ts +0 -9
- package/dist/commonjs/StorageContextClient.d.ts.map +0 -1
- package/dist/commonjs/StorageContextClient.js.map +0 -7
- package/dist/commonjs/generated/src/index.d.ts +0 -4
- package/dist/commonjs/generated/src/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/index.js.map +0 -7
- package/dist/commonjs/generated/src/models/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/index.js.map +0 -7
- package/dist/commonjs/generated/src/models/mappers.d.ts +0 -135
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/mappers.js +0 -6583
- package/dist/commonjs/generated/src/models/mappers.js.map +0 -7
- package/dist/commonjs/generated/src/models/parameters.d.ts +0 -134
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/parameters.js +0 -1700
- package/dist/commonjs/generated/src/models/parameters.js.map +0 -7
- package/dist/commonjs/generated/src/operations/directory.d.ts +0 -65
- package/dist/commonjs/generated/src/operations/directory.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operations/directory.js +0 -432
- package/dist/commonjs/generated/src/operations/directory.js.map +0 -7
- package/dist/commonjs/generated/src/operations/file.d.ts +0 -162
- package/dist/commonjs/generated/src/operations/file.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operations/file.js +0 -967
- package/dist/commonjs/generated/src/operations/file.js.map +0 -7
- package/dist/commonjs/generated/src/operations/index.d.ts +0 -5
- package/dist/commonjs/generated/src/operations/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operations/index.js.map +0 -7
- package/dist/commonjs/generated/src/operations/service.d.ts +0 -39
- package/dist/commonjs/generated/src/operations/service.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operations/service.js +0 -219
- package/dist/commonjs/generated/src/operations/service.js.map +0 -7
- package/dist/commonjs/generated/src/operations/share.d.ts +0 -111
- package/dist/commonjs/generated/src/operations/share.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operations/share.js +0 -749
- package/dist/commonjs/generated/src/operations/share.js.map +0 -7
- package/dist/commonjs/generated/src/operationsInterfaces/directory.d.ts +0 -57
- package/dist/commonjs/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/directory.js.map +0 -7
- package/dist/commonjs/generated/src/operationsInterfaces/file.d.ts +0 -154
- package/dist/commonjs/generated/src/operationsInterfaces/file.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/file.js.map +0 -7
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +0 -5
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +0 -28
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +0 -7
- package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts +0 -31
- package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +0 -7
- package/dist/commonjs/generated/src/operationsInterfaces/share.d.ts +0 -103
- package/dist/commonjs/generated/src/operationsInterfaces/share.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/share.js.map +0 -7
- package/dist/commonjs/generated/src/storageClient.d.ts +0 -20
- package/dist/commonjs/generated/src/storageClient.d.ts.map +0 -1
- package/dist/commonjs/generated/src/storageClient.js +0 -83
- package/dist/commonjs/generated/src/storageClient.js.map +0 -7
- package/dist/esm/StorageContextClient.d.ts +0 -9
- package/dist/esm/StorageContextClient.d.ts.map +0 -1
- package/dist/esm/StorageContextClient.js +0 -18
- package/dist/esm/StorageContextClient.js.map +0 -1
- package/dist/esm/generated/src/index.d.ts +0 -4
- package/dist/esm/generated/src/index.d.ts.map +0 -1
- package/dist/esm/generated/src/index.js +0 -11
- package/dist/esm/generated/src/index.js.map +0 -1
- package/dist/esm/generated/src/models/index.d.ts.map +0 -1
- package/dist/esm/generated/src/models/index.js.map +0 -1
- package/dist/esm/generated/src/models/mappers.d.ts +0 -135
- package/dist/esm/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/esm/generated/src/models/mappers.js +0 -6300
- package/dist/esm/generated/src/models/mappers.js.map +0 -1
- package/dist/esm/generated/src/models/parameters.d.ts +0 -134
- package/dist/esm/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/esm/generated/src/models/parameters.js +0 -1419
- package/dist/esm/generated/src/models/parameters.js.map +0 -1
- package/dist/esm/generated/src/operations/directory.d.ts +0 -65
- package/dist/esm/generated/src/operations/directory.d.ts.map +0 -1
- package/dist/esm/generated/src/operations/directory.js +0 -380
- package/dist/esm/generated/src/operations/directory.js.map +0 -1
- package/dist/esm/generated/src/operations/file.d.ts +0 -162
- package/dist/esm/generated/src/operations/file.d.ts.map +0 -1
- package/dist/esm/generated/src/operations/file.js +0 -879
- package/dist/esm/generated/src/operations/file.js.map +0 -1
- package/dist/esm/generated/src/operations/index.d.ts +0 -5
- package/dist/esm/generated/src/operations/index.d.ts.map +0 -1
- package/dist/esm/generated/src/operations/index.js +0 -12
- package/dist/esm/generated/src/operations/index.js.map +0 -1
- package/dist/esm/generated/src/operations/service.d.ts +0 -39
- package/dist/esm/generated/src/operations/service.d.ts.map +0 -1
- package/dist/esm/generated/src/operations/service.js +0 -176
- package/dist/esm/generated/src/operations/service.js.map +0 -1
- package/dist/esm/generated/src/operations/share.d.ts +0 -111
- package/dist/esm/generated/src/operations/share.d.ts.map +0 -1
- package/dist/esm/generated/src/operations/share.js +0 -672
- package/dist/esm/generated/src/operations/share.js.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/directory.d.ts +0 -57
- package/dist/esm/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/directory.js +0 -9
- package/dist/esm/generated/src/operationsInterfaces/directory.js.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/file.d.ts +0 -154
- package/dist/esm/generated/src/operationsInterfaces/file.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/file.js +0 -9
- package/dist/esm/generated/src/operationsInterfaces/file.js.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +0 -5
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/index.js +0 -12
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/service.d.ts +0 -31
- package/dist/esm/generated/src/operationsInterfaces/service.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/service.js +0 -9
- package/dist/esm/generated/src/operationsInterfaces/service.js.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/share.d.ts +0 -103
- package/dist/esm/generated/src/operationsInterfaces/share.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/share.js +0 -9
- package/dist/esm/generated/src/operationsInterfaces/share.js.map +0 -1
- package/dist/esm/generated/src/storageClient.d.ts +0 -20
- package/dist/esm/generated/src/storageClient.d.ts.map +0 -1
- package/dist/esm/generated/src/storageClient.js +0 -59
- package/dist/esm/generated/src/storageClient.js.map +0 -1
- package/dist/react-native/StorageContextClient.d.ts +0 -9
- package/dist/react-native/StorageContextClient.d.ts.map +0 -1
- package/dist/react-native/StorageContextClient.js +0 -18
- package/dist/react-native/StorageContextClient.js.map +0 -1
- package/dist/react-native/generated/src/index.d.ts +0 -4
- package/dist/react-native/generated/src/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/index.js +0 -11
- package/dist/react-native/generated/src/index.js.map +0 -1
- package/dist/react-native/generated/src/models/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/models/index.js.map +0 -1
- package/dist/react-native/generated/src/models/mappers.d.ts +0 -135
- package/dist/react-native/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/react-native/generated/src/models/mappers.js +0 -6300
- package/dist/react-native/generated/src/models/mappers.js.map +0 -1
- package/dist/react-native/generated/src/models/parameters.d.ts +0 -134
- package/dist/react-native/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/react-native/generated/src/models/parameters.js +0 -1419
- package/dist/react-native/generated/src/models/parameters.js.map +0 -1
- package/dist/react-native/generated/src/operations/directory.d.ts +0 -65
- package/dist/react-native/generated/src/operations/directory.d.ts.map +0 -1
- package/dist/react-native/generated/src/operations/directory.js +0 -380
- package/dist/react-native/generated/src/operations/directory.js.map +0 -1
- package/dist/react-native/generated/src/operations/file.d.ts +0 -162
- package/dist/react-native/generated/src/operations/file.d.ts.map +0 -1
- package/dist/react-native/generated/src/operations/file.js +0 -879
- package/dist/react-native/generated/src/operations/file.js.map +0 -1
- package/dist/react-native/generated/src/operations/index.d.ts +0 -5
- package/dist/react-native/generated/src/operations/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/operations/index.js +0 -12
- package/dist/react-native/generated/src/operations/index.js.map +0 -1
- package/dist/react-native/generated/src/operations/service.d.ts +0 -39
- package/dist/react-native/generated/src/operations/service.d.ts.map +0 -1
- package/dist/react-native/generated/src/operations/service.js +0 -176
- package/dist/react-native/generated/src/operations/service.js.map +0 -1
- package/dist/react-native/generated/src/operations/share.d.ts +0 -111
- package/dist/react-native/generated/src/operations/share.d.ts.map +0 -1
- package/dist/react-native/generated/src/operations/share.js +0 -672
- package/dist/react-native/generated/src/operations/share.js.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/directory.d.ts +0 -57
- package/dist/react-native/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/directory.js +0 -9
- package/dist/react-native/generated/src/operationsInterfaces/directory.js.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/file.d.ts +0 -154
- package/dist/react-native/generated/src/operationsInterfaces/file.d.ts.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/file.js +0 -9
- package/dist/react-native/generated/src/operationsInterfaces/file.js.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +0 -5
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/index.js +0 -12
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/service.d.ts +0 -31
- package/dist/react-native/generated/src/operationsInterfaces/service.d.ts.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/service.js +0 -9
- package/dist/react-native/generated/src/operationsInterfaces/service.js.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/share.d.ts +0 -103
- package/dist/react-native/generated/src/operationsInterfaces/share.d.ts.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/share.js +0 -9
- package/dist/react-native/generated/src/operationsInterfaces/share.js.map +0 -1
- package/dist/react-native/generated/src/storageClient.d.ts +0 -20
- package/dist/react-native/generated/src/storageClient.d.ts.map +0 -1
- package/dist/react-native/generated/src/storageClient.js +0 -59
- package/dist/react-native/generated/src/storageClient.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pipeline.d.ts","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,4BAA4B,EAE7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,IAAI,qBAAqB,EACvC,aAAa,IAAI,WAAW,EAC5B,eAAe,IAAI,WAAW,EAC9B,aAAa,EACb,oBAAoB,EACpB,wBAAwB,IAAI,oBAAoB,EAChD,eAAe,IAAI,WAAW,EAG/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,aAAa,IAAI,YAAY,EAC7B,sBAAsB,IAAI,gBAAgB,EAI1C,eAAe,IAAI,eAAe,EACnC,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"Pipeline.d.ts","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,4BAA4B,EAE7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,IAAI,qBAAqB,EACvC,aAAa,IAAI,WAAW,EAC5B,eAAe,IAAI,WAAW,EAC9B,aAAa,EACb,o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{ bearerTokenAuthenticationPolicy, decompressResponsePolicyName, } from "@azure/core-rest-pipeline";
|
|
5
5
|
import { authorizeRequestOnTenantChallenge, createClientPipeline } from "@azure/core-client";
|
|
6
|
-
import { parseXML, stringifyXML } from "@azure/core-xml";
|
|
7
6
|
import { isTokenCredential } from "@azure/core-auth";
|
|
8
7
|
import { logger } from "./log.js";
|
|
9
|
-
import { AnonymousCredential, StorageRetryPolicyFactory, StorageSharedKeyCredential, getCachedDefaultHttpClient, storageBrowserPolicy, storageRetryPolicy, storageSharedKeyCredentialPolicy, StorageBrowserPolicyFactory, storageCorrectContentLengthPolicy, storageRequestFailureDetailsParserPolicy, } from "@azure/storage-common";
|
|
8
|
+
import { AnonymousCredential, StorageRetryPolicyFactory, StorageSharedKeyCredential, getCachedDefaultHttpClient, storageBrowserPolicy, storageRetryPolicy, storageSharedKeyCredentialPolicy, StorageBrowserPolicyFactory, storageCorrectContentLengthPolicy, storageRequestFailureDetailsParserPolicy, storageRedirectRangeHeaderPolicy, } from "@azure/storage-common";
|
|
10
9
|
import { StorageOAuthScopes, StorageFileLoggingAllowedHeaderNames, StorageFileLoggingAllowedQueryParameters, SDK_VERSION, } from "./utils/constants.js";
|
|
11
10
|
// Export following interfaces and types for customers who want to implement their
|
|
12
11
|
// own RequestPolicy or HTTPClient
|
|
@@ -114,7 +113,7 @@ export function getCoreClientOptions(pipeline) {
|
|
|
114
113
|
}
|
|
115
114
|
let corePipeline = pipeline._corePipeline;
|
|
116
115
|
if (!corePipeline) {
|
|
117
|
-
const packageDetails = `azsdk-js-
|
|
116
|
+
const packageDetails = `azsdk-js-storage-file-share/${SDK_VERSION}`;
|
|
118
117
|
const userAgentPrefix = restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix
|
|
119
118
|
? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
120
119
|
: `${packageDetails}`;
|
|
@@ -128,32 +127,15 @@ export function getCoreClientOptions(pipeline) {
|
|
|
128
127
|
userAgentOptions: {
|
|
129
128
|
userAgentPrefix,
|
|
130
129
|
},
|
|
131
|
-
serializationOptions: {
|
|
132
|
-
stringifyXML,
|
|
133
|
-
serializerOptions: {
|
|
134
|
-
xml: {
|
|
135
|
-
// Use customized XML char key of "#" so we can deserialize metadata
|
|
136
|
-
// with "_" key
|
|
137
|
-
xmlCharKey: "#",
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
deserializationOptions: {
|
|
142
|
-
parseXML,
|
|
143
|
-
serializerOptions: {
|
|
144
|
-
xml: {
|
|
145
|
-
// Use customized XML char key of "#" so we can deserialize metadata
|
|
146
|
-
// with "_" key
|
|
147
|
-
xmlCharKey: "#",
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
130
|
});
|
|
152
131
|
corePipeline.removePolicy({ phase: "Retry" });
|
|
153
132
|
corePipeline.removePolicy({ name: decompressResponsePolicyName });
|
|
133
|
+
corePipeline.removePolicy({ name: "deserializationPolicy" });
|
|
134
|
+
corePipeline.removePolicy({ name: "serializationPolicy" });
|
|
154
135
|
corePipeline.addPolicy(storageCorrectContentLengthPolicy());
|
|
155
136
|
corePipeline.addPolicy(storageRetryPolicy(restOptions.retryOptions), { phase: "Retry" });
|
|
156
137
|
corePipeline.addPolicy(storageRequestFailureDetailsParserPolicy());
|
|
138
|
+
corePipeline.addPolicy(storageRedirectRangeHeaderPolicy());
|
|
157
139
|
corePipeline.addPolicy(storageBrowserPolicy());
|
|
158
140
|
const downlevelResults = processDownlevelPipeline(pipeline);
|
|
159
141
|
if (downlevelResults) {
|
package/dist/esm/Pipeline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pipeline.js","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAQL,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AASjC,OAAO,EACL,+B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cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC;IACnD,6EAA6E;IAC7E,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE;QAC5C,OAAO,UAAU,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeepAliveOptions,\n ExtendedServiceClientOptions,\n HttpPipelineLogLevel,\n} from \"@azure/core-http-compat\";\nimport {\n CompatResponse as HttpOperationResponse,\n RequestPolicy as IHttpClient,\n HttpHeadersLike as HttpHeaders,\n RequestPolicy,\n RequestPolicyFactory,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n convertHttpClient,\n createRequestPolicyFactoryPolicy,\n} from \"@azure/core-http-compat\";\nimport type {\n ProxySettings as ProxyOptions,\n UserAgentPolicyOptions as UserAgentOptions,\n Pipeline as CorePipeline,\n PipelinePolicy,\n HttpClient,\n RequestBodyType as HttpRequestBody,\n} from \"@azure/core-rest-pipeline\";\nimport {\n bearerTokenAuthenticationPolicy,\n decompressResponsePolicyName,\n} from \"@azure/core-rest-pipeline\";\nimport { authorizeRequestOnTenantChallenge, createClientPipeline } from \"@azure/core-client\";\nimport { parseXML, stringifyXML } from \"@azure/core-xml\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport type { Credential, StorageRetryOptions } from \"@azure/storage-common\";\nimport {\n AnonymousCredential,\n StorageRetryPolicyFactory,\n StorageSharedKeyCredential,\n getCachedDefaultHttpClient,\n storageBrowserPolicy,\n storageRetryPolicy,\n storageSharedKeyCredentialPolicy,\n StorageBrowserPolicyFactory,\n storageCorrectContentLengthPolicy,\n storageRequestFailureDetailsParserPolicy,\n} from \"@azure/storage-common\";\nimport {\n StorageOAuthScopes,\n StorageFileLoggingAllowedHeaderNames,\n StorageFileLoggingAllowedQueryParameters,\n SDK_VERSION,\n} from \"./utils/constants.js\";\nimport type { ShareTokenIntent } from \"./generatedModels.js\";\n\n// Export following interfaces and types for customers who want to implement their\n// own RequestPolicy or HTTPClient\nexport {\n StorageOAuthScopes,\n type IHttpClient,\n type HttpHeaders,\n type HttpRequestBody,\n type HttpOperationResponse,\n type WebResource,\n type RequestPolicyFactory,\n type RequestPolicy,\n type RequestPolicyOptions,\n};\n\n/**\n * A subset of `@azure/core-http` ServiceClientOptions\n */\nexport interface ServiceClientOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Optional. Overrides the default policy factories.\n */\n requestPolicyFactories?:\n | RequestPolicyFactory[]\n | ((defaultRequestPolicyFactories: RequestPolicyFactory[]) => void | RequestPolicyFactory[]);\n}\n\n/**\n * Option interface for Pipeline constructor.\n */\nexport interface PipelineOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Intent of using TokenCredential in file requests.\n */\n shareTokenIntent?: ShareTokenIntent;\n}\n\n/**\n * An interface for the {@link Pipeline} class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport interface PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n readonly options: PipelineOptions;\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n toServiceClientOptions(): ServiceClientOptions;\n}\n\n/**\n * A helper to decide if a given argument satisfies the Pipeline contract\n * @param pipeline - An argument that may be a Pipeline\n * @returns true when the argument satisfies the Pipeline contract\n */\nexport function isPipelineLike(pipeline: unknown): pipeline is PipelineLike {\n if (!pipeline || typeof pipeline !== \"object\") {\n return false;\n }\n\n const castPipeline = pipeline as PipelineLike;\n\n return (\n Array.isArray(castPipeline.factories) &&\n typeof castPipeline.options === \"object\" &&\n typeof castPipeline.toServiceClientOptions === \"function\"\n );\n}\n\n/**\n * A Pipeline class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport class Pipeline implements PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n public readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n public readonly options: PipelineOptions;\n\n /**\n * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.\n *\n * @param factories -\n * @param options -\n */\n constructor(factories: RequestPolicyFactory[], options: PipelineOptions = {}) {\n this.factories = factories;\n this.options = options;\n }\n\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n public toServiceClientOptions(): ServiceClientOptions {\n return {\n httpClient: this.options.httpClient,\n requestPolicyFactories: this.factories,\n };\n }\n}\n\n/**\n * Options interface for the {@link newPipeline} function.\n */\nexport interface StoragePipelineOptions {\n /**\n * Options to configure a proxy for outgoing requests.\n */\n proxyOptions?: ProxyOptions;\n /**\n * Options for adding user agent details to outgoing requests.\n */\n userAgentOptions?: UserAgentOptions;\n /**\n * Configures the built-in retry policy behavior.\n */\n retryOptions?: StorageRetryOptions;\n /**\n * Keep alive configurations. Default keep-alive is enabled.\n */\n keepAliveOptions?: KeepAliveOptions;\n /**\n * Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * The audience used to retrieve an AAD token.\n * By default, audience 'https://storage.azure.com/.default' will be used.\n */\n audience?: string;\n}\n\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nexport function newPipeline(\n credential?: Credential | TokenCredential,\n pipelineOptions: StoragePipelineOptions = {},\n): Pipeline {\n if (!credential) {\n credential = new AnonymousCredential();\n }\n const pipeline = new Pipeline([], pipelineOptions);\n (pipeline as any)._credential = credential;\n return pipeline;\n}\n\nfunction processDownlevelPipeline(\n pipeline: PipelineLike,\n): { wrappedPolicies: PipelinePolicy; afterRetry: boolean } | undefined {\n const knownFactoryFunctions = [\n isAnonymousCredential,\n isStorageSharedKeyCredential,\n isCoreHttpBearerTokenFactory,\n isStorageBrowserPolicyFactory,\n isStorageRetryPolicyFactory,\n isStorageTelemetryPolicyFactory,\n isCoreHttpPolicyFactory,\n ];\n if (pipeline.factories.length) {\n const novelFactories = pipeline.factories.filter((factory) => {\n return !knownFactoryFunctions.some((knownFactory) => knownFactory(factory));\n });\n if (novelFactories.length) {\n const hasInjector = novelFactories.some((factory) => isInjectorPolicyFactory(factory));\n // if there are any left over, wrap in a requestPolicyFactoryPolicy\n return {\n wrappedPolicies: createRequestPolicyFactoryPolicy(novelFactories),\n afterRetry: hasInjector,\n };\n }\n }\n return undefined;\n}\n\nexport function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions {\n const { httpClient: v1Client, ...restOptions } = pipeline.options as StoragePipelineOptions;\n\n let httpClient: HttpClient = (pipeline as any)._coreHttpClient;\n if (!httpClient) {\n httpClient = v1Client ? convertHttpClient(v1Client) : getCachedDefaultHttpClient();\n (pipeline as any)._coreHttpClient = httpClient;\n }\n\n let corePipeline: CorePipeline = (pipeline as any)._corePipeline;\n if (!corePipeline) {\n const packageDetails = `azsdk-js-azure-storage-blob/${SDK_VERSION}`;\n const userAgentPrefix =\n restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix\n ? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n corePipeline = createClientPipeline({\n ...restOptions,\n loggingOptions: {\n additionalAllowedHeaderNames: StorageFileLoggingAllowedHeaderNames,\n additionalAllowedQueryParameters: StorageFileLoggingAllowedQueryParameters,\n logger: logger.info,\n },\n userAgentOptions: {\n userAgentPrefix,\n },\n serializationOptions: {\n stringifyXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n deserializationOptions: {\n parseXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n });\n corePipeline.removePolicy({ phase: \"Retry\" });\n corePipeline.removePolicy({ name: decompressResponsePolicyName });\n corePipeline.addPolicy(storageCorrectContentLengthPolicy());\n corePipeline.addPolicy(storageRetryPolicy(restOptions.retryOptions), { phase: \"Retry\" });\n corePipeline.addPolicy(storageRequestFailureDetailsParserPolicy());\n corePipeline.addPolicy(storageBrowserPolicy());\n const downlevelResults = processDownlevelPipeline(pipeline);\n if (downlevelResults) {\n corePipeline.addPolicy(\n downlevelResults.wrappedPolicies,\n downlevelResults.afterRetry ? { afterPhase: \"Retry\" } : undefined,\n );\n }\n const credential = getCredentialFromPipeline(pipeline);\n if (isTokenCredential(credential)) {\n corePipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: restOptions.audience ?? StorageOAuthScopes,\n challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },\n }),\n { phase: \"Sign\" },\n );\n } else if (credential instanceof StorageSharedKeyCredential) {\n corePipeline.addPolicy(\n storageSharedKeyCredentialPolicy({\n accountName: credential.accountName,\n accountKey: (credential as any).accountKey,\n }),\n { phase: \"Sign\" },\n );\n }\n (pipeline as any)._corePipeline = corePipeline;\n }\n return {\n ...restOptions,\n allowInsecureConnection: true,\n httpClient,\n pipeline: corePipeline,\n };\n}\n\nexport function getCredentialFromPipeline(\n pipeline: PipelineLike,\n): StorageSharedKeyCredential | AnonymousCredential | TokenCredential {\n // see if we squirreled one away on the type itself\n if ((pipeline as any)._credential) {\n return (pipeline as any)._credential;\n }\n // if it came from another package, loop over the factories and look for one like before\n let credential = new AnonymousCredential();\n for (const factory of pipeline.factories) {\n if (isTokenCredential((factory as any).credential)) {\n // Only works if the factory has been attached a \"credential\" property.\n // We do that in newPipeline() when using TokenCredential.\n credential = (factory as any).credential;\n } else if (isStorageSharedKeyCredential(factory)) {\n return factory;\n }\n }\n return credential;\n}\n\nfunction isStorageSharedKeyCredential(\n factory: RequestPolicyFactory,\n): factory is StorageSharedKeyCredential {\n if (factory instanceof StorageSharedKeyCredential) {\n return true;\n }\n return factory.constructor.name === \"StorageSharedKeyCredential\";\n}\n\nfunction isAnonymousCredential(factory: RequestPolicyFactory): factory is AnonymousCredential {\n if (factory instanceof AnonymousCredential) {\n return true;\n }\n return factory.constructor.name === \"AnonymousCredential\";\n}\n\nfunction isCoreHttpBearerTokenFactory(factory: RequestPolicyFactory): boolean {\n return isTokenCredential((factory as any).credential);\n}\n\nfunction isStorageBrowserPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageBrowserPolicyFactory {\n if (factory instanceof StorageBrowserPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageBrowserPolicyFactory\";\n}\n\nfunction isStorageRetryPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageRetryPolicyFactory {\n if (factory instanceof StorageRetryPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageRetryPolicyFactory\";\n}\n\nfunction isStorageTelemetryPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"TelemetryPolicyFactory\";\n}\n\nfunction isInjectorPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"InjectorPolicyFactory\";\n}\n\nfunction isCoreHttpPolicyFactory(factory: RequestPolicyFactory): boolean {\n const knownPolicies = [\n \"GenerateClientRequestIdPolicy\",\n \"TracingPolicy\",\n \"LogPolicy\",\n \"ProxyPolicy\",\n \"DisableResponseDecompressionPolicy\",\n \"KeepAlivePolicy\",\n \"DeserializationPolicy\",\n ];\n\n const mockHttpClient: IHttpClient = {\n sendRequest: async (request: WebResource) => {\n return {\n request,\n headers: request.headers.clone(),\n status: 500,\n };\n },\n };\n const mockRequestPolicyOptions: RequestPolicyOptions = {\n log(_logLevel: HttpPipelineLogLevel, _message: string): void {\n /* do nothing */\n },\n shouldLog(_logLevel: HttpPipelineLogLevel): boolean {\n return false;\n },\n };\n const policyInstance = factory.create(mockHttpClient, mockRequestPolicyOptions);\n const policyName = policyInstance.constructor.name;\n // bundlers sometimes add a custom suffix to the class name to make it unique\n return knownPolicies.some((knownPolicyName) => {\n return policyName.startsWith(knownPolicyName);\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Pipeline.js","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAQL,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AASjC,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iCAAiC,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,gCAAgC,EAChC,2BAA2B,EAC3B,iCAAiC,EACjC,wCAAwC,EACxC,gCAAgC,GACjC,MAAM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AAC,IAAI,KAAK,wBAAwB,CAAC;AAC/D,CAAC;AAED,SAAS,uBAAuB,CAAC,OAA6B;IAC5D,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,uBAAuB,CAAC;AAC9D,CAAC;AAED,SAAS,uBAAuB,CAAC,OAA6B;IAC5D,MAAM,aAAa,GAAG;QACpB,+BAA+B;QAC/B,eAAe;QACf,WAAW;QACX,aAAa;QACb,oCAAoC;QACpC,iBAAiB;QACjB,uBAAuB;KACxB,CAAC;IAEF,MAAM,cAAc,GAAgB;QAClC,WAAW,EAAE,KAAK,EAAE,OAAoB,EAAE,EAAE;YAC1C,OAAO;gBACL,OAAO;gBACP,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;gBAChC,MAAM,EAAE,GAAG;aACZ,CAAC;QACJ,CAAC;KACF,CAAC;IACF,MAAM,wBAAwB,GAAyB;QACrD,GAAG,CAAC,SAA+B,EAAE,QAAgB;YACnD,gBAAgB;QAClB,CAAC;QACD,SAAS,CAAC,SAA+B;YACvC,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;IACF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC;IACnD,6EAA6E;IAC7E,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE;QAC5C,OAAO,UAAU,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeepAliveOptions,\n ExtendedServiceClientOptions,\n HttpPipelineLogLevel,\n} from \"@azure/core-http-compat\";\nimport {\n CompatResponse as HttpOperationResponse,\n RequestPolicy as IHttpClient,\n HttpHeadersLike as HttpHeaders,\n RequestPolicy,\n RequestPolicyFactory,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n convertHttpClient,\n createRequestPolicyFactoryPolicy,\n} from \"@azure/core-http-compat\";\nimport type {\n ProxySettings as ProxyOptions,\n UserAgentPolicyOptions as UserAgentOptions,\n Pipeline as CorePipeline,\n PipelinePolicy,\n HttpClient,\n RequestBodyType as HttpRequestBody,\n} from \"@azure/core-rest-pipeline\";\nimport {\n bearerTokenAuthenticationPolicy,\n decompressResponsePolicyName,\n} from \"@azure/core-rest-pipeline\";\nimport { authorizeRequestOnTenantChallenge, createClientPipeline } from \"@azure/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport type { Credential, StorageRetryOptions } from \"@azure/storage-common\";\nimport {\n AnonymousCredential,\n StorageRetryPolicyFactory,\n StorageSharedKeyCredential,\n getCachedDefaultHttpClient,\n storageBrowserPolicy,\n storageRetryPolicy,\n storageSharedKeyCredentialPolicy,\n StorageBrowserPolicyFactory,\n storageCorrectContentLengthPolicy,\n storageRequestFailureDetailsParserPolicy,\n storageRedirectRangeHeaderPolicy,\n} from \"@azure/storage-common\";\nimport {\n StorageOAuthScopes,\n StorageFileLoggingAllowedHeaderNames,\n StorageFileLoggingAllowedQueryParameters,\n SDK_VERSION,\n} from \"./utils/constants.js\";\nimport type { ShareTokenIntent } from \"./generatedModels.js\";\n\n// Export following interfaces and types for customers who want to implement their\n// own RequestPolicy or HTTPClient\nexport {\n StorageOAuthScopes,\n type IHttpClient,\n type HttpHeaders,\n type HttpRequestBody,\n type HttpOperationResponse,\n type WebResource,\n type RequestPolicyFactory,\n type RequestPolicy,\n type RequestPolicyOptions,\n};\n\n/**\n * A subset of `@azure/core-http` ServiceClientOptions\n */\nexport interface ServiceClientOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Optional. Overrides the default policy factories.\n */\n requestPolicyFactories?:\n | RequestPolicyFactory[]\n | ((defaultRequestPolicyFactories: RequestPolicyFactory[]) => void | RequestPolicyFactory[]);\n}\n\n/**\n * Option interface for Pipeline constructor.\n */\nexport interface PipelineOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Intent of using TokenCredential in file requests.\n */\n shareTokenIntent?: ShareTokenIntent;\n}\n\n/**\n * An interface for the {@link Pipeline} class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport interface PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n readonly options: PipelineOptions;\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n toServiceClientOptions(): ServiceClientOptions;\n}\n\n/**\n * A helper to decide if a given argument satisfies the Pipeline contract\n * @param pipeline - An argument that may be a Pipeline\n * @returns true when the argument satisfies the Pipeline contract\n */\nexport function isPipelineLike(pipeline: unknown): pipeline is PipelineLike {\n if (!pipeline || typeof pipeline !== \"object\") {\n return false;\n }\n\n const castPipeline = pipeline as PipelineLike;\n\n return (\n Array.isArray(castPipeline.factories) &&\n typeof castPipeline.options === \"object\" &&\n typeof castPipeline.toServiceClientOptions === \"function\"\n );\n}\n\n/**\n * A Pipeline class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport class Pipeline implements PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n public readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n public readonly options: PipelineOptions;\n\n /**\n * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.\n *\n * @param factories -\n * @param options -\n */\n constructor(factories: RequestPolicyFactory[], options: PipelineOptions = {}) {\n this.factories = factories;\n this.options = options;\n }\n\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n public toServiceClientOptions(): ServiceClientOptions {\n return {\n httpClient: this.options.httpClient,\n requestPolicyFactories: this.factories,\n };\n }\n}\n\n/**\n * Options interface for the {@link newPipeline} function.\n */\nexport interface StoragePipelineOptions {\n /**\n * Options to configure a proxy for outgoing requests.\n */\n proxyOptions?: ProxyOptions;\n /**\n * Options for adding user agent details to outgoing requests.\n */\n userAgentOptions?: UserAgentOptions;\n /**\n * Configures the built-in retry policy behavior.\n */\n retryOptions?: StorageRetryOptions;\n /**\n * Keep alive configurations. Default keep-alive is enabled.\n */\n keepAliveOptions?: KeepAliveOptions;\n /**\n * Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * The audience used to retrieve an AAD token.\n * By default, audience 'https://storage.azure.com/.default' will be used.\n */\n audience?: string;\n}\n\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nexport function newPipeline(\n credential?: Credential | TokenCredential,\n pipelineOptions: StoragePipelineOptions = {},\n): Pipeline {\n if (!credential) {\n credential = new AnonymousCredential();\n }\n const pipeline = new Pipeline([], pipelineOptions);\n (pipeline as any)._credential = credential;\n return pipeline;\n}\n\nfunction processDownlevelPipeline(\n pipeline: PipelineLike,\n): { wrappedPolicies: PipelinePolicy; afterRetry: boolean } | undefined {\n const knownFactoryFunctions = [\n isAnonymousCredential,\n isStorageSharedKeyCredential,\n isCoreHttpBearerTokenFactory,\n isStorageBrowserPolicyFactory,\n isStorageRetryPolicyFactory,\n isStorageTelemetryPolicyFactory,\n isCoreHttpPolicyFactory,\n ];\n if (pipeline.factories.length) {\n const novelFactories = pipeline.factories.filter((factory) => {\n return !knownFactoryFunctions.some((knownFactory) => knownFactory(factory));\n });\n if (novelFactories.length) {\n const hasInjector = novelFactories.some((factory) => isInjectorPolicyFactory(factory));\n // if there are any left over, wrap in a requestPolicyFactoryPolicy\n return {\n wrappedPolicies: createRequestPolicyFactoryPolicy(novelFactories),\n afterRetry: hasInjector,\n };\n }\n }\n return undefined;\n}\n\nexport function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions {\n const { httpClient: v1Client, ...restOptions } = pipeline.options as StoragePipelineOptions;\n\n let httpClient: HttpClient = (pipeline as any)._coreHttpClient;\n if (!httpClient) {\n httpClient = v1Client ? convertHttpClient(v1Client) : getCachedDefaultHttpClient();\n (pipeline as any)._coreHttpClient = httpClient;\n }\n\n let corePipeline: CorePipeline = (pipeline as any)._corePipeline;\n if (!corePipeline) {\n const packageDetails = `azsdk-js-storage-file-share/${SDK_VERSION}`;\n const userAgentPrefix =\n restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix\n ? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n corePipeline = createClientPipeline({\n ...restOptions,\n loggingOptions: {\n additionalAllowedHeaderNames: StorageFileLoggingAllowedHeaderNames,\n additionalAllowedQueryParameters: StorageFileLoggingAllowedQueryParameters,\n logger: logger.info,\n },\n userAgentOptions: {\n userAgentPrefix,\n },\n });\n corePipeline.removePolicy({ phase: \"Retry\" });\n corePipeline.removePolicy({ name: decompressResponsePolicyName });\n corePipeline.removePolicy({ name: \"deserializationPolicy\" });\n corePipeline.removePolicy({ name: \"serializationPolicy\" });\n corePipeline.addPolicy(storageCorrectContentLengthPolicy());\n corePipeline.addPolicy(storageRetryPolicy(restOptions.retryOptions), { phase: \"Retry\" });\n corePipeline.addPolicy(storageRequestFailureDetailsParserPolicy());\n corePipeline.addPolicy(storageRedirectRangeHeaderPolicy());\n corePipeline.addPolicy(storageBrowserPolicy());\n const downlevelResults = processDownlevelPipeline(pipeline);\n if (downlevelResults) {\n corePipeline.addPolicy(\n downlevelResults.wrappedPolicies,\n downlevelResults.afterRetry ? { afterPhase: \"Retry\" } : undefined,\n );\n }\n const credential = getCredentialFromPipeline(pipeline);\n if (isTokenCredential(credential)) {\n corePipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: restOptions.audience ?? StorageOAuthScopes,\n challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },\n }),\n { phase: \"Sign\" },\n );\n } else if (credential instanceof StorageSharedKeyCredential) {\n corePipeline.addPolicy(\n storageSharedKeyCredentialPolicy({\n accountName: credential.accountName,\n accountKey: (credential as any).accountKey,\n }),\n { phase: \"Sign\" },\n );\n }\n (pipeline as any)._corePipeline = corePipeline;\n }\n return {\n ...restOptions,\n allowInsecureConnection: true,\n httpClient,\n pipeline: corePipeline,\n };\n}\n\nexport function getCredentialFromPipeline(\n pipeline: PipelineLike,\n): StorageSharedKeyCredential | AnonymousCredential | TokenCredential {\n // see if we squirreled one away on the type itself\n if ((pipeline as any)._credential) {\n return (pipeline as any)._credential;\n }\n // if it came from another package, loop over the factories and look for one like before\n let credential = new AnonymousCredential();\n for (const factory of pipeline.factories) {\n if (isTokenCredential((factory as any).credential)) {\n // Only works if the factory has been attached a \"credential\" property.\n // We do that in newPipeline() when using TokenCredential.\n credential = (factory as any).credential;\n } else if (isStorageSharedKeyCredential(factory)) {\n return factory;\n }\n }\n return credential;\n}\n\nfunction isStorageSharedKeyCredential(\n factory: RequestPolicyFactory,\n): factory is StorageSharedKeyCredential {\n if (factory instanceof StorageSharedKeyCredential) {\n return true;\n }\n return factory.constructor.name === \"StorageSharedKeyCredential\";\n}\n\nfunction isAnonymousCredential(factory: RequestPolicyFactory): factory is AnonymousCredential {\n if (factory instanceof AnonymousCredential) {\n return true;\n }\n return factory.constructor.name === \"AnonymousCredential\";\n}\n\nfunction isCoreHttpBearerTokenFactory(factory: RequestPolicyFactory): boolean {\n return isTokenCredential((factory as any).credential);\n}\n\nfunction isStorageBrowserPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageBrowserPolicyFactory {\n if (factory instanceof StorageBrowserPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageBrowserPolicyFactory\";\n}\n\nfunction isStorageRetryPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageRetryPolicyFactory {\n if (factory instanceof StorageRetryPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageRetryPolicyFactory\";\n}\n\nfunction isStorageTelemetryPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"TelemetryPolicyFactory\";\n}\n\nfunction isInjectorPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"InjectorPolicyFactory\";\n}\n\nfunction isCoreHttpPolicyFactory(factory: RequestPolicyFactory): boolean {\n const knownPolicies = [\n \"GenerateClientRequestIdPolicy\",\n \"TracingPolicy\",\n \"LogPolicy\",\n \"ProxyPolicy\",\n \"DisableResponseDecompressionPolicy\",\n \"KeepAlivePolicy\",\n \"DeserializationPolicy\",\n ];\n\n const mockHttpClient: IHttpClient = {\n sendRequest: async (request: WebResource) => {\n return {\n request,\n headers: request.headers.clone(),\n status: 500,\n };\n },\n };\n const mockRequestPolicyOptions: RequestPolicyOptions = {\n log(_logLevel: HttpPipelineLogLevel, _message: string): void {\n /* do nothing */\n },\n shouldLog(_logLevel: HttpPipelineLogLevel): boolean {\n return false;\n },\n };\n const policyInstance = factory.create(mockHttpClient, mockRequestPolicyOptions);\n const policyName = policyInstance.constructor.name;\n // bundlers sometimes add a custom suffix to the class name to make it unique\n return knownPolicies.some((knownPolicyName) => {\n return policyName.startsWith(knownPolicyName);\n });\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Pipeline } from "./Pipeline.js";
|
|
2
2
|
import { StorageClient } from "./StorageClient.js";
|
|
3
|
-
import type { ShareRestoreOptionalParams, ShareRestoreResponse } from "./generated
|
|
3
|
+
import type { ShareRestoreOptionalParams, ShareRestoreResponse } from "./generated-classic-models.js";
|
|
4
4
|
/**
|
|
5
5
|
* ShareClientInternal is the thin wrapper for Share which contains internal helper methods.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareClientInternal.d.ts","sourceRoot":"","sources":["../../src/ShareClientInternal.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"ShareClientInternal.d.ts","sourceRoot":"","sources":["../../src/ShareClientInternal.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAIvC;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,OAAO,CAAC,OAAO,CAAkB;gBAErB,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAK9B,OAAO,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG9F"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { StorageClient } from "./StorageClient.js";
|
|
4
|
+
import { adjustResponse } from "./utils/utils.common.js";
|
|
4
5
|
/**
|
|
5
6
|
* ShareClientInternal is the thin wrapper for Share which contains internal helper methods.
|
|
6
7
|
*/
|
|
@@ -11,7 +12,7 @@ export class ShareClientInternal extends StorageClient {
|
|
|
11
12
|
this.context = this.storageClientContext.share;
|
|
12
13
|
}
|
|
13
14
|
async restore(options = {}) {
|
|
14
|
-
return this.context.restore(options);
|
|
15
|
+
return adjustResponse(await this.context.restore(options));
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=ShareClientInternal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareClientInternal.js","sourceRoot":"","sources":["../../src/ShareClientInternal.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ShareClientInternal.js","sourceRoot":"","sources":["../../src/ShareClientInternal.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMnD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IAC5C,OAAO,CAAkB;IAEjC,YAAY,GAAW,EAAE,QAAkB;QACzC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,UAAsC,EAAE;QAC3D,OAAO,cAAc,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7D,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Pipeline } from \"./Pipeline.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport type {\n ShareRestoreOptionalParams,\n ShareRestoreResponse,\n} from \"./generated-classic-models.js\";\nimport type { ShareOperations } from \"./generated/index.js\";\nimport { adjustResponse } from \"./utils/utils.common.js\";\n\n/**\n * ShareClientInternal is the thin wrapper for Share which contains internal helper methods.\n */\nexport class ShareClientInternal extends StorageClient {\n private context: ShareOperations;\n\n constructor(url: string, pipeline: Pipeline) {\n super(url, pipeline);\n this.context = this.storageClientContext.share;\n }\n\n public async restore(options: ShareRestoreOptionalParams = {}): Promise<ShareRestoreResponse> {\n return adjustResponse(await this.context.restore(options));\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareServiceClient.d.ts","sourceRoot":"","sources":["../../src/ShareServiceClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EAErB,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACvB,uBAAuB,EAGvB,mCAAmC,
|
|
1
|
+
{"version":3,"file":"ShareServiceClient.d.ts","sourceRoot":"","sources":["../../src/ShareServiceClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EAErB,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACvB,uBAAuB,EAGvB,mCAAmC,EAEpC,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACjF,O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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4GG;IACI,UAAU,CACf,OAAO,GAAE,wBAA6B,GACrC,0BAA0B,CAAC,SAAS,EAAE,gCAAgC,CAAC;IAgD1E;;;;;;;;;;;;OAYG;YACW,iBAAiB;IAsC/B;;;;;;;;;OASG;IACU,aAAa,CACxB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,WAAW,CAAC;IAiBvB;;;;;;;;;;;;;OAaG;IACI,qBAAqB,CAC1B,SAAS,CAAC,EAAE,IAAI,EAChB,WAAW,GAAE,qBAAwD,EACrE,aAAa,GAAE,MAAc,EAC7B,OAAO,GAAE,mCAAwC,GAChD,MAAM;IA0BT;;;;;;;;;;;;;OAaG;IACI,uBAAuB,CAC5B,SAAS,CAAC,EAAE,IAAI,EAChB,WAAW,GAAE,qBAAwD,EACrE,aAAa,GAAE,MAAc,EAE7B,OAAO,GAAE,mCAAwC,GAChD,MAAM;IAwBT;;;;;;;;;;OAUG;IACU,oBAAoB,CAC/B,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,IAAI,EACf,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,mCAAmC,CAAC;IAE/C;;;;;;;;;OASG;IACU,oBAAoB,CAC/B,UAAU,EAAE,mCAAmC,EAC/C,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,mCAAmC,CAAC;CAiEhD"}
|
|
@@ -4,7 +4,7 @@ import { isPipelineLike, newPipeline } from "./Pipeline.js";
|
|
|
4
4
|
import { StorageClient } from "./StorageClient.js";
|
|
5
5
|
import { ShareClientInternal } from "./ShareClientInternal.js";
|
|
6
6
|
import { ShareClient } from "./Clients.js";
|
|
7
|
-
import { appendToURLPath, extractConnectionStringParts, assertResponse, removeEmptyString, truncatedISO8061Date, } from "./utils/utils.common.js";
|
|
7
|
+
import { appendToURLPath, extractConnectionStringParts, assertResponse, adjustResponse, removeEmptyString, truncatedISO8061Date, } from "./utils/utils.common.js";
|
|
8
8
|
import { Credential } from "@azure/storage-common";
|
|
9
9
|
import { StorageSharedKeyCredential } from "@azure/storage-common";
|
|
10
10
|
import { AnonymousCredential } from "@azure/storage-common";
|
|
@@ -161,10 +161,10 @@ export class ShareServiceClient extends StorageClient {
|
|
|
161
161
|
*/
|
|
162
162
|
async getProperties(options = {}) {
|
|
163
163
|
return tracingClient.withSpan("ShareServiceClient-getProperties", options, async (updatedOptions) => {
|
|
164
|
-
return assertResponse(await this.serviceContext.getProperties({
|
|
164
|
+
return assertResponse(adjustResponse(await this.serviceContext.getProperties({
|
|
165
165
|
...updatedOptions,
|
|
166
166
|
...this.shareClientConfig,
|
|
167
|
-
}));
|
|
167
|
+
})));
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
@@ -178,10 +178,10 @@ export class ShareServiceClient extends StorageClient {
|
|
|
178
178
|
*/
|
|
179
179
|
async setProperties(properties, options = {}) {
|
|
180
180
|
return tracingClient.withSpan("ShareServiceClient-setProperties", options, async (updatedOptions) => {
|
|
181
|
-
return assertResponse(await this.serviceContext.setProperties(properties, {
|
|
181
|
+
return assertResponse(adjustResponse(await this.serviceContext.setProperties(properties, {
|
|
182
182
|
...updatedOptions,
|
|
183
183
|
...this.shareClientConfig,
|
|
184
|
-
}));
|
|
184
|
+
})));
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
@@ -394,11 +394,11 @@ export class ShareServiceClient extends StorageClient {
|
|
|
394
394
|
options.prefix = undefined;
|
|
395
395
|
}
|
|
396
396
|
return tracingClient.withSpan("ShareServiceClient-listSharesSegment", options, async (updatedOptions) => {
|
|
397
|
-
const res = assertResponse(await this.serviceContext.listSharesSegment({
|
|
397
|
+
const res = assertResponse(adjustResponse(await this.serviceContext.listSharesSegment({
|
|
398
398
|
...updatedOptions,
|
|
399
399
|
...this.shareClientConfig,
|
|
400
400
|
marker,
|
|
401
|
-
}));
|
|
401
|
+
})));
|
|
402
402
|
// parse protocols
|
|
403
403
|
if (res.shareItems) {
|
|
404
404
|
for (let i = 0; i < res.shareItems.length; i++) {
|
|
@@ -506,14 +506,14 @@ export class ShareServiceClient extends StorageClient {
|
|
|
506
506
|
getUserDelegationKeyOptions = expiresOnOrOption;
|
|
507
507
|
}
|
|
508
508
|
return tracingClient.withSpan("ShareServiceClient-getUserDelegationKey", getUserDelegationKeyOptions, async (updatedOptions) => {
|
|
509
|
-
const response = assertResponse(await this.serviceContext.getUserDelegationKey({
|
|
509
|
+
const response = assertResponse(adjustResponse(await this.serviceContext.getUserDelegationKey({
|
|
510
510
|
start: truncatedISO8061Date(startsOn, false),
|
|
511
511
|
expiry: truncatedISO8061Date(expiresOn, false),
|
|
512
512
|
delegatedUserTid: userDelegationTid,
|
|
513
513
|
}, {
|
|
514
514
|
abortSignal: options.abortSignal,
|
|
515
515
|
tracingOptions: updatedOptions.tracingOptions,
|
|
516
|
-
}));
|
|
516
|
+
})));
|
|
517
517
|
const userDelegationKey = {
|
|
518
518
|
signedObjectId: response.signedObjectId,
|
|
519
519
|
signedTenantId: response.signedTenantId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareServiceClient.js","sourceRoot":"","sources":["../../src/ShareServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAsBlC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,cAAc,EACd,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAA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c,EAAE,EAAE;YACvB,MAAM,QAAQ,GAAG,cAAc,CAK7B,MAAM,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAC5C;gBACE,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC;gBAC5C,MAAM,EAAE,oBAAoB,CAAC,SAAS,EAAE,KAAK,CAAC;gBAC9C,gBAAgB,EAAE,iBAAiB;aACpC,EACD;gBACE,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,cAAc,EAAE,cAAc,CAAC,cAAc;aAC9C,CACF,CACF,CAAC;YAEF,MAAM,iBAAiB,GAAG;gBACxB,cAAc,EAAE,QAAQ,CAAC,cAAc;gBACvC,cAAc,EAAE,QAAQ,CAAC,cAAc;gBACvC,cAAc,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;gBACjD,eAAe,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;gBACnD,aAAa,EAAE,QAAQ,CAAC,aAAa;gBACrC,aAAa,EAAE,QAAQ,CAAC,aAAa;gBACrC,2BAA2B,EAAE,QAAQ,CAAC,2BAA2B;gBACjE,KAAK,EAAE,QAAQ,CAAC,KAAK;aACtB,CAAC;YAEF,MAAM,GAAG,GAAwC;gBAC/C,SAAS,EAAE,QAAQ,CAAC,SAAS;gBAC7B,SAAS,EAAE,QAAQ,CAAC,SAAS;gBAC7B,eAAe,EAAE,QAAQ,CAAC,eAAe;gBACzC,OAAO,EAAE,QAAQ,CAAC,OAAO;gBACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,GAAG,iBAAiB;aACrB,CAAC;YAEF,OAAO,GAAG,CAAC;QACb,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n FileServiceProperties,\n ListSharesIncludeType,\n ShareCreateResponse,\n ShareDeleteResponse,\n ServiceGetPropertiesResponse,\n ServiceSetPropertiesResponse,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel,\n SharePropertiesInternal,\n ServiceSetPropertiesHeaders,\n ServiceGetPropertiesHeaders,\n ServiceGetUserDelegationKeyResponse,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyModel,\n} from \"./generatedModels.js\";\nimport type { ServiceGetUserDelegationKeyResponse as ServiceGetUserDelegationKeyResponseModel } from \"./generated/src/index.js\";\nimport type { Service } from \"./generated/src/operationsInterfaces/index.js\";\nimport type { Pipeline } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport type { CommonOptions } from \"./StorageClient.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport { ShareClientInternal } from \"./ShareClientInternal.js\";\nimport type { ShareCreateOptions, ShareDeleteMethodOptions } from \"./Clients.js\";\nimport { ShareClient } from \"./Clients.js\";\nimport type { WithResponse } from \"./utils/utils.common.js\";\nimport {\n appendToURLPath,\n extractConnectionStringParts,\n assertResponse,\n removeEmptyString,\n truncatedISO8061Date,\n} from \"./utils/utils.common.js\";\nimport { Credential } from \"@azure/storage-common\";\nimport { StorageSharedKeyCredential } from \"@azure/storage-common\";\nimport { AnonymousCredential } from \"@azure/storage-common\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport type { ShareClientConfig, ShareClientOptions, ShareProtocols } from \"./models.js\";\nimport { toShareProtocols } from \"./models.js\";\nimport { AccountSASPermissions } from \"./AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./AccountSASServices.js\";\nimport type { SASProtocol } from \"./SASQueryParameters.js\";\nimport type { SasIPRange } from \"./SasIPRange.js\";\nimport { appendToURLQuery } from \"./utils/utils.common.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\n/**\n * Options to configure Share - List Shares Segment operations.\n *\n * See:\n * - {@link ShareServiceClient.listSegments}\n * - {@link ShareServiceClient.listItems}\n * - {@link ShareServiceClient.listSharesSegment}\n */\ninterface ServiceListSharesSegmentOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n /**\n * Specifies the maximum number of entries to\n * return. If the request does not specify maxResults, or specifies a value\n * greater than 5,000, the server will return up to 5,000 items.\n */\n maxResults?: number;\n\n /**\n * Include this parameter to\n * specify one or more datasets to include in the response.\n */\n include?: ListSharesIncludeType[];\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.listShares} operation.\n */\nexport interface ServiceListSharesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n\n /**\n * Specifies that share snapshots should be included in the enumeration. Share Snapshots are listed from oldest to newest in the response.\n */\n includeMetadata?: boolean;\n\n /**\n * Specifies that share snapshot should be returned in the response.\n */\n includeSnapshots?: boolean;\n\n /**\n * Specifies that share soft deleted should be returned in the response.\n */\n includeDeleted?: boolean;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.getProperties} operation.\n */\nexport interface ServiceGetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.setProperties} operation.\n */\nexport interface ServiceSetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.undelete} operation.\n */\nexport interface ServiceUndeleteShareOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Properties of a share.\n */\nexport type ShareProperties = SharePropertiesInternal & {\n /**\n * The protocols that have been enabled on the share.\n */\n protocols?: ShareProtocols;\n};\n\n/**\n * A listed Azure Storage share item.\n */\nexport interface ShareItem {\n name: string;\n snapshot?: string;\n deleted?: boolean;\n version?: string;\n properties: ShareProperties;\n metadata?: { [propertyName: string]: string };\n}\n\n/**\n * An enumeration of shares.\n */\nexport interface ListSharesResponse {\n serviceEndpoint: string;\n prefix?: string;\n marker?: string;\n maxResults?: number;\n shareItems?: ShareItem[];\n continuationToken: string;\n}\n\n/**\n * Contains response data for the {@link ShareServiceClient.listShares} operation.\n */\nexport type ServiceListSharesSegmentResponse = WithResponse<\n ListSharesResponse & ServiceListSharesSegmentHeaders,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n>;\n\n/**\n * Options to configure {@link ShareServiceClient.generateAccountSasUrl} operation.\n */\nexport interface ServiceGenerateAccountSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols allowed.\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n /**\n * Optional. IP range allowed.\n */\n ipRange?: SasIPRange;\n}\n\n/**\n * Options to configure the Service - Get User Delegation Key.\n */\nexport interface ServiceGetUserDelegationKeyOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Parameters for getting user delegation key.\n */\nexport interface ShareGetUserDelegationKeyParameters {\n /**\n * The start time for the user delegation key. Must be within 7 days of the current time\n */\n startsOn: Date;\n /**\n * The end time for the user delegation key. Must be within 7 days of the current time\n */\n expiresOn: Date;\n /**\n * The tenant ID for the user delegation key.\n */\n delegatedUserTenantId: string;\n}\n\nfunction isShareGetUserDelegationKeyParameters(\n parameter: unknown,\n): parameter is ShareGetUserDelegationKeyParameters {\n if (!parameter || typeof parameter !== \"object\") {\n return false;\n }\n\n const castParameter = parameter as ShareGetUserDelegationKeyParameters;\n\n return castParameter.expiresOn instanceof Date;\n}\n\n/**\n * A ShareServiceClient represents a URL to the Azure Storage File service allowing you\n * to manipulate file shares.\n */\nexport class ShareServiceClient extends StorageClient {\n /**\n * serviceContext provided by protocol layer.\n */\n private serviceContext: Service;\n\n private shareClientConfig?: ShareClientConfig;\n\n /**\n *\n * Creates an instance of ShareServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.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`\n * @param options - Options to configure the HTTP pipeline.\n * @returns A new ShareServiceClient from the given connection string.\n */\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ): ShareServiceClient {\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new ShareServiceClient(extractedCreds.url, pipeline, options);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new ShareServiceClient(\n extractedCreds.url + \"?\" + extractedCreds.accountSas,\n pipeline,\n options,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential, or TokenCredential,\n * If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n\n constructor(\n url: string,\n credential?: Credential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n );\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n constructor(url: string, pipeline: Pipeline, options?: ShareClientConfig);\n constructor(\n url: string,\n credentialOrPipeline?: Credential | TokenCredential | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ) {\n let pipeline: Pipeline;\n if (isPipelineLike(credentialOrPipeline)) {\n pipeline = credentialOrPipeline;\n } else if (\n credentialOrPipeline instanceof Credential ||\n isTokenCredential(credentialOrPipeline)\n ) {\n pipeline = newPipeline(credentialOrPipeline, options);\n } else {\n // The second parameter is undefined. Use anonymous credential.\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n\n super(url, pipeline);\n this.shareClientConfig = options;\n this.serviceContext = this.storageClientContext.service;\n }\n\n /**\n * Creates a ShareClient object.\n *\n * @param shareName - Name of a share.\n * @returns The ShareClient object for the given share name.\n *\n * Example usage:\n *\n * ```ts snippet:ReadmeSampleCreateShareClient\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareName = \"<share name>\";\n * const shareClient = serviceClient.getShareClient(shareName);\n * await shareClient.create();\n * ```\n */\n public getShareClient(shareName: string): ShareClient {\n return new ShareClient(\n appendToURLPath(this.url, shareName),\n this.pipeline,\n this.shareClientConfig,\n );\n }\n\n /**\n * Creates a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share creation response and the corresponding share client.\n */\n public async createShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareCreateOptions = {},\n ): Promise<{ shareCreateResponse: ShareCreateResponse; shareClient: ShareClient }> {\n return tracingClient.withSpan(\n \"ShareServiceClient-createShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n const shareCreateResponse = await shareClient.create(updatedOptions);\n return {\n shareCreateResponse,\n shareClient,\n };\n },\n );\n }\n\n /**\n * Deletes a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share deletion response and the corresponding share client.\n */\n public async deleteShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareDeleteMethodOptions = {},\n ): Promise<ShareDeleteResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-deleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n return shareClient.delete(updatedOptions);\n },\n );\n }\n\n /**\n * Gets the properties of a storage account’s file service, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/rest/api/storageservices/get-file-service-properties\n *\n * @param options - Options to Get Properties operation.\n * @returns Response data for the Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<ServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<\n ServiceGetPropertiesHeaders & FileServiceProperties,\n ServiceGetPropertiesHeaders,\n FileServiceProperties\n >(\n await this.serviceContext.getProperties({\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n );\n },\n );\n }\n\n /**\n * Sets properties for a storage account’s file service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/rest/api/storageservices/set-file-service-properties\n *\n * @param properties -\n * @param options - Options to Set Properties operation.\n * @returns Response data for the Set Properties operation.\n */\n public async setProperties(\n properties: FileServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<ServiceSetPropertiesHeaders, ServiceSetPropertiesHeaders>(\n await this.serviceContext.setProperties(properties, {\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n );\n },\n );\n }\n\n /**\n * Returns an AsyncIterableIterator for {@link ServiceListSharesSegmentResponse} objects\n *\n * @param marker - A string value that identifies the portion of\n * the list of shares to be returned with the next listing operation. The\n * operation returns the ContinuationToken value within the response body if the\n * listing operation did not return all shares remaining to be listed\n * with the current page. The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to list shares operation.\n */\n private async *listSegments(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let listSharesSegmentResponse;\n do {\n listSharesSegmentResponse = await this.listSharesSegment(marker, options);\n marker = listSharesSegmentResponse.continuationToken;\n yield await listSharesSegmentResponse;\n } while (marker);\n }\n\n /**\n * Returns an AsyncIterableIterator for share items\n *\n * @param options - Options to list shares operation.\n */\n private async *listItems(\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ShareItem> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let marker: string | undefined;\n for await (const segment of this.listSegments(marker, options)) {\n if (segment.shareItems) {\n yield* segment.shareItems;\n }\n }\n }\n\n /**\n * Returns an async iterable iterator to list all the shares\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the shares in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListShares\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const share of serviceClient.listShares()) {\n * console.log(`Share${i++}: ${share.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListShares_Iterator\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareIter = serviceClient.listShares();\n * let i = 1;\n * let { value, done } = await shareIter.next();\n * while (!done) {\n * console.log(`Share ${i++}: ${value.name}`);\n * ({ value, done } = await shareIter.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListShares_ByPage\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const response of serviceClient.listShares().byPage({ maxPageSize: 20 })) {\n * console.log(`Page ${i++}:`);\n * for (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListShares_Continuation\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let iterator = serviceClient.listShares().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n *\n * // Passing next marker as continuationToken\n * iterator = serviceClient.listShares().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * ```\n *\n * @param options - Options to list shares operation.\n *\n * An asyncIterableIterator that supports paging.\n */\n public listShares(\n options: ServiceListSharesOptions = {},\n ): PagedAsyncIterableIterator<ShareItem, ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n const include: ListSharesIncludeType[] = [];\n if (options.includeMetadata) {\n include.push(\"metadata\");\n }\n if (options.includeSnapshots) {\n include.push(\"snapshots\");\n }\n if (options.includeDeleted) {\n include.push(\"deleted\");\n }\n\n const updatedOptions: ServiceListSharesSegmentOptions = {\n ...options,\n ...(include.length > 0 ? { include: include } : {}),\n };\n\n // AsyncIterableIterator to iterate over queues\n const iter = this.listItems(updatedOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings: PageSettings = {}) => {\n return this.listSegments(removeEmptyString(settings.continuationToken), {\n maxResults: settings.maxPageSize,\n ...updatedOptions,\n });\n },\n };\n }\n\n /**\n * Gets the properties of a storage account's File service, including properties for Storage\n * Analytics metrics and CORS (Cross-Origin Resource Sharing) rules.\n *\n * @param marker - A string value that identifies the portion of\n * the list to be returned with the next list operation. The operation\n * returns a marker value within the response body if the list returned was\n * not complete. The marker value may then be used in a subsequent call to\n * request the next set of list items. The marker value is opaque to the\n * client.\n * @param options - Options to List Shares Segment operation.\n * @returns Response data for the List Shares Segment operation.\n */\n private async listSharesSegment(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): Promise<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-listSharesSegment\",\n options,\n async (updatedOptions) => {\n const res = assertResponse<\n ServiceListSharesSegmentHeaders & ListSharesResponseModel,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n >(\n await this.serviceContext.listSharesSegment({\n ...updatedOptions,\n ...this.shareClientConfig,\n marker,\n }),\n );\n\n // parse protocols\n if (res.shareItems) {\n for (let i = 0; i < res.shareItems.length; i++) {\n const protocolsStr = res.shareItems[i].properties.enabledProtocols;\n (res.shareItems[i].properties as any).protocols = toShareProtocols(protocolsStr);\n }\n }\n\n return res;\n },\n );\n }\n\n /**\n * Restores a previously deleted share.\n * This API is only functional if Share Soft Delete is enabled\n * for the storage account associated with the share.\n *\n * @param deletedShareName - The name of the previously deleted share.\n * @param deletedShareVersion - The version of the previously deleted share.\n * @param options - Options to Share undelete operation.\n * @returns Restored share.\n */\n public async undeleteShare(\n deletedShareName: string,\n deletedShareVersion: string,\n options: ServiceUndeleteShareOptions = {},\n ): Promise<ShareClient> {\n return tracingClient.withSpan(\n \"ShareServiceClient-undeleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(deletedShareName);\n await new ShareClientInternal(shareClient.url, this.pipeline).restore({\n ...updatedOptions,\n ...this.shareClientConfig,\n deletedShareName: deletedShareName,\n deletedShareVersion: deletedShareVersion,\n });\n return shareClient;\n },\n );\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the File service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param parameters - Parameters to specific start time, expiry time and tenant id.\n */\n public async getUserDelegationKey(\n parameters: ShareGetUserDelegationKeyParameters,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n public async getUserDelegationKey(\n startsOnOrParam: Date | ShareGetUserDelegationKeyParameters,\n expiresOnOrOption: Date | ServiceGetUserDelegationKeyOptions | undefined,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n let startsOn = startsOnOrParam as Date;\n let expiresOn = expiresOnOrOption as Date;\n let userDelegationTid = undefined;\n let getUserDelegationKeyOptions = options as ServiceGetUserDelegationKeyOptions;\n if (isShareGetUserDelegationKeyParameters(startsOnOrParam)) {\n startsOn = startsOnOrParam.startsOn;\n expiresOn = startsOnOrParam.expiresOn;\n userDelegationTid = startsOnOrParam.delegatedUserTenantId;\n getUserDelegationKeyOptions = expiresOnOrOption as ServiceGetUserDelegationKeyOptions;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-getUserDelegationKey\",\n getUserDelegationKeyOptions,\n async (updatedOptions) => {\n const response = assertResponse<\n ServiceGetUserDelegationKeyResponseModel,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyModel\n >(\n await this.serviceContext.getUserDelegationKey(\n {\n start: truncatedISO8061Date(startsOn, false),\n expiry: truncatedISO8061Date(expiresOn, false),\n delegatedUserTid: userDelegationTid,\n },\n {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n },\n ),\n );\n\n const userDelegationKey = {\n signedObjectId: response.signedObjectId,\n signedTenantId: response.signedTenantId,\n signedStartsOn: new Date(response.signedStartsOn),\n signedExpiresOn: new Date(response.signedExpiresOn),\n signedService: response.signedService,\n signedVersion: response.signedVersion,\n signedDelegatedUserTenantId: response.signedDelegatedUserTenantId,\n value: response.value,\n };\n\n const res: ServiceGetUserDelegationKeyResponse = {\n _response: response._response,\n requestId: response.requestId,\n clientRequestId: response.clientRequestId,\n version: response.version,\n date: response.date,\n ...userDelegationKey,\n };\n\n return res;\n },\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ShareServiceClient.js","sourceRoot":"","sources":["../../src/ShareServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuBlC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EACL,iCAAiC,EACjC,yCAAyC,GAC1C,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,gBAAgB,EAAE,MAAM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AAC,cAAc;gBACvC,cAAc,EAAE,QAAQ,CAAC,cAAc;gBACvC,cAAc,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;gBACjD,eAAe,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;gBACnD,aAAa,EAAE,QAAQ,CAAC,aAAa;gBACrC,aAAa,EAAE,QAAQ,CAAC,aAAa;gBACrC,2BAA2B,EAAE,QAAQ,CAAC,2BAA2B;gBACjE,KAAK,EAAE,QAAQ,CAAC,KAAK;aACtB,CAAC;YAEF,MAAM,GAAG,GAAwC;gBAC/C,SAAS,EAAE,QAAQ,CAAC,SAAgB;gBACpC,SAAS,EAAE,QAAQ,CAAC,SAAS;gBAC7B,eAAe,EAAE,QAAQ,CAAC,eAAe;gBACzC,OAAO,EAAE,QAAQ,CAAC,OAAO;gBACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,GAAG,iBAAiB;aACrB,CAAC;YAEF,OAAO,GAAG,CAAC;QACb,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n FileServiceProperties,\n ListSharesIncludeType,\n ShareCreateResponse,\n ShareDeleteResponse,\n ServiceGetPropertiesResponse,\n ServiceSetPropertiesResponse,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel,\n SharePropertiesInternal,\n ServiceSetPropertiesHeaders,\n ServiceGetPropertiesHeaders,\n ServiceGetUserDelegationKeyResponse,\n ServiceGetUserDelegationKeyHeaders,\n} from \"./generatedModels.js\";\nimport type {\n ServiceOperations,\n UserDelegationKey as UserDelegationKeyInternal,\n} from \"./generated/index.js\";\nimport type { Pipeline } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport type { CommonOptions } from \"./StorageClient.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport { ShareClientInternal } from \"./ShareClientInternal.js\";\nimport type { ShareCreateOptions, ShareDeleteMethodOptions } from \"./Clients.js\";\nimport { ShareClient } from \"./Clients.js\";\nimport type { WithResponse } from \"./utils/utils.common.js\";\nimport {\n appendToURLPath,\n extractConnectionStringParts,\n assertResponse,\n adjustResponse,\n removeEmptyString,\n truncatedISO8061Date,\n} from \"./utils/utils.common.js\";\nimport { Credential } from \"@azure/storage-common\";\nimport { StorageSharedKeyCredential } from \"@azure/storage-common\";\nimport { AnonymousCredential } from \"@azure/storage-common\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport type { ShareClientConfig, ShareClientOptions, ShareProtocols } from \"./models.js\";\nimport { toShareProtocols } from \"./models.js\";\nimport { AccountSASPermissions } from \"./AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./AccountSASServices.js\";\nimport type { SASProtocol } from \"./SASQueryParameters.js\";\nimport type { SasIPRange } from \"./SasIPRange.js\";\nimport { appendToURLQuery } from \"./utils/utils.common.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\n/**\n * Options to configure Share - List Shares Segment operations.\n *\n * See:\n * - {@link ShareServiceClient.listSegments}\n * - {@link ShareServiceClient.listItems}\n * - {@link ShareServiceClient.listSharesSegment}\n */\ninterface ServiceListSharesSegmentOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n /**\n * Specifies the maximum number of entries to\n * return. If the request does not specify maxResults, or specifies a value\n * greater than 5,000, the server will return up to 5,000 items.\n */\n maxResults?: number;\n\n /**\n * Include this parameter to\n * specify one or more datasets to include in the response.\n */\n include?: ListSharesIncludeType[];\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.listShares} operation.\n */\nexport interface ServiceListSharesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n\n /**\n * Specifies that share snapshots should be included in the enumeration. Share Snapshots are listed from oldest to newest in the response.\n */\n includeMetadata?: boolean;\n\n /**\n * Specifies that share snapshot should be returned in the response.\n */\n includeSnapshots?: boolean;\n\n /**\n * Specifies that share soft deleted should be returned in the response.\n */\n includeDeleted?: boolean;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.getProperties} operation.\n */\nexport interface ServiceGetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.setProperties} operation.\n */\nexport interface ServiceSetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.undelete} operation.\n */\nexport interface ServiceUndeleteShareOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Properties of a share.\n */\nexport type ShareProperties = SharePropertiesInternal & {\n /**\n * The protocols that have been enabled on the share.\n */\n protocols?: ShareProtocols;\n};\n\n/**\n * A listed Azure Storage share item.\n */\nexport interface ShareItem {\n name: string;\n snapshot?: string;\n deleted?: boolean;\n version?: string;\n properties: ShareProperties;\n metadata?: { [propertyName: string]: string };\n}\n\n/**\n * An enumeration of shares.\n */\nexport interface ListSharesResponse {\n serviceEndpoint: string;\n prefix?: string;\n marker?: string;\n maxResults?: number;\n shareItems?: ShareItem[];\n continuationToken: string;\n}\n\n/**\n * Contains response data for the {@link ShareServiceClient.listShares} operation.\n */\nexport type ServiceListSharesSegmentResponse = WithResponse<\n ListSharesResponse & ServiceListSharesSegmentHeaders,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n>;\n\n/**\n * Options to configure {@link ShareServiceClient.generateAccountSasUrl} operation.\n */\nexport interface ServiceGenerateAccountSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols allowed.\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n /**\n * Optional. IP range allowed.\n */\n ipRange?: SasIPRange;\n}\n\n/**\n * Options to configure the Service - Get User Delegation Key.\n */\nexport interface ServiceGetUserDelegationKeyOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Parameters for getting user delegation key.\n */\nexport interface ShareGetUserDelegationKeyParameters {\n /**\n * The start time for the user delegation key. Must be within 7 days of the current time\n */\n startsOn: Date;\n /**\n * The end time for the user delegation key. Must be within 7 days of the current time\n */\n expiresOn: Date;\n /**\n * The tenant ID for the user delegation key.\n */\n delegatedUserTenantId: string;\n}\n\nfunction isShareGetUserDelegationKeyParameters(\n parameter: unknown,\n): parameter is ShareGetUserDelegationKeyParameters {\n if (!parameter || typeof parameter !== \"object\") {\n return false;\n }\n\n const castParameter = parameter as ShareGetUserDelegationKeyParameters;\n\n return castParameter.expiresOn instanceof Date;\n}\n\n/**\n * A ShareServiceClient represents a URL to the Azure Storage File service allowing you\n * to manipulate file shares.\n */\nexport class ShareServiceClient extends StorageClient {\n /**\n * serviceContext provided by protocol layer.\n */\n private serviceContext: ServiceOperations;\n\n private shareClientConfig?: ShareClientConfig;\n\n /**\n *\n * Creates an instance of ShareServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.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`\n * @param options - Options to configure the HTTP pipeline.\n * @returns A new ShareServiceClient from the given connection string.\n */\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ): ShareServiceClient {\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new ShareServiceClient(extractedCreds.url, pipeline, options);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new ShareServiceClient(\n extractedCreds.url + \"?\" + extractedCreds.accountSas,\n pipeline,\n options,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential, or TokenCredential,\n * If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n\n constructor(\n url: string,\n credential?: Credential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n );\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n constructor(url: string, pipeline: Pipeline, options?: ShareClientConfig);\n constructor(\n url: string,\n credentialOrPipeline?: Credential | TokenCredential | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ) {\n let pipeline: Pipeline;\n if (isPipelineLike(credentialOrPipeline)) {\n pipeline = credentialOrPipeline;\n } else if (\n credentialOrPipeline instanceof Credential ||\n isTokenCredential(credentialOrPipeline)\n ) {\n pipeline = newPipeline(credentialOrPipeline, options);\n } else {\n // The second parameter is undefined. Use anonymous credential.\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n\n super(url, pipeline);\n this.shareClientConfig = options;\n this.serviceContext = this.storageClientContext.service;\n }\n\n /**\n * Creates a ShareClient object.\n *\n * @param shareName - Name of a share.\n * @returns The ShareClient object for the given share name.\n *\n * Example usage:\n *\n * ```ts snippet:ReadmeSampleCreateShareClient\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareName = \"<share name>\";\n * const shareClient = serviceClient.getShareClient(shareName);\n * await shareClient.create();\n * ```\n */\n public getShareClient(shareName: string): ShareClient {\n return new ShareClient(\n appendToURLPath(this.url, shareName),\n this.pipeline,\n this.shareClientConfig,\n );\n }\n\n /**\n * Creates a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share creation response and the corresponding share client.\n */\n public async createShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareCreateOptions = {},\n ): Promise<{ shareCreateResponse: ShareCreateResponse; shareClient: ShareClient }> {\n return tracingClient.withSpan(\n \"ShareServiceClient-createShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n const shareCreateResponse = await shareClient.create(updatedOptions);\n return {\n shareCreateResponse,\n shareClient,\n };\n },\n );\n }\n\n /**\n * Deletes a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share deletion response and the corresponding share client.\n */\n public async deleteShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareDeleteMethodOptions = {},\n ): Promise<ShareDeleteResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-deleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n return shareClient.delete(updatedOptions);\n },\n );\n }\n\n /**\n * Gets the properties of a storage account’s file service, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/rest/api/storageservices/get-file-service-properties\n *\n * @param options - Options to Get Properties operation.\n * @returns Response data for the Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<ServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<\n ServiceGetPropertiesHeaders & FileServiceProperties,\n ServiceGetPropertiesHeaders,\n FileServiceProperties\n >(\n adjustResponse(\n await this.serviceContext.getProperties({\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n ),\n );\n },\n );\n }\n\n /**\n * Sets properties for a storage account’s file service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/rest/api/storageservices/set-file-service-properties\n *\n * @param properties -\n * @param options - Options to Set Properties operation.\n * @returns Response data for the Set Properties operation.\n */\n public async setProperties(\n properties: FileServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<ServiceSetPropertiesHeaders, ServiceSetPropertiesHeaders>(\n adjustResponse(\n await this.serviceContext.setProperties(properties, {\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n ),\n );\n },\n );\n }\n\n /**\n * Returns an AsyncIterableIterator for {@link ServiceListSharesSegmentResponse} objects\n *\n * @param marker - A string value that identifies the portion of\n * the list of shares to be returned with the next listing operation. The\n * operation returns the ContinuationToken value within the response body if the\n * listing operation did not return all shares remaining to be listed\n * with the current page. The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to list shares operation.\n */\n private async *listSegments(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let listSharesSegmentResponse;\n do {\n listSharesSegmentResponse = await this.listSharesSegment(marker, options);\n marker = listSharesSegmentResponse.continuationToken;\n yield await listSharesSegmentResponse;\n } while (marker);\n }\n\n /**\n * Returns an AsyncIterableIterator for share items\n *\n * @param options - Options to list shares operation.\n */\n private async *listItems(\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ShareItem> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let marker: string | undefined;\n for await (const segment of this.listSegments(marker, options)) {\n if (segment.shareItems) {\n yield* segment.shareItems;\n }\n }\n }\n\n /**\n * Returns an async iterable iterator to list all the shares\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the shares in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListShares\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const share of serviceClient.listShares()) {\n * console.log(`Share${i++}: ${share.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListShares_Iterator\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareIter = serviceClient.listShares();\n * let i = 1;\n * let { value, done } = await shareIter.next();\n * while (!done) {\n * console.log(`Share ${i++}: ${value.name}`);\n * ({ value, done } = await shareIter.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListShares_ByPage\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const response of serviceClient.listShares().byPage({ maxPageSize: 20 })) {\n * console.log(`Page ${i++}:`);\n * for (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListShares_Continuation\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let iterator = serviceClient.listShares().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n *\n * // Passing next marker as continuationToken\n * iterator = serviceClient.listShares().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * ```\n *\n * @param options - Options to list shares operation.\n *\n * An asyncIterableIterator that supports paging.\n */\n public listShares(\n options: ServiceListSharesOptions = {},\n ): PagedAsyncIterableIterator<ShareItem, ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n const include: ListSharesIncludeType[] = [];\n if (options.includeMetadata) {\n include.push(\"metadata\");\n }\n if (options.includeSnapshots) {\n include.push(\"snapshots\");\n }\n if (options.includeDeleted) {\n include.push(\"deleted\");\n }\n\n const updatedOptions: ServiceListSharesSegmentOptions = {\n ...options,\n ...(include.length > 0 ? { include: include } : {}),\n };\n\n // AsyncIterableIterator to iterate over queues\n const iter = this.listItems(updatedOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings: PageSettings = {}) => {\n return this.listSegments(removeEmptyString(settings.continuationToken), {\n maxResults: settings.maxPageSize,\n ...updatedOptions,\n });\n },\n };\n }\n\n /**\n * Gets the properties of a storage account's File service, including properties for Storage\n * Analytics metrics and CORS (Cross-Origin Resource Sharing) rules.\n *\n * @param marker - A string value that identifies the portion of\n * the list to be returned with the next list operation. The operation\n * returns a marker value within the response body if the list returned was\n * not complete. The marker value may then be used in a subsequent call to\n * request the next set of list items. The marker value is opaque to the\n * client.\n * @param options - Options to List Shares Segment operation.\n * @returns Response data for the List Shares Segment operation.\n */\n private async listSharesSegment(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): Promise<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-listSharesSegment\",\n options,\n async (updatedOptions) => {\n const res = assertResponse<\n ServiceListSharesSegmentHeaders & ListSharesResponseModel,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n >(\n adjustResponse(\n await this.serviceContext.listSharesSegment({\n ...updatedOptions,\n ...this.shareClientConfig,\n marker,\n }),\n ),\n );\n\n // parse protocols\n if (res.shareItems) {\n for (let i = 0; i < res.shareItems.length; i++) {\n const protocolsStr = res.shareItems[i].properties.enabledProtocols;\n (res.shareItems[i].properties as any).protocols = toShareProtocols(protocolsStr);\n }\n }\n\n return res;\n },\n );\n }\n\n /**\n * Restores a previously deleted share.\n * This API is only functional if Share Soft Delete is enabled\n * for the storage account associated with the share.\n *\n * @param deletedShareName - The name of the previously deleted share.\n * @param deletedShareVersion - The version of the previously deleted share.\n * @param options - Options to Share undelete operation.\n * @returns Restored share.\n */\n public async undeleteShare(\n deletedShareName: string,\n deletedShareVersion: string,\n options: ServiceUndeleteShareOptions = {},\n ): Promise<ShareClient> {\n return tracingClient.withSpan(\n \"ShareServiceClient-undeleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(deletedShareName);\n await new ShareClientInternal(shareClient.url, this.pipeline).restore({\n ...updatedOptions,\n ...this.shareClientConfig,\n deletedShareName: deletedShareName,\n deletedShareVersion: deletedShareVersion,\n });\n return shareClient;\n },\n );\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the File service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param parameters - Parameters to specific start time, expiry time and tenant id.\n */\n public async getUserDelegationKey(\n parameters: ShareGetUserDelegationKeyParameters,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n public async getUserDelegationKey(\n startsOnOrParam: Date | ShareGetUserDelegationKeyParameters,\n expiresOnOrOption: Date | ServiceGetUserDelegationKeyOptions | undefined,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n let startsOn = startsOnOrParam as Date;\n let expiresOn = expiresOnOrOption as Date;\n let userDelegationTid = undefined;\n let getUserDelegationKeyOptions = options as ServiceGetUserDelegationKeyOptions;\n if (isShareGetUserDelegationKeyParameters(startsOnOrParam)) {\n startsOn = startsOnOrParam.startsOn;\n expiresOn = startsOnOrParam.expiresOn;\n userDelegationTid = startsOnOrParam.delegatedUserTenantId;\n getUserDelegationKeyOptions = expiresOnOrOption as ServiceGetUserDelegationKeyOptions;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-getUserDelegationKey\",\n getUserDelegationKeyOptions,\n async (updatedOptions) => {\n const response = assertResponse<\n ServiceGetUserDelegationKeyHeaders & UserDelegationKeyInternal,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyInternal\n >(\n adjustResponse(\n await this.serviceContext.getUserDelegationKey(\n {\n start: truncatedISO8061Date(startsOn, false),\n expiry: truncatedISO8061Date(expiresOn, false),\n delegatedUserTid: userDelegationTid,\n },\n {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n },\n ),\n ),\n );\n\n const userDelegationKey = {\n signedObjectId: response.signedObjectId,\n signedTenantId: response.signedTenantId,\n signedStartsOn: new Date(response.signedStartsOn),\n signedExpiresOn: new Date(response.signedExpiresOn),\n signedService: response.signedService,\n signedVersion: response.signedVersion,\n signedDelegatedUserTenantId: response.signedDelegatedUserTenantId,\n value: response.value,\n };\n\n const res: ServiceGetUserDelegationKeyResponse = {\n _response: response._response as any,\n requestId: response.requestId,\n clientRequestId: response.clientRequestId,\n version: response.version,\n date: response.date,\n ...userDelegationKey,\n };\n\n return res;\n },\n );\n }\n}\n"]}
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { DirectoryOperations, FileOperations, ServiceOperations, ShareOperations } from "./generated/index.js";
|
|
2
|
+
import { FileClient } from "./generated/index.js";
|
|
3
|
+
import { Pipeline } from "./Pipeline.js";
|
|
3
4
|
import type { OperationTracingOptions } from "@azure/core-tracing";
|
|
4
5
|
import type { AnonymousCredential } from "@azure/storage-common";
|
|
5
6
|
import type { StorageSharedKeyCredential } from "@azure/storage-common";
|
|
6
7
|
import type { TokenCredential } from "@azure/core-auth";
|
|
8
|
+
import type { ExtendedServiceClientOptions } from "@azure/core-http-compat";
|
|
7
9
|
/**
|
|
8
10
|
* An interface for options common to every remote operation.
|
|
9
11
|
*/
|
|
10
12
|
export interface CommonOptions {
|
|
11
13
|
tracingOptions?: OperationTracingOptions;
|
|
12
14
|
}
|
|
15
|
+
export declare class StorageClientContext {
|
|
16
|
+
client: FileClient;
|
|
17
|
+
service: ServiceOperations;
|
|
18
|
+
share: ShareOperations;
|
|
19
|
+
directory: DirectoryOperations;
|
|
20
|
+
file: FileOperations;
|
|
21
|
+
constructor(url: string, options?: ExtendedServiceClientOptions);
|
|
22
|
+
}
|
|
13
23
|
/**
|
|
14
24
|
* A StorageClient represents a base client class for ServiceClient, ContainerClient and etc.
|
|
15
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageClient.d.ts","sourceRoot":"","sources":["../../src/StorageClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"StorageClient.d.ts","sourceRoot":"","sources":["../../src/StorageClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,u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